MATCH (a:A)-[:KNOWS]->(b)-->(c) RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r:FOLLOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-->(b)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS|FOLLOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b:X)-->(c:X) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b:X)-->(c:Y) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c:X) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b:X)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r:FOLLOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-->(b)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS|FOLLOWS]->(b)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b:X)-->(c:X) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b:X)-->(c:Y) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b)-->(c:X) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
MATCH (a:A)-[:KNOWS]->(b:X)-->(c) OPTIONAL MATCH (a)-[r:KNOWS]->(c) WITH c WHERE r IS NOT NULL RETURN c.name
CREATE (a:A)-[:LOOP]->(a)
MATCH ()--() RETURN count(*)
MATCH (n)--(n) RETURN count(*)
CREATE (:A)-[:LOOP]->(:B)
MATCH ()-->() RETURN count(*)
MATCH (n)-->(n) RETURN count(*)
MATCH (n)-[r]-(n) RETURN count(r)
MATCH (n)-[r]-(n) RETURN count(DISTINCT r)
CREATE (a:A)-[:LOOP]->(a), ()-[:T]->()
MATCH (n)-[r]->(n) RETURN count(r)
CREATE (:A)-[:T1]->(l:Looper), (l)-[:LOOP]->(l), (l)-[:T2]->(:B)
MATCH (:A)-->()--() RETURN count(*)
MATCH ()-[]-()-[]-() RETURN count(*)
CREATE ()
MATCH (n) OPTIONAL MATCH (n)-[:NOT_EXIST]->(x) RETURN n, collect(x)
CREATE (:DoesExist {num: 42}) CREATE (:DoesExist {num: 43}) CREATE (:DoesExist {num: 44})
OPTIONAL MATCH (f:DoesExist) OPTIONAL MATCH (n:DoesNotExist) RETURN collect(DISTINCT n.num) AS a, collect(DISTINCT f.num) AS b
CREATE ({price: 10.0}), ({price: 20.0}), ({price: 30.0})
MATCH (n) RETURN percentileDisc(n.price, $percentile) AS p
MATCH (n) RETURN percentileCont(n.price, $percentile) AS p
CREATE ({price: 10.0})
MATCH (n) RETURN percentileCont(n.price, $param)
MATCH (n) RETURN percentileDisc(n.price, $param)
UNWIND range(0, 10) AS i CREATE (s:S) WITH s, i UNWIND range(0, i) AS j CREATE (s)-[:REL]->()
MATCH (n:S) WITH n, size([(n)-->() | 1]) AS deg WHERE deg > 2 WITH deg LIMIT 100 RETURN percentileDisc(0.90, deg), deg
UNWIND [1, 2, 0, null, -1] AS x RETURN max(x)
UNWIND [1, 2, 0, null, -1] AS x RETURN min(x)
UNWIND [1.0, 2.0, 0.5, null] AS x RETURN max(x)
UNWIND [1.0, 2.0, 0.5, null] AS x RETURN min(x)
UNWIND [1, 2.0, 5, null, 3.2, 0.1] AS x RETURN max(x)
UNWIND [1, 2.0, 5, null, 3.2, 0.1] AS x RETURN min(x)
UNWIND ['a', 'b', 'B', null, 'abc', 'abc1'] AS i RETURN max(i)
UNWIND ['a', 'b', 'B', null, 'abc', 'abc1'] AS i RETURN min(i)
UNWIND [[1], [2], [2, 1]] AS x RETURN max(x)
UNWIND [[1], [2], [2, 1]] AS x RETURN min(x)
UNWIND [1, 'a', null, [1, 2], 0.2, 'b'] AS x RETURN max(x)
UNWIND [1, 'a', null, [1, 2], 0.2, 'b'] AS x RETURN min(x)
CREATE ({name: 'a', num: 33}) CREATE ({name: 'a'}) CREATE ({name: 'a', num: 42})
MATCH (n) RETURN n.name, sum(n.num)
UNWIND range(1000000, 2000000) AS i WITH i LIMIT 3000 RETURN sum(i)
OPTIONAL MATCH (a) RETURN count(DISTINCT a)
MATCH (a) RETURN count(DISTINCT a.name)
UNWIND [null, null] AS x RETURN collect(DISTINCT x) AS c
UNWIND [null, 1, null] AS x RETURN collect(DISTINCT x) AS c
CREATE ({name: 'a', num: 33}) CREATE ({name: 'a'}) CREATE ({name: 'b', num: 42})
MATCH (n) RETURN n.name, count(n.num)
CREATE (a), (a)-[:R]->(a)
MATCH ()-[r]-() RETURN count(r)
WITH <other> AS other RETURN date(<expression>) AS result
WITH <other> AS other RETURN localtime(<expression>) AS result
WITH <other> AS other RETURN time(<expression>) AS result
WITH <other> AS other RETURN localdatetime(<expression>) AS result
WITH <otherDate> AS otherDate, <otherTime> AS otherTime RETURN localdatetime(<expression>) AS result
WITH <other> AS other RETURN datetime(<expression>) AS result
WITH <otherDate> AS otherDate, <otherTime> AS otherTime RETURN datetime(<expression>) AS result
RETURN date(<str>) AS result
RETURN localtime(<str>) AS result
RETURN time(<str>) AS result
RETURN localdatetime(<str>) AS result
RETURN datetime(<str>) AS result
RETURN duration(<str>) AS result
RETURN date.truncate(<unit>, <other>, <map>) AS result
RETURN datetime.truncate(<unit>, <other>, <map>) AS result
RETURN localdatetime.truncate(<unit>, <other>, <map>) AS result
RETURN localtime.truncate(<unit>, <other>, <map>) AS result
RETURN time.truncate(<unit>, <other>, <map>) AS result
CREATE (:Duration {dur: duration(<map>)})
WITH date({year: 1984, month: 10, day: 11}) AS x MATCH (d:Duration) RETURN x + d.dur AS sum, x - d.dur AS diff
WITH localtime({hour: 12, minute: 31, second: 14, nanosecond: 1}) AS x MATCH (d:Duration) RETURN x + d.dur AS sum, x - d.dur AS diff
WITH time({hour: 12, minute: 31, second: 14, nanosecond: 1, timezone: '+01:00'}) AS x MATCH (d:Duration) RETURN x + d.dur AS sum, x - d.dur AS diff
WITH localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 1}) AS x MATCH (d:Duration) RETURN x + d.dur AS sum, x - d.dur AS diff
WITH datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 1, timezone: '+01:00'}) AS x MATCH (d:Duration) RETURN x + d.dur AS sum, x - d.dur AS diff
CREATE (:Duration1 {date: duration(<map1>)}) CREATE (:Duration2 {date: duration(<map2>)})
MATCH (dur:Duration1), (dur2: Duration2) RETURN dur.date + dur2.date AS sum, dur.date - dur2.date AS diff
CREATE (:Duration {date: duration({years: 12, months: 5, days: 14, hours: 16, minutes: 12, seconds: 70, nanoseconds: 1})})
MATCH (d:Duration) RETURN d.date * <num1> AS prod, d.date / <num2> AS div
RETURN date(<map>) AS d
RETURN localdatetime(<map>) AS d
RETURN datetime(<map>) AS d
RETURN date(<map>) AS result
RETURN localtime(<map>) AS result
RETURN time(<map>) AS result
RETURN localdatetime(<map>) AS result
RETURN datetime(<map>) AS result
RETURN datetime.fromepoch(416779, 999999999) AS d1, datetime.fromepochmillis(237821673987) AS d2
RETURN duration(<map>) AS result
RETURN <temporal> AS result
CREATE ({created: <temporal>})
MATCH (n) RETURN n.created
CREATE ({dates: <temporal>})
MATCH (n) RETURN n.dates
RETURN <func>(null) AS t
CREATE (:Val {date: date({year: 1984, month: 10, day: 11})})
MATCH (v:Val) WITH v.date AS d RETURN d.year, d.quarter, d.month, d.week, d.weekYear, d.day, d.ordinalDay, d.weekDay, d.dayOfQuarter
CREATE (:Val {date: date({year: 1984, month: 1, day: 1})})
MATCH (v:Val) WITH v.date AS d RETURN d.year, d.weekYear, d.week, d.weekDay
CREATE (:Val {date: localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876123})})
MATCH (v:Val) WITH v.date AS d RETURN d.hour, d.minute, d.second, d.millisecond, d.microsecond, d.nanosecond
CREATE (:Val {date: time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+01:00'})})
MATCH (v:Val) WITH v.date AS d RETURN d.hour, d.minute, d.second, d.millisecond, d.microsecond, d.nanosecond, d.timezone, d.offset, d.offsetMinutes, d.offsetSeconds
CREATE (:Val {date: localdatetime({year: 1984, month: 11, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123})})
MATCH (v:Val) WITH v.date AS d RETURN d.year, d.quarter, d.month, d.week, d.weekYear, d.day, d.ordinalDay, d.weekDay, d.dayOfQuarter, d.hour, d.minute, d.second, d.millisecond, d.microsecond, d.nanosecond
CREATE (:Val {date: datetime({year: 1984, month: 11, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: 'Europe/Stockholm'})})
MATCH (v:Val) WITH v.date AS d RETURN d.year, d.quarter, d.month, d.week, d.weekYear, d.day, d.ordinalDay, d.weekDay, d.dayOfQuarter, d.hour, d.minute, d.second, d.millisecond, d.microsecond, d.nanosecond, d.timezone, d.offset, d.offsetMinutes, d.offsetSeconds, d.epochSeconds, d.epochMillis
CREATE (:Val {date: duration({years: 1, months: 4, days: 10, hours: 1, minutes: 1, seconds: 1, nanoseconds: 111111111})})
MATCH (v:Val) WITH v.date AS d RETURN d.years, d.quarters, d.months, d.weeks, d.days, d.hours, d.minutes, d.seconds, d.milliseconds, d.microseconds, d.nanoseconds, d.quartersOfYear, d.monthsOfQuarter, d.monthsOfYear, d.daysOfWeek, d.minutesOfHour, d.secondsOfMinute, d.millisecondsOfSecond, d.microsecondsOfSecond, d.nanosecondsOfSecond
WITH date(<map>) AS x, date(<map2>) AS d RETURN x > d, x < d, x >= d, x <= d, x = d
WITH localtime(<map>) AS x, localtime(<map2>) AS d RETURN x > d, x < d, x >= d, x <= d, x = d
WITH time(<map>) AS x, time(<map2>) AS d RETURN x > d, x < d, x >= d, x <= d, x = d
WITH localdatetime(<map>) AS x, localdatetime(<map2>) AS d RETURN x > d, x < d, x >= d, x <= d, x = d
WITH datetime(<map>) AS x, datetime(<map2>) AS d RETURN x > d, x < d, x >= d, x <= d, x = d
WITH duration({years: 12, months: 5, days: 14, hours: 16, minutes: 12, seconds: 70}) AS x, <other> AS d RETURN x = d
WITH date({year: 1984, month: 10, day: 11}) AS d RETURN toString(d) AS ts, date(toString(d)) = d AS b
WITH localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876123}) AS d RETURN toString(d) AS ts, localtime(toString(d)) = d AS b
WITH time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+01:00'}) AS d RETURN toString(d) AS ts, time(toString(d)) = d AS b
WITH localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123}) AS d RETURN toString(d) AS ts, localdatetime(toString(d)) = d AS b
WITH datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+01:00'}) AS d RETURN toString(d) AS ts, datetime(toString(d)) = d AS b
WITH duration(<map>) AS d RETURN toString(d) AS ts, duration(toString(d)) = d AS b
WITH datetime({year: 2017, month: 8, day: 8, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: 'Europe/Stockholm'}) AS d RETURN toString(d) AS ts
WITH duration.between(<d1>, <d2>) AS dur RETURN dur, dur.days, dur.seconds, dur.nanosecondsOfSecond
RETURN duration.between(<lhs>, <rhs>) AS duration
RETURN duration.inMonths(<lhs>, <rhs>) AS duration
RETURN duration.inDays(<lhs>, <rhs>) AS duration
RETURN duration.inSeconds(<lhs>, <rhs>) AS duration
RETURN duration.inSeconds(localdatetime('2014-07-21T21:40:36.143'), localdatetime('2014-07-21T21:40:36.142')) AS d
RETURN duration.between(date('-999999999-01-01'), date('+999999999-12-31')) AS duration
RETURN duration.inSeconds(localdatetime('-999999999-01-01'), localdatetime('+999999999-12-31T23:59:59')) AS duration
RETURN duration.inSeconds(localtime(<lhs>), localtime(<rhs>)) AS duration
RETURN duration.inSeconds(<value>, <value>) AS duration
RETURN <func>(null, null) AS t
RETURN CASE <value> WHEN -10 THEN 'minus ten' WHEN 0 THEN 'zero' WHEN 1 THEN 'one' WHEN 5 THEN 'five' WHEN 10 THEN 'ten' WHEN 3000 THEN 'three thousand' ELSE 'something else' END AS result
CREATE ({name: 'Emil Eifrem', title: 'CEO'}), ({name: 'Nobody'})
MATCH (a) RETURN coalesce(a.title, a.name)
WITH null AS a OPTIONAL MATCH p = (a)-[r]->() RETURN nodes(p), nodes(null)
CREATE (s:Start)-[:REL {num: 1}]->(b:B)-[:REL {num: 2}]->(c:C)
MATCH p = (a:Start)-[:REL*2..2]->(b) RETURN relationships(p)
CREATE (a:A)-[:REL {num: 1}]->(b:B)-[:REL {num: 2}]->(e:End)
MATCH p = (a)-[:REL*2..2]->(b:End) RETURN relationships(p)
WITH null AS a OPTIONAL MATCH p = (a)-[r]->() RETURN relationships(p), relationships(null)
CREATE (a:A)-[:REL]->(b:B)
MATCH p = (a)-[*0..1]->(b) RETURN a, b, length(p) AS l
MATCH (n) RETURN length(n)
MATCH ()-[r]->() RETURN length(r)
CREATE ({name: 'Apa'})
MATCH (n {name: 'Apa'}) RETURN n['nam' + 'e'] AS value
CREATE (n {name: 'Apa'}) RETURN n['nam' + 'e'] AS value
CREATE (n {name: 'Apa'}) RETURN n[$idx] AS value
CREATE ({existing: 42, missing: null})
MATCH (n) RETURN n.missing, n.missingToo, n.existing
OPTIONAL MATCH (n) RETURN n.missing, n.missingToo, n.existing
OPTIONAL MATCH (n) RETURN n.missing
MATCH (n) WITH [123, n] AS list RETURN (list[1]).missing, (list[1]).missingToo, (list[1]).existing
CREATE ()-[:REL {existing: 42, missing: null}]->()
MATCH ()-[r]->() RETURN r.missing, r.missingToo, r.existing
OPTIONAL MATCH ()-[r]->() RETURN r.missing, r.missingToo, r.existing
OPTIONAL MATCH ()-[r]->() RETURN r.missing
MATCH ()-[r]->() WITH [123, r] AS list RETURN (list[1]).missing, (list[1]).missingToo, (list[1]).existing
WITH <exp> AS nonGraphElement RETURN nonGraphElement.num
CREATE ()-[:T]->()
MATCH ()-[r]->() RETURN type(r)
CREATE ()-[:T1]->()-[:T2]->()
MATCH ()-[r1]->()-[r2]->() RETURN type(r1), type(r2)
MATCH (a) OPTIONAL MATCH (a)-[r:NOT_THERE]->() RETURN type(r), type(null)
MATCH (a) OPTIONAL MATCH (a)-[r:T]->() RETURN type(r)
MATCH (a)-[r]->() WITH [r, 1] AS list RETURN type(list[0])
MATCH p = (n)-[r:T]->() RETURN [x IN [r, <invalid>] | type(x) ] AS list
MATCH (r) RETURN type(r)
CREATE (:A:B:C), (:A:B), (:A:C), (:B:C), (:A), (:B), (:C), ()
MATCH (a) RETURN a, a:B AS result
CREATE ()-[:T1]->(), ()-[:T2]->(), ()-[:t2]->(), (:T2)-[:T3]->(), ()-[:T4]->(:T2)
MATCH ()-[r]->() RETURN r, r:T2 AS result
MATCH (a) RETURN a, a:A:B AS result
CREATE (:A:B), (:A:C), (:B:C), (:A), (:B), (:C), ()
MATCH (a) WHERE a<labelexp> RETURN a
CREATE (s:Single)
MATCH (n:Single) OPTIONAL MATCH (n)-[r:TYPE]-(m) RETURN m:TYPE
CREATE (n:Person {name: 'Popeye', level: 9001})
MATCH (p:Person) RETURN properties(p) AS m
CREATE (n)-[:R {name: 'Popeye', level: 9001}]->(n)
MATCH ()-[r:R]->() RETURN properties(r) AS m
OPTIONAL MATCH (n:DoesNotExist) OPTIONAL MATCH (n)-[r:NOT_THERE]->() RETURN properties(n), properties(r), properties(null)
RETURN properties({name: 'Popeye', level: 9001}) AS m
RETURN properties(1)
RETURN properties('Cypher')
RETURN properties([true, false])
CREATE ({name: 'Andres', surname: 'Lopez'})
MATCH (n) UNWIND keys(n) AS x RETURN DISTINCT x AS theProps
CREATE ({name: 'Andres', surname: 'Lopez'}), ({otherName: 'Andres', otherSurname: 'Lopez'})
OPTIONAL MATCH (n) UNWIND keys(n) AS x RETURN DISTINCT x AS theProps
CREATE ()-[:KNOWS {status: 'bad', year: '2015'}]->()
MATCH ()-[r:KNOWS]-() UNWIND keys(r) AS x RETURN DISTINCT x AS theProps
CREATE ()-[:KNOWS]->()
OPTIONAL MATCH ()-[r:KNOWS]-() UNWIND keys(r) AS x RETURN DISTINCT x AS theProps
CREATE ({exists: 42, missing: null})
MATCH (n) RETURN 'exists' IN keys(n) AS a, 'missing' IN keys(n) AS b, 'missingToo' IN keys(n) AS c
CREATE (node) RETURN labels(node)
CREATE (node:Foo:Bar {name: 'Mattias'}) RETURN labels(node)
CREATE (node :Foo:Bar) RETURN labels(node)
CREATE (n:Person)-[:OWNS]->(:Dog) RETURN labels(n)
MATCH (n) RETURN labels(n)
CREATE (:Foo), (:Foo:Bar)
MATCH (a) WITH [a, 1] AS list RETURN labels(list[0]) AS l
OPTIONAL MATCH (n:DoesNotExist) RETURN labels(n), labels(null)
MATCH p = (a) RETURN labels(p) AS l
MATCH (a) WITH [a, 1] AS list RETURN labels(list[1]) AS l
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH single(x IN list WHERE false) AS result, count(*) AS cnt RETURN result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 1 WITH single(x IN list WHERE true) AS result, count(*) AS cnt RETURN result
WITH [1, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS element WITH single(x IN [element] WHERE true) AS result, count(*) AS cnt RETURN result
UNWIND [{list: [2], fixed: true}, {list: [6], fixed: true}, {list: [7], fixed: true}, {list: [1, 2, 3, 4, 5, 6, 7, 8, 9], fixed: false}] AS input WITH CASE WHEN input.fixed THEN input.list ELSE null END AS fixedList, CASE WHEN NOT input.fixed THEN input.list ELSE [1] END AS inputList UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH coalesce(fixedList, list) AS list WITH single(x IN list WHERE <predicate>) = (size([x IN list WHERE <predicate> | x]) = 1) AS result, count(*) AS cnt RETURN result
RETURN all(x IN [] WHERE true) AS a, all(x IN [] WHERE false) AS b, all(x IN [] WHERE x) AS c
RETURN all(x IN <list> WHERE <condition>) AS result
CREATE (s1:SRelationships), (s2:SNodes) CREATE (a:A {name: 'a'}), (b:B {name: 'b'}) CREATE (aa:A {name: 'a'}), (ab:B {name: 'b'}), (ba:A {name: 'a'}), (bb:B {name: 'b'}) CREATE (aaa:A {name: 'a'}), (aab:B {name: 'b'}), (aba:A {name: 'a'}), (abb:B {name: 'b'}), (baa:A {name: 'a'}), (bab:B {name: 'b'}), (bba:A {name: 'a'}), (bbb:B {name: 'b'}) CREATE (s1)-[:I]->(s2), (s2)-[:RA {name: 'a'}]->(a), (s2)-[:RB {name: 'b'}]->(b) CREATE (a)-[:RA {name: 'a'}]->(aa), (a)-[:RB {name: 'b'}]->(ab), (b)-[:RA {name: 'a'}]->(ba), (b)-[:RB {name: 'b'}]->(bb) CREATE (aa)-[:RA {name: 'a'}]->(aaa), (aa)-[:RB {name: 'b'}]->(aab), (ab)-[:RA {name: 'a'}]->(aba), (ab)-[:RB {name: 'b'}]->(abb), (ba)-[:RA {name: 'a'}]->(baa), (ba)-[:RB {name: 'b'}]->(bab), (bb)-[:RA {name: 'a'}]->(bba), (bb)-[:RB {name: 'b'}]->(bbb)
MATCH p = (:SNodes)-[*0..3]->(x) WITH tail(nodes(p)) AS nodes RETURN nodes, all(x IN nodes WHERE x.name = 'a') AS result
MATCH p = (:SRelationships)-[*0..4]->(x) WITH tail(relationships(p)) AS relationships, COUNT(*) AS c RETURN relationships, all(x IN relationships WHERE x.name = 'a') AS result
RETURN all(x IN <list> WHERE x IS NULL) AS result
RETURN all(x IN <list> WHERE x IS NOT NULL) AS result
RETURN all(x IN [1, null, true, 4.5, 'abc', false] WHERE false) AS result
RETURN all(x IN [1, null, true, 4.5, 'abc', false] WHERE true) AS result
RETURN none(x IN [['abc'], ['abc', 'def']] WHERE <condition>) AS result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS list RETURN none(x IN list WHERE <condition>) AS result
RETURN none(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (NOT any(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>)) AS result
RETURN none(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = all(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE NOT (<predicate>)) AS result
RETURN none(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (size([x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate> | x]) = 0) AS result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH any(x IN list WHERE false) AS result, count(*) AS cnt RETURN result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH any(x IN list WHERE true) AS result, count(*) AS cnt RETURN result
UNWIND [{list: [2], fixed: true}, {list: [6], fixed: true}, {list: [1, 2, 3, 4, 5, 6, 7, 8, 9], fixed: false}] AS input WITH CASE WHEN input.fixed THEN input.list ELSE null END AS fixedList, CASE WHEN NOT input.fixed THEN input.list ELSE [1] END AS inputList UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH coalesce(fixedList, list) AS list WITH list WHERE single(<operands>) OR all(<operands>) WITH any(<operands>) AS result, count(*) AS cnt RETURN result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH any(x IN list WHERE <predicate>) = (NOT none(x IN list WHERE <predicate>)) AS result, count(*) AS cnt RETURN result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH any(x IN list WHERE <predicate>) = (NOT all(x IN list WHERE NOT (<predicate>))) AS result, count(*) AS cnt RETURN result
UNWIND [{list: [2], fixed: true}, {list: [6], fixed: true}, {list: [7], fixed: true}, {list: [1, 2, 3, 4, 5, 6, 7, 8, 9], fixed: false}] AS input WITH CASE WHEN input.fixed THEN input.list ELSE null END AS fixedList, CASE WHEN NOT input.fixed THEN input.list ELSE [1] END AS inputList UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH coalesce(fixedList, list) AS list WITH any(x IN list WHERE <predicate>) = (size([x IN list WHERE <predicate> | x]) > 0) AS result, count(*) AS cnt RETURN result
RETURN any(x IN [['abc'], ['abc', 'def']] WHERE <condition>) AS result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS list RETURN any(x IN list WHERE <condition>) AS result
RETURN (single(<operands>) OR all(<operands>)) <= any(<operands>) AS result
RETURN any(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (NOT none(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>)) AS result
RETURN any(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (NOT all(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE NOT (<predicate>))) AS result
RETURN any(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (size([x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate> | x]) > 0) AS result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH all(x IN list WHERE false) AS result, count(*) AS cnt RETURN result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH all(x IN list WHERE true) AS result, count(*) AS cnt RETURN result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH all(x IN list WHERE <predicate>) = none(x IN list WHERE NOT (<predicate>)) AS result, count(*) AS cnt RETURN result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH all(x IN list WHERE <predicate>) = (NOT any(x IN list WHERE NOT (<predicate>))) AS result, count(*) AS cnt RETURN result
UNWIND [{list: [2], fixed: true}, {list: [6], fixed: true}, {list: [7], fixed: true}, {list: [1, 2, 3, 4, 5, 6, 7, 8, 9], fixed: false}] AS input WITH CASE WHEN input.fixed THEN input.list ELSE null END AS fixedList, CASE WHEN NOT input.fixed THEN input.list ELSE [1] END AS inputList UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH coalesce(fixedList, list) AS list WITH all(x IN list WHERE <predicate>) = (size([x IN list WHERE <predicate> | x]) = size(list)) AS result, count(*) AS cnt RETURN result
RETURN single(x IN [['abc'], ['abc', 'def']] WHERE <condition>) AS result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS list RETURN single(x IN list WHERE <condition>) AS result
RETURN single(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (size([x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate> | x]) = 1) AS result
RETURN any(x IN [] WHERE true) AS a, any(x IN [] WHERE false) AS b, any(x IN [] WHERE x) AS c
RETURN any(x IN <list> WHERE <condition>) AS result
MATCH p = (:SNodes)-[*0..3]->(x) WITH tail(nodes(p)) AS nodes RETURN nodes, any(x IN nodes WHERE x.name = 'a') AS result
MATCH p = (:SRelationships)-[*0..4]->(x) WITH tail(relationships(p)) AS relationships, COUNT(*) AS c RETURN relationships, any(x IN relationships WHERE x.name = 'a') AS result
RETURN any(x IN <list> WHERE x IS NULL) AS result
RETURN any(x IN <list> WHERE x IS NOT NULL) AS result
RETURN any(x IN [1, null, true, 4.5, 'abc', false] WHERE false) AS result
RETURN any(x IN [1, null, true, 4.5, 'abc', false] WHERE true) AS result
RETURN single(x IN [] WHERE true) AS a, single(x IN [] WHERE false) AS b, single(x IN [] WHERE x) AS c
RETURN single(x IN <list> WHERE <condition>) AS result
MATCH p = (:SNodes)-[*0..3]->(x) WITH tail(nodes(p)) AS nodes RETURN nodes, single(x IN nodes WHERE x.name = 'a') AS result
MATCH p = (:SRelationships)-[*0..4]->(x) WITH tail(relationships(p)) AS relationships, COUNT(*) AS c RETURN relationships, single(x IN relationships WHERE x.name = 'a') AS result
RETURN single(x IN <list> WHERE x IS NULL) AS result
RETURN single(x IN <list> WHERE x IS NOT NULL) AS result
RETURN single(x IN [1, null, true, 4.5, 'abc', false] WHERE false) AS result
RETURN single(x IN [1, null, true, 4.5, 'abc', false] WHERE true) AS result
RETURN single(x IN [1] WHERE true) AS result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH none(x IN list WHERE false) AS result, count(*) AS cnt RETURN result
WITH [1, null, true, 4.5, 'abc', false, '', [234, false], {a: null, b: true, c: 15.2}, {}, [], [null], [[{b: [null]}]]] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH list WHERE size(list) > 0 WITH none(x IN list WHERE true) AS result, count(*) AS cnt RETURN result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH none(x IN list WHERE <predicate>) = (NOT any(x IN list WHERE <predicate>)) AS result, count(*) AS cnt RETURN result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS inputList UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH none(x IN list WHERE <predicate>) = all(x IN list WHERE NOT (<predicate>)) AS result, count(*) AS cnt RETURN result
UNWIND [{list: [2], fixed: true}, {list: [6], fixed: true}, {list: [7], fixed: true}, {list: [1, 2, 3, 4, 5, 6, 7, 8, 9], fixed: false}] AS input WITH CASE WHEN input.fixed THEN input.list ELSE null END AS fixedList, CASE WHEN NOT input.fixed THEN input.list ELSE [1] END AS inputList UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list UNWIND inputList AS x WITH fixedList, inputList, x, [ y IN inputList WHERE rand() > 0.5 | y] AS list WITH fixedList, inputList, CASE WHEN rand() < 0.5 THEN reverse(list) ELSE list END + x AS list WITH coalesce(fixedList, list) AS list WITH none(x IN list WHERE <predicate>) = (size([x IN list WHERE <predicate> | x]) = 0) AS result, count(*) AS cnt RETURN result
RETURN none(x IN [] WHERE true) AS a, none(x IN [] WHERE false) AS b, none(x IN [] WHERE x) AS c
RETURN none(x IN <list> WHERE <condition>) AS result
MATCH p = (:SNodes)-[*0..3]->(x) WITH tail(nodes(p)) AS nodes RETURN nodes, none(x IN nodes WHERE x.name = 'a') AS result
MATCH p = (:SRelationships)-[*0..4]->(x) WITH tail(relationships(p)) AS relationships, COUNT(*) AS c RETURN relationships, none(x IN relationships WHERE x.name = 'a') AS result
RETURN none(x IN <list> WHERE x IS NULL) AS result
RETURN none(x IN <list> WHERE x IS NOT NULL) AS result
RETURN none(x IN [1, null, true, 4.5, 'abc', false] WHERE false) AS result
RETURN none(x IN [1, null, true, 4.5, 'abc', false] WHERE true) AS result
RETURN all(x IN [['abc'], ['abc', 'def']] WHERE <condition>) AS result
WITH [1, 2, 3, 4, 5, 6, 7, 8, 9] AS list RETURN all(x IN list WHERE <condition>) AS result
RETURN all(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = none(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE NOT (<predicate>)) AS result
RETURN all(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (NOT any(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE NOT (<predicate>))) AS result
RETURN all(x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate>) = (size([x IN [1, 2, 3, 4, 5, 6, 7, 8, 9] WHERE <predicate> | x]) = size([1, 2, 3, 4, 5, 6, 7, 8, 9])) AS result
WITH $expr AS expr, $idx AS idx RETURN expr[idx] AS value
WITH $expr AS expr, $idx AS idx RETURN expr[toString(idx)] AS value
WITH null AS expr, 'x' AS idx RETURN expr[idx] AS value
WITH {name: 'Mats'} AS expr, null AS idx RETURN expr[idx] AS value
WITH <map> AS map RETURN map[<key>] AS result
WITH $expr AS expr, $idx AS idx RETURN expr[idx]
RETURN keys({name: 'Alice', age: 38, address: {city: 'London', residential: true}}) AS k
RETURN keys($param) AS k
WITH null AS m RETURN keys(m), keys(null)
RETURN keys(<map>) AS keys
WITH {exists: 42, notMissing: null} AS map RETURN 'exists' IN keys(map) AS a, 'notMissing' IN keys(map) AS b, 'missing' IN keys(map) AS c
WITH {existing: 42, notMissing: null} AS m RETURN m.missing, m.notMissing, m.existing
WITH null AS m RETURN m.missing
WITH [123, {existing: 42, notMissing: null}] AS list RETURN (list[1]).missing, (list[1]).notMissing, (list[1]).existing
WITH <map> AS map RETURN map.<key> AS result
WITH <exp> AS nonMap RETURN nonMap.num
CREATE (a:A {prop: 1})-[:R]->(b:B {prop: 1}), (a)-[:R]->(:C {prop: 2}), (a)-[:R]->(:D {prop: 3})
MATCH (n) WHERE exists { (n)-->() } RETURN n
CREATE (a:A {prop: 1})-[:R]->(b:B {prop: 1}), (a)-[:R]->(:C {prop: 2}), (a)-[:R]->(:D {prop: 3}), (b)-[:R]->(d)
MATCH (n) WHERE exists { (n)-->(m) WHERE n.prop = m.prop } RETURN n
MATCH (n) WHERE exists { (n)-[:NA]->() } RETURN n
MATCH (n) WHERE exists { (n)-[r]->() WHERE type(r) = 'NA' } RETURN n
MATCH (n) WHERE exists { MATCH (n)-->() RETURN true } RETURN n
CREATE (a:A {prop: 1})-[:R]->(b:B {prop: 1}), (a)-[:R]->(:C {prop: 2}), (a)-[:R]->(d:D {prop: 3}), (b)-[:R]->(d)
MATCH (n) WHERE exists { MATCH (n)-->(m) WITH n, count(*) AS numConnections WHERE numConnections = 3 RETURN true } RETURN n
MATCH (n) WHERE exists { MATCH (n)-->(m) SET m.prop='fail' } RETURN n
MATCH (n) WHERE exists { MATCH (m) WHERE exists { (n)-[]->(m) WHERE n.prop = m.prop } RETURN true } RETURN n
MATCH (n) WHERE exists { MATCH (m) WHERE exists { MATCH (l)<-[:R]-(n)-[:R]->(m) RETURN true } RETURN true } RETURN n
MATCH (n) WHERE exists { MATCH (m) WHERE exists { MATCH (l) WHERE (l)<-[:R]-(n)-[:R]->(m) RETURN true } RETURN true } RETURN n
CREATE ({exists: 42})
MATCH (n) RETURN n.missing IS NULL, n.exists IS NULL
OPTIONAL MATCH (n) RETURN n.missing IS NULL, n.exists IS NULL
OPTIONAL MATCH (n) RETURN n.missing IS NULL
RETURN null IS NULL AS value
WITH <map> AS map RETURN map.<key> IS NULL AS result
CREATE (a:X {prop: 42}), (:X)
MATCH (n:X) RETURN n, n.prop iS NuLl AS b
MATCH (n) RETURN n.missing IS NOT NULL, n.exists IS NOT NULL
OPTIONAL MATCH (n) RETURN n.missing IS NOT NULL, n.exists IS NOT NULL
OPTIONAL MATCH (n) RETURN n.missing IS NOT NULL
RETURN null IS NOT NULL AS value
WITH <map> AS map RETURN map.<key> IS NOT NULL AS result
MATCH (n:X) RETURN n, n.prop Is noT nULl AS b
RETURN NOT null AS value
RETURN null = null AS value
RETURN null <> null AS value
RETURN $elt IN $coll AS result
RETURN range(<start>, <end>) AS list
RETURN range(<start>, <end>, <step>) AS list
WITH 0 AS start, [1, 2, 500, 1000, 1500] AS stopList, [-1000, -3, -2, -1, 1, 2, 3, 1000] AS stepList UNWIND stopList AS stop UNWIND stepList AS step WITH start, stop, step, range(start, stop, step) AS list WITH start, stop, step, list, sign(stop-start) <> sign(step) AS empty RETURN ALL(ok IN collect((size(list) = 0) = empty) WHERE ok) AS okay
RETURN range(2, 8, 0)
RETURN range(<start>, <end>, <step>)
RETURN size([1, 2, 3]) AS n
CREATE (:TheLabel)
MATCH (n:TheLabel) SET n.numbers = [1, 2, 3] RETURN size(n.numbers)
RETURN size([[], []] + [[]]) AS l
WITH null AS l RETURN size(l), size(null)
MATCH p = (a)-[*]->(b) RETURN size(p)
MATCH (a), (b), (c) RETURN size(<pattern>)
CREATE (a:X {num: 42}), (:X {num: 43}) CREATE (a)-[:T]->()
MATCH (n:X) RETURN n, size([(n)--() | 1]) > 0 AS b
CREATE (x:X), (x)-[:T]->(), (x)-[:T]->(), (x)-[:T]->()
MATCH (a:X) RETURN size([(a)-->() | 1]) AS length
CREATE (x:X), (x)-[:T]->(), (x)-[:T]->(), (x)-[:T]->(), (x)-[:OTHER]->()
MATCH (a:X) RETURN size([(a)-[:T]->() | 1]) AS length
MATCH (a:X) RETURN size([(a)-[:T|OTHER]->() | 1]) AS length
CREATE (:Label1 {name: 'original'})
MATCH (a:Label1) WITH collect(a) AS nodes WITH nodes, [x IN nodes | x.name] AS oldNames UNWIND nodes AS n SET n.name = 'newName' RETURN n.name, oldNames
MATCH (a:Label1) WITH collect(a) AS nodes WITH nodes, [x IN nodes WHERE x.name = 'original'] AS noopFiltered UNWIND nodes AS n SET n.name = 'newName' RETURN n.name, size(noopFiltered)
MATCH (n) OPTIONAL MATCH (n)-[r]->(m) RETURN size([x IN collect(r) WHERE x <> null]) AS cn
CREATE (a:A) CREATE (a)-[:T]->(:B), (a)-[:T]->(:C)
MATCH p = (n)-->() RETURN [x IN collect(p) | head(nodes(x))] AS p
MATCH p = (n:A)-->() WITH [x IN collect(p) | head(nodes(x))] AS p, count(n) AS c RETURN p, c
CREATE (a:A {name: 'c'}) CREATE (a)-[:T]->(:B), (a)-[:T]->(:C)
MATCH (n)-->(b) WHERE n.name IN [x IN labels(b) | toLower(x)] RETURN b
MATCH (n) RETURN [x IN [1, 2, 3, 4, 5] | count(*)]
RETURN [1, 10, 100] + [4, 5] AS foo
RETURN [false, true] + false AS foo
WITH [[1, 2, 3]] AS list RETURN 3 IN list[0] AS r
RETURN 3 IN [[1, 2, 3]][0] AS r
WITH [1, 2, 3] AS list RETURN 3 IN list[0..1] AS r
RETURN 3 IN [1, 2, 3][0..1] AS r
RETURN 1 IN ['1', 2] AS res
RETURN [1, 2] IN [1, [1, '2']] AS res
RETURN [1] IN [1, 2] AS res
RETURN [1, 2] IN [1, 2] AS res
RETURN [1] IN [1, 2, [1]] AS res
RETURN [1, 2] IN [1, [1, 2]] AS res
RETURN [1, 2] IN [1, [2, 1]] AS res
RETURN [1, 2] IN [1, [1, 2, 3]] AS res
RETURN [1, 2] IN [1, [[1, 2]]] AS res
RETURN [[1, 2], [3, 4]] IN [5, [[1, 2], [3, 4]]] AS res
RETURN [[1, 2], 3] IN [1, [[1, 2], 3]] AS res
RETURN [[1]] IN [2, [[1]]] AS res
RETURN [[1, 3]] IN [2, [[1, 3]]] AS res
RETURN [[1]] IN [2, [1]] AS res
RETURN [[1, 3]] IN [2, [1, 3]] AS res
RETURN null IN [null] AS res
RETURN [null] IN [[null]] AS res
RETURN [null] IN [null] AS res
RETURN [1] IN [[1, null]] AS res
RETURN 3 IN [1, null, 3] AS res
RETURN 4 IN [1, null, 3] AS res
RETURN [1, 2] IN [[null, 'foo'], [1, 2]] AS res
RETURN [1, 2] IN [1, [1, 2], null] AS res
RETURN [1, 2] IN [[null, 'foo']] AS res
RETURN [1, 2] IN [[null, 2]] AS res
RETURN [1, 2] IN [1, [1, 2, null]] AS res
RETURN [1, 2, null] IN [1, [1, 2, null]] AS res
RETURN [1, 2] IN [[null, 2], [1, 2]] AS res
RETURN [[1, 2], [3, 4]] IN [5, [[1, 2], [3, 4], null]] AS res
RETURN [1, 2] IN [[null, 2], [1, 3]] AS res
RETURN [] IN [[]] AS res
RETURN [] IN [] AS res
RETURN [] IN [1, []] AS res
RETURN [] IN [1, 2] AS res
RETURN [[]] IN [1, [[]]] AS res
RETURN [] IN [1, 2, null] AS res
RETURN [[], []] IN [1, [[], []]] AS res
RETURN 1 IN <invalid>
MATCH (n:TheLabel) SET n.array = [1, 2, 3, 4, 5] RETURN tail(tail(n.array))
RETURN [1, 2, 3][0] AS value
RETURN [[1]][0][0]
WITH ['Apa'] AS expr RETURN expr[$idx] AS value
WITH $expr AS expr, $idx AS idx RETURN expr[toInteger(idx)] AS value
WITH <expr> AS list, 0 AS idx RETURN list[idx]
WITH $expr AS list, $idx AS idx RETURN list[idx]
WITH [1, 2, 3, 4, 5] AS list, <idx> AS idx RETURN list[idx]
RETURN [1, 2] = 'foo' AS res
RETURN [1] = [1, null] AS res
RETURN [1, 2] = [null, 'foo'] AS res
RETURN [1, 2] = [null, 2] AS res
RETURN [[1]] = [[1], [null]] AS res
RETURN [[1, 2], [1, 3]] = [[1, 2], [null, 'foo']] AS res
RETURN [[1, 2], ['foo', 'bar']] = [[1, 2], [null, 'bar']] AS res
WITH [1, 2, 3, 4, 5] AS list RETURN list[1..3] AS r
WITH [1, 2, 3] AS list RETURN list[1..] AS r
WITH [1, 2, 3] AS list RETURN list[..2] AS r
WITH [1, 2, 3] AS list RETURN list[0..1] AS r
WITH [1, 2, 3] AS list RETURN list[0..0] AS r
WITH [1, 2, 3] AS list RETURN list[-3..-1] AS r
WITH [1, 2, 3] AS list RETURN list[3..1] AS r
WITH [1, 2, 3] AS list RETURN list[-5..5] AS r
WITH [1, 2, 3] AS list RETURN list[<lower>..<upper>] AS r
WITH [1, 2, 3] AS list RETURN list[$from..$to] AS r
RETURN NOT true AS nt, NOT false AS nf, NOT null AS nn
RETURN NOT NOT true AS nnt, NOT NOT false AS nnf, NOT NOT null AS nnn
CREATE ({name: 'a'})
MATCH (n) WHERE NOT(n.name = 'apa' AND false) RETURN n
RETURN NOT <literal>
UNWIND [true, false] AS a UNWIND [true, false] AS b UNWIND [true, false] AS c RETURN a, b, c, (a OR (b AND c)) = ((a OR b) AND (a OR c)) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH a, b, c WHERE a IS NULL OR b IS NULL OR c IS NULL RETURN a, b, c, (a OR (b AND c)) IS NULL = ((a OR b) AND (a OR c)) IS NULL AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b UNWIND [true, false] AS c RETURN a, b, c, (a AND (b OR c)) = ((a AND b) OR (a AND c)) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH a, b, c WHERE a IS NULL OR b IS NULL OR c IS NULL RETURN a, b, c, (a AND (b OR c)) IS NULL = ((a AND b) OR (a AND c)) IS NULL AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b UNWIND [true, false] AS c RETURN a, b, c, (a AND (b XOR c)) = ((a AND b) XOR (a AND c)) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH a, b, c WHERE a IS NULL OR b IS NULL OR c IS NULL RETURN a, b, c, (a AND (b XOR c)) IS NULL = ((a AND b) XOR (a AND c)) IS NULL AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b RETURN a, b, NOT (a OR b) = (NOT (a) AND NOT (b)) AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b RETURN a, b, NOT (a AND b) = (NOT (a) OR NOT (b)) AS result
RETURN true XOR true AS tt, true XOR false AS tf, true XOR null AS tn, false XOR true AS ft, false XOR false AS ff, false XOR null AS fn, null XOR true AS nt, null XOR false AS nf, null XOR null AS nn
RETURN true XOR true XOR true AS ttt, true XOR true XOR false AS ttf, true XOR true XOR null AS ttn, true XOR false XOR true AS tft, true XOR false XOR false AS tff, true XOR false XOR null AS tfn, true XOR null XOR true AS tnt, true XOR null XOR false AS tnf, true XOR null XOR null AS tnn, false XOR true XOR true AS ftt, false XOR true XOR false AS ftf, false XOR true XOR null AS ftn, false XOR false XOR true AS fft, false XOR false XOR false AS fff, false XOR false XOR null AS ffn, false XOR null XOR true AS fnt, false XOR null XOR false AS fnf, false XOR null XOR null AS fnn, null XOR true XOR true AS ntt, null XOR true XOR false AS ntf, null XOR true XOR null AS ntn, null XOR false XOR true AS nft, null XOR false XOR false AS nff, null XOR false XOR null AS nfn, null XOR null XOR true AS nnt, null XOR null XOR false AS nnf, null XOR null XOR null AS nnn
RETURN true XOR true XOR true XOR true XOR true XOR true XOR true XOR true XOR true XOR true XOR true AS t, true XOR true XOR true XOR false XOR true XOR true XOR true XOR true XOR true XOR true XOR true AS tsf, true XOR true XOR true XOR null XOR true XOR true XOR true XOR true XOR true XOR true XOR true AS tsn, false XOR false XOR false XOR false XOR false XOR false XOR false XOR false XOR false XOR false XOR false AS f, false XOR false XOR false XOR false XOR true XOR false XOR false XOR false XOR false XOR false XOR false AS fst, false XOR false XOR false XOR false XOR false XOR false XOR null XOR false XOR false XOR false XOR false AS fsn, null XOR null XOR null XOR null XOR null XOR null XOR null XOR null XOR null XOR null XOR null AS n, null XOR null XOR null XOR null XOR true XOR null XOR null XOR null XOR null XOR null XOR null AS nst, null XOR null XOR null XOR null XOR false XOR null XOR null XOR null XOR null XOR null XOR null AS nsf, true XOR false XOR false XOR false XOR true XOR false XOR false XOR true XOR true XOR true XOR false AS m1, true XOR true XOR false XOR false XOR true XOR false XOR false XOR true XOR true XOR true XOR false AS m2, true XOR true XOR false XOR false XOR true XOR null XOR false XOR true XOR true XOR null XOR false AS m3
UNWIND [true, false] AS a UNWIND [true, false] AS b RETURN a, b, (a XOR b) = (b XOR a) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH a, b WHERE a IS NULL OR b IS NULL RETURN a, b, (a XOR b) IS NULL = (b XOR a) IS NULL AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b UNWIND [true, false] AS c RETURN a, b, c, (a XOR (b XOR c)) = ((a XOR b) XOR c) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH a, b, c WHERE a IS NULL OR b IS NULL OR c IS NULL RETURN a, b, c, (a XOR (b XOR c)) IS NULL = ((a XOR b) XOR c) IS NULL AS result
RETURN <a> XOR <b>
RETURN true OR true AS tt, true OR false AS tf, true OR null AS tn, false OR true AS ft, false OR false AS ff, false OR null AS fn, null OR true AS nt, null OR false AS nf, null OR null AS nn
RETURN true OR true OR true AS ttt, true OR true OR false AS ttf, true OR true OR null AS ttn, true OR false OR true AS tft, true OR false OR false AS tff, true OR false OR null AS tfn, true OR null OR true AS tnt, true OR null OR false AS tnf, true OR null OR null AS tnn, false OR true OR true AS ftt, false OR true OR false AS ftf, false OR true OR null AS ftn, false OR false OR true AS fft, false OR false OR false AS fff, false OR false OR null AS ffn, false OR null OR true AS fnt, false OR null OR false AS fnf, false OR null OR null AS fnn, null OR true OR true AS ntt, null OR true OR false AS ntf, null OR true OR null AS ntn, null OR false OR true AS nft, null OR false OR false AS nff, null OR false OR null AS nfn, null OR null OR true AS nnt, null OR null OR false AS nnf, null OR null OR null AS nnn
RETURN true OR true OR true OR true OR true OR true OR true OR true OR true OR true OR true AS t, true OR true OR true OR false OR true OR true OR true OR true OR true OR true OR true AS tsf, true OR true OR true OR null OR true OR true OR true OR true OR true OR true OR true AS tsn, false OR false OR false OR false OR false OR false OR false OR false OR false OR false OR false AS f, false OR false OR false OR false OR true OR false OR false OR false OR false OR false OR false AS fst, false OR false OR false OR false OR false OR false OR null OR false OR false OR false OR false AS fsn, null OR null OR null OR null OR null OR null OR null OR null OR null OR null OR null AS n, null OR null OR null OR null OR true OR null OR null OR null OR null OR null OR null AS nst, null OR null OR null OR null OR false OR null OR null OR null OR null OR null OR null AS nsf, true OR false OR false OR false OR true OR false OR false OR true OR true OR true OR false AS m1, true OR true OR false OR false OR true OR false OR false OR true OR true OR true OR false AS m2, true OR true OR false OR false OR true OR null OR false OR true OR true OR null OR false AS m3
UNWIND [true, false] AS a UNWIND [true, false] AS b RETURN a, b, (a OR b) = (b OR a) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH a, b WHERE a IS NULL OR b IS NULL RETURN a, b, (a OR b) IS NULL = (b OR a) IS NULL AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b UNWIND [true, false] AS c RETURN a, b, c, (a OR (b OR c)) = ((a OR b) OR c) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH a, b, c WHERE a IS NULL OR b IS NULL OR c IS NULL RETURN a, b, c, (a OR (b OR c)) IS NULL = ((a OR b) OR c) IS NULL AS result
RETURN <a> OR <b>
RETURN true AND true AS tt, true AND false AS tf, true AND null AS tn, false AND true AS ft, false AND false AS ff, false AND null AS fn, null AND true AS nt, null AND false AS nf, null AND null AS nn
RETURN true AND true AND true AS ttt, true AND true AND false AS ttf, true AND true AND null AS ttn, true AND false AND true AS tft, true AND false AND false AS tff, true AND false AND null AS tfn, true AND null AND true AS tnt, true AND null AND false AS tnf, true AND null AND null AS tnn, false AND true AND true AS ftt, false AND true AND false AS ftf, false AND true AND null AS ftn, false AND false AND true AS fft, false AND false AND false AS fff, false AND false AND null AS ffn, false AND null AND true AS fnt, false AND null AND false AS fnf, false AND null AND null AS fnn, null AND true AND true AS ntt, null AND true AND false AS ntf, null AND true AND null AS ntn, null AND false AND true AS nft, null AND false AND false AS nff, null AND false AND null AS nfn, null AND null AND true AS nnt, null AND null AND false AS nnf, null AND null AND null AS nnn
RETURN true AND true AND true AND true AND true AND true AND true AND true AND true AND true AND true AS t, true AND true AND true AND false AND true AND true AND true AND true AND true AND true AND true AS tsf, true AND true AND true AND null AND true AND true AND true AND true AND true AND true AND true AS tsn, false AND false AND false AND false AND false AND false AND false AND false AND false AND false AND false AS f, false AND false AND false AND false AND true AND false AND false AND false AND false AND false AND false AS fst, false AND false AND false AND false AND false AND false AND null AND false AND false AND false AND false AS fsn, null AND null AND null AND null AND null AND null AND null AND null AND null AND null AND null AS n, null AND null AND null AND null AND true AND null AND null AND null AND null AND null AND null AS nst, null AND null AND null AND null AND false AND null AND null AND null AND null AND null AND null AS nsf, true AND false AND false AND false AND true AND false AND false AND true AND true AND true AND false AS m1, true AND true AND false AND false AND true AND false AND false AND true AND true AND true AND false AS m2, true AND true AND false AND false AND true AND null AND false AND true AND true AND null AND false AS m3
UNWIND [true, false] AS a UNWIND [true, false] AS b RETURN a, b, (a AND b) = (b AND a) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH a, b WHERE a IS NULL OR b IS NULL RETURN a, b, (a AND b) IS NULL = (b AND a) IS NULL AS result
UNWIND [true, false] AS a UNWIND [true, false] AS b UNWIND [true, false] AS c RETURN a, b, c, (a AND (b AND c)) = ((a AND b) AND c) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH a, b, c WHERE a IS NULL OR b IS NULL OR c IS NULL RETURN a, b, c, (a AND (b AND c)) IS NULL = ((a AND b) AND c) IS NULL AS result
RETURN <a> AND <b>
CREATE (a:A {prop1: 3, prop2: 4}) CREATE (b:B {prop1: 4, prop2: 5}) CREATE (c:C {prop1: 4, prop2: 4}) CREATE (a)-[:R]->(b) CREATE (b)-[:R]->(c) CREATE (c)-[:R]->(a)
MATCH (n)-->(m) WHERE n.prop1 < m.prop1 = n.prop2 <> m.prop2 RETURN labels(m)
CREATE ({id: 0})
WITH collect([0, 0.0]) AS numbers UNWIND numbers AS arr WITH arr[0] AS expected MATCH (n) WHERE toInteger(n.id) = expected RETURN n
WITH collect([0.5, 0]) AS numbers UNWIND numbers AS arr WITH arr[0] AS expected MATCH (n) WHERE toInteger(n.id) = expected RETURN n
WITH collect(['0', 0]) AS things UNWIND things AS arr WITH arr[0] AS expected MATCH (n) WHERE toInteger(n.id) = expected RETURN n
MATCH (a) WITH a MATCH (b) WHERE a = b RETURN count(b)
MATCH ()-[a]->() WITH a MATCH ()-[b]->() WHERE a = b RETURN count(b)
RETURN <lhs> = <rhs> AS result
RETURN <lhs> = <rhs> AS isEqual, <lhs> <> <rhs> AS isNotEqual
CREATE (:TheLabel {id: 4611686018427387905})
MATCH (p:TheLabel {id: 4611686018427387905}) RETURN p.id
MATCH (p:TheLabel) WHERE p.id = 4611686018427387905 RETURN p.id
MATCH (p:TheLabel {id : 4611686018427387900}) RETURN p.id
MATCH (p:TheLabel) WHERE p.id = 4611686018427387900 RETURN p.id
CREATE (n:A)-[:LOOP]->(n)
MATCH p1 = (:A)-->() MATCH p2 = (:A)<--() RETURN p1 = p2
MATCH (s) WHERE s.name = undefinedVariable AND s.age = 10 RETURN s
UNWIND [1, 2, 3] AS i CREATE ({num: i})
MATCH (n) WHERE 1 < n.num < 3 RETURN n.num
MATCH (n) WHERE 1 < n.num <= 3 RETURN n.num
MATCH (n) WHERE 1 <= n.num < 3 RETURN n.num
MATCH (n) WHERE 1 <= n.num <= 3 RETURN n.num
UNWIND ['a', 'b', 'c'] AS c CREATE ({name: c})
MATCH (n) WHERE 'a' < n.name < 'c' RETURN n.name
MATCH (n) WHERE 'a' < n.name <= 'c' RETURN n.name
MATCH (n) WHERE 'a' <= n.name < 'c' RETURN n.name
MATCH (n) WHERE 'a' <= n.name <= 'c' RETURN n.name
CREATE ({num: 3})
MATCH (n) WHERE 10 < n.num <= 3 RETURN n.num
CREATE (root:Root)-[:T]->(:Child {var: 0}), (root)-[:T]->(:Child {var: 'xx'}), (root)-[:T]->(:Child)
MATCH (:Root)-->(i:Child) WHERE i.var IS NOT NULL AND i.var > 'x' RETURN i.var
MATCH (:Root)-->(i:Child) WHERE i.var IS NULL OR i.var > 'x' RETURN i.var
MATCH p = (n)-[r]->() WITH [n, r, p, '', 1, 3.14, true, null, [], {}] AS types UNWIND range(0, size(types) - 1) AS i UNWIND range(0, size(types) - 1) AS j WITH types[i] AS lhs, types[j] AS rhs WHERE i <> j WITH lhs, rhs, lhs <operator> rhs AS result WHERE result RETURN lhs, rhs
RETURN <lhs> >= <rhs> AS result
RETURN <lhs> > <rhs> AS gt, <lhs> >= <rhs> AS gtE, <lhs> < <rhs> AS lt, <lhs> <= <rhs> AS ltE
RETURN <lhs> < <rhs> AS result
CREATE (:TheLabel {name: 'ABCDEF'}), (:TheLabel {name: 'AB'}), (:TheLabel {name: 'abcdef'}), (:TheLabel {name: 'ab'}), (:TheLabel {name: ''}), (:TheLabel)
MATCH (a) WHERE a.name CONTAINS 'ABCDEF' RETURN a
MATCH (a) WHERE a.name CONTAINS 'CD' RETURN a
MATCH (a) WHERE a.name CONTAINS '' RETURN a
CREATE (:TheLabel {name: 'ABCDEF'}), (:TheLabel {name: 'AB'}), (:TheLabel {name: 'abcdef'}), (:TheLabel {name: 'ab'}), (:TheLabel {name: ''}), (:TheLabel), (:TheLabel {name: 'Foo Foo'}), (:TheLabel {name: 'Foo\nFoo'}), (:TheLabel {name: 'Foo\tFoo'})
MATCH (a) WHERE a.name CONTAINS ' ' RETURN a.name AS name
MATCH (a) WHERE a.name CONTAINS '\n' RETURN a.name AS name
MATCH (a) WHERE a.name CONTAINS null RETURN a
MATCH (a) WHERE NOT a.name CONTAINS null RETURN a
WITH [1, 3.14, true, [], {}, null] AS operands UNWIND operands AS op1 UNWIND operands AS op2 WITH op1 CONTAINS op2 AS v RETURN v, count(*)
MATCH (a) WHERE NOT a.name CONTAINS 'b' RETURN a
RETURN reverse('raksO')
MATCH (a) WHERE a.name STARTS WITH 'a' AND a.name ENDS WITH 'f' RETURN a
MATCH (a) WHERE a.name STARTS WITH 'A' AND a.name CONTAINS 'C' AND a.name ENDS WITH 'EF' RETURN a
MATCH (a) WHERE a.name ENDS WITH 'AB' RETURN a
MATCH (a) WHERE a.name ENDS WITH 'DEF' RETURN a
MATCH (a) WHERE a.name ENDS WITH '' RETURN a
CREATE (:TheLabel {name: 'ABCDEF'}), (:TheLabel {name: 'AB'}), (:TheLabel {name: 'abcdef'}), (:TheLabel {name: 'ab'}), (:TheLabel {name: ''}), (:TheLabel), (:TheLabel {name: ' Foo '}), (:TheLabel {name: '\nFoo\n'}), (:TheLabel {name: '\tFoo\t'})
MATCH (a) WHERE a.name ENDS WITH ' ' RETURN a.name AS name
MATCH (a) WHERE a.name ENDS WITH '\n' RETURN a.name AS name
MATCH (a) WHERE a.name ENDS WITH null RETURN a
MATCH (a) WHERE NOT a.name ENDS WITH null RETURN a
WITH [1, 3.14, true, [], {}, null] AS operands UNWIND operands AS op1 UNWIND operands AS op2 WITH op1 ENDS WITH op2 AS v RETURN v, count(*)
MATCH (a) WHERE NOT a.name ENDS WITH 'def' RETURN a
MATCH (a) WHERE a.name STARTS WITH 'ABCDEF' RETURN a
MATCH (a) WHERE a.name STARTS WITH 'ABC' RETURN a
MATCH (a) WHERE a.name STARTS WITH '' RETURN a
MATCH (a) WHERE a.name STARTS WITH ' ' RETURN a.name AS name
MATCH (a) WHERE a.name STARTS WITH '\n' RETURN a.name AS name
MATCH (a) WHERE a.name STARTS WITH null RETURN a
MATCH (a) WHERE NOT a.name STARTS WITH null RETURN a
WITH [1, 3.14, true, [], {}, null] AS operands UNWIND operands AS op1 UNWIND operands AS op2 WITH op1 STARTS WITH op2 AS v RETURN v, count(*)
MATCH (a) WHERE NOT a.name STARTS WITH 'ab' RETURN a
RETURN substring('0123456789', 1) AS s
UNWIND split('one1two', '1') AS item RETURN count(item) AS item
RETURN 12 / 4 * 3 - 2 * 4
RETURN 12 / 4 * (3 - 2 * 4)
CREATE ({id: 1337, version: 99})
MATCH (a) WHERE a.id = 1337 RETURN a.version + 5
RETURN 42 — 41
RETURN abs(-1)
RETURN sqrt(12.96)
RETURN 1.0 AS literal
RETURN .1 AS literal
RETURN 3985764.3405892687 AS literal
RETURN .3405892687 AS literal
RETURN 126354186523812635418263552340512384016094862983471987543918591348961093487896783409268730945879405123840160948812635418265234051238401609486298347198754391859134896109348789678340926873094587962983471812635265234051238401609486298348126354182652340512384016094862983471987543918591348961093487896783409218.0 AS literal
RETURN .00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 AS literal
RETURN 0.0 AS literal
RETURN .0 AS literal
RETURN -0.0 AS literal
RETURN -.0 AS literal
RETURN -126354186523812635418263552340512384016094862983471987543918591348961093487896783409268730945879405123840160948812635418265234051238401609486298347198754391859134896109348789678340926873094587962983471812635265234051238401609486298348126354182652340512384016094862983471987543918591348961093487896783409218.0 AS literal
RETURN -.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 AS literal
RETURN 1e9 AS literal
RETURN 1E9 AS literal
RETURN .1e9 AS literal
RETURN 1e-5 AS literal
RETURN .1e-5 AS literal
RETURN .1E-5 AS literal
RETURN -1e9 AS literal
RETURN -1E9 AS literal
RETURN -.1e9 AS literal
RETURN -1e-5 AS literal
RETURN -.1e-5 AS literal
RETURN -.1E-5 AS literal
RETURN 1e308 AS literal
RETURN 123456789e300 AS literal
RETURN 1.34E999
RETURN 0o1 AS literal
RETURN 0o2613152366 AS literal
RETURN 0o777777777777777777777 AS literal
RETURN 0o0 AS literal
RETURN -0o0 AS literal
RETURN -0o1 AS literal
RETURN -0o2613152366 AS literal
RETURN -0o1000000000000000000000 AS literal
RETURN 0o1000000000000000000000 AS literal
RETURN -0o1000000000000000000001 AS literal
RETURN '' AS literal
RETURN 'a' AS literal
RETURN '🧐🍌❖⋙⚐' AS literal
RETURN '\'' AS literal
RETURN 'a\\bcn5t\'"\\//\\"\'' AS literal
RETURN 'zvhg02LrjXbeIWUue4CzFT1baQ5ZA uP0ur4suuufFWZu3MGLlMUDYdhya1WcV8GcpEa4Pi03YjPieg2hJY3rt4OAQIeBKhpasUd' AS literal
RETURN '92WeD0wBWj GWB1Y pUd6ZiCalZR5VJzIxXt6C74 4bfhdEAkXIHccJ4Avce2aWXTBj v22FvYQ4F0R GfPsbTyQYaL6DEHMbKR HlnP3BrpNBSO427Tsayra 950dNriiiRPbfLhV5oNHZl1Lbs44oAl40hU4LTkZkzIzNhwDtnOunSXwHH4FWpoqSP7B8VHz88z7X8BoSCECUIVs T4z5UFT9oPUCIsdTjzOocn8nT0dD7PVwRzsO2a4R5sNyYe6R4TdBqIWELcIiKhTpaMQsfuEPuzFnwCV1L g zZhhR7yNIo14oupUUD0V0oIHIRvtM0MITOkSiTTmO68ROtezWPfdJQq9pQ6gdcPsy YAU0wMs dVFBTyTzPml55k VOgY4dEuHUC5BkDGwCm8BTvls07JdY4cwm1zsLq1xGuQfVYmr62WF7VeVVIKFX3FuAIOyFqIshJxA8rTnEtzL1eSxrVcabZ0j24i1Zv2D6SDvsbs45pPHNollnZJmKUkLfrldZzlNEuy4JkJa2ahzizZW72f5m2xiwDKgM3 g7nrbYLgIKUtXOdoJeKgUl2cN7j4Xd30dajZpcIDBqsZ LwmRYQlvRXFafWBMD3yQfU4GEzbWQlxV6iBidK83UVdyyvMKaqPvdqovPVQzhIK Xfs yVwnSHDXpjUonwsOFeykee9TcixuxkbYp3Md EBk4LcBDn4zFR3JSmz3FGfP1llIGL ZYWHrzjugMbxPXU02OrqExStd X1ALxTJq2W6mO4kQig4ZQFKHIs66EVWf6HG3SKAxzPAmmf4DZmlZGawG agiO2PrNnWyifOau4em ozqdkAbxu6mCbMEjMri7dkzpjtYFwkxUGpgSjfDm481Eby3SKvwNybwvqfj5CXHWSjGpk8YtJV0T3jzNd731Wb3SWQrVyIy2Wz1UntzYJ33O W9cFnumIVZK1Sj0pQwWoxktNdyknjXiL5COyZiZDBJOcNtIXoklXdBDy' AS literal
RETURN 'Qu7cFy732T2KJBCJzyY2xP7fWr4bhg7mdQALjUcVNa2nW2vIfAYMDxd4 ZGSe8g52kVWAiYI5K9SnVH2lMc7Uvh4M9hrvBUs5CPrAIjq9OwgxbVtZcfSrQgRe7hbkx162n0SNvY3KvqBBT5gyhTe4cG2BwJjFx8y11zpf0zyLpnYeQtd6V5maSx9tBigoLnjWdu9pjZ3aycAY8ZpzzOoBniPWThl1ydWyA8E4blXlzkeXnR9GY2UCpHpdmsg5u0GkF4phyqPt61 QRUiJBFXIHDx0zljppa vNLVbIaz8AqM7CGXU5796XKbiCX6uM9WRJXtUooJBJv0uHowr1tey4GQEL4t7j0tE4MznU9X7gRx7BMQGREyCBl5yR6qstIuMKug95TsVxUK3uE1oE5VsS68GlnL6IBAeNhsNMTA4kEflKNI2XKYGf4aDBLABvRa5Qbm12JpccslBbaILFQgQkPBy5nPRfh9Brjpyif1fPPkFB1rJIn 2z4G4irjFafOMuB 4JFTJnvj3 65yEbX7bNtgEF4oB7b7On8DVUAfFQfSz6T1SAFnOatwsNTts6dcH5JewU3jkS4TihfDUvAvw sjo0qoNxowKCoOtOUybt31Xg2mpeV5y5lyxZCSBkqjADNwLglwVcFa08Go3gU qP xs Hrw7ZmQ6vcy6oS6UH R3cJBUKWslkZKEYhXct3duSSWsnn8QFzKm6B4U6dmYXttjjVED0tqPXQ2vwp9eN8jJPebjZfT453810lZM9cQlfOhLdgsSaNaszT8t9pbPC5SrPPPIaXKF2IwRY3uMqAtTJD03bW o8dA3ZqT9igCrKRRfVo5j82HfUzjm2kBh4VT3UXfLGyTnnWqBqQ5WUbmdQQNfiMqGpBIcktEhov1XlJ6DyAzrn 1s yDyQS4Pjqg6y7NHl09nnJ3aMOxdDE7BHv4HVethC3Db32LHv6ZW9zotdOZ8tSH2AGKwhND6cfum67hSXu5OsAGeLZxrrMIn9ml9VWZj8Qxar 3lw3OM2jeUB62REWg7lxTJp3zVuaCQgejCGh40wOPR4vYtyzLdFxsxZ2qwn3XvnO2Xw25KckV8dstFfv4w9NFe03VTBWhoYkuSl0j3eCB1absxURBvss7ReatCgqonoVtkwD5RgknklJg12R56ikPOa9akQwEY ri5X8xDrKyqo2FXrj Np8AmXc4nx0yxydL4yF6WVk J9HmgHjGP0M3dMFOl0n15BUPyTAQNQhAHhDcGjt3jvTqKDW A4GG6gK2xn7hfdgAuoDj4h1lMZsSyYIGTnV6Zig8Nlmtwtss9kjCx 234UQbVuBD96JXbrjmY5jHd7c10KRvUFFzlGcdTscUUi38q6f0czcpoeT8MFBgEbrAw2b50fzz5tLhBGJGeKE0ndK64LOWP0olrS0voljEXYRiLMEArn1bkNUcaOgtQHzoV1Pqp6CR4suZxza66QcNOPH CoSuReOfjYOs1f0hWQ2RU2BUg1vJ5OyRPxAZ81195eJg82WgMFxIo 3EwNLUH6j3D41mu9G2L4ckbETdQRy8PEeM1KSIIjEBLD7xJdXFneolAbsv81mKzrWYRXw0pA8hTI4aIFFQSE8aaUkPUmCE0hzUENcHeNNHMK2UqsClOAdxRiz58hrzdUROac 7UM97kncRVWBSuW4GtISDrgBoEAJQqR2IFIh93W9wKCrESYtjf5uGLzEsGn3l0b2B0jXBoTkbd05jweOTk9LUOgpeNGBNWlpinKda9ny3OfjjCIZx3NnVqsxYiFeV0r4EgE4Vd5QypPNSoQN7rNx2aGufdT52tf1tGeK2d9uVgjDKIjJjZsDJhmnaOUbT5KPYb7fDJ4FJUcl22SMtXAkmQZTbXxGAkyve2SD6pyNB6ShBJ9LkeJPKDWQybSdRD tlQnHVqboE9iYdYOQSblltZwiQHMZcy4eiUHqW7uJ3Mve7bwRZLXYgJEoHeR7E8MXc0SpbVLpbEKEItiqFoi0XEhPGrRvE1PUhphlwiTJBXoLdGO02G97kpy2E8AZtFwboyuW0TXMyEg3bgAP TvGBrbtHyuYfbX6TC1meqTQOGTEMUBjz2VzRB ouL nUpSH7DojvQdxGi8F13xP12K 3IDVZX3UkPAsDgdChHvG5mFiSAaOWBZzUGbGTBkW52NtUQCMkzwYoCNwooNh5Ewk9rNafQQCsrmwaZQGrV pl4u9dBgedBtOeVF7SbxDdOewY uOb1TxLPn9CLwY7KY7igUGZ1prFMUqQ6IsmDLebpOIlG uKI7Xkar6hoRj1Xm8yWPf9o5qkGk agGuD4HrZOA2CtNVsWKiWnV09NLSBd5LdVkhjDbCFGRevIHO1aPCHTPpkml0EStzJdDHVtmGt6EYkbTXUZz7UZs8gKxNs950gEG 4Vtj98io9N0xNbO8FjLL lIqo4LunkmUs0otjT3gmshVAVTwQ0SjCRhqBs10NqVHAT9jCv J3s4mRSoirWeWw7UtzqRc bYtZrpvzmKvP 9lVvuOlEvWhcufv2VUQniDZFYE2EDtNCWrAqiodSAeX5eHEbfbQ5CwJjDjpBHJwoa7lPcZpt43nsXDLvZoIJZPzRPWOzDbt5u3loDI8aYrF2HOmpZ1Lrei XVV3DGYok8M5cWFgfaDILw8sa3kmDDJ2erUPblmMJZZB9eEOLnvEl5O9ALYbBBpnVTnLJvedw9uPVr1HXDmNWgAVpUFYXxKeQVReEFkHT29vENZGi3g7Bv2VUgEx5BxTlHGa13Kmge9QliYARWNfhBPjWQoP2ZRoKCDalsOCeohq2pNOKvkgZOy3AwfpFykBoUjtsvI7NAg6zVhCtCSo6PHcryDgAYYRF737e82qLpjkbCpMozebQRoGrZ7deTFTy TZCiOP2nGOKWiMnGq1daw3uAOx3ntthuZR1viQ8qmyXiIaBwJF5REqFJbZdPvRTpXns8vsG9PsXu DkPiWh3LieaiMGM3zyBsdFheatoBnj0ccBSsiKSDH SmVyBPw8K5vAeVA5WQy8LXX27mzhA7rlrXdWH8kMmtK15lR2AHE7XmSrzGaUbqWGRzmfrTDM vJPKZ8y73x8jhCvVK34nqFZbvlIRdYaUfWjQIGhdJ60V0JMJsh3bvYMDOlDnviPgT5MoAP6LszNwTp4O4yzdxgmq7CY48bQigcLRYEmg8ZWBU6ekc0Gk8Uuj3qC2Oy4DviJoC5Sy68xnl762KjXseDWuO0US6k5NCcztEWuB41AhFLjT Xlfv7dJNvDvyrTwYbnapgnqRTq2fD0NlkKq 0Wmjgv8HRMAUOU4Sfh2PNem 4BK4fBQKbzZWjK8Mjh4quPQr23P4K3qfVfyqGU9Y7HWPRiaz 86zjtl0Gu6DGo92GqPEGNBs RVMTebDPNWQWZju4bqF01z9jnsyzLbG1PD5bqdZccxHK9E bD9AM0KjsT3bSvhG4wCqIUOH9VBFKARnrscsgtF7sbmiBwtt3RfX9cddLMWn8lxh6swaE1pFyN8sg4qRhjVBHv0viacoxg7glAHAowSaqJXKRUWO0wBLz7esMhv9H44d6ztNLrgfays65REWjKWuMe4RsSP7VLGrQRvG6QKZ2GyI5K3WdQRRsPl2QrSxzCEHR1feQLSkngRpWAi4Gwt0ZUHzTGLMZeDQpG9fYWjSRfuPBWm4rHYyI0ny6WmqZa3yi3zeaHXKsNMMxV5RhI3wcY3UdgRBNTG1 yogATPH JYM5tSqE3M6tPgUumwH3qba 7a9XZcAJF7MYjb214yDndl8CYcQiJ9xUnyta9DToaXdLDFMOxIWdv4Oc Ae 092ASura8P5qig9RUZAwUpWiJTnCz6fSEkb1XHzAgW4HwrczuFFGsRNAUY5cReitkmwpFhf4Jz8KHHbUj8fbDROSfdsmjInlHnwLsB1sjfvZG6vk3LffL78GSIZ5fPfDnFm3rc2A0AWP0Abu539HMhSFd967byWCgpKqWCyMBjW1b6ool1XPus5gM0hx10WdSbMsEpYRR2SwicTxN18oIR4pJaQkE6or9TX6rz9vV6ZEyb4 ud wHyp1I227JdmFLT79kilRqj9K9xWnDR7SlCYSrIVavAnAa1vp4OF4fIQv5ER0Yj61PgmVQQWorwnGK4B9ArBshfyu CTzvR2isHgEpXVRg q2c4c4u7S19M 2PlDrcryc1M0HR1oBmdAsy mIV0E8BR 5E4xi5ZmrKMCXnpH7jURkiDLcu6bsOBufpLbEhKCaFJoC5r3nKY59nohuSWOigeOkEIcdCJt3VaQdwL1doyWzdpG0lUsCP9ZzzIB5oOp5RGgkoGiAh 5WSB5gHlpeK7lDPm2JEulXLeh97fRmSxe4nOVgyGscjoFfi9PgFqDuntZZwsNLiiMfsX8W 97fDeOT0TWvHw7JuioLjxDtOOOBrnZlKkUZQ7CRy7ch38tA1DzJOcCb178efuhtH91QrhoHJn6csVBRrg0DL98BGshITV Rojhsgq7j4NSLircpRgENiVRh49HigUtgwH5AK7xIAjMpD1ky gLFMqpfp4l9vlNrBhTpPDCI1R9UQMeCpiSXnJ9UjtL4uoXfmraI9xY4yVxVZFBXyhhk BaCRXp92qhUege4cIsMfK47FVJLIXzqn3Nu1TPmVyxQmmqXw7NLvVVu12x3DRrsi8ouiedz1KwDXmDhR4cLlnnHSei62MXC0elxELoUAooeyWnLPj6irfATHZ2BvdHUHNXLMq0xqqwzWDsQPklXiI5UPrCi6LfKDvwa38SAyF460vkacS92lPRdrh9S7xjhUOVN7mvjRYdnCU5I5sNiBsQqiuo8aA3GjQkXO0zBnddviQinlSjDEqB97aqZlviAgLTYtM8nbN1tWUH8gayIEPcpC4GyC37WCRiRg0hgyeXbs9sA1nHm5pIZ6sWY33A849nLfYF28C1TB27YPGTlrbCGIZEB4j62BvYUUAxmVo8VXS3hqegl2NPEKX8viEqv qwJZn1YBNjXRlJ1CHd6kqi48 udquQQT4XJTCMpfzbS9HOpXq4SRZmJDrqgXSsY4HPGc xk8p2ZRBodSSpKH3z6YOJ6tdOJ8BRqrymXoIsE1YK63BLSSyD437qwJedJzpHUMiLRZWJ 5FTcYrdWUIh4d I98rGjwjmlAdzEKMtXl0aimE 3hQ2T14pGWF2BlIKQPiX Q2FlSssswVhXtfdUdaBSlBXSk1e2JXVh4a2X5F ENUoTSbAgRHm 0jeYe9Mgw7BAOv1IXWzqfEpBgca0DnbIaDhYGojuvYb3ZKygKzsEXWF9ybgSNdMXARHYfNru2MoI9EKQHEcAHwwBWWKevcr92SnF83UyNyoyATmfb76bqggDHg0e4OD7FYyQ16VhLFowFGew7OhN16urh5 SU9JxECvjmbpe3mY83MOtZR65FRq3FaxYSsEDgI41Ce3wsNgkUXaxmiUw8M6FUFwihz8ZEihfxMb41EAnafjOUo66tfs1bzzWFvGuuEXfLeHOs07YF7YSmwhs6smrP3SkWXJCQfEjr9kn8sGB2VBpmO7aTiIdGHBa2u hyjkJrTu64n54dknHBPMl2Yc nyEoHucwalDRjPBhPNTAenytix29MsVEFvnaEqgxkB1DbdbifGvkWAt9t86BWvbgE2hIPAGA6zcm43Wzg8ENZCLqVoGSAFe ZjpptB4c84l a1XxUUxo7fmmDdkFNaTZP6UFmkzFnhDt3NB Dzom5Px h5CEHIvdgRSbdBr9tlLkm9gBTbS3fTYjPTPBnnGyUZnOhLMS8CExBvaAdxh6lmprWxyfaLOfi4uqmDQ5VGmjexWZin2Q7QQBSDZaLoSImoZ0TytdMvwpdIHQysLtvdLUJ9Jmklz4C cwZM538cCfD97iMjkZ sGB95sShsGhgNCUwR35cmjMJfVuFtppu4iU3AZkXs0OyKFUxBMhLEHQYBM0U9H rV0rHJDW0LirrncRqtLBOvcj bC4jKiSN3slzd v2XbmKBd4tWKKLcgMZmtF99WcteKyYMCWkF62nBVTyZZsyxUWETHOB9O2B7dukuQuGFz28pQhR Qsf7xKo8cwjc66YYWj61OFt4qFO9miVOojp8MR2qhCXdl1tVVHoUPh8WnrEnPWT C9u5co4NUhSAUHwyPuMKbr jhx9u34vJNaAScYvGDKy3wmxB3ogzfWE7n yqN1RvxJl9 mc0vk3ObjaGUYidas4nK2fQaVeNvwebbr dHeLJF0f qHWUoJmBKg6d7owotrQ7beZcYO7J7vZRZv0P26JuM3he8Q hl2Lak9ViLes59a4zfOn rzS9swYagFbPhwll44Q7lfRQzbjs7OO6viaC3aCYPv5BAPB8F9k W6sKpfuY52rpez5W4LoBBmjYMz8j 9Sc5WPXj32Zic fCaM65d eFACBAwnQeJKohksmmx9GPBKEZScTHe0gVqOfKklUv7OITLOVFIXD311e8KoWg2L7RZgiWz1JHNPI1BL9jkY3aQW52b6OGDX LR HQf7WoT3lQF85ICLNVKbjzWUDEL2AOIWK0jxvTnFiDBH7y2b4MpfmAfWBXtUsJJfgUGG2VW3pTFOqQS6rWir6jfvQs43ohSyt68RiZ1CfbR0Y9xY04fWPVsLKRlo9KM4JllXAwwKuSbvRpT4amOtbdkdKEKDPvmA6FQ61cSWayEADwjN8lbpUELdl150T9MjcDDdWZxv7nZ XAj493l8tUZlVGNXZ7OxOyoTf3PyIDCdtN9ut7TDBzpIFlDQhSBAHDY5cs5ct9nLzA6s1DGqdBj4NJPeRiKsPYGHnyqK5CE8S9IAJ 0XIfiJR so8fY9iySAKKECppnRk4hcdoVQhevjFBqAbSG02X1zkaKRXpvGxdWryFYL6TA9fVvRNpwi3JVSnhLslULMTcsnZeIkwN7QHWLDWh29DPXX31g7lLYdYnkiA53ZCCN0EKuwEpToy84vh3Gu8sO6Kv k6tHynKAVz0SentHsh 0LV387w8PQHYdYn7PzsQJ1sNmqIOyTn4Te7z1ElCSgqU0I0ImflD ilxsSUrsqaqhofXMyDkb5ZAaYGtFrhn Ea6 qw5ZCkbws8N8aY4gW90e90k9Rhhg0vE5nD74Rg5awiOA7vtmjn9LOKdLF67j1nVrpIZU4ADStXLwHWX0yCRFdw sfEKYuIrnFOc1sSjOKx fvHOSVGlYqaBv1yKqRBheU hsYupfxA3zzrlsYD71qZ4TmlqayGtK8p5SELT1mD0YG0v9VYPQrSqkrk V4kcPKckonY7zPZKkYbf6b5e22XVE0AWokBiYQwNuyIqEifpkhlc9PrUp13cwWncTlnMWyRDQrlW2i6oRJbMZJoE2Bcy72YMzbqvbcrmXnemI9tUDiHRZi0V1gbtxxvEjw 0 Z5UjDGk0jua35FOBRL4DdYRIawvkbzo7Lr 4PymJ0DrUu3k5IvBhQthdDJG7Dpf8Q4AiyUsZKkied3d7CFLKcpAmZ7up8J0pOcGEN3q0HsIUJ m1oW3acBCBXiYJ2 n JKAteFJPTgCqQzDhNOootC6BJXq4Ju4VUSdfD8poERjuadKYrInUCTKqRgU6H7N8B2lILyF GKnUT4mrxGxDduPrMIKE1wIdCOwAlD7H5V BYKZDF3GGwxsRU9Ktctq3tgatYQyB40VkWSftduesDqH118 2MhhZqYFwq8stqRqhFpYsjHwqY1owy yPnApsBOt7F7P9Y2NPCBziPywkY7nZiRhf2UtSLpWGPWlegIlkMCYtOB fNnPpxotXpOyUiNWcF TpwXxXrUG2PTnHouO2vtQOSS5OkbpDYPMgCNZI Pvc6WAV8H61FnNOaGJHYY8zmKGMNaqZg4XRpbDZKCd34aFJDmu6rXwzOf4LqagfuR6S3shK82phsJvJXpho6pkugIfCiai0Xw9qkUW2NT4DMiomcJmWEwUCnTEsZCUSN0Lxlz6Cm49 Jc8OBtlCYqGwOtQkK2Uqz0CYGxX9zUcu BYH2I00luXU6seC2vcn2ouX3oBmOkfg5GW4whSQJd0ahBvsRAvHMj2YAixGkZM9XE FgJqJYl98YoIUQtH7aOXkZfcgWsojqGo0v8DdZNjYuXJzUEgDzIbD xWwxjf2S1LeLieYDcqgnu6I6WpMlwaCAtReo tY7mLd5r2oxLABi7epYW6oZZrYxwhjZZNw1FgOo1OEWfwKn ApeXjiXDrQZb5rhwEjKGOE5uzI6Qohv3LIQgbBUL8rFU3g9FmkmmfdVtMGPpolkueiFzm4maKb8X4LLGiZ PeQfMGFQBW7UzH9PJFsVHecq96W6MVn6xbIiRItnuce61JXf7YWslpM1ktrFVzEF2hyEJSoMAec1Z3z2rEm33CBtOF9snfBky2ePmnioOm1yE8FpkyK7DVXGQEER2Zpz4nBGUalgPCNTQcOf34D4IY2Ucbn5 qMJzF5ibH0ogr6QmeSyRMQ3gWRp92RVpxD5sWQwKoCIagfhxevuLhz5k59zJqW5p82zcGiC3hcf3mMuJJ0IVibzNgepksfKRz19wGpOnnCKJW10jI7eW8EpF1pWdhTdcxZ7IGhMCFwj7ZHCmqNZLArfBI2gZYcKqR6hBDZYyzFj6SZ6J2X74JtFtIdWVasiyZ8gKviEAajZXIO2dn7cwwk17BWuFsP5NZ8l v07haNR0dcYwa9V4Nt3t8o7ZJSlXwELzODYA3WPsq4pUaof2dz8bsB1Fv2Hbe0VarRC9uqkthty1MImPBG5tDNbXZlTU4dh9Ph WIPtudfX3BRmptNHhJ5vPn2NJN41UIj70c0tgwNALFOgzk8NynQ5cGdz7CD8sQufqZPtlaDBV4ndTAgRpIg79DSA8SxN8eDQP4YrT6wDxJMxA9Aaerojes3EiQFc PVjqyqJ0oUDQvNK9rJ1ANrgJrcF jyk8BZtH Dipxg6HXKlDdLB5Tb8NObOnOBesJYHMY2iPQWKHhJc7g1hxJy9aUfdo5J4d9AyNDo83kPbNgqhsJO5tu7ZBaZVsJsV19H26SkHY8Z1vZOlQac7uKnqBZpp5OFwyHMOqIfw2Nf B6pmiF2lE1AlkMdICL2Nqh N8I54R918QZNNXDNtHnZWeLaGRqmS9DZBIwGkMm2COY3naU1IoF6yQY1MccPmebAdTNAmey1ArqvZCek5EXCJOoasrRE3qBIUSZXlU87odvxNCKJ78pZeP7U8Ed7RrnN3SbiDyEiY c7eDjdF4AAzcEr2 UlGGznQxBDriVuWBRWugpdIufzu5rk9KUe13Sa 5fPTAoHNXyjRIDObArGnjBHjPHPFM4nxyhk6mm2JCCYfNhKUmL5CBEf9jImdwRpu3KxQ1mv7bH9vKUWPcLMpVoX5P5gXvN1eOI0ZYyPoMDLd7UvcOrnjXL  2t4E0GG8TBRqLfbCLqyuBaePrnA0lIPHGQLMDoPe3IBidztyAhR KwoCWrwt2QbmvYs3KRaidfYuvMQ2 IlxUazVSZgJnc4PIpg cZkIWaTuQakpDyvJozz3yL2F4RIv14GovVvTq9QTpYkOvqHZxolngw0qpGbMeALhwFlWGpot5jgqeQjA VYA72jb2fxoWBl45AnqdW1czHYXG46kdRnUzrCenkF0mAkDuV0gRPY222BC7uWHAn6PTEWgDB3HyoBqPvanbc6s2ccdzSHJ4YJQWfAX td7UqFApODVkTbW6G7mjzuCeSpMoULyouH q1s0LjyECDXokV1Kri KhWGJUugEuxquue vh9AVw09QW fhya0F8ZmKVqD78G9EFbpMQjvOvgPlmCcvUmnxi3PXFDNkJG8WRPzocUVe3PTw0E3eEHghOKiEB4u0Xvt2Hb2esODlsJ5Uajn7B46Bq0w3W55MDUw0U5i8CP6QDrizWsQOYQOCF3vpLGOCVIyeleOWkVPz51u30XZCD7jKlRYvYOw2Rxocfq2YdbPZcvhPN7iRT ToHlNUY' AS literal
RETURN "" AS literal
RETURN '\u01FF' AS a
RETURN "a" AS literal
RETURN "🧐🍌❖⋙⚐" AS literal
RETURN '\uH'
RETURN [] AS literal
RETURN [false] AS literal
RETURN [null] AS literal
RETURN [1] AS literal
RETURN [-0x162CD4F6] AS literal
RETURN [0o2613152366] AS literal
RETURN [-.1e-5] AS literal
RETURN ['abc, as#?lßdj '] AS literal
RETURN [[]] AS literal
RETURN [[[[[[[]]]]]]] AS literal
RETURN [[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]] AS literal
RETURN [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] AS literal
RETURN [{}] AS literal
RETURN [1, -2, 0o77, 0xA4C, 71034856] AS literal
RETURN [2E-01, ', as#?lßdj ', null, 71034856, false] AS literal
RETURN [null, [ ' a ', ' ' ], ' [ a ', ' [ ], ] ', ' [ ', [ ' ' ], ' ] ' ] AS literal
RETURN [ { id: '0001', type: 'donut', name: 'Cake', ppu: 0.55, batters: { batter: [ { id: '1001', type: 'Regular' }, { id: '1002', type: 'Chocolate' }, { id: '1003', type: 'Blueberry' }, { id: '1004', type: 'Devils Food' } ] }, topping: [ { id: '5001', type: 'None' }, { id: '5002', type: 'Glazed' }, { id: '5005', type: 'Sugar' }, { id: '5007', type: 'Powdered Sugar' }, { id: '5006', type: 'Chocolate Sprinkles' }, { id: '5003', type: 'Chocolate' }, { id: '5004', type: 'Maple' } ] }, { id: '0002', type: 'donut', name: 'Raised', ppu: 0.55, batters: { batter: [ { id: '1001', type: 'Regular' } ] }, topping: [ { id: '5001', type: 'None' }, { id: '5002', type: 'Glazed' }, { id: '5005', type: 'Sugar' }, { id: '5003', type: 'Chocolate' }, { id: '5004', type: 'Maple' } ] }, { id: '0003', type: 'donut', name: 'Old Fashioned', ppu: 0.55, batters: { batter: [ { id: '1001', type: 'Regular' }, { id: '1002', type: 'Chocolate' } ] }, topping: [ { id: '5001', type: 'None' }, { id: '5002', type: 'Glazed' }, { id: '5003', type: 'Chocolate' }, { id: '5004', type: 'Maple' } ] } ] AS literal
RETURN [, ] AS literal
RETURN [[[]] AS literal
RETURN [[','[]',']] AS literal
RETURN 1 AS literal
RETURN 372036854 AS literal
RETURN 9223372036854775807 AS literal
RETURN 0 AS literal
RETURN -0 AS literal
RETURN -1 AS literal
RETURN -372036854 AS literal
RETURN -9223372036854775808 AS literal
RETURN 9223372036854775808 AS literal
RETURN -9223372036854775809 AS literal
RETURN 9223372h54775808 AS literal
RETURN 9223372#54775808 AS literal
RETURN 0x1 AS literal
RETURN 0x162CD4F6 AS literal
RETURN 0x7FFFFFFFFFFFFFFF AS literal
RETURN 0x0 AS literal
RETURN -0x0 AS literal
RETURN -0x1 AS literal
RETURN -0x162CD4F6 AS literal
RETURN -0x8000000000000000 AS literal
RETURN 0x1a2b3c4d5e6f7 AS literal
RETURN 0x1A2B3C4D5E6F7 AS literal
RETURN 0x1A2b3c4D5E6f7 AS literal
RETURN 0x AS literal
RETURN 0x1A2b3j4D5E6f7 AS literal
RETURN 0x1A2b3c4Z5E6f7 AS literal
RETURN 0x8000000000000000 AS literal
RETURN -0x8000000000000001 AS literal
RETURN {} AS literal
RETURN {abc: 1} AS literal
RETURN {ABC: 1} AS literal
RETURN {aBCdeF: 1} AS literal
RETURN {a1B2c3e67: 1} AS literal
RETURN {k: false} AS literal
RETURN {k: null} AS literal
RETURN {k: 1} AS literal
RETURN {F: -0x162CD4F6} AS literal
RETURN {k: 0o2613152366} AS literal
RETURN {k: -.1e-5} AS literal
RETURN {k: 'ab: c, as#?lßdj '} AS literal
RETURN {a: {}} AS literal
RETURN {a1: {a2: {a3: {a4: {a5: {a6: {}}}}}}} AS literal
RETURN {a1: {a2: {a3: {a4: {a5: {a6: {a7: {a8: {a9: {a10: {a11: {a12: {a13: {a14: {a15: {a16: {a17: {a18: {a19: {}}}}}}}}}}}}}}}}}}}} AS literal
RETURN {a1: {a2: {a3: {a4: {a5: {a6: {a7: {a8: {a9: {a10: {a11: {a12: {a13: {a14: {a15: {a16: {a17: {a18: {a19: {a20: {a21: {a22: {a23: {a24: {a25: {a26: {a27: {a28: {a29: {a30: {a31: {a32: {a33: {a34: {a35: {a36: {a37: {a38: {a39: {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} AS literal
RETURN { a : ' { b : ' , c : { d : ' ' } , d : ' } ' } AS literal
RETURN  { data: [ { id: '0001', type: 'donut', name: 'Cake', ppu: 0.55, batters: { batter: [ { id: '1001', type: 'Regular' }, { id: '1002', type: 'Chocolate' }, { id: '1003', type: 'Blueberry' }, { id: '1004', type: 'Devils Food' } ] }, topping: [ { id: '5001', type: 'None' }, { id: '5002', type: 'Glazed' }, { id: '5005', type: 'Sugar' }, { id: '5007', type: 'Powdered Sugar' }, { id: '5006', type: 'Chocolate Sprinkles' }, { id: '5003', type: 'Chocolate' }, { id: '5004', type: 'Maple' } ] }, { id: '0002', type: 'donut', name: 'Raised', ppu: 0.55, batters: { batter: [ { id: '1001', type: 'Regular' } ] }, topping: [ { id: '5001', type: 'None' }, { id: '5002', type: 'Glazed' }, { id: '5005', type: 'Sugar' }, { id: '5003', type: 'Chocolate' }, { id: '5004', type: 'Maple' } ] }, { id: '0003', type: 'donut', name: 'Old Fashioned', ppu: 0.55, batters: { batter: [ { id: '1001', type: 'Regular' }, { id: '1002', type: 'Chocolate' } ] }, topping: [ { id: '5001', type: 'None' }, { id: '5002', type: 'Glazed' }, { id: '5003', type: 'Chocolate' }, { id: '5004', type: 'Maple' } ] } ] } AS literal
RETURN {1B2c3e67:1} AS literal
RETURN {k1#k: 1} AS literal
RETURN {k1.k: 1} AS literal
RETURN {k1: k2} AS literal
RETURN {, } AS literal
RETURN {1} AS literal
RETURN {[]} AS literal
RETURN {{}} AS literal
RETURN {k: {k: {}} AS literal
RETURN true AS literal
RETURN TRUE AS literal
RETURN false AS literal
RETURN FALSE AS literal
RETURN null AS literal
RETURN NULL AS literal
CREATE (a:A), (b:B) CREATE (a)-[:T]->(b), (b)-[:T]->(:C)
MATCH (n) RETURN [p = (n)-->() | p] AS list
CREATE (a:A), (b:B), (c:C), (d:D) CREATE (a)-[:T]->(b), (a)-[:T]->(c), (a)-[:T]->(d)
MATCH (n:A) RETURN [p = (n)-->(:B) | p] AS list
CREATE (a:A), (b:B) CREATE (a)-[:T]->(b)
MATCH (a:A), (b:B) RETURN [p = (a)-->(b) | p] AS list
CREATE (a), (b {name: 'val'}), (c) CREATE (a)-[:T]->(b), (b)-[:T]->(c)
MATCH (n) RETURN [(n)-[:T]->(b) | b.name] AS list
CREATE (a), (b), (c) CREATE (a)-[:T {name: 'val'}]->(b), (b)-[:T]->(c)
MATCH (n) RETURN [(n)-[r:T]->() | r.name] AS list
CREATE (a:A), (:A), (:A) CREATE (a)-[:HAS]->()
MATCH (n:A) RETURN count([p = (n)-[:HAS]->() | p]) AS c
CREATE (n1:X {n: 1}), (m1:Y), (i1:Y), (i2:Y) CREATE (n1)-[:T]->(m1), (m1)-[:T]->(i1), (m1)-[:T]->(i2) CREATE (n2:X {n: 2}), (m2), (i3:L), (i4:Y) CREATE (n2)-[:T]->(m2), (m2)-[:T]->(i3), (m2)-[:T]->(i4)
MATCH p = (n:X)-->() RETURN n, [x IN nodes(p) | size([(x)-->(:Y) | 1])] AS list
MATCH (n)-->(b) WITH [p = (n)-->() | p] AS ps, count(b) AS c RETURN ps, c
CREATE (:A)-[:T]->(:B)
MATCH (a:A), (b:B) WITH [p = (a)-[*]->(b) | p] AS paths, count(a) AS c RETURN paths, c
MATCH (n:A) RETURN [p = (n)-[:HAS]->() | p] AS ps
CREATE (a {time: 10}), (b {time: 20}) CREATE (a)-[:T]->(b)
MATCH (liker) RETURN [p = (liker)--() | p] AS isNew ORDER BY liker.time
CREATE (a:A)-[:REL1]->(b:B), (b)-[:REL2]->(a), (a)-[:REL3]->(:C), (a)-[:REL1]->(:D)
MATCH (n) WHERE (n)-[]->() RETURN n
MATCH (n) WHERE (n)-[]-() RETURN n
MATCH (n) WHERE (n)<-[]-() RETURN n
MATCH (n) WHERE (n)-[:REL1]->() RETURN n
MATCH (n) WHERE (n)-[:REL1]-() RETURN n
MATCH (n) WHERE (n)<-[:REL1]-() RETURN n
MATCH (n) WHERE (n)-[:REL1*]->() RETURN n
MATCH (n) WHERE (n)-[:REL1*]-() RETURN n
MATCH (n) WHERE (n)<-[:REL1*]-() RETURN n
MATCH (n) WHERE (n)-[:REL1*2]-() RETURN n
MATCH (n) WHERE <pattern> RETURN n
MATCH (n) WHERE (n) RETURN n
MATCH (n), (m) WHERE (n)-[]->(m) RETURN n, m
MATCH (n), (m) WHERE (n)-[:REL1|REL2|REL3|REL4]-(m) RETURN n, m
MATCH (n), (m) WHERE (n)-[:REL1]->(m) RETURN n, m
MATCH (n), (m) WHERE (n)-[:REL1]-(m) RETURN n, m
MATCH (n), (m) WHERE (n)-[:REL1*]->(m) RETURN n, m
MATCH (n), (m) WHERE (n)-[:REL1*]-(m) RETURN n, m
MATCH (n), (m) WHERE (n)-[:REL1*2]-(m) RETURN n, m
MATCH (n) WHERE NOT (n)-[:REL2]-() RETURN n
MATCH (n) WHERE (n)-[:REL1]-() AND (n)-[:REL3]-() RETURN n
MATCH (n) WHERE (n)-[:REL1]-() OR (n)-[:REL2]-() RETURN n
MATCH (n) RETURN (n)-[]->()
MATCH (n) WITH (n)-[]->() AS x RETURN x
MATCH (n) SET n.prop = head(nodes(head((n)-[:REL]->()))).foo
RETURN toString(42) AS bool
RETURN toString(true) AS bool
RETURN toString(1 < 0) AS bool
CREATE (:Movie {watched: true})
MATCH (m:Movie) RETURN toString(m.watched)
RETURN [x IN [1, 2.3, true, 'apa'] | toString(x) ] AS list
WITH [1, 2, 3] AS numbers RETURN [n IN numbers | toString(n)] AS string_numbers
CREATE (:Movie {rating: 4})
MATCH (m:Movie { rating: 4 }) WITH * MATCH (n) RETURN toString(n.rating)
UNWIND ['male', 'female', null] AS gen RETURN coalesce(toString(gen), 'x') AS result
UNWIND ['male', 'female', null] AS gen RETURN toString(coalesce(gen, 'x')) AS result
MATCH p = (n)-[r:T]->() RETURN [x IN [1, '', <invalid>] | toString(x) ] AS list
WITH 82.9 AS weight RETURN toInteger(weight)
WITH 'foo' AS foo_string, '' AS empty_string RETURN toInteger(foo_string) AS foo, toInteger(empty_string) AS empty
WITH [2, 2.9] AS numbers RETURN [n IN numbers | toInteger(n)] AS int_numbers
WITH [2, 2.9, '1.7'] AS things RETURN [n IN things | toInteger(n)] AS int_numbers
WITH ['2', '2.9', 'foo'] AS numbers RETURN [n IN numbers | toInteger(n)] AS int_numbers
RETURN toInteger(1 - $param) AS result
CREATE (:Person {name: '42'})
MATCH (p:Person { name: '42' }) WITH * MATCH (n) RETURN toInteger(n.name) AS name
MATCH p = (n)-[r:T]->() RETURN [x IN [1, <invalid>] | toInteger(x) ] AS list
WITH [3.4, 3] AS numbers RETURN [n IN numbers | toFloat(n)] AS float_numbers
WITH 'foo' AS foo_string, '' AS empty_string RETURN toFloat(foo_string) AS foo, toFloat(empty_string) AS empty
WITH [3.4, 3, '5'] AS numbers RETURN [n IN numbers | toFloat(n)] AS float_numbers
WITH ['1', '2', 'foo'] AS numbers RETURN [n IN numbers | toFloat(n)] AS float_numbers
MATCH (m:Movie { rating: 4 }) WITH * MATCH (n) RETURN toFloat(n.rating) AS float
MATCH p = (n)-[r:T]->() RETURN [x IN [1.0, <invalid>] | toFloat(x) ] AS list
UNWIND [true, false] AS b RETURN toBoolean(b) AS b
RETURN toBoolean('true') AS b
UNWIND ['true', 'false'] AS s RETURN toBoolean(s) AS b
UNWIND [null, '', ' tru ', 'f alse'] AS things RETURN toBoolean(things) AS b
MATCH p = (n)-[r:T]->() RETURN [x IN [true, <invalid>] | toBoolean(x) ] AS list
RETURN true OR true XOR true AS a, true OR (true XOR true) AS b, (true OR true) XOR true AS c
RETURN true XOR false AND false AS a, true XOR (false AND false) AS b, (true XOR false) AND false AS c
RETURN true OR false AND false AS a, true OR (false AND false) AS b, (true OR false) AND false AS c
RETURN NOT true AND false AS a, (NOT true) AND false AS b, NOT (true AND false) AS c
RETURN NOT false OR true AS a, (NOT false) OR true AS b, NOT (false OR true) AS c
RETURN NOT false >= false AS a, NOT (false >= false) AS b, (NOT false) >= false AS c
RETURN true OR false = false AS a, true OR (false = false) AS b, (true OR false) = false AS c
RETURN false = true IS NULL AS a, false = (true IS NULL) AS b, (false = true) IS NULL AS c
RETURN NOT false IS NULL AS a, NOT (false IS NULL) AS b, (NOT false) IS NULL AS c
RETURN true OR false IS NULL AS a, true OR (false IS NULL) AS b, (true OR false) IS NULL AS c
RETURN false = true IN [true, false] AS a, false = (true IN [true, false]) AS b, (false = true) IN [true, false] AS c
RETURN NOT true IN [true, false] AS a, NOT (true IN [true, false]) AS b, (NOT true) IN [true, false] AS c
RETURN false AND true IN [true, false] AS a, false AND (true IN [true, false]) AS b, (false AND true) IN [true, false] AS c
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH collect((a OR b XOR c) = (a OR (b XOR c))) AS eq, collect((a OR b XOR c) <> ((a OR b) XOR c)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH collect((a XOR b AND c) = (a XOR (b AND c))) AS eq, collect((a XOR b AND c) <> ((a XOR b) AND c)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH collect((a OR b AND c) = (a OR (b AND c))) AS eq, collect((a OR b AND c) <> ((a OR b) AND c)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((NOT a AND b) = ((NOT a) AND b)) AS eq, collect((NOT a AND b) <> (NOT (a AND b))) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((NOT a OR b) = ((NOT a) OR b)) AS eq, collect((NOT a OR b) <> (NOT (a OR b))) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((NOT a <comp> b) = (NOT (a <comp> b))) AS eq, collect((NOT a <comp> b) <> ((NOT a) <comp> b)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((NOT (a <comp> b)) = ((NOT a) <comp> b)) AS eq RETURN all(x IN eq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH collect((a <boolop> b <pred> c) = (a <boolop> (b <pred> c))) AS eq, collect((a <boolop> b <pred> c) <> ((a <boolop> b) <pred> c)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [true, false, null] AS c WITH collect((a <boolop> (b <pred> c)) = ((a <boolop> b) <pred> c)) AS eq RETURN all(x IN eq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((a <comp> b <nullpred>) = (a <comp> (b <nullpred>))) AS eq, collect((a <comp> b <nullpred>) <> ((a <comp> b) <nullpred>)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((NOT a <nullpred>) = (NOT (a <nullpred>))) AS eq, collect((NOT a <nullpred>) <> ((NOT a) <nullpred>)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b WITH collect((a <boolop> b <nullpred>) = (a <boolop> (b <nullpred>))) AS eq, collect((a <boolop> b <nullpred>) <> ((a <boolop> b) <nullpred>)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [[], [true], [false], [null], [true, false], [true, false, null]] AS c WITH collect((a <comp> b IN c) = (a <comp> (b IN c))) AS eq, collect((a <comp> b IN c) <> ((a <comp> b) IN c)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [[], [true], [false], [null], [true, false], [true, false, null]] AS b WITH collect((NOT a IN b) = (NOT (a IN b))) AS eq, collect((NOT a IN b) <> ((NOT a) IN b)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
UNWIND [true, false, null] AS a UNWIND [true, false, null] AS b UNWIND [[], [true], [false], [null], [true, false], [true, false, null]] AS c WITH collect((a <boolop> b IN c) = (a <boolop> (b IN c))) AS eq, collect((a <boolop> b IN c) <> ((a <boolop> b) IN c)) AS neq RETURN all(x IN eq WHERE x) AND any(x IN neq WHERE x) AS result
RETURN 4 <mult1> 2 <add> 3 <mult2> 2 AS a, 4 <mult1> 2 <add> (3 <mult2> 2) AS b, 4 <mult1> (2 <add> 3) <mult2> 2 AS c
RETURN 4 ^ 3 <mult> 2 ^ 3 AS a, (4 ^ 3) <mult> (2 ^ 3) AS b, 4 ^ (3 <mult> 2) ^ 3 AS c
RETURN 4 ^ 3 <add> 2 ^ 3 AS a, (4 ^ 3) <add> (2 ^ 3) AS b, 4 ^ (3 <add> 2) ^ 3 AS c
RETURN -3 ^ 2 AS a, (-3) ^ 2 AS b, -(3 ^ 2) AS c
RETURN -3 <add> 2 AS a, (-3) <add> 2 AS b, -(3 <add> 2) AS c
RETURN [[1], [2, 3], [4, 5]] + [5, [6, 7], [8, 9], 10][3] AS a, [[1], [2, 3], [4, 5]] + ([5, [6, 7], [8, 9], 10][3]) AS b, ([[1], [2, 3], [4, 5]] + [5, [6, 7], [8, 9], 10])[3] AS c
RETURN [[1], [2, 3], [4, 5]] + [5, [6, 7], [8, 9], 10][2] AS a, [[1], [2, 3], [4, 5]] + ([5, [6, 7], [8, 9], 10][2]) AS b, ([[1], [2, 3], [4, 5]] + [5, [6, 7], [8, 9], 10])[2] AS c
RETURN [[1], [2, 3], [4, 5]] + [5, [6, 7], [8, 9], 10][1..3] AS a, [[1], [2, 3], [4, 5]] + ([5, [6, 7], [8, 9], 10][1..3]) AS b, ([[1], [2, 3], [4, 5]] + [5, [6, 7], [8, 9], 10])[1..3] AS c
RETURN [1]+2 IN [3]+4 AS a, ([1]+2) IN ([3]+4) AS b, [1]+(2 IN [3])+4 AS c
RETURN [1]+[2] IN [3]+[4] AS a, ([1]+[2]) IN ([3]+[4]) AS b, (([1]+[2]) IN [3])+[4] AS c, [1]+([2] IN [3])+[4] AS d
RETURN [1, 2] <comp> [3, 4] IN [[3, 4], false] AS a, [1, 2] <comp> ([3, 4] IN [[3, 4], false]) AS b, ([1, 2] <comp> [3, 4]) IN [[3, 4], false] AS c
RETURN null IS <null1> <comp> null IS <null2> AS a, (null IS <null1>) <comp> (null IS <null2>) AS b, (null IS <null1> <comp> null) IS <null2> AS c
RETURN NOT null IS NULL AS a, NOT (null IS NULL) AS b, (NOT null) IS NULL AS c
RETURN <truth1> <op> <truth2> IS <null> AS a, <truth1> <op> (<truth2> IS <null>) AS b, (<truth1> <op> <truth2>) IS <null> AS c
RETURN ('abc' STARTS WITH null OR true) = (('abc' STARTS WITH null) OR true) AS a, ('abc' STARTS WITH null OR true) <> ('abc' STARTS WITH (null OR true)) AS b, (true OR null STARTS WITH 'abc') = (true OR (null STARTS WITH 'abc')) AS c, (true OR null STARTS WITH 'abc') <> ((true OR null) STARTS WITH 'abc') AS d
CREATE (:A {num: 1, num2: 4}), //num + num2 = 5 (:A {num: 5, num2: 2}), //num + num2 = 7 (:A {num: 9, num2: 0}), //num + num2 = 9 (:A {num: 3, num2: 3}), //num + num2 = 6 (:A {num: 7, num2: 1})  //num + num2 = 8
MATCH (a:A) WITH a, a.num + a.num2 AS sum ORDER BY a.num + a.num2 LIMIT 3 RETURN a, sum
MATCH (a:A) WITH a, a.num + a.num2 AS sum ORDER BY sum LIMIT 3 RETURN a, sum
CREATE (:A {num: 1, num2: 4}), //num2 % 3 = 1, num + num2 = 5 (:A {num: 5, num2: 2}), //num2 % 3 = 2, num + num2 = 7 (:A {num: 9, num2: 0}), //num2 % 3 = 0, num + num2 = 9 (:A {num: 3, num2: 3}), //num2 % 3 = 0, num + num2 = 6 (:A {num: 7, num2: 1})  //num2 % 3 = 1, num + num2 = 8
MATCH (a:A) WITH a, a.num + a.num2 AS sum, a.num2 % 3 AS mod ORDER BY a.num2 % 3, a.num + a.num2 LIMIT 3 RETURN a, sum, mod
MATCH (a:A) WITH a, a.num + a.num2 AS sum, a.num2 % 3 AS mod ORDER BY a.num2 % 3, sum LIMIT 3 RETURN a, sum, mod
MATCH (a:A) WITH a, a.num + a.num2 AS sum, a.num2 % 3 AS mod ORDER BY mod, a.num + a.num2 LIMIT 3 RETURN a, sum, mod
MATCH (a:A) WITH a, a.num + a.num2 AS sum, a.num2 % 3 AS mod ORDER BY mod, sum LIMIT 3 RETURN a, sum, mod
MATCH (a:A) WITH a, a.num2 % 3 AS x WITH a, a.num + a.num2 AS x ORDER BY x LIMIT 3 RETURN a, x
MATCH (a:A) WITH a, a.num + a.num2 AS sum WITH a, a.num2 % 3 AS mod ORDER BY sum LIMIT 3 RETURN a, mod
MATCH (a:A) WITH a.num2 AS x WITH x % 3 AS x ORDER BY x LIMIT 3 RETURN x
MATCH (a:A) WITH a.num2 AS x WITH x % 3 AS x ORDER BY x * -1 LIMIT 3 RETURN x
MATCH (a:A) WITH a.num2 % 3 AS mod, sum(a.num + a.num2) AS sum ORDER BY sum(a.num + a.num2) LIMIT 2 RETURN mod, sum
MATCH (a:A) WITH a.num2 % 3 AS mod, sum(a.num + a.num2) AS sum ORDER BY sum LIMIT 2 RETURN mod, sum
MATCH (a:A) WITH a, a.num + a.num2 AS sum WITH a.num2 % 3 AS mod, min(sum) AS min ORDER BY sum(sum) LIMIT 2 RETURN mod, min
MATCH (a:A) WITH a.num2 % 3 AS mod, min(a.num + a.num2) AS min ORDER BY sum(a.num + a.num2) LIMIT 2 RETURN mod, min
CREATE ()-[:T1 {id: 0}]->(:X), ()-[:T2 {id: 1}]->(:X), ()-[:T2 {id: 2}]->()
MATCH (a)-[r]->(b:X) WITH a, r, b, count(*) AS c ORDER BY c MATCH (a)-[r]->(b) RETURN r AS rel ORDER BY rel.id
MATCH (person) WITH avg(person.age) AS avgAge ORDER BY $age + avg(person.age) - 1000 RETURN avgAge
MATCH (me: Person)--(you: Person) WITH me.age AS age, count(you.age) AS cnt ORDER BY age, age + count(you.age) RETURN age
MATCH (me: Person)--(you: Person) WITH me.age AS age, count(you.age) AS cnt ORDER BY me.age + count(you.age) RETURN age
MATCH (me: Person)--(you: Person) WITH count(you.age) AS agg ORDER BY me.age + count(you.age) RETURN *
MATCH (me: Person)--(you: Person) WITH me.age + you.age, count(*) AS cnt ORDER BY me.age + you.age + count(*) RETURN *
UNWIND [true, false] AS bools WITH bools ORDER BY bools LIMIT 1 RETURN bools
UNWIND [true, false] AS bools WITH bools ORDER BY bools DESC LIMIT 1 RETURN bools
UNWIND [1, 3, 2] AS ints WITH ints ORDER BY ints LIMIT 2 RETURN ints
UNWIND [1, 3, 2] AS ints WITH ints ORDER BY ints DESC LIMIT 2 RETURN ints
UNWIND [1.5, 1.3, 999.99] AS floats WITH floats ORDER BY floats LIMIT 2 RETURN floats
UNWIND [1.5, 1.3, 999.99] AS floats WITH floats ORDER BY floats DESC LIMIT 2 RETURN floats
UNWIND ['.*', '', ' ', 'one'] AS strings WITH strings ORDER BY strings LIMIT 2 RETURN strings
UNWIND ['.*', '', ' ', 'one'] AS strings WITH strings ORDER BY strings DESC LIMIT 2 RETURN strings
UNWIND [[], ['a'], ['a', 1], [1], [1, 'a'], [1, null], [null, 1], [null, 2]] AS lists WITH lists ORDER BY lists LIMIT 4 RETURN lists
UNWIND [[], ['a'], ['a', 1], [1], [1, 'a'], [1, null], [null, 1], [null, 2]] AS lists WITH lists ORDER BY lists DESC LIMIT 4 RETURN lists
UNWIND [date({year: 1910, month: 5, day: 6}), date({year: 1980, month: 12, day: 24}), date({year: 1984, month: 10, day: 12}), date({year: 1985, month: 5, day: 6}), date({year: 1980, month: 10, day: 24}), date({year: 1984, month: 10, day: 11})] AS dates WITH dates ORDER BY dates LIMIT 2 RETURN dates
UNWIND [date({year: 1910, month: 5, day: 6}), date({year: 1980, month: 12, day: 24}), date({year: 1984, month: 10, day: 12}), date({year: 1985, month: 5, day: 6}), date({year: 1980, month: 10, day: 24}), date({year: 1984, month: 10, day: 11})] AS dates WITH dates ORDER BY dates DESC LIMIT 2 RETURN dates
UNWIND [localtime({hour: 10, minute: 35}), localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876123}), localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876124}), localtime({hour: 12, minute: 35, second: 13}), localtime({hour: 12, minute: 30, second: 14, nanosecond: 645876123})] AS localtimes WITH localtimes ORDER BY localtimes LIMIT 3 RETURN localtimes
UNWIND [localtime({hour: 10, minute: 35}), localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876123}), localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876124}), localtime({hour: 12, minute: 35, second: 13}), localtime({hour: 12, minute: 30, second: 14, nanosecond: 645876123})] AS localtimes WITH localtimes ORDER BY localtimes DESC LIMIT 3 RETURN localtimes
UNWIND [time({hour: 10, minute: 35, timezone: '-08:00'}), time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+01:00'}), time({hour: 12, minute: 31, second: 14, nanosecond: 645876124, timezone: '+01:00'}), time({hour: 12, minute: 35, second: 15, timezone: '+05:00'}), time({hour: 12, minute: 30, second: 14, nanosecond: 645876123, timezone: '+01:01'})] AS times WITH times ORDER BY times LIMIT 3 RETURN times
UNWIND [time({hour: 10, minute: 35, timezone: '-08:00'}), time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+01:00'}), time({hour: 12, minute: 31, second: 14, nanosecond: 645876124, timezone: '+01:00'}), time({hour: 12, minute: 35, second: 15, timezone: '+05:00'}), time({hour: 12, minute: 30, second: 14, nanosecond: 645876123, timezone: '+01:01'})] AS times WITH times ORDER BY times DESC LIMIT 3 RETURN times
UNWIND [localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 30, second: 14, nanosecond: 12}), localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123}), localdatetime({year: 1, month: 1, day: 1, hour: 1, minute: 1, second: 1, nanosecond: 1}), localdatetime({year: 9999, month: 9, day: 9, hour: 9, minute: 59, second: 59, nanosecond: 999999999}), localdatetime({year: 1980, month: 12, day: 11, hour: 12, minute: 31, second: 14})] AS localdatetimes WITH localdatetimes ORDER BY localdatetimes LIMIT 3 RETURN localdatetimes
UNWIND [localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 30, second: 14, nanosecond: 12}), localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123}), localdatetime({year: 1, month: 1, day: 1, hour: 1, minute: 1, second: 1, nanosecond: 1}), localdatetime({year: 9999, month: 9, day: 9, hour: 9, minute: 59, second: 59, nanosecond: 999999999}), localdatetime({year: 1980, month: 12, day: 11, hour: 12, minute: 31, second: 14})] AS localdatetimes WITH localdatetimes ORDER BY localdatetimes DESC LIMIT 3 RETURN localdatetimes
UNWIND [datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 30, second: 14, nanosecond: 12, timezone: '+00:15'}), datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+00:17'}), datetime({year: 1, month: 1, day: 1, hour: 1, minute: 1, second: 1, nanosecond: 1, timezone: '-11:59'}), datetime({year: 9999, month: 9, day: 9, hour: 9, minute: 59, second: 59, nanosecond: 999999999, timezone: '+11:59'}), datetime({year: 1980, month: 12, day: 11, hour: 12, minute: 31, second: 14, timezone: '-11:59'})] AS datetimes WITH datetimes ORDER BY datetimes LIMIT 3 RETURN datetimes
UNWIND [datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 30, second: 14, nanosecond: 12, timezone: '+00:15'}), datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+00:17'}), datetime({year: 1, month: 1, day: 1, hour: 1, minute: 1, second: 1, nanosecond: 1, timezone: '-11:59'}), datetime({year: 9999, month: 9, day: 9, hour: 9, minute: 59, second: 59, nanosecond: 999999999, timezone: '+11:59'}), datetime({year: 1980, month: 12, day: 11, hour: 12, minute: 31, second: 14, timezone: '-11:59'})] AS datetimes WITH datetimes ORDER BY datetimes DESC LIMIT 3 RETURN datetimes
CREATE (:N)-[:REL]->()
MATCH p = (n:N)-[r:REL]->() UNWIND [n, r, p, 1.5, ['list'], 'text', null, false, 0.0 / 0.0, {a: 'map'}] AS types WITH types ORDER BY types LIMIT 5 RETURN types
MATCH p = (n:N)-[r:REL]->() UNWIND [n, r, p, 1.5, ['list'], 'text', null, false, 0.0 / 0.0, {a: 'map'}] AS types WITH types ORDER BY types DESC LIMIT 5 RETURN types
CREATE (:A {bool: true}), (:B {bool: false}), (:C {bool: false}), (:D {bool: true}), (:E {bool: false})
MATCH (a) WITH a, a.bool AS bool WITH a, bool ORDER BY <sort> LIMIT 3 RETURN a, bool
MATCH (a) WITH a, a.bool AS bool WITH a, bool ORDER BY <sort> LIMIT 2 RETURN a, bool
CREATE (:A {num: 9}), (:B {num: 5}), (:C {num: 30}), (:D {num: -11}), (:E {num: 7054})
MATCH (a) WITH a, a.num AS num WITH a, num ORDER BY <sort> LIMIT 3 RETURN a, num
CREATE (:A {num: 5.025648}), (:B {num: 30.94857}), (:C {num: 30.94856}), (:D {num: -11.2943}), (:E {num: 7054.008})
CREATE (:A {name: 'lorem'}), (:B {name: 'ipsum'}), (:C {name: 'dolor'}), (:D {name: 'sit'}), (:E {name: 'amet'})
MATCH (a) WITH a, a.name AS name WITH a, name ORDER BY <sort> LIMIT 3 RETURN a, name
CREATE (:A {list: [2, -2]}), (:B {list: [1, 2]}), (:C {list: [300, 0]}), (:D {list: [1, -20]}), (:E {list: [2, -2, 100]})
MATCH (a) WITH a, a.list AS list WITH a, list ORDER BY <sort> LIMIT 3 RETURN a, list
CREATE (:A {date: date({year: 1910, month: 5, day: 6})}), (:B {date: date({year: 1980, month: 12, day: 24})}), (:C {date: date({year: 1984, month: 10, day: 12})}), (:D {date: date({year: 1985, month: 5, day: 6})}), (:E {date: date({year: 1980, month: 10, day: 24})}), (:F {date: date({year: 1984, month: 10, day: 11})})
MATCH (a) WITH a, a.date AS date WITH a, date ORDER BY <sort> LIMIT 2 RETURN a, date
CREATE (:A {time: localtime({hour: 10, minute: 35})}), (:B {time: localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876123})}), (:C {time: localtime({hour: 12, minute: 31, second: 14, nanosecond: 645876124})}), (:D {time: localtime({hour: 12, minute: 30, second: 14, nanosecond: 645876123})}), (:E {time: localtime({hour: 12, minute: 31, second: 15})})
MATCH (a) WITH a, a.time AS time WITH a, time ORDER BY <sort> LIMIT 3 RETURN a, time
CREATE (:A {time: time({hour: 10, minute: 35, timezone: '-08:00'})}), (:B {time: time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+01:00'})}), (:C {time: time({hour: 12, minute: 31, second: 14, nanosecond: 645876124, timezone: '+01:00'})}), (:D {time: time({hour: 12, minute: 35, second: 15, timezone: '+05:00'})}), (:E {time: time({hour: 12, minute: 30, second: 14, nanosecond: 645876123, timezone: '+01:01'})})
CREATE (:A {datetime: localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 30, second: 14, nanosecond: 12})}), (:B {datetime: localdatetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123})}), (:C {datetime: localdatetime({year: 1, month: 1, day: 1, hour: 1, minute: 1, second: 1, nanosecond: 1})}), (:D {datetime: localdatetime({year: 9999, month: 9, day: 9, hour: 9, minute: 59, second: 59, nanosecond: 999999999})}), (:E {datetime: localdatetime({year: 1980, month: 12, day: 11, hour: 12, minute: 31, second: 14})})
MATCH (a) WITH a, a.datetime AS datetime WITH a, datetime ORDER BY <sort> LIMIT 3 RETURN a, datetime
CREATE (:A {datetime: datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 30, second: 14, nanosecond: 12, timezone: '+00:15'})}), (:B {datetime: datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '+00:17'})}), (:C {datetime: datetime({year: 1, month: 1, day: 1, hour: 1, minute: 1, second: 1, nanosecond: 1, timezone: '-11:59'})}), (:D {datetime: datetime({year: 9999, month: 9, day: 9, hour: 9, minute: 59, second: 59, nanosecond: 999999999, timezone: '+11:59'})}), (:E {datetime: datetime({year: 1980, month: 12, day: 11, hour: 12, minute: 31, second: 14, timezone: '-11:59'})})
UNWIND [0, 2, 1, 2, 0, 1] AS x WITH x ORDER BY x <dir> LIMIT 2 RETURN x
UNWIND [0, 2, 1, 2, 0, 1] AS x WITH DISTINCT x ORDER BY x <dir> LIMIT 1 RETURN x
WITH <values> AS values WITH values, size(values) AS numOfValues UNWIND values AS value WITH size([ x IN values WHERE x < value ]) AS x, value, numOfValues ORDER BY value WITH numOfValues, collect(x) AS orderedX RETURN orderedX = range(0, numOfValues-1) AS equal
CREATE (:A), (:A), (:B), (:B), (:C)
MATCH (a:A), (b:B), (c:C) WITH a, b WITH a ORDER BY <sort> RETURN a
CREATE (:A {num: 9, bool: true}), (:B {num: 5, bool: false}), (:C {num: -30, bool: false}), (:D {num: -41, bool: true}), (:E {num: 7054, bool: false})
MATCH (a) WITH a ORDER BY <sort> LIMIT 4 RETURN a
CREATE ({num: 3, text: 'a'}), ({num: 3, text: 'b'}), ({num: 1, text: 'a'}), ({num: 1, text: 'b'}), ({num: 2, text: 'a'}), ({num: 2, text: 'b'}), ({num: 4, text: 'a'}), ({num: 4, text: 'b'})
MATCH (a) WITH a ORDER BY a.num % 2 <dir1>, a.num, a.text <dir2> LIMIT 1 RETURN a
MATCH (a) WITH a ORDER BY <sort> LIMIT 1 RETURN a
UNWIND [1, 2, 3] AS a WITH a ORDER BY <sort> LIMIT 1 RETURN a
WITH 1 AS a, 'b' AS b, 3 AS c, true AS d WITH a, b WITH a ORDER BY <sort> RETURN a
CREATE (:A {bool: true, bool2: true}), (:B {bool: false, bool2: false}), (:C {bool: false, bool2: true}), (:D {bool: true, bool2: true}), (:E {bool: true, bool2: false})
MATCH (a) WITH a ORDER BY <sort> LIMIT 2 RETURN a
MATCH (a) WITH a ORDER BY <sort> LIMIT 3 RETURN a
CREATE (:A {num: 9, num2: 5}), (:B {num: 5, num2: 4}), (:C {num: 30, num2: 3}), (:D {num: -11, num2: 2}), (:E {num: 7054, num2: 1})
CREATE (:A {num: 5.025648, num2: 1.96357}), (:B {num: 30.94857, num2: 0.00002}), (:C {num: 30.94856, num2: 0.00002}), (:D {num: -11.2943, num2: -8.5007}), (:E {num: 7054.008, num2: 948.841})
CREATE (:A {name: 'lorem', title: 'dr.'}), (:B {name: 'ipsum', title: 'dr.'}), (:C {name: 'dolor', title: 'prof.'}), (:D {name: 'sit', title: 'dr.'}), (:E {name: 'amet', title: 'prof.'})
CREATE (:A {list: [2, -2], list2: [3, -2]}), (:B {list: [1, 2], list2: [2, -2]}), (:C {list: [300, 0], list2: [1, -2]}), (:D {list: [1, -20], list2: [4, -2]}), (:E {list: [2, -2, 100], list2: [5, -2]})
CREATE ({name: 'A'}), ({name: 'A'}), ({name: 'B'}), ({name: 'C'}), ({name: 'C'})
MATCH (a) WITH a.name AS name ORDER BY a.name + 'C' <dir> LIMIT 2 RETURN name
MATCH (a) WITH a.name AS name, count(*) AS cnt ORDER BY a.name <dir> LIMIT 1 RETURN name, cnt
MATCH (a) WITH a.name AS name, count(*) AS cnt ORDER BY a.name + 'C' <dir> LIMIT 1 RETURN name, cnt
MATCH (a) WITH DISTINCT a.name AS name ORDER BY a.name <dir> LIMIT 1 RETURN *
MATCH (n) WITH n.num1 AS foo ORDER BY <sort> RETURN foo AS foo
CREATE (:L {num: 42})
MATCH (n) REMOVE n:L RETURN n.num
CREATE (:Foo:Bar)
MATCH (n) REMOVE n:Foo RETURN labels(n)
CREATE (:L1:L2:L3 {num: 42})
MATCH (n) REMOVE n:L1:L3 RETURN labels(n)
CREATE (:Foo)
MATCH (n) REMOVE n:Bar RETURN labels(n)
OPTIONAL MATCH (a:DoesNotExist) REMOVE a:L RETURN a
CREATE (:N {num: 42})
MATCH (n:N) REMOVE n.num RETURN n LIMIT 0
MATCH (n:N) REMOVE n.num RETURN n SKIP 1
CREATE (:N {name: 'a', num: 42}) CREATE (:N {name: 'a', num: 42}) CREATE (:N {name: 'a', num: 42}) CREATE (:N {name: 'a', num: 42}) CREATE (:N {name: 'a', num: 42})
MATCH (n:N) REMOVE n.name RETURN n.num AS num SKIP 2 LIMIT 2
MATCH (n:N) REMOVE n.name RETURN n.num AS num SKIP 0 LIMIT 5
CREATE (:N {name: 'a', num: 1}) CREATE (:N {name: 'a', num: 2}) CREATE (:N {name: 'a', num: 3}) CREATE (:N {name: 'a', num: 4}) CREATE (:N {name: 'a', num: 5})
MATCH (n:N) REMOVE n.name WITH n WHERE n.num % 2 = 0 RETURN n.num AS num
MATCH (n:N) REMOVE n.name RETURN sum(n.num) AS sum
MATCH (n:N) REMOVE n.name WITH sum(n.num) AS sum RETURN sum
MATCH (n:N) REMOVE n:N RETURN n LIMIT 0
MATCH (n:N) REMOVE n:N RETURN n SKIP 1
CREATE (:N {num: 42}) CREATE (:N {num: 42}) CREATE (:N {num: 42}) CREATE (:N {num: 42}) CREATE (:N {num: 42})
MATCH (n:N) REMOVE n:N RETURN n.num AS num SKIP 2 LIMIT 2
MATCH (n:N) REMOVE n:N RETURN n.num AS num SKIP 0 LIMIT 5
CREATE (:N {num: 1}) CREATE (:N {num: 2}) CREATE (:N {num: 3}) CREATE (:N {num: 4}) CREATE (:N {num: 5})
MATCH (n:N) REMOVE n:N WITH n WHERE n.num % 2 = 0 RETURN n.num AS num
MATCH (n:N) REMOVE n:N RETURN sum(n.num) AS sum
MATCH (n:N) REMOVE n:N WITH sum(n.num) AS sum RETURN sum
CREATE ()-[r:R {num: 42}]->()
MATCH ()-[r:R]->() REMOVE r.num RETURN r LIMIT 0
MATCH ()-[r:R]->() REMOVE r.num RETURN r SKIP 1
CREATE ()-[:R {name: 'a', num: 42}]->() CREATE ()-[:R {name: 'a', num: 42}]->() CREATE ()-[:R {name: 'a', num: 42}]->() CREATE ()-[:R {name: 'a', num: 42}]->() CREATE ()-[:R {name: 'a', num: 42}]->()
MATCH ()-[r:R]->() REMOVE r.name RETURN r.num AS num SKIP 2 LIMIT 2
MATCH ()-[r:R]->() REMOVE r.name RETURN r.num AS num SKIP 0 LIMIT 5
CREATE ()-[:R {name: 'a', num: 1}]->() CREATE ()-[:R {name: 'a', num: 2}]->() CREATE ()-[:R {name: 'a', num: 3}]->() CREATE ()-[:R {name: 'a', num: 4}]->() CREATE ()-[:R {name: 'a', num: 5}]->()
MATCH ()-[r:R]->() REMOVE r.name WITH r WHERE r.num % 2 = 0 RETURN r.num AS num
MATCH ()-[r:R]->() REMOVE r.name RETURN sum(r.num) AS sum
MATCH ()-[r:R]->() REMOVE r.name WITH sum(r.num) AS sum RETURN sum
MATCH (n) REMOVE n.num RETURN n.num IS NOT NULL AS still_there
CREATE (:L {num: 42, name: 'a', name2: 'B'})
MATCH (n) REMOVE n.num, n.name RETURN size(keys(n)) AS props
CREATE (a), (b), (a)-[:X {num: 42}]->(b)
MATCH ()-[r]->() REMOVE r.num RETURN r.num IS NOT NULL AS still_there
CREATE (a), (b), (a)-[:X {num: 42, a: 'a', b: 'B'}]->(b)
MATCH ()-[r]->() REMOVE r.num, r.a RETURN size(keys(r)) AS props
OPTIONAL MATCH (a:DoesNotExist) REMOVE a.num RETURN a
CREATE ({num: 42})
MATCH (n) OPTIONAL MATCH (n)-[r]->() REMOVE r.num RETURN n
CREATE (), (), ()
MATCH (n) REMOVE n.num RETURN sum(size(keys(n))) AS totalNumberOfProps
CREATE ({name: 'A'}), ({name: 'A'}), ({name: 'B'})
MATCH (a) WITH DISTINCT a.name AS name RETURN name
CREATE ({list: ['A', 'B']}), ({list: ['A', 'B']})
MATCH (n) WITH DISTINCT {name: n.list} AS map RETURN count(*)
CREATE ()-[:T1]->(), ()-[:T2]->()
MATCH ()-[r1]->() WITH r1 AS r2 RETURN r2 AS rel
CREATE (:Begin {num: 42}), (:End {num: 42}), (:End {num: 3})
MATCH (a:Begin) WITH a.num AS property MATCH (b:End) WHERE property = b.num RETURN b
CREATE ({num: 1, name: 'King Kong'}), ({num: 2, name: 'Ann Darrow'})
MATCH (n) WITH n.name AS n RETURN n
WITH 1 AS a, 2 AS a RETURN a
MATCH (a) WITH a, count(*) RETURN a
CREATE (a:Person), (b:Person), (m:Message {id: 10}) CREATE (a)-[:LIKE {creationDate: 20160614}]->(m)-[:POSTED_BY]->(b)
MATCH (person:Person)<--(message)<-[like]-(:Person) WITH like.creationDate AS likeTime, person AS person ORDER BY likeTime, message.id WITH head(collect({likeTime: likeTime})) AS latestLike, person AS person WITH latestLike.likeTime AS likeTime ORDER BY likeTime RETURN likeTime
CREATE (m {id: 0}) WITH {first: m.id} AS m WITH {second: m.first} AS m RETURN m.second
MATCH (a) WITH a.name AS name, count(*) AS relCount RETURN name, relCount
CREATE ()-[:T1]->(:X), ()-[:T2]->(:X), ()-[:T3]->()
MATCH ()-[r1]->(:X) WITH r1 AS r2, count(*) AS c MATCH ()-[r2]->() RETURN r2 AS rel
MATCH (a)-[r1]->(b:X) WITH a, r1 AS r2, b, count(*) AS c MATCH (a)-[r2]->(b) RETURN r2 AS rel
CREATE (n1 {num: 1}), (n2 {num: 2}), (n3 {num: 3}), (n4 {num: 4}) CREATE (n1)-[:T]->(n2), (n3)-[:T]->(n4)
MATCH p = ()-[*]->() WITH count(*) AS count, p AS p RETURN nodes(p) AS nodes
MATCH (person) WITH $age + avg(person.age) - 1000 AS agg RETURN *
MATCH (me: Person)--(you: Person) WITH me.age AS age, you WITH age, age + count(you.age) AS agg RETURN *
MATCH (me: Person)--(you: Person) WITH me.age AS age, me.age + count(you.age) AS agg RETURN *
MATCH (me: Person)--(you: Person) WITH me.age + count(you.age) AS agg RETURN *
MATCH (me: Person)--(you: Person) WITH me.age + you.age AS grp, me.age + you.age + count(*) AS agg RETURN *
CREATE (:A)-[:REL]->(:B)
MATCH (a:A)-[r:REL]->(b:B) WITH a AS b, b AS tmp, r AS r WITH b AS a, r LIMIT 1 MATCH (a)-[r]->(b) RETURN a, r, b
CREATE (a {name: 'David'}), (b {name: 'Other'}), (c {name: 'NotOther'}), (d {name: 'NotOther2'}), (a)-[:REL]->(b), (a)-[:REL]->(c), (a)-[:REL]->(d), (b)-[:REL]->(), (b)-[:REL]->(), (c)-[:REL]->(), (c)-[:REL]->(), (d)-[:REL]->()
MATCH (david {name: 'David'})--(otherPerson)-->() WITH otherPerson, count(*) AS foaf WHERE foaf > 1 WITH otherPerson WHERE otherPerson.name <> 'NotOther' RETURN count(*)
CREATE (a:End {num: 42, id: 0}), (:End {num: 3}), (:Begin {num: a.id})
MATCH (a:Begin) WITH a.num AS property MATCH (b) WHERE b.id = property RETURN b
WITH {name: {name2: 'baz'}} AS nestedMap RETURN nestedMap.name.name2
MATCH (a)-[r]->(b:X) WITH a, r, b MATCH (a)-[r]->(b) RETURN r AS rel ORDER BY rel.id
MATCH (a:A) WITH a MATCH (a)-->(b) RETURN *
CREATE (:A)-[:REL]->(:B) CREATE (:X)
MATCH (a:A) WITH a MATCH (x:X), (a)-->(b) RETURN *
MATCH ()-[r1]->(:X) WITH r1 AS r2 MATCH ()-[r2]->() RETURN r2 AS rel
MATCH p = (a) WITH p RETURN p
OPTIONAL MATCH (a:Start) WITH a MATCH (a)-->(b) RETURN *
CREATE (s:Single), (a:A {num: 42}), (b:B {num: 46}), (c:C) CREATE (s)-[:REL]->(a), (s)-[:REL]->(b), (a)-[:REL]->(c), (b)-[:LOOP]->(b)
OPTIONAL MATCH (a:A) WITH a AS a MATCH (b:B) RETURN a, b
MATCH (n) DELETE n
MATCH (n) DETACH DELETE n
CREATE (x:X) CREATE (x)-[:R]->() CREATE (x)-[:R]->() CREATE (x)-[:R]->()
MATCH (n:X) DETACH DELETE n
OPTIONAL MATCH (n) DELETE n
OPTIONAL MATCH (a:DoesNotExist) DELETE a RETURN a
OPTIONAL MATCH (n) DETACH DELETE n
MATCH (n:X) DELETE n
MATCH (n) DELETE n:Person
CREATE (x:X), (n1), (n2), (n3) CREATE (x)-[:R]->(n1) CREATE (n1)-[:R]->(n2) CREATE (n2)-[:R]->(n3)
MATCH p = (:X)-->()-->()-->() DETACH DELETE p
OPTIONAL MATCH p = ()-->() DETACH DELETE p
UNWIND range(0, 2) AS i CREATE ()-[:R]->()
MATCH ()-[r]-() DELETE r
MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n, r
CREATE ()-[:T {id: 42}]->()
MATCH p = ()-[r:T]-() WHERE r.id = 42 DELETE r
OPTIONAL MATCH ()-[r:DoesNotExist]-() DELETE r RETURN r
MATCH ()-[r:T]-() DELETE r:T
MATCH (n:N) DELETE n RETURN 42 AS num LIMIT 0
MATCH (n:N) DELETE n RETURN 42 AS num SKIP 1
MATCH (n:N) DELETE n RETURN 42 AS num SKIP 2 LIMIT 2
MATCH (n:N) DELETE n RETURN 42 AS num SKIP 0 LIMIT 5
MATCH (n:N) WITH n, n.num AS num DELETE n WITH num WHERE num % 2 = 0 RETURN num
MATCH (n:N) WITH n, n.num AS num DELETE n RETURN sum(num) AS sum
MATCH (n:N) WITH n, n.num AS num DELETE n WITH sum(num) AS sum RETURN sum
MATCH ()-[r:R]->() DELETE r RETURN 42 AS num LIMIT 0
MATCH ()-[r:R]->() DELETE r RETURN 42 AS num SKIP 1
CREATE ()-[:R {num: 1}]->() CREATE ()-[:R {num: 2}]->() CREATE ()-[:R {num: 3}]->() CREATE ()-[:R {num: 4}]->() CREATE ()-[:R {num: 5}]->()
MATCH ()-[r:R]->() DELETE r RETURN 42 AS num SKIP 2 LIMIT 2
MATCH ()-[r:R]->() DELETE r RETURN 42 AS num SKIP 0 LIMIT 5
MATCH ()-[r:R]->() WITH r, r.num AS num DELETE r WITH num WHERE num % 2 = 0 RETURN num
MATCH ()-[r:R]->() WITH r, r.num AS num DELETE r RETURN sum(num) AS sum
MATCH ()-[r:R]->() WITH r, r.num AS num DELETE r WITH sum(num) AS sum RETURN sum
CREATE ()-[:R]->()
MATCH (a)-[r]-(b) DELETE r, a, b RETURN count(*) AS c
CREATE (n1), (n2), (n3) CREATE (n1)-[:R]->(n2) CREATE (n2)-[:R]->(n3)
MATCH (a)-[*]-(b) DETACH DELETE a, b RETURN count(*) AS c
MATCH () CREATE (n) DELETE n
CREATE (u:User) CREATE (u)-[:FRIEND]->() CREATE (u)-[:FRIEND]->() CREATE (u)-[:FRIEND]->() CREATE (u)-[:FRIEND]->()
MATCH (:User)-[:FRIEND]->(n) WITH collect(n) AS friends DETACH DELETE friends[$friendIndex]
MATCH (:User)-[r:FRIEND]->() WITH collect(r) AS friendships DETACH DELETE friendships[$friendIndex]
CREATE (:User), (:User)
MATCH (u:User) WITH {key: u} AS nodes DELETE nodes.key
CREATE (a:User), (b:User) CREATE (a)-[:R]->(b) CREATE (b)-[:R]->(a)
MATCH (:User)-[r]->(:User) WITH {key: r} AS rels DELETE rels.key
MATCH (u:User) WITH {key: collect(u)} AS nodeMap DETACH DELETE nodeMap.key[0]
MATCH (:User)-[r]->(:User) WITH {key: {key: collect(r)}} AS rels DELETE rels.key.key[0]
MATCH p = (:User)-[r]->(:User) WITH {key: collect(p)} AS pathColls DELETE pathColls.key[0], pathColls.key[1]
MATCH (a) DELETE x
MATCH () DELETE 1 + 1
CREATE (:A), (:B)
MATCH (a:A), (b:B) MERGE (a)-[:KNOWS]->(b) ON CREATE SET b.created = 1
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE]->(b) ON CREATE SET r.name = 'Lola' RETURN count(r)
CREATE (:A {name: 'A'}), (:B {name: 'B'})
MATCH (a {name: 'A'}), (b {name: 'B'}) MERGE (a)-[r:TYPE]->(b) ON CREATE SET r.name = 'foo'
MATCH ()-[r:TYPE]->() RETURN [key IN keys(r) | key + '->' + r[key]] AS keyValue
MATCH (a {name: 'A'}), (b {name: 'B'}) MERGE (a)-[r:TYPE]->(b) ON CREATE SET r.name = null
MATCH (a {name: 'A'}), (b {name: 'B'}) MERGE (a)-[r:TYPE]->(b) ON CREATE SET r = a
MATCH (a {name: 'A'}), (b {name: 'B'}) MERGE (a)-[r:TYPE]->(b) ON CREATE SET r += {name: 'bar', name2: 'baz'}
MATCH (a:A), (b:B) MERGE (a)-[:KNOWS]->(b) ON MATCH SET b.created = 1
MATCH (a:A), (b:B) MERGE (a)-[r:KNOWS]->(b) ON MATCH SET r.created = 1
CREATE (a:A), (b:B) CREATE (a)-[:TYPE]->(b)
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE]->(b) ON MATCH SET r.name = 'Lola' RETURN count(r)
MATCH (a:A), (b:B) CREATE (a)-[:TYPE {name: 'bar'}]->(b)
MATCH (a {name: 'A'}), (b {name: 'B'}) MERGE (a)-[r:TYPE]->(b) ON MATCH SET r = a
MATCH (a {name: 'A'}), (b {name: 'B'}) MERGE (a)-[r:TYPE]->(b) ON MATCH SET r += {name: 'baz', name2: 'baz'}
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE]->(b) RETURN count(*)
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE]->(b) RETURN count(r)
CREATE (a:A), (b:B) CREATE (a)-[:TYPE]->(b) CREATE (a)-[:TYPE]->(b)
CREATE (a), (b) MERGE (a)-[:X]->(b) RETURN count(a)
CREATE (a:A), (b:B) CREATE (a)-[:TYPE {name: 'r1'}]->(b) CREATE (a)-[:TYPE {name: 'r2'}]->(b)
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE {name: 'r2'}]->(b) RETURN count(r)
CREATE (a:A), (b:B) CREATE (a)-[:TYPE {name: 'r1'}]->(b)
CREATE (a:A), (b:B) CREATE (b)-[:TYPE]->(a) CREATE (a)-[:TYPE]->(b)
MATCH (a:A), (b:B) MERGE (a)<-[r:TYPE]-(b) RETURN count(r)
CREATE (a:A), (b:B)
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE {name: 'Lola'}]->(b) RETURN count(r)
MERGE (a:A) MERGE (b:B) MERGE (a)-[:FOO]->(b)
MERGE (a {num: 1}) MERGE (b {num: 2}) MERGE p = (a)-[:R]->(b) RETURN p
CREATE (a {id: 2}), (b {id: 1}) MERGE (a)-[r:KNOWS]-(b) RETURN startNode(r).id AS s, endNode(r).id AS e
CREATE (a {id: 1}), (b {id: 2}) CREATE (a)-[:KNOWS]->(b)
MATCH (a {id: 2}), (b {id: 1}) MERGE (a)-[r:KNOWS]-(b) RETURN r
CREATE (a {id: 2}), (b {id: 1}), (c {id: 1}), (d {id: 2}) CREATE (a)-[:KNOWS {name: 'ab'}]->(b) CREATE (c)-[:KNOWS {name: 'cd'}]->(d)
MATCH (a {id: 2})--(b {id: 1}) MERGE (a)-[r:KNOWS]-(b) RETURN r
CREATE (a:Foo), (b:Bar) WITH a, b UNWIND ['a,b', 'a,b'] AS str WITH a, b, split(str, ',') AS roles MERGE (a)-[r:FB {foobar: roles}]->(b) RETURN count(*)
CREATE (a:A), (b:B) CREATE (a)-[:T {numbers: [42, 43]}]->(b)
MATCH (a:A), (b:B) MERGE (a)-[r:T {numbers: [42, 43]}]->(b) RETURN count(*)
MATCH (n) MATCH (m) WITH n AS a, m AS b MERGE (a)-[r:T]->(b) RETURN a.id AS a, b.id AS b
MATCH (n) WITH n AS a, n AS b MERGE (a)-[r:T]->(b) RETURN a.id AS a
MATCH (n) MATCH (m) WITH n AS a, m AS b MERGE (a)-[:T]->(b) WITH a AS x, b AS y MERGE (a) MERGE (b) MERGE (a)-[:T]->(b) RETURN x.id AS x, y.id AS y
MATCH (n) WITH n AS a MERGE (c) MERGE (a)-[:T]->(c) WITH a AS x MERGE (c) MERGE (x)-[:T]->(c) RETURN x.id AS x
CREATE (a:A) CREATE (b1:B {num: 0}), (b2:B {num: 1}) CREATE (c1:C), (c2:C) CREATE (a)-[:REL]->(b1), (a)-[:REL]->(b2), (b1)-[:REL]->(c1), (b2)-[:REL]->(c2)
MATCH (a:A)-[ab]->(b:B)-[bc]->(c:C) DELETE ab, bc, b, c MERGE (newB:B {num: 1}) MERGE (a)-[:REL]->(newB) MERGE (newC:C) MERGE (newB)-[:REL]->(newC)
CREATE (a:A), (b:B) CREATE (a)-[:T {name: 'rel1'}]->(b), (a)-[:T {name: 'rel2'}]->(b)
MATCH (a)-[t:T]->(b) DELETE t MERGE (a)-[t2:T {name: 'rel3'}]->(b) RETURN t2.name
CREATE (a:Foo) MERGE (a)-[r:KNOWS]->(a:Bar)
CREATE (a), (b) MERGE (a)-->(b)
MATCH (a), (b) MERGE (a)-[NO_COLON]->(b)
CREATE (a), (b) MERGE (a)-[:A|:B]->(b)
MATCH (a)-[r]->(b) MERGE (a)-[r]->(b)
MERGE (a) MERGE (b) MERGE (a)-[r:FOO $param]->(b) RETURN r
MERGE (a) MERGE (b) MERGE (a)-[:FOO*2]->(b)
CREATE (a), (b) MERGE (a)-[r:X {num: null}]->(b)
CREATE (), ()
MATCH () MERGE (a:L) ON MATCH SET a:M1 ON CREATE SET a:M2
CREATE (:Person {bornIn: 'New York'}), (:Person {bornIn: 'Ohio'})
MATCH (person:Person) MERGE (city:City) ON MATCH SET city.name = person.bornIn ON CREATE SET city.name = person.bornIn RETURN person.bornIn
CREATE (a:A {id: 1}), (b:B {id: 2}) CREATE (a)-[:TYPE]->(b) CREATE (:A {id: 3}), (:B {id: 4})
MATCH (a:A), (b:B) MERGE (a)-[r:TYPE]->(b) ON CREATE SET r.name = 'Lola' ON MATCH SET r.name = 'RUN' RETURN count(r)
MERGE (a) RETURN count(*) AS n
MERGE (a:TheLabel) RETURN labels(a)
CREATE (:TheLabel {id: 1})
MERGE (a:TheLabel) RETURN a.id
MERGE (a {num: 43}) RETURN a.num
CREATE (:TheLabel {num: 42})
MERGE (a:TheLabel {num: 43}) RETURN a.num
MERGE (a:TheLabel {num: 42}) RETURN a.num
CREATE (:X) CREATE (:X) MERGE (:X)
CREATE ({var: 42}), ({var: 'not42'})
WITH 42 AS var MERGE (c:N {var: var})
UNWIND [0, 1, 2] AS x UNWIND [0, 1, 2] AS y CREATE ({x: x, y: y})
MATCH (foo) WITH foo.x AS x, foo.y AS y MERGE (:N {x: x, y: y + 1}) MERGE (:N {x: x, y: y}) MERGE (:N {x: x + 1, y: y}) RETURN x, y
CREATE (:L:A {num: 42})
MERGE (test:L:B {num: 42}) RETURN labels(test) AS labels
CREATE (:Person {name: 'A', bornIn: 'New York'}) CREATE (:Person {name: 'B', bornIn: 'Ohio'}) CREATE (:Person {name: 'C', bornIn: 'New Jersey'}) CREATE (:Person {name: 'D', bornIn: 'New York'}) CREATE (:Person {name: 'E', bornIn: 'Ohio'}) CREATE (:Person {name: 'F', bornIn: 'New Jersey'})
MATCH (person:Person) MERGE (city:City {name: person.bornIn})
CREATE (a {num: 1}) MERGE ({v: a.num})
MERGE p = (a {num: 1}) RETURN p
CREATE (:A {num: 1}), (:A {num: 2})
MATCH (a:A) DELETE a MERGE (a2:A) RETURN a2.num
MATCH (a) MERGE (a)
MERGE (n $param) RETURN n
MERGE ({num: null})
UNWIND [1, 2, 3, 4] AS int MERGE (n {id: int}) RETURN count(*)
UNWIND ['Keanu Reeves', 'Hugo Weaving', 'Carrie-Anne Moss', 'Laurence Fishburne'] AS actor MERGE (m:Movie {name: 'The Matrix'}) MERGE (p:Person {name: actor}) MERGE (p)-[:ACTED_IN]->(m)
CREATE (a:A), (b:B) MERGE (a)-[:KNOWS]->(b) CREATE (b)-[:KNOWS]->(c:C) RETURN count(*)
CREATE (:A {num: 42})
UNWIND [42] AS props WITH props WHERE props > 32 WITH DISTINCT props AS p MERGE (a:A {num: p}) RETURN a.num AS prop
MERGE (a:TheLabel) ON CREATE SET a:Foo RETURN labels(a)
MERGE (b) ON CREATE SET b.created = 1
MERGE (a:TheLabel) ON CREATE SET a.num = 42 RETURN a.num
MATCH (person:Person) MERGE (city:City) ON CREATE SET city.name = person.bornIn RETURN person.bornIn
MERGE (n) ON CREATE SET x.num = 1
MERGE (a) ON MATCH SET a:L
MERGE (a:TheLabel) ON MATCH SET a:Foo RETURN labels(a)
MERGE (a:TheLabel) ON MATCH SET a.num = 42 RETURN a.num
MATCH (person:Person) MERGE (city:City) ON MATCH SET city.name = person.bornIn RETURN person.bornIn
MERGE (n) ON MATCH SET x.num = 1
MATCH (a) WITH a MATCH (b) RETURN a, b
CREATE (a:A), (b:B) CREATE (a)-[:T1]->(b), (b)-[:T2]->(a)
MATCH (a) MERGE (b) WITH * OPTIONAL MATCH (a)--(b) RETURN count(*)
CREATE (andres {name: 'Andres'}), (michael {name: 'Michael'}), (peter {name: 'Peter'}), (bread {type: 'Bread'}), (veggies {type: 'Veggies'}), (meat {type: 'Meat'}) CREATE (andres)-[:ATE {times: 10}]->(bread), (andres)-[:ATE {times: 8}]->(veggies), (michael)-[:ATE {times: 4}]->(veggies), (michael)-[:ATE {times: 6}]->(bread), (michael)-[:ATE {times: 9}]->(meat), (peter)-[:ATE {times: 7}]->(veggies), (peter)-[:ATE {times: 7}]->(bread), (peter)-[:ATE {times: 4}]->(meat)
MATCH ()-->() WITH 1 AS x MATCH ()-[r1]->()<--() RETURN sum(r1.times)
MATCH (n) RETURN n
CREATE (:A), (:B {name: 'b'}), ({name: 'c'})
CREATE (:A:B:C), (:A:B), (:A:C), (:B:C), (:A), (:B), (:C), ({name: ':A:B:C'}), ({abc: 'abc'}), ()
MATCH (a:A:B) RETURN a
CREATE ({name: 'bar'}), ({name: 'monkey'}), ({firstname: 'bar'})
MATCH (n {name: 'bar'}) RETURN n
CREATE ({num: 1}), ({num: 2}), ({num: 3})
MATCH (n), (m) RETURN n.num AS n, m.num AS m
MATCH (n $param) RETURN n
MATCH <pattern> MATCH (r) RETURN r
MATCH <pattern> RETURN r
WITH <invalid> AS n MATCH (n) RETURN n
CREATE (a), (b), (c) CREATE (a)-[:T]->(b)
MATCH ()-[r*0..1]-() RETURN last(r) AS l
MATCH (a)-[r:REL*2..2]->(b:End) RETURN r
CREATE (a:End)-[:REL {num: 1}]->(b:B)-[:REL {num: 2}]->(c:End)
MATCH (a)-[r:REL*2..2]-(b:End) RETURN r
MATCH (a:Start)-[r:REL*2..2]-(b) RETURN r
CREATE (a:Blue), (b:Red), (c:Green), (d:Yellow) CREATE (a)-[:T]->(b), (b)-[:T]->(c), (b)-[:T]->(d)
MATCH (a:Blue)-[r*]->(b:Green) RETURN count(r)
CREATE (a:A), (b:B), (c:C) CREATE (a)-[:Y]->(b), (b)-[:Y]->(c)
MATCH (a)-[r1]->()-[r2]->(b) WITH [r1, r2] AS rs, a AS first, b AS second LIMIT 1 MATCH (first)-[rs*]->(second) RETURN first, second
MATCH (a)-[r1]->()-[r2]->(b) WITH [r1, r2] AS rs, a AS second, b AS first LIMIT 1 MATCH (first)-[rs*]->(second) RETURN first, second
MATCH (a:A), (b:B) OPTIONAL MATCH (a)-[r*]-(b) WHERE r IS NULL AND a <> b RETURN b
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}) CREATE (a)-[:X]->(b)
MATCH (a {name: 'A'}), (x) WHERE x.name IN ['B', 'C'] OPTIONAL MATCH p = (a)-[r*]->(x) RETURN r, x, p
MATCH ()-[r]->() RETURN r
CREATE (:A)-[:T1]->(:B), (:B)-[:T2]->(:A), (:B)-[:T3]->(:B), (:A)-[:T4]->(:A)
MATCH (:A)-[r]->(:B) RETURN r
CREATE (a) CREATE (a)-[:T]->(a)
MATCH ()-[r]-() RETURN type(r) AS r
MATCH ()-[r]->() RETURN type(r) AS r
CREATE (:A)<-[:KNOWS {name: 'monkey'}]-()-[:KNOWS {name: 'woot'}]->(:B)
MATCH (node)-[r:KNOWS {name: 'monkey'}]->(a) RETURN a
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}), (a)-[:KNOWS]->(b), (a)-[:HATES]->(c), (a)-[:WONDERS]->(c)
MATCH (n)-[r:KNOWS|HATES]->(x) RETURN r
MATCH (a1)-[r:T]->() WITH r, a1 MATCH (a1)-[r:Y]->(b2) RETURN a1, r, b2
MATCH ()-[r:FOO $param]->() RETURN r
MATCH <pattern> MATCH ()-[r]-() RETURN r
WITH <invalid> AS r MATCH ()-[r]-() RETURN r
CREATE (a:A {num: 1})-[:KNOWS]->(b:B {num: 2})
MATCH (n1)-[rel:KNOWS]->(n2) RETURN n1, n2
MATCH (a)-[r]->(b) RETURN a, r, b
MATCH (a)-[r]-(b) RETURN a, r, b
CREATE (a:A {num: 1}), (a)-[:KNOWS]->(b:B {num: 2}), (a)-[:KNOWS]->(c:C {num: 3})
MATCH ()-[rel:KNOWS]->(x) RETURN x
CREATE (a:A {num: 1})-[:REL {name: 'r'}]->(b:B {num: 2})
MATCH (a)-[r {name: 'r'}]-(b) RETURN a, b
CREATE (a), (b1:Foo), (b2) CREATE (a)-[:T]->(b1), (a)-[:T]->(b2)
MATCH (a)-->(b:Foo) RETURN b
CREATE (a:A:B:C:D:E:F:G:H:I:J:K:L:M), (b:U:V:W:X:Y:Z) CREATE (a)-[:T]->(b)
MATCH (n:A:B:C:D:E:F:G:H:I:J:K:L:M)-[:T]->(m:Z:Y:X:W:V:U) RETURN n, m
MATCH (a)-[:T|:T]->(b) RETURN b
CREATE (a:A {num: 1})-[:KNOWS]->(b:B {num: 2})-[:FRIEND]->(c:C {num: 3})
MATCH (n)-->(a)-->(b) RETURN b
CREATE (a), (b), (c) CREATE (a)-[:T]->(b), (b)-[:T]->(c)
MATCH (a)-->(b), (b)-->(b) RETURN b
MATCH (n)-[r]-(n) RETURN n, r
MATCH (n)-[r]->(n) RETURN n, r
MATCH (x:A)-[r1]->(y)-[r2]-(z) RETURN x, r1, y, r2, z
MATCH (x)-[r1]-(y)-[r2]-(z) RETURN x, r1, y, r2, z
CREATE (a {name: 'a'}), (b {name: 'b'}), (c {name: 'c'}) CREATE (a)-[:A]->(b), (b)-[:B]->(a), (b)-[:B]->(c)
MATCH (a)-[:A]->()-[:B]->(a) RETURN a.name
MATCH (a)-[:A]->(b), (b)-[:B]->(a) RETURN a.name
CREATE (a {name: 'A'}), (b {name: 'B'}), (x1 {name: 'x1'}), (x2 {name: 'x2'}) CREATE (a)-[:KNOWS]->(x1), (a)-[:KNOWS]->(x2), (b)-[:KNOWS]->(x1), (b)-[:KNOWS]->(x2)
MATCH (a {name: 'A'}), (b {name: 'B'}) MATCH (a)-->(x)<-->(b) RETURN x
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}), (x1 {name: 'x1'}), (x2 {name: 'x2'}) CREATE (a)-[:KNOWS]->(x1), (a)-[:KNOWS]->(x2), (b)-[:KNOWS]->(x1), (b)-[:KNOWS]->(x2), (c)-[:KNOWS]->(x1), (c)-[:KNOWS]->(x2)
MATCH (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}) MATCH (a)-->(x), (b)-->(x), (c)-->(x) RETURN x
CREATE (a {name: 'a'}), (b {name: 'b'}), (c {name: 'c'}), (d {name: 'd'}), (e {name: 'e'}), (f {name: 'f'}), (g {name: 'g'}), (h {name: 'h'}), (i {name: 'i'}), (j {name: 'j'}), (k {name: 'k'}) CREATE (a)-[:KNOWS]->(d), (a)-[:KNOWS]->(e), (a)-[:KNOWS]->(f), (a)-[:KNOWS]->(g), (a)-[:KNOWS]->(i), (b)-[:KNOWS]->(d), (b)-[:KNOWS]->(e), (b)-[:KNOWS]->(f), (b)-[:KNOWS]->(h), (b)-[:KNOWS]->(k), (c)-[:KNOWS]->(d), (c)-[:KNOWS]->(e), (c)-[:KNOWS]->(h), (c)-[:KNOWS]->(g), (c)-[:KNOWS]->(j)
MATCH (a {name: 'a'}), (b {name: 'b'}), (c {name: 'c'}) MATCH (a)-->(x), (b)-->(x), (c)-->(x) RETURN x
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}) CREATE (a)-[:KNOWS]->(b)
MATCH (a {name: 'A'}), (c {name: 'C'}) MATCH (a)-->(b) RETURN a, b, c
CREATE (a:A), (b:B), (c:C) CREATE (a)-[:T]->(b), (a)-[:T]->(c)
MATCH (a)-->(b) MATCH (c)-->(d) RETURN a, b, c, d
MATCH (a1)-[r:T]->() WITH r, a1 MATCH (a1)-[r:T]->(b2) RETURN a1, r, b2
MATCH (a1)-[r]->() WITH r, a1 MATCH (a1:X)-[r]->(b2) RETURN a1, r, b2
CREATE (:X:Y)-[:T]->()
MATCH (a1:X:Y)-[r]->() WITH r, a1 MATCH (a1:Y)-[r]->(b2) RETURN a1, r, b2
OPTIONAL MATCH (a) WITH a MATCH (a)-->(b) RETURN b
OPTIONAL MATCH (a:TheLabel) WITH a MATCH (a)-->(b) RETURN b
MATCH (a)-[r]->()-[r]->(a) RETURN r
MATCH (n) WITH [n] AS users MATCH (users)-->(messages) RETURN messages
MATCH p = (a) RETURN p
CREATE (a:A {name: 'A'})-[:KNOWS]->(b:B {name: 'B'})
MATCH p = (a {name: 'A'})-->(b) RETURN p
CREATE (a:A {name: 'A'})-[:KNOWS]->(b:B {name: 'B'})-[:KNOWS]->(c:C {name: 'C'})
MATCH p = (a {name: 'A'})-[rel1]->(b)-[rel2]->(c) RETURN p
CREATE (a {name: 'a'}), (b {name: 'b'}) CREATE (a)-[:T]->(b)
MATCH p = ({name: 'a'})<--({name: 'b'}) RETURN p
CREATE (:Label1)<-[:TYPE]-(:Label2)
MATCH p = (a:Label1)<--(:Label2) RETURN p
CREATE (a:A)-[:T]->(b:B)
MATCH p = (b)<--(a) RETURN p
MATCH p = ({name: 'a'})-->({name: 'b'}) RETURN p
CREATE (a), (b) CREATE (a)-[:T]->(b), (b)-[:T]->(a)
MATCH p = (n)-->(k)<--(n) RETURN p
CREATE (:Label1)<-[:T1]-(:Label2)-[:T2]->(:Label3)
MATCH p = (a:Label1)<--(:Label2)--() RETURN p
CREATE (a:A), (b:B), (c:C) CREATE (b)-[:T]->(a), (c)-[:T]->(b)
MATCH p = (n)-->(m)--(o) RETURN p
CREATE (a:A), (b:B), (c:C), (d:D) CREATE (b)-[:T]->(a), (c)-[:T]->(b), (d)-[:T]->(c)
MATCH path = (n)-->(m)--(o)--(p) RETURN path
MATCH p=(n)<-->(k)<-->(n) RETURN p
MATCH p = (n)<-->(k)<--(n) RETURN p
CREATE (db1:Start), (db2:End), (mid), (other) CREATE (mid)-[:CONNECTED_TO]->(db1), (mid)-[:CONNECTED_TO]->(db2), (mid)-[:CONNECTED_TO]->(db2), (mid)-[:CONNECTED_TO]->(other), (mid)-[:CONNECTED_TO]->(other)
MATCH topRoute = (:Start)<-[:CONNECTED_TO]-()-[:CONNECTED_TO*3..3]-(:End) RETURN topRoute
MATCH p = ()-[*0..]->() RETURN p
CREATE (a:A {name: 'A'})-[:KNOWS {num: 1}]->(b:B {name: 'B'})-[:KNOWS {num: 2}]->(c:C {name: 'C'})
MATCH p = (n {name: 'A'})-[:KNOWS*1..2]->(x) RETURN p
CREATE (a:A {name: 'A'})-[:KNOWS]->(b:B {name: 'B'})-[:FRIEND]->(c:C {name: 'C'})
MATCH p = (a {name: 'A'})-[:KNOWS*0..1]->(b)-[:FRIEND*0..1]->(c) RETURN p
CREATE (a:Movie), (b) CREATE (b)-[:T]->(a)
MATCH p = (n:Movie)--(m) RETURN p LIMIT 1
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}) CREATE (a)-[:KNOWS]->(b), (b)-[:KNOWS]->(c)
MATCH p = ({name: 'A'})-[:KNOWS*..2]->() RETURN p
MATCH p = ({name: 'A'})-[:KNOWS*..]->() RETURN p
MATCH <pattern> MATCH p = ()-[]-() RETURN p
MATCH <pattern> RETURN p
WITH <invalid> AS p MATCH p = ()-[]-() RETURN p
OPTIONAL MATCH (n) RETURN n
MATCH (n) OPTIONAL MATCH (n)-[:NOT_EXIST]->(x) RETURN n, x
MATCH (a:A), (b:C) OPTIONAL MATCH (x)-->(b) RETURN x
MATCH (a1)-[r]->() WITH r, a1 LIMIT 1 OPTIONAL MATCH (a1)<-[r]-(b2) RETURN a1, r, b2
MATCH ()-[r]->() WITH r LIMIT 1 OPTIONAL MATCH (a2)-[r]->(b2) RETURN a2, r, b2
MATCH (a1)-[r]->() WITH r, a1 LIMIT 1 OPTIONAL MATCH (a1)-[r]->(b2) RETURN a1, r, b2
MATCH (a {name: 'A'}) OPTIONAL MATCH (a)-[:KNOWS]->()-[:KNOWS]->(foo) RETURN foo
MATCH (a:A), (c:C) OPTIONAL MATCH (a)-->(b)-->(c) RETURN b
MATCH (a:Single), (c:C) OPTIONAL MATCH (a)-->(b)-->(c) RETURN b
OPTIONAL MATCH (a) WITH a OPTIONAL MATCH (a)-->(b) RETURN b
CREATE (a:A {num: 1})-[:REL {name: 'r1'}]->(b:B {num: 2})-[:REL {name: 'r2'}]->(c:C {num: 3})
MATCH (a)-[r {name: 'r1'}]-(b) OPTIONAL MATCH (b)-[r2]-(c) WHERE r <> r2 RETURN a, b, c
MATCH (a:Single) OPTIONAL MATCH (a)-[*]->(b) RETURN b
MATCH (a:Single), (x:C) OPTIONAL MATCH (a)-[*]->(x) RETURN x
MATCH (a:Single) OPTIONAL MATCH (a)-[*3..]-(b) RETURN b
MATCH (a:A) OPTIONAL MATCH (a)-[:FOO]->(b:B) OPTIONAL MATCH (b)<-[:BAR*]-(c:B) RETURN a, b, c
MATCH (a:A) OPTIONAL MATCH p = (a)-[:X]->(b) RETURN p
MATCH (a {name: 'A'}), (x) WHERE x.name IN ['B', 'C'] OPTIONAL MATCH p = (a)-->(x) RETURN x, p
MATCH (a:A), (b:B) OPTIONAL MATCH p = (a)-[:X]->(b) RETURN p
CREATE (a {name: 'A'}), (b {name: 'B'}) CREATE (a)-[:X]->(b)
MATCH (a {name: 'A'}) OPTIONAL MATCH p = (a)-->(b)-[*]->(c) RETURN p
MATCH (a:A), (b:B) OPTIONAL MATCH p = (a)-[*]->(b) RETURN p
OPTIONAL MATCH (a:NotThere) OPTIONAL MATCH (b:NotThere) WITH a, b OPTIONAL MATCH (b)-[r:NOR_THIS]->(a) RETURN a, b, r
MATCH (a:Single) OPTIONAL MATCH (a)-->(b:NonExistent) OPTIONAL MATCH (a)-->(c:NonExistent) WITH coalesce(b, c) AS x MATCH (x)-->(d) RETURN d
CREATE (:X), (x:X), (y1:Y), (y2:Y:Z) CREATE (x)-[:REL]->(y1), (x)-[:REL]->(y2)
MATCH (a:X) OPTIONAL MATCH (a)-->(b:Y) RETURN b
MATCH (a:B) OPTIONAL MATCH (a)-[r]-(a) RETURN r
MATCH (a) WHERE NOT (a:B) OPTIONAL MATCH (a)-[r]->(a) RETURN r
MATCH (a:A), (b:B) OPTIONAL MATCH (a)-->(x) OPTIONAL MATCH (x)-[r]->(b) RETURN x, r
OPTIONAL MATCH (a:NotThere) WITH a MATCH (b:B) WITH a, b OPTIONAL MATCH (b)-[r:NOR_THIS]->(a) RETURN a, b, r
MATCH (n:Single) OPTIONAL MATCH (n)-[r]-(m:NonExistent) RETURN r
CREATE (a:Player), (b:Team) CREATE (a)-[:PLAYS_FOR]->(b), (a)-[:SUPPORTS]->(b)
MATCH (p:Player)-[:PLAYS_FOR]->(team:Team) OPTIONAL MATCH (p)-[s:SUPPORTS]->(team) RETURN count(*) AS matches, s IS NULL AS optMatch
CREATE (a:Player), (b:Team) CREATE (a)-[:PLAYS_FOR]->(b)
CREATE (a:Player), (b:Team), (c:Team) CREATE (a)-[:PLAYS_FOR]->(b), (a)-[:SUPPORTS]->(c)
CREATE (n0:A {name: 'n0'}), (n00:B {name: 'n00'}), (n01:B {name: 'n01'}), (n000:C {name: 'n000'}), (n001:C {name: 'n001'}), (n010:C {name: 'n010'}), (n011:C {name: 'n011'}), (n0000:D {name: 'n0000'}), (n0001:D {name: 'n0001'}), (n0010:D {name: 'n0010'}), (n0011:D {name: 'n0011'}), (n0100:D {name: 'n0100'}), (n0101:D {name: 'n0101'}), (n0110:D {name: 'n0110'}), (n0111:D {name: 'n0111'}) CREATE (n0)-[:LIKES]->(n00), (n0)-[:LIKES]->(n01), (n00)-[:LIKES]->(n000), (n00)-[:LIKES]->(n001), (n01)-[:LIKES]->(n010), (n01)-[:LIKES]->(n011), (n000)-[:LIKES]->(n0000), (n000)-[:LIKES]->(n0001), (n001)-[:LIKES]->(n0010), (n001)-[:LIKES]->(n0011), (n010)-[:LIKES]->(n0100), (n010)-[:LIKES]->(n0101), (n011)-[:LIKES]->(n0110), (n011)-[:LIKES]->(n0111)
MATCH (a:A) MATCH (a)-[:LIKES*]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*..]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*0]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*1]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*2]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*0..2]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*1..2]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*0..0]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*1..1]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*2..2]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*2..1]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*1..0]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*..0]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*..1]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*..2]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*0..]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*1..]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*2..]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*0]->()-[:LIKES]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES]->()-[:LIKES*0]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*1]->()-[:LIKES]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES]->()-[:LIKES*1]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*2]->()-[:LIKES]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES]->()-[:LIKES*2]->(c) RETURN c.name
MATCH (d:D) CREATE (e1:E {name: d.name + '0'}), (e2:E {name: d.name + '1'}) CREATE (d)-[:LIKES]->(e1), (d)-[:LIKES]->(e2)
MATCH (a:A) MATCH (a)-[:LIKES]->()-[:LIKES*3]->(c) RETURN c.name
MATCH (a:A)-[r]->(b) DELETE r CREATE (b)-[:LIKES]->(a)
MATCH (a:A) MATCH (a)<-[:LIKES]-()-[:LIKES*3]->(c) RETURN c.name
MATCH (a)-[r]->(b) WHERE NOT a:A DELETE r CREATE (b)-[:LIKES]->(a)
MATCH (a:A) MATCH (a)-[:LIKES]->()<-[:LIKES*3]->(c) RETURN c.name
MATCH (a:A) MATCH (p)-[:LIKES*1]->()-[:LIKES]->()-[r:LIKES*2]->(c) RETURN c.name
MATCH (a:A) MATCH (p)-[:LIKES]->()-[:LIKES*2]->()-[r:LIKES]->(c) RETURN c.name
MATCH (a)-[r*1..1]->(b) RETURN r
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}), (d {name: 'D'}) CREATE (a)-[:CONTAINS]->(b), (b)-[:CONTAINS]->(c), (c)-[:CONTAINS]->(d)
MATCH (a {name: 'A'})-[*]->(x) RETURN x
CREATE (a {name: 'A'}), (b {name: 'B'}), (c {name: 'C'}), ({name: 'D'}), ({name: 'E'}) CREATE (a)-[:CONTAINS]->(b), (b)-[:FRIEND]->(c)
MATCH (a {name: 'A'})-[:CONTAINS*0..1]->(b)-[:FRIEND*0..1]->(c) RETURN a, b, c
CREATE (a {var: 'start'}), (b {var: 'end'}) WITH * UNWIND range(1, 20) AS i CREATE (n {var: i}) WITH a, b, [a] + collect(n) + [b] AS nodeList UNWIND range(0, size(nodeList) - 2, 1) AS i WITH nodeList[i] AS n1, nodeList[i+1] AS n2 CREATE (n1)-[:T]->(n2)
MATCH (n {var: 'start'})-[:T*]->(m {var: 'end'}) RETURN m
CREATE (a:Artist:A), (b:Artist:B), (c:Artist:C) CREATE (a)-[:WORKED_WITH {year: 1987}]->(b), (b)-[:WORKED_WITH {year: 1988}]->(c)
MATCH (a:Artist)-[:WORKED_WITH* {year: 1988}]->(b:Artist) RETURN *
CREATE (a:A), (b), (c) CREATE (a)-[:X]->(b), (b)-[:Y]->(c)
MATCH (a:A) MATCH (a)-[r*2]->() RETURN r
CREATE (n0:Node), (n1:Node), (n2:Node), (n3:Node), (n0)-[:EDGE]->(n1), (n1)-[:EDGE]->(n2), (n2)-[:EDGE]->(n3)
MATCH ()-[r:EDGE]-() MATCH p = (n)-[*0..1]-()-[r]-()-[*0..1]-(m) RETURN count(p) AS c
MATCH ()-[r1]->()-[r2]->() WITH [r1, r2] AS rs LIMIT 1 MATCH (first)-[rs*]->(second) RETURN first, second
MATCH (a:A) MATCH (a)-[:LIKES..]->(c) RETURN c.name
MATCH (a:A) MATCH (a)-[:LIKES*-2]->(c) RETURN c.name
CREATE ({name: 'A'}), ({name: 'B'}), ({name: 'C'}), ({name: 'D'}), ({name: 'E'})
MATCH (n) RETURN n ORDER BY n.name ASC SKIP 2
MATCH (n) RETURN n ORDER BY n.name ASC SKIP $skipAmount
UNWIND range(1, 10) AS i CREATE ({nr: i})
MATCH (n) WITH n SKIP toInteger(rand()*9) WITH count(*) AS count RETURN count > 0 AS nonEmpty
MATCH (n) WHERE 1 = 0 RETURN n SKIP 0
MATCH (n) RETURN n SKIP n.count
CREATE (s:Person {name: 'Steven'}), (c:Person {name: 'Craig'})
MATCH (p:Person) RETURN p.name AS name SKIP $_skip
MATCH (p:Person) RETURN p.name AS name SKIP -1
MATCH (p:Person) RETURN p.name AS name SKIP $_limit
MATCH (p:Person) RETURN p.name AS name SKIP 1.5
MATCH (n) RETURN n SKIP -1
UNWIND [1, 1, 1, 1, 1] AS i RETURN i LIMIT 2
MATCH (n) RETURN n ORDER BY n.name ASC LIMIT 2
MATCH (n) RETURN n LIMIT 0
MATCH (p:Person) RETURN p.name AS name ORDER BY p.name LIMIT 1
MATCH (p:Person) RETURN p.name AS name ORDER BY p.name LIMIT 0
UNWIND range(1, 3) AS i CREATE ({nr: i})
MATCH (n) WITH n LIMIT toInteger(ceil(1.7)) RETURN count(*) AS count
CREATE ({num: 1}), ({num: 3}), ({num: 2})
MATCH (foo) RETURN foo.num AS x ORDER BY x DESC LIMIT 4
CREATE (a:A), (n1 {num: 1}), (n2 {num: 2}), (m1), (m2) CREATE (a)-[:T]->(n1), (n1)-[:T]->(m1), (a)-[:T]->(n2), (n2)-[:T]->(m2)
MATCH (a:A)-->(n)-->(m) RETURN n.num, count(*) ORDER BY n.num LIMIT 1000
MATCH (n) RETURN n LIMIT n.count
MATCH (p:Person) RETURN p.name AS name LIMIT $_limit
MATCH (p:Person) RETURN p.name AS name ORDER BY name LIMIT $_limit
MATCH (n) RETURN n LIMIT -1
MATCH (p:Person) RETURN p.name AS name LIMIT -1
MATCH (n) RETURN n LIMIT 1.7
MATCH (p:Person) RETURN p.name AS name LIMIT 1.5
MATCH (n) RETURN n ORDER BY n.name ASC SKIP 2 LIMIT 2
MATCH (n) RETURN n ORDER BY n.name ASC SKIP $s LIMIT $l
UNWIND range(0, 15) AS i CREATE ({count: i})
MATCH (a) RETURN a.count ORDER BY a.count SKIP 10 LIMIT 10
MATCH (a), (b) WITH a, b WHERE a <> b RETURN a, b
CREATE (a:TheLabel {id: 0}), (b:TheLabel {id: 1}), (c:TheLabel {id: 2}) CREATE (a)-[:T]->(b), (b)-[:T]->(c)
MATCH (a), (b) WITH a, b WHERE a.id = 0 AND (a)-[:T]->(b:TheLabel) OR (a)-[:T*]->(b:MissingLabel) RETURN DISTINCT b
CREATE (root:Root {name: 'x'}), (child1:TextNode {var: 'text'}), (child2:IntNode {var: 0}) CREATE (root)-[:T]->(child1), (root)-[:T]->(child2)
MATCH (:Root {name: 'x'})-->(i:TextNode) WITH i WHERE i.var > 'te' RETURN i
MATCH (:Root {name: 'x'})-->(i:TextNode) WITH i WHERE i.var > 'te' AND i:TextNode RETURN i
MATCH (:Root {name: 'x'})-->(i:TextNode) WITH i WHERE i.var > 'te' AND i.var IS NOT NULL RETURN i
MATCH (:Root {name: 'x'})-->(i) WITH i WHERE i.var > 'te' OR i.var IS NOT NULL RETURN i
CREATE ({name2: 'A'}), ({name2: 'B'}), ({name2: 'C'})
MATCH (a) WITH a.name2 AS name WHERE a.name2 = 'B' RETURN *
MATCH (a) WITH a.name2 AS name WHERE name = 'B' RETURN *
MATCH (a) WITH a.name2 AS name WHERE name = 'B' OR a.name2 = 'C' RETURN *
CREATE (a {name: 'A'}), (b {name: 'B'}) CREATE (a)-[:REL]->(), (a)-[:REL]->(), (a)-[:REL]->(), (b)-[:REL]->()
MATCH (a)-->() WITH a, count(*) AS relCount WHERE relCount > 1 RETURN a
MATCH (a), (b) WITH a, b WHERE a = b RETURN a, b
CREATE (:A {id: 1}), (:A {id: 2}), (:B {id: 2}), (:B {id: 3})
MATCH (a:A), (b:B) WITH a, b WHERE a.id = b.id RETURN a, b
CREATE (a:A {animal: 'monkey'}), (b:B {animal: 'cow'}), (c:C {animal: 'monkey'}), (d:D {animal: 'cow'}), (a)-[:KNOWS]->(b), (a)-[:KNOWS]->(c), (d)-[:KNOWS]->(b), (d)-[:KNOWS]->(c)
MATCH (n)-[rel]->(x) WITH n, x WHERE n.animal = x.animal RETURN n, x
CREATE (a:A), (b:B {id: 1}), (c:C {id: 2}), (d:D) CREATE (a)-[:T]->(b), (a)-[:T]->(c), (a)-[:T]->(d), (b)-[:T]->(c), (b)-[:T]->(d), (c)-[:T]->(d)
MATCH (a)--(b)--(c)--(d)--(a), (b)--(d) WITH a, c, d WHERE a.id = 1 AND c.id = 2 RETURN d
CREATE (advertiser {name: 'advertiser1', id: 0}), (thing {name: 'Color', id: 1}), (red {name: 'red'}), (p1 {name: 'product1'}), (p2 {name: 'product4'}) CREATE (advertiser)-[:ADV_HAS_PRODUCT]->(p1), (advertiser)-[:ADV_HAS_PRODUCT]->(p2), (thing)-[:AA_HAS_VALUE]->(red), (p1)-[:AP_HAS_VALUE]->(red), (p2)-[:AP_HAS_VALUE]->(red)
MATCH (advertiser)-[:ADV_HAS_PRODUCT]->(out)-[:AP_HAS_VALUE]->(red)<-[:AA_HAS_VALUE]-(a) WITH a, advertiser, red, out WHERE advertiser.id = $1 AND a.id = $2 AND red.name = 'red' AND out.name = 'product1' RETURN out.name
CREATE ({name: 'A'}), ({name: 'B'}), ({name: 'C'})
MATCH (a) WITH a WHERE a.name = 'B' RETURN a
CREATE ({name2: 'A'}), ({name2: 'A'}), ({name2: 'B'})
MATCH (a) WITH DISTINCT a.name2 AS name WHERE a.name2 = 'B' RETURN *
CREATE (a:A), (b:B {id: 1}), (:B {id: 2}) CREATE (a)-[:T]->(b)
MATCH (a:A), (other:B) OPTIONAL MATCH (a)-[r]->(other) WITH other WHERE r IS NULL RETURN other
MATCH (other:B) OPTIONAL MATCH (a)-[r]->(other) WITH other WHERE a IS NULL RETURN other
CREATE (a:A), (), (), (), (a)-[:REL]->()
MATCH (a:A) WITH a ORDER BY a.name LIMIT 1 MATCH (a)-->(b) RETURN a
MATCH (a:Begin) WITH a.num AS property LIMIT 1 MATCH (b) WHERE b.id = property RETURN b
CREATE (:A)-[:REL]->(:X) CREATE (:B)
MATCH (n:A) WITH n LIMIT 1 MATCH (m:B), (n)-->(x:X) RETURN *
CREATE ()-[:T1 {num: 3}]->(x:X), ()-[:T2 {num: 2}]->(x), ()-[:T3 {num: 1}]->(:Y)
MATCH ()-[r1]->(x) WITH x, sum(r1.num) AS c ORDER BY c LIMIT 1 RETURN x, c
MATCH (n) WITH n ORDER BY n.name ASC SKIP 2 LIMIT 2 RETURN n
MATCH (n) WITH n ORDER BY n.name ASC SKIP $s LIMIT $l RETURN n
MATCH (a) WITH a.count AS count ORDER BY a.count SKIP 10 LIMIT 10 RETURN count
CREATE (a {name: 'A', num: 0, id: 0}), ({name: 'B', num: a.id, id: 1}), ({name: 'C', num: 0, id: 2})
MATCH (a) WITH a.name AS property, a.num AS idToUse ORDER BY property SKIP 1 MATCH (b) WHERE b.id = idToUse RETURN DISTINCT b
MATCH ()-[r1]->(x) WITH x, sum(r1.num) AS c ORDER BY c SKIP 1 RETURN x, c
CREATE ({numbers: [1, 2, 3]})
MATCH () RETURN foo
CREATE ({num: 43}), ({num: 42})
MATCH (n) WITH n WHERE n.num = 42 RETURN count(*)
MATCH (a) RETURN a.id IS NOT NULL AS a, a IS NOT NULL AS b
CREATE ({name: 'Philip J. Fry', age: 2046, seasons: [1, 2, 3, 4, 5, 6, 7]})
MATCH (a) RETURN a.name, a.age, a.seasons
MATCH (a)-[r]->() RETURN a AS foo, r AS bar
RETURN 1 + (2 - (3 * (4 / (5 ^ (6 % null))))) AS a
CREATE ({num: 1})
MATCH (a) RETURN a.num
MATCH (a) RETURN a.name
CREATE ()-[:T {num: 1}]->()
MATCH ()-[r]->() RETURN r.num
CREATE ()-[:T {name: 1}]->()
MATCH ()-[r]->() RETURN r.name2
MATCH (a) RETURN a.num + 1 AS foo
CREATE ({list1: [1, 2, 3], list2: [4, 5]})
MATCH (a) RETURN a.list2 + a.list1 AS foo
CREATE (), (:Foo)
MATCH (n) RETURN (n:Foo)
RETURN {a: 1, b: 'foo'}
MATCH (a) RETURN count(a) > 0
MATCH (p:TheLabel) RETURN p.id
MATCH (n)-[r]->(m) RETURN [n, r, m] AS r
MATCH (n)-[r]->(m) RETURN {node1: n, rel: r, node2: m} AS m
MATCH ()-[r]->() DELETE r RETURN type(r)
CREATE ({num: 0})
MATCH (n) DELETE n RETURN n.num
CREATE (:A)
MATCH (n) DELETE n RETURN labels(n)
CREATE ()-[:T {num: 0}]->()
MATCH ()-[r]->() DELETE r RETURN r.num
MATCH (a) RETURN foo(a)
CREATE (:Start)-[:T]->()
MATCH p = (a:Start)-->(b) RETURN *
MATCH () RETURN *
MATCH (n) RETURN n.num AS n, count(n) AS count
CREATE ({id: 42})
MATCH (a) RETURN a, count(a) + 3
CREATE ({a: [1, 2, 3]}), ({a: [1, 2, 3]})
MATCH (a) WITH a.num AS a, count(*) AS count RETURN count
UNWIND range(0, 7250) AS i CREATE ()
MATCH (n) RETURN count(n) / 60 / 60 AS count
UNWIND range(0, 10) AS i CREATE ()
MATCH (a) RETURN size(collect(a))
MATCH (a {name: 'Andres'})<-[:FATHER]-(child) RETURN a.name, {foo: a.name='Andres', kids: collect(child.name)}
CREATE ({num: 33}) CREATE ({num: 33}) CREATE ({num: 42})
MATCH (n) RETURN n.num, count(*)
CREATE (a:L), (b1), (b2) CREATE (a)-[:A]->(b1), (a)-[:A]->(b2)
MATCH p=(a:L)-[*]->(b) RETURN b, avg(length(p))
MATCH () RETURN count(*) * 10 AS c
MATCH (n) RETURN count(n), collect(n)
UNWIND range(1, 100) AS i CREATE ()
MATCH () RETURN count(*)
MATCH (a:L)-[rel]->(b) RETURN a, count(*)
CREATE (a:T {name: 'a'}), (b:T {name: 'b'}), (c:T {name: 'c'}) CREATE (a)-[:R]->(b) CREATE (a)-[:R]->(c) CREATE (c)-[:R]->(b)
MATCH p = (a:T {name: 'a'})-[:R*]->(other:T) WHERE other <> a WITH a, other, min(length(p)) AS len RETURN a.name AS name, collect(other.name) AS others, len
RETURN count(count(*))
RETURN count(rand())
MATCH (me)-[r1:ATE]->()<-[r2:ATE]-(you) WHERE me.name = 'Michael' WITH me, count(DISTINCT r1) AS H1, count(DISTINCT r2) AS H2, you MATCH (me)-[r1:ATE]->()<-[r2:ATE]-(you) RETURN me, you, sum((1 - abs(r1.times / H1 - r2.times / H2)) * (r1.times + r2.times) / (H1 + H2)) AS sum
MATCH (person) RETURN $age + avg(person.age) - 1000
MATCH (me: Person)--(you: Person) WITH me.age AS age, you RETURN age, age + count(you.age)
MATCH (me: Person)--(you: Person) RETURN me.age, me.age + count(you.age)
MATCH (me: Person)--(you: Person) RETURN me.age + count(you.age)
MATCH (me: Person)--(you: Person) RETURN me.age + you.age, me.age + you.age + count(*)
CREATE ({name: 'Someone'})
MATCH (a) WITH a.name AS a RETURN a
CREATE (:Singleton)
MATCH (a) RETURN a AS ColumnName
MATCH (a) RETURN a.id AS a, a.id
MATCH (n) RETURN cOuNt( * )
MATCH p = (n)-->(b) RETURN nOdEs( p )
MATCH p = (n)-->(b) RETURN coUnt( dIstInct p )
MATCH p = (n)-->(b) RETURN aVg(    n.aGe     )
MATCH () RETURN count(*) AS columnName
CREATE (:A), (:B {num: 42})
MATCH (a:A), (b:B) RETURN coalesce(a.num, b.num) AS foo, b.num AS bar, {name: count(b)} AS baz
RETURN 1 AS a, 2 AS a
MATCH (person:Person)<--(message)<-[like]-(:Person) WITH like.creationDate AS likeTime, person AS person ORDER BY likeTime, message.id WITH head(collect({likeTime: likeTime})) AS latestLike, person AS person RETURN latestLike.likeTime AS likeTime ORDER BY likeTime
MATCH (n) RETURN count(DISTINCT {name: n.list}) AS count
CREATE ({name: 'Florescu'}), (), ()
MATCH (n) RETURN DISTINCT n.name
MATCH (n) RETURN count(DISTINCT {name: [[n.list, n.list], [n.list, n.list]]}) AS count
MATCH (n) RETURN count(DISTINCT {name: [{name2: n.list}, {baz: {apa: n.list}}]}) AS count
CREATE ({color: ['red']}) CREATE ({color: ['blue']}) CREATE ({color: ['red']})
MATCH (a) RETURN DISTINCT a.color, count(*)
CALL test.my.proc(null)
CALL test.my.proc(null) YIELD out RETURN out
CALL test.my.proc(null) YIELD out RETURN *
CALL test.my.proc(null) YIELD <yield> RETURN a, b
CALL test.my.proc(null) YIELD <rename> RETURN <a>, <b>
CALL test.my.proc(null) YIELD a, b AS a RETURN a
CALL test.my.proc(null) YIELD a AS c, b AS c RETURN c
CALL test.my.proc('Stefan', 1) YIELD * RETURN city, country_code
CALL test.my.proc('Stefan', 1) YIELD *
CALL test.labels() YIELD label WITH count(*) AS c CALL test.labels() YIELD label RETURN *
CALL test.my.proc(null) YIELD out WITH out RETURN out
CALL test.my.proc(null) YIELD out WITH out AS a RETURN a
CALL test.my.proc(42)
CALL test.my.proc(42) YIELD out RETURN out
CALL test.my.proc(42.3)
CALL test.my.proc(42.3) YIELD out RETURN out
CALL test.my.proc('Stefan', 1) YIELD city, country_code RETURN city, country_code
CALL test.my.proc('Stefan', 1)
CALL test.my.proc
CALL test.my.proc YIELD out RETURN out
CALL test.my.proc(true)
CALL test.my.proc(true) YIELD out RETURN out
CALL test.doNothing()
CALL test.doNothing
MATCH (n) CALL test.doNothing() RETURN n
CREATE (:A {name: 'a'}) CREATE (:B {name: 'b'}) CREATE (:C {name: 'c'})
MATCH (n) CALL test.doNothing() RETURN n.name AS `name`
CALL test.labels()
CALL test.labels() YIELD label RETURN label
CALL test.my.proc('Dobby')
CALL test.my.proc('Dobby') YIELD out RETURN out
CALL test.my.proc(1, 2, 3, 4)
CALL test.my.proc(1, 2, 3, 4) YIELD out RETURN out
CALL test.my.proc(1) RETURN out
CALL test.my.proc() YIELD out RETURN out
WITH 'Hi' AS label CALL test.labels() YIELD label RETURN *
MATCH (n) CALL test.labels(count(n)) YIELD label RETURN label
RETURN 1 AS x UNION RETURN 2 AS x
RETURN 2 AS x UNION RETURN 1 AS x UNION RETURN 2 AS x
UNWIND [2, 1, 2, 3] AS x RETURN x UNION UNWIND [3, 4] AS x RETURN x
MATCH (a:A) RETURN a AS a UNION MATCH (b:B) RETURN b AS a
RETURN 1 AS a UNION RETURN 2 AS b
RETURN 1 AS x UNION ALL RETURN 2 AS x
RETURN 2 AS x UNION ALL RETURN 1 AS x UNION ALL RETURN 2 AS x
UNWIND [2, 1, 2, 3] AS x RETURN x UNION ALL UNWIND [3, 4] AS x RETURN x
MATCH (a:A) RETURN a AS a UNION ALL MATCH (b:B) RETURN b AS a
RETURN 1 AS a UNION ALL RETURN 2 AS b
RETURN 1 AS a UNION RETURN 2 AS a UNION ALL RETURN 3 AS a
RETURN 1 AS a UNION ALL RETURN 2 AS a UNION RETURN 3 AS a
UNWIND [1, 2, 3] AS x RETURN x
UNWIND range(1, 3) AS x RETURN x
WITH [1, 2, 3] AS first, [4, 5, 6] AS second UNWIND (first + second) AS x RETURN x
UNWIND RANGE(1, 2) AS row WITH collect(row) AS rows UNWIND rows AS x RETURN x
CREATE ({id: 1}), ({id: 2})
MATCH (row) WITH collect(row) AS rows UNWIND rows AS node RETURN node.id
CREATE (:Year {year: 2016})
UNWIND $events AS event MATCH (y:Year {year: event.year}) MERGE (e:Event {id: event.id}) MERGE (y)<-[:IN]-(e) RETURN e.id AS x ORDER BY x
WITH [[1, 2, 3], [4, 5, 6]] AS lol UNWIND lol AS x UNWIND x AS y RETURN y
UNWIND [] AS empty RETURN empty
UNWIND null AS nil RETURN nil
UNWIND [1, 1, 2, 2, 3, 3, 4, 4, 5, 5] AS duplicate RETURN duplicate
WITH [1, 2, 3] AS list UNWIND list AS x RETURN *
CREATE (s:S), (n), (e:E), (s)-[:X]->(e), (s)-[:Y]->(e), (n)-[:Y]->(e)
MATCH (a:S)-[:X]->(b1) WITH a, collect(b1) AS bees UNWIND bees AS b2 MATCH (a)-[:Y]->(b2) RETURN a, b2
WITH [1, 2] AS xs, [3, 4] AS ys, [5, 6] AS zs UNWIND xs AS x UNWIND ys AS y UNWIND zs AS z RETURN *
UNWIND $props AS prop MERGE (p:Person {login: prop.login}) SET p.name = prop.name RETURN p.name, p.login
CREATE (:A {name: 'Andres'})
MATCH (n:A) WHERE n.name = 'Andres' SET n.name = 'Michael' RETURN n
MATCH (n:A) WHERE n.name = 'Andres' SET n.name = n.name + ' was here' RETURN n
MATCH (n:A) SET (n).name = 'neo4j' RETURN n
CREATE ()-[:REL]->()
MATCH ()-[r:REL]->() SET (r).name = 'neo4j' RETURN r
MATCH (n:A) SET n.numbers = [1, 2, 3] RETURN [i IN n.numbers | i / 2.0] AS x
CREATE (a {numbers: [1, 2, 3]}) SET a.numbers = a.numbers + [4, 5] RETURN a.numbers
CREATE (a {numbers: [3, 4, 5]}) SET a.numbers = [1, 2] + a.numbers RETURN a.numbers
OPTIONAL MATCH (a:DoesNotExist) SET a.num = 42 RETURN a
MATCH (a) SET a.name = missing RETURN a
CREATE (a) SET a.maplist = [{num: 1}]
CREATE (:X)
MATCH (n:X) SET n.name = 'A', n.name2 = 'B', n.num = 5 RETURN n
MATCH (n) SET n:Foo RETURN n
MATCH (n) SET n:Foo:Bar RETURN n
MATCH (n:A) SET n:Foo RETURN n
MATCH (n) SET n :Foo RETURN labels(n)
MATCH (n) SET n :Foo :Bar RETURN labels(n)
MATCH (n) SET n :Foo:Bar RETURN labels(n)
OPTIONAL MATCH (a:DoesNotExist) SET a:L RETURN a
CREATE (:A {property1: 23, property2: 46})
MATCH (n:A) SET n.property1 = null RETURN n
CREATE (:A {name: 'Michael', age: 35})
MATCH (n) WHERE n.name = 'Michael' SET n.name = null RETURN n
CREATE ()-[:REL {property1: 12, property2: 24}]->()
MATCH ()-[r]->() SET r.property1 = null RETURN r
MATCH (n:N) SET n.num = 43 RETURN n LIMIT 0
MATCH (n:N) SET n.num = 43 RETURN n SKIP 1
MATCH (n:N) SET n.num = 42 RETURN n.num AS num SKIP 2 LIMIT 2
MATCH (n:N) SET n.num = 42 RETURN n.num AS num SKIP 0 LIMIT 5
MATCH (n:N) SET n.num = n.num + 1 WITH n WHERE n.num % 2 = 0 RETURN n.num AS num
MATCH (n:N) SET n.num = n.num + 1 RETURN sum(n.num) AS sum
MATCH (n:N) SET n.num = n.num + 1 WITH sum(n.num) AS sum RETURN sum
MATCH (n:N) SET n:Foo RETURN n LIMIT 0
MATCH (n:N) SET n:Foo RETURN n SKIP 1
MATCH (n:N) SET n:Foo RETURN n.num AS num SKIP 2 LIMIT 2
MATCH (n:N) SET n:Foo RETURN n.num AS num SKIP 0 LIMIT 5
MATCH (n:N) SET n:Foo WITH n WHERE n.num % 2 = 0 RETURN n.num AS num
MATCH (n:N) SET n:Foo RETURN sum(n.num) AS sum
MATCH (n:N) SET n:Foo WITH sum(n.num) AS sum RETURN sum
MATCH ()-[r:R]->() SET r.num = 43 RETURN r LIMIT 0
MATCH ()-[r:R]->() SET r.num = 43 RETURN r SKIP 1
MATCH ()-[r:R]->() SET r.num = 42 RETURN r.num AS num SKIP 2 LIMIT 2
MATCH ()-[r:R]->() SET r.num = 42 RETURN r.num AS num SKIP 0 LIMIT 5
MATCH ()-[r:R]->() SET r.num = r.num + 1 WITH r WHERE r.num % 2 = 0 RETURN r.num AS num
MATCH ()-[r:R]->() SET r.num = r.num + 1 RETURN sum(r.num) AS sum
MATCH ()-[r:R]->() SET r.num = r.num + 1 WITH sum(r.num) AS sum RETURN sum
MATCH (n:X) SET n = {name: 'A', name2: 'B', num: 5} RETURN n
CREATE (:X {name: 'A', name2: 'B'})
MATCH (n:X {name: 'A'}) SET n = {name: 'B', baz: 'C'} RETURN n
MATCH (n:X {name: 'A'}) SET n = {name: 'B', name2: null, baz: 'C'} RETURN n
MATCH (n:X {name: 'A'}) SET n = { } RETURN n
OPTIONAL MATCH (a:DoesNotExist) SET a = {num: 42} RETURN a
OPTIONAL MATCH (a:DoesNotExist) SET a += {num: 42} RETURN a
MATCH (n:X {name: 'A'}) SET n += {name2: 'C'} RETURN n
CREATE (:X {name: 'A'})
MATCH (n:X {name: 'A'}) SET n += {name2: 'B'} RETURN n
MATCH (n:X {name: 'A'}) SET n += {name: null} RETURN n
MATCH (n:X {name: 'A'}) SET n += { } RETURN n
CREATE (:Label)
CREATE (:Label), (:Label)
CREATE (:A:B:C:D)
CREATE (:B:A:D), (:B:C), (:D:E:B)
CREATE ({created: true})
CREATE (n {name: 'foo'}) RETURN n.name AS p
CREATE (n {id: 12, name: 'foo'})
CREATE (n {id: 12, name: 'foo'}) RETURN n.id AS id, n.name AS p
CREATE (n {id: 12, name: null}) RETURN n.id AS id, n.name AS p
CREATE (p:TheLabel {id: 4611686018427387905}) RETURN p.id
MATCH (a) CREATE (a)
MATCH (a) CREATE (a {name: 'foo'}) RETURN a
CREATE (n:Foo)-[:T1]->(), (n:Bar)-[:T2]->()
CREATE ()<-[:T2]-(n:Foo), (n:Bar)<-[:T1]-()
CREATE (n:Foo) CREATE (n:Bar)-[:OWNS]->(:Dog)
CREATE (n {}) CREATE (n:Bar)-[:OWNS]->(:Dog)
CREATE (n:Foo) CREATE (n {})-[:OWNS]->(:Dog)
CREATE (b {name: missing}) RETURN b
CREATE (a), (b), (a)-[:R]->(b)
CREATE (a) CREATE (b) CREATE (a)-[:R]->(b)
CREATE (:A)<-[:R]-(:B)
MATCH (a:A)<-[:R]-(b:B) RETURN a, b
CREATE (:X) CREATE (:Y)
MATCH (x:X), (y:Y) CREATE (x)-[:R]->(y)
MATCH (x:X), (y:Y) CREATE (x)<-[:R]-(y)
MATCH (x:X)<-[:R]-(y:Y) RETURN x, y
CREATE (root)-[:LINK]->(root)
CREATE (root), (root)-[:LINK]->(root)
CREATE (root) CREATE (root)-[:LINK]->(root)
CREATE (:Root)
MATCH (root:Root) CREATE (root)-[:LINK]->(root)
CREATE (:Begin)
MATCH (x:Begin) CREATE (x)-[:TYPE]->(:End)
MATCH (x:Begin)-[:TYPE]->(y:End) RETURN x, y
CREATE (:End)
MATCH (x:End) CREATE (:Begin)-[:TYPE]->(x)
CREATE ()-[:R {num: 42}]->()
CREATE ()-[r:R {num: 42}]->() RETURN r.num AS num
CREATE ()-[:R {id: 12, name: 'foo'}]->()
CREATE ()-[r:R {id: 12, name: 'foo'}]->() RETURN r.id AS id, r.name AS name
CREATE ()-[r:X {id: 12, name: null}]->() RETURN r.id, r.name AS name
CREATE ()-->()
CREATE (a)-[:FOO]-(b)
CREATE (a)<-[:FOO]->(b)
CREATE ()-[:A|:B]->()
CREATE ()-[:FOO*2]->()
MATCH ()-[r]->() CREATE ()-[r]->()
MATCH (a) CREATE (a)-[:KNOWS]->(b {name: missing}) RETURN b
MATCH () CREATE ()
MATCH () CREATE () WITH * CREATE ()
MATCH () CREATE () WITH * MATCH () CREATE ()
MATCH (n) MATCH (m) WITH n AS a, m AS b CREATE (a)-[:T]->(b) RETURN a, b
MATCH (n) WITH n AS a CREATE (a)-[:T]->() RETURN a
CREATE ({name: 'A'})
MATCH (n) MATCH (m) WITH n AS a, m AS b CREATE (a)-[:T]->(b) WITH a AS x, b AS y CREATE (x)-[:T]->(y) RETURN x, y
CREATE ({num: 5})
MATCH (n) WITH n AS a CREATE (a)-[:T]->() WITH a AS x CREATE (x)-[:T]->() RETURN x
CREATE (a) WITH a WITH * CREATE (b) CREATE (a)<-[:T]-(b)
CREATE (a) WITH a UNWIND [0] AS i CREATE (b) CREATE (a)<-[:T]-(b)
CREATE (a) WITH a MERGE () CREATE (b) CREATE (a)<-[:T]-(b)
CREATE (a) WITH a MERGE (x) MERGE (y) MERGE (x)-[:T]->(y) CREATE (b) CREATE (a)<-[:T]-(b)
MERGE (t:T {id: 42}) CREATE (f:R) CREATE (t)-[:REL]->(f)
CREATE (n:N {num: 42}) RETURN n LIMIT 0
CREATE (n:N {num: 42}) RETURN n SKIP 1
UNWIND [42, 42, 42, 42, 42] AS x CREATE (n:N {num: x}) RETURN n.num AS num SKIP 2 LIMIT 2
UNWIND [42, 42, 42, 42, 42] AS x CREATE (n:N {num: x}) RETURN n.num AS num SKIP 0 LIMIT 5
UNWIND [1, 2, 3, 4, 5] AS x CREATE (n:N {num: x}) WITH n WHERE n.num % 2 = 0 RETURN n.num AS num
UNWIND [1, 2, 3, 4, 5] AS x CREATE (n:N {num: x}) RETURN sum(n.num) AS sum
UNWIND [1, 2, 3, 4, 5] AS x CREATE (n:N {num: x}) WITH sum(n.num) AS sum RETURN sum
CREATE ()-[r:R {num: 42}]->() RETURN r LIMIT 0
CREATE ()-[r:R {num: 42}]->() RETURN r SKIP 1
UNWIND [42, 42, 42, 42, 42] AS x CREATE ()-[r:R {num: x}]->() RETURN r.num AS num SKIP 2 LIMIT 2
UNWIND [42, 42, 42, 42, 42] AS x CREATE ()-[r:R {num: x}]->() RETURN r.num AS num SKIP 0 LIMIT 5
UNWIND [1, 2, 3, 4, 5] AS x CREATE ()-[r:R {num: x}]->() WITH r WHERE r.num % 2 = 0 RETURN r.num AS num
UNWIND [1, 2, 3, 4, 5] AS x CREATE ()-[r:R {num: x}]->() RETURN sum(r.num) AS sum
UNWIND [1, 2, 3, 4, 5] AS x CREATE ()-[r:R {num: x}]->() WITH sum(r.num) AS sum RETURN sum
CREATE (:A)-[:R]->(:B)-[:R]->(:C)
MATCH (a:A)-[:R]->(b:B)-[:R]->(c:C) RETURN a, b, c
CREATE (:A)<-[:R]-(:B)<-[:R]-(:C)
MATCH (a)<-[:R]-(b)<-[:R]-(c) RETURN a, b, c
CREATE (:A)-[:R]->(:B)<-[:R]-(:C)
MATCH (a:A)-[r1:R]->(b:B)<-[r2:R]-(c:C) RETURN a, b, c
CREATE ()-[:R1]->()<-[:R2]-()-[:R3]->()
MATCH ()-[r1:R1]->()<-[r2:R2]-()-[r3:R3]->() RETURN r1, r2, r3
CREATE (:A)<-[:R1]-(:B)-[:R2]->(:C)
MATCH (a:A)<-[r1:R1]-(b:B)-[r2:R2]->(c:C) RETURN *
CREATE (theMatrix:Movie {title: 'The Matrix', released: 1999, tagline: 'Welcome to the Real World'}) CREATE (keanu:Person {name: 'Keanu Reeves', born: 1964}) CREATE (carrie:Person {name: 'Carrie-Anne Moss', born: 1967}) CREATE (laurence:Person {name: 'Laurence Fishburne', born: 1961}) CREATE (hugo:Person {name: 'Hugo Weaving', born: 1960}) CREATE (andyW:Person {name: 'Andy Wachowski', born: 1967}) CREATE (lanaW:Person {name: 'Lana Wachowski', born: 1965}) CREATE (joelS:Person {name: 'Joel Silver', born: 1952}) CREATE (keanu)-[:ACTED_IN {roles: ['Neo']}]->(theMatrix), (carrie)-[:ACTED_IN {roles: ['Trinity']}]->(theMatrix), (laurence)-[:ACTED_IN {roles: ['Morpheus']}]->(theMatrix), (hugo)-[:ACTED_IN {roles: ['Agent Smith']}]->(theMatrix), (andyW)-[:DIRECTED]->(theMatrix), (lanaW)-[:DIRECTED]->(theMatrix), (joelS)-[:PRODUCED]->(theMatrix) CREATE (emil:Person {name: 'Emil Eifrem', born: 1978}) CREATE (emil)-[:ACTED_IN {roles: ['Emil']}]->(theMatrix) CREATE (theMatrixReloaded:Movie {title: 'The Matrix Reloaded', released: 2003, tagline: 'Free your mind'}) CREATE (keanu)-[:ACTED_IN {roles: ['Neo'] }]->(theMatrixReloaded), (carrie)-[:ACTED_IN {roles: ['Trinity']}]->(theMatrixReloaded), (laurence)-[:ACTED_IN {roles: ['Morpheus']}]->(theMatrixReloaded), (hugo)-[:ACTED_IN {roles: ['Agent Smith']}]->(theMatrixReloaded), (andyW)-[:DIRECTED]->(theMatrixReloaded), (lanaW)-[:DIRECTED]->(theMatrixReloaded), (joelS)-[:PRODUCED]->(theMatrixReloaded) CREATE (theMatrixRevolutions:Movie {title: 'The Matrix Revolutions', released: 2003, tagline: 'Everything that has a beginning has an end'}) CREATE (keanu)-[:ACTED_IN {roles: ['Neo']}]->(theMatrixRevolutions), (carrie)-[:ACTED_IN {roles: ['Trinity']}]->(theMatrixRevolutions), (laurence)-[:ACTED_IN {roles: ['Morpheus']}]->(theMatrixRevolutions), (hugo)-[:ACTED_IN {roles: ['Agent Smith']}]->(theMatrixRevolutions), (andyW)-[:DIRECTED]->(theMatrixRevolutions), (lanaW)-[:DIRECTED]->(theMatrixRevolutions), (joelS)-[:PRODUCED]->(theMatrixRevolutions) CREATE (theDevilsAdvocate:Movie {title: 'The Devil\'s Advocate', released: 1997, tagline: 'Evil has its winning ways'}) CREATE (charlize:Person {name: 'Charlize Theron', born: 1975}) CREATE (al:Person {name: 'Al Pacino', born: 1940}) CREATE (taylor:Person {name: 'Taylor Hackford', born: 1944}) CREATE (keanu)-[:ACTED_IN {roles: ['Kevin Lomax']}]->(theDevilsAdvocate), (charlize)-[:ACTED_IN {roles: ['Mary Ann Lomax']}]->(theDevilsAdvocate), (al)-[:ACTED_IN {roles: ['John Milton']}]->(theDevilsAdvocate), (taylor)-[:DIRECTED]->(theDevilsAdvocate) CREATE (aFewGoodMen:Movie {title: 'A Few Good Men', released: 1992, tagline: 'Deep within the heart of the nation\'s capital, one man will stop at nothing to keep his honor, ...'}) CREATE (tomC:Person {name: 'Tom Cruise', born: 1962}) CREATE (jackN:Person {name: 'Jack Nicholson', born: 1937}) CREATE (demiM:Person {name: 'Demi Moore', born: 1962}) CREATE (kevinB:Person {name: 'Kevin Bacon', born: 1958}) CREATE (kieferS:Person {name: 'Kiefer Sutherland', born: 1966}) CREATE (noahW:Person {name: 'Noah Wyle', born: 1971}) CREATE (cubaG:Person {name: 'Cuba Gooding Jr.', born: 1968}) CREATE (kevinP:Person {name: 'Kevin Pollak', born: 1957}) CREATE (jTW:Person {name: 'J.T. Walsh', born: 1943}) CREATE (jamesM:Person {name: 'James Marshall', born: 1967}) CREATE (christopherG:Person {name: 'Christopher Guest', born: 1948}) CREATE (robR:Person {name: 'Rob Reiner', born: 1947}) CREATE (aaronS:Person {name: 'Aaron Sorkin', born: 1961}) CREATE (tomC)-[:ACTED_IN {roles: ['Lt. Daniel Kaffee']}]->(aFewGoodMen), (jackN)-[:ACTED_IN {roles: ['Col. Nathan R. Jessup']}]->(aFewGoodMen), (demiM)-[:ACTED_IN {roles: ['Lt. Cdr. JoAnne Galloway']}]->(aFewGoodMen), (kevinB)-[:ACTED_IN {roles: ['Capt. Jack Ross']}]->(aFewGoodMen), (kieferS)-[:ACTED_IN {roles: ['Lt. Jonathan Kendrick']}]->(aFewGoodMen), (noahW)-[:ACTED_IN {roles: ['Cpl. Jeffrey Barnes']}]->(aFewGoodMen), (cubaG)-[:ACTED_IN {roles: ['Cpl. Carl Hammaker']}]->(aFewGoodMen), (kevinP)-[:ACTED_IN {roles: ['Lt. Sam Weinberg']}]->(aFewGoodMen), (jTW)-[:ACTED_IN {roles: ['Lt. Col. Matthew Andrew Markinson']}]->(aFewGoodMen), (jamesM)-[:ACTED_IN {roles: ['Pfc. Louden Downey']}]->(aFewGoodMen), (christopherG)-[:ACTED_IN {roles: ['Dr. Stone']}]->(aFewGoodMen), (aaronS)-[:ACTED_IN {roles: ['Bar patron']}]->(aFewGoodMen), (robR)-[:DIRECTED]->(aFewGoodMen), (aaronS)-[:WROTE]->(aFewGoodMen) CREATE (topGun:Movie {title: 'Top Gun', released: 1986, tagline: 'I feel the need, the need for speed.'}) CREATE (kellyM:Person {name: 'Kelly McGillis', born: 1957}) CREATE (valK:Person {name: 'Val Kilmer', born: 1959}) CREATE (anthonyE:Person {name: 'Anthony Edwards', born: 1962}) CREATE (tomS:Person {name: 'Tom Skerritt', born: 1933}) CREATE (megR:Person {name: 'Meg Ryan', born: 1961}) CREATE (tonyS:Person {name: 'Tony Scott', born: 1944}) CREATE (jimC:Person {name: 'Jim Cash', born: 1941}) CREATE (tomC)-[:ACTED_IN {roles: ['Maverick']}]->(topGun), (kellyM)-[:ACTED_IN {roles: ['Charlie']}]->(topGun), (valK)-[:ACTED_IN {roles: ['Iceman']}]->(topGun), (anthonyE)-[:ACTED_IN {roles: ['Goose']}]->(topGun), (tomS)-[:ACTED_IN {roles: ['Viper']}]->(topGun), (megR)-[:ACTED_IN {roles: ['Carole']}]->(topGun), (tonyS)-[:DIRECTED]->(topGun), (jimC)-[:WROTE]->(topGun) CREATE (jerryMaguire:Movie {title: 'Jerry Maguire', released: 2000, tagline: 'The rest of his life begins now.'}) CREATE (reneeZ:Person {name: 'Renee Zellweger', born: 1969}) CREATE (kellyP:Person {name: 'Kelly Preston', born: 1962}) CREATE (jerryO:Person {name: 'Jerry O\'Connell', born: 1974}) CREATE (jayM:Person {name: 'Jay Mohr', born: 1970}) CREATE (bonnieH:Person {name: 'Bonnie Hunt', born: 1961}) CREATE (reginaK:Person {name: 'Regina King', born: 1971}) CREATE (jonathanL:Person {name: 'Jonathan Lipnicki', born: 1996}) CREATE (cameronC:Person {name: 'Cameron Crowe', born: 1957}) CREATE (tomC)-[:ACTED_IN {roles: ['Jerry Maguire']}]->(jerryMaguire), (cubaG)-[:ACTED_IN {roles: ['Rod Tidwell']}]->(jerryMaguire), (reneeZ)-[:ACTED_IN {roles: ['Dorothy Boyd']}]->(jerryMaguire), (kellyP)-[:ACTED_IN {roles: ['Avery Bishop']}]->(jerryMaguire), (jerryO)-[:ACTED_IN {roles: ['Frank Cushman']}]->(jerryMaguire), (jayM)-[:ACTED_IN {roles: ['Bob Sugar']}]->(jerryMaguire), (bonnieH)-[:ACTED_IN {roles: ['Laurel Boyd']}]->(jerryMaguire), (reginaK)-[:ACTED_IN {roles: ['Marcee Tidwell']}]->(jerryMaguire), (jonathanL)-[:ACTED_IN {roles: ['Ray Boyd']}]->(jerryMaguire), (cameronC)-[:DIRECTED]->(jerryMaguire), (cameronC)-[:PRODUCED]->(jerryMaguire), (cameronC)-[:WROTE]->(jerryMaguire) CREATE (standByMe:Movie {title: 'Stand-By-Me', released: 1986, tagline: 'The last real taste of innocence'}) CREATE (riverP:Person {name: 'River Phoenix', born: 1970}) CREATE (coreyF:Person {name: 'Corey Feldman', born: 1971}) CREATE (wilW:Person {name: 'Wil Wheaton', born: 1972}) CREATE (johnC:Person {name: 'John Cusack', born: 1966}) CREATE (marshallB:Person {name: 'Marshall Bell', born: 1942}) CREATE (wilW)-[:ACTED_IN {roles: ['Gordie Lachance']}]->(standByMe), (riverP)-[:ACTED_IN {roles: ['Chris Chambers']}]->(standByMe), (jerryO)-[:ACTED_IN {roles: ['Vern Tessio']}]->(standByMe), (coreyF)-[:ACTED_IN {roles: ['Teddy Duchamp']}]->(standByMe), (johnC)-[:ACTED_IN {roles: ['Denny Lachance']}]->(standByMe), (kieferS)-[:ACTED_IN {roles: ['Ace Merrill']}]->(standByMe), (marshallB)-[:ACTED_IN {roles: ['Mr. Lachance']}]->(standByMe), (robR)-[:DIRECTED]->(standByMe) CREATE (asGoodAsItGets:Movie {title: 'As-good-as-it-gets', released: 1997, tagline: 'A comedy from the heart that goes for the throat'}) CREATE (helenH:Person {name: 'Helen Hunt', born: 1963}) CREATE (gregK:Person {name: 'Greg Kinnear', born: 1963}) CREATE (jamesB:Person {name: 'James L. Brooks', born: 1940}) CREATE (jackN)-[:ACTED_IN {roles: ['Melvin Udall']}]->(asGoodAsItGets), (helenH)-[:ACTED_IN {roles: ['Carol Connelly']}]->(asGoodAsItGets), (gregK)-[:ACTED_IN {roles: ['Simon Bishop']}]->(asGoodAsItGets), (cubaG)-[:ACTED_IN {roles: ['Frank Sachs']}]->(asGoodAsItGets), (jamesB)-[:DIRECTED]->(asGoodAsItGets) CREATE (whatDreamsMayCome:Movie {title: 'What Dreams May Come', released: 1998, tagline: 'After life there is more. The end is just the beginning.'}) CREATE (annabellaS:Person {name: 'Annabella Sciorra', born: 1960}) CREATE (maxS:Person {name: 'Max von Sydow', born: 1929}) CREATE (wernerH:Person {name: 'Werner Herzog', born: 1942}) CREATE (robin:Person {name: 'Robin Williams', born: 1951}) CREATE (vincentW:Person {name: 'Vincent Ward', born: 1956}) CREATE (robin)-[:ACTED_IN {roles: ['Chris Nielsen']}]->(whatDreamsMayCome), (cubaG)-[:ACTED_IN {roles: ['Albert Lewis']}]->(whatDreamsMayCome), (annabellaS)-[:ACTED_IN {roles: ['Annie Collins-Nielsen']}]->(whatDreamsMayCome), (maxS)-[:ACTED_IN {roles: ['The Tracker']}]->(whatDreamsMayCome), (wernerH)-[:ACTED_IN {roles: ['The Face']}]->(whatDreamsMayCome), (vincentW)-[:DIRECTED]->(whatDreamsMayCome) CREATE (snowFallingonCedars:Movie {title: 'Snow-Falling-on-Cedars', released: 1999, tagline: 'First loves last. Forever.'}) CREATE (ethanH:Person {name: 'Ethan Hawke', born: 1970}) CREATE (rickY:Person {name: 'Rick Yune', born: 1971}) CREATE (jamesC:Person {name: 'James Cromwell', born: 1940}) CREATE (scottH:Person {name: 'Scott Hicks', born: 1953}) CREATE (ethanH)-[:ACTED_IN {roles: ['Ishmael Chambers']}]->(snowFallingonCedars), (rickY)-[:ACTED_IN {roles: ['Kazuo Miyamoto']}]->(snowFallingonCedars), (maxS)-[:ACTED_IN {roles: ['Nels Gudmundsson']}]->(snowFallingonCedars), (jamesC)-[:ACTED_IN {roles: ['Judge Fielding']}]->(snowFallingonCedars), (scottH)-[:DIRECTED]->(snowFallingonCedars) CREATE (youveGotMail:Movie {title: 'You\'ve Got Mail', released: 1998, tagline: 'At-odds-in-life, in-love-on-line'}) CREATE (parkerP:Person {name: 'Parker Posey', born: 1968}) CREATE (daveC:Person {name: 'Dave Chappelle', born: 1973}) CREATE (steveZ:Person {name: 'Steve Zahn', born: 1967}) CREATE (tomH:Person {name: 'Tom Hanks', born: 1956}) CREATE (noraE:Person {name: 'Nora Ephron', born: 1941}) CREATE (tomH)-[:ACTED_IN {roles: ['Joe Fox']}]->(youveGotMail), (megR)-[:ACTED_IN {roles: ['Kathleen Kelly']}]->(youveGotMail), (gregK)-[:ACTED_IN {roles: ['Frank Navasky']}]->(youveGotMail), (parkerP)-[:ACTED_IN {roles: ['Patricia Eden']}]->(youveGotMail), (daveC)-[:ACTED_IN {roles: ['Kevin Jackson']}]->(youveGotMail), (steveZ)-[:ACTED_IN {roles: ['George Pappas']}]->(youveGotMail), (noraE)-[:DIRECTED]->(youveGotMail) CREATE (sleeplessInSeattle:Movie {title: 'Sleepless-in-Seattle', released: 1993, tagline: 'What if someone you never met, someone you never saw, someone you never knew was the only someone for you?'}) CREATE (ritaW:Person {name: 'Rita Wilson', born: 1956}) CREATE (billPull:Person {name: 'Bill Pullman', born: 1953}) CREATE (victorG:Person {name: 'Victor Garber', born: 1949}) CREATE (rosieO:Person {name: 'Rosie O\'Donnell', born: 1962}) CREATE (tomH)-[:ACTED_IN {roles: ['Sam Baldwin']}]->(sleeplessInSeattle), (megR)-[:ACTED_IN {roles: ['Annie Reed']}]->(sleeplessInSeattle), (ritaW)-[:ACTED_IN {roles: ['Suzy']}]->(sleeplessInSeattle), (billPull)-[:ACTED_IN {roles: ['Walter']}]->(sleeplessInSeattle), (victorG)-[:ACTED_IN {roles: ['Greg']}]->(sleeplessInSeattle), (rosieO)-[:ACTED_IN {roles: ['Becky']}]->(sleeplessInSeattle), (noraE)-[:DIRECTED]->(sleeplessInSeattle) CREATE (joeVersustheVolcano:Movie {title: 'Joe-Versus-the-Volcano', released: 1990, tagline: 'A story of love'}) CREATE (johnS:Person {name: 'John Patrick Stanley', born: 1950}) CREATE (nathan:Person {name: 'Nathan Lane', born: 1956}) CREATE (tomH)-[:ACTED_IN {roles: ['Joe Banks']}]->(joeVersustheVolcano), (megR)-[:ACTED_IN {roles: ['DeDe', 'Angelica Graynamore', 'Patricia Graynamore']}]->(joeVersustheVolcano), (nathan)-[:ACTED_IN {roles: ['Baw']}]->(joeVersustheVolcano), (johnS)-[:DIRECTED]->(joeVersustheVolcano) CREATE (whenHarryMetSally:Movie {title: 'When-Harry-Met-Sally', released: 1998, tagline: 'When-Harry-Met-Sally'}) CREATE (billyC:Person {name: 'Billy Crystal', born: 1948}) CREATE (carrieF:Person {name: 'Carrie Fisher', born: 1956}) CREATE (brunoK:Person {name: 'Bruno Kirby', born: 1949}) CREATE (billyC)-[:ACTED_IN {roles: ['Harry Burns']}]->(whenHarryMetSally), (megR)-[:ACTED_IN {roles: ['Sally Albright']}]->(whenHarryMetSally), (carrieF)-[:ACTED_IN {roles: ['Marie']}]->(whenHarryMetSally), (brunoK)-[:ACTED_IN {roles: ['Jess']}]->(whenHarryMetSally), (robR)-[:DIRECTED]->(whenHarryMetSally), (robR)-[:PRODUCED]->(whenHarryMetSally), (noraE)-[:PRODUCED]->(whenHarryMetSally), (noraE)-[:WROTE]->(whenHarryMetSally) CREATE (thatThingYouDo:Movie {title: 'That-Thing-You-Do', released: 1996, tagline: 'There comes a time...'}) CREATE (livT:Person {name: 'Liv Tyler', born: 1977}) CREATE (tomH)-[:ACTED_IN {roles: ['Mr. White']}]->(thatThingYouDo), (livT)-[:ACTED_IN {roles: ['Faye Dolan']}]->(thatThingYouDo), (charlize)-[:ACTED_IN {roles: ['Tina']}]->(thatThingYouDo), (tomH)-[:DIRECTED]->(thatThingYouDo) CREATE (theReplacements:Movie {title: 'The Replacements', released: 2000, tagline: 'Pain heals, Chicks dig scars... Glory lasts forever'}) CREATE (brooke:Person {name: 'Brooke Langton', born: 1970}) CREATE (gene:Person {name: 'Gene Hackman', born: 1930}) CREATE (orlando:Person {name: 'Orlando Jones', born: 1968}) CREATE (howard:Person {name: 'Howard Deutch', born: 1950}) CREATE (keanu)-[:ACTED_IN {roles: ['Shane Falco']}]->(theReplacements), (brooke)-[:ACTED_IN {roles: ['Annabelle Farrell']}]->(theReplacements), (gene)-[:ACTED_IN {roles: ['Jimmy McGinty']}]->(theReplacements), (orlando)-[:ACTED_IN {roles: ['Clifford Franklin']}]->(theReplacements), (howard)-[:DIRECTED]->(theReplacements) CREATE (rescueDawn:Movie {title: 'RescueDawn', released: 2006, tagline: 'The extraordinary true story'}) CREATE (christianB:Person {name: 'Christian Bale', born: 1974}) CREATE (zachG:Person {name: 'Zach Grenier', born: 1954}) CREATE (marshallB)-[:ACTED_IN {roles: ['Admiral']}]->(rescueDawn), (christianB)-[:ACTED_IN {roles: ['Dieter Dengler']}]->(rescueDawn), (zachG)-[:ACTED_IN {roles: ['Squad Leader']}]->(rescueDawn), (steveZ)-[:ACTED_IN {roles: ['Duane']}]->(rescueDawn), (wernerH)-[:DIRECTED]->(rescueDawn) CREATE (theBirdcage:Movie {title: 'The-Birdcage', released: 1996, tagline: 'Come-as-you-are'}) CREATE (mikeN:Person {name: 'Mike Nichols', born: 1931}) CREATE (robin)-[:ACTED_IN {roles: ['Armand Goldman']}]->(theBirdcage), (nathan)-[:ACTED_IN {roles: ['Albert Goldman']}]->(theBirdcage), (gene)-[:ACTED_IN {roles: ['Sen. Kevin Keeley']}]->(theBirdcage), (mikeN)-[:DIRECTED]->(theBirdcage) CREATE (unforgiven:Movie {title: 'Unforgiven', released: 1992, tagline: 'It\'s a hell of a thing, killing a man'}) CREATE (richardH:Person {name: 'Richard Harris', born: 1930}) CREATE (clintE:Person {name: 'Clint Eastwood', born: 1930}) CREATE (richardH)-[:ACTED_IN {roles: ['English Bob']}]->(unforgiven), (clintE)-[:ACTED_IN {roles: ['Bill Munny']}]->(unforgiven), (gene)-[:ACTED_IN {roles: ['Little Bill Daggett']}]->(unforgiven), (clintE)-[:DIRECTED]->(unforgiven) CREATE (johnnyMnemonic:Movie {title: 'Johnny-Mnemonic', released: 1995, tagline: 'The-hottest-data-in-the-coolest-head'}) CREATE (takeshi:Person {name: 'Takeshi Kitano', born: 1947}) CREATE (dina:Person {name: 'Dina Meyer', born: 1968}) CREATE (iceT:Person {name: 'Ice-T', born: 1958}) CREATE (robertL:Person {name: 'Robert Longo', born: 1953}) CREATE (keanu)-[:ACTED_IN {roles: ['Johnny Mnemonic']}]->(johnnyMnemonic), (takeshi)-[:ACTED_IN {roles: ['Takahashi']}]->(johnnyMnemonic), (dina)-[:ACTED_IN {roles: ['Jane']}]->(johnnyMnemonic), (iceT)-[:ACTED_IN {roles: ['J-Bone']}]->(johnnyMnemonic), (robertL)-[:DIRECTED]->(johnnyMnemonic) CREATE (cloudAtlas:Movie {title: 'Cloud Atlas', released: 2012, tagline: 'Everything is connected'}) CREATE (halleB:Person {name: 'Halle Berry', born: 1966}) CREATE (jimB:Person {name: 'Jim Broadbent', born: 1949}) CREATE (tomT:Person {name: 'Tom Tykwer', born: 1965}) CREATE (davidMitchell:Person {name: 'David Mitchell', born: 1969}) CREATE (stefanArndt:Person {name: 'Stefan Arndt', born: 1961}) CREATE (tomH)-[:ACTED_IN {roles: ['Zachry', 'Dr. Henry Goose', 'Isaac Sachs', 'Dermot Hoggins']}]->(cloudAtlas), (hugo)-[:ACTED_IN {roles: ['Bill Smoke', 'Haskell Moore', 'Tadeusz Kesselring', 'Nurse Noakes', 'Boardman Mephi', 'Old Georgie']}]->(cloudAtlas), (halleB)-[:ACTED_IN {roles: ['Luisa Rey', 'Jocasta Ayrs', 'Ovid', 'Meronym']}]->(cloudAtlas), (jimB)-[:ACTED_IN {roles: ['Vyvyan Ayrs', 'Captain Molyneux', 'Timothy Cavendish']}]->(cloudAtlas), (tomT)-[:DIRECTED]->(cloudAtlas), (andyW)-[:DIRECTED]->(cloudAtlas), (lanaW)-[:DIRECTED]->(cloudAtlas), (davidMitchell)-[:WROTE]->(cloudAtlas), (stefanArndt)-[:PRODUCED]->(cloudAtlas) CREATE (theDaVinciCode:Movie {title: 'The Da Vinci Code', released: 2006, tagline: 'Break The Codes'}) CREATE (ianM:Person {name: 'Ian McKellen', born: 1939}) CREATE (audreyT:Person {name: 'Audrey Tautou', born: 1976}) CREATE (paulB:Person {name: 'Paul Bettany', born: 1971}) CREATE (ronH:Person {name: 'Ron Howard', born: 1954}) CREATE (tomH)-[:ACTED_IN {roles: ['Dr. Robert Langdon']}]->(theDaVinciCode), (ianM)-[:ACTED_IN {roles: ['Sir Leight Teabing']}]->(theDaVinciCode), (audreyT)-[:ACTED_IN {roles: ['Sophie Neveu']}]->(theDaVinciCode), (paulB)-[:ACTED_IN {roles: ['Silas']}]->(theDaVinciCode), (ronH)-[:DIRECTED]->(theDaVinciCode) CREATE (vforVendetta:Movie {title: 'V for Vendetta', released: 2006, tagline: 'Freedom! Forever!'}) CREATE (natalieP:Person {name: 'Natalie Portman', born: 1981}) CREATE (stephenR:Person {name: 'Stephen Rea', born: 1946}) CREATE (johnH:Person {name: 'John Hurt', born: 1940}) CREATE (benM:Person {name: 'Ben Miles', born: 1967}) CREATE (hugo)-[:ACTED_IN {roles: ['V']}]->(vforVendetta), (natalieP)-[:ACTED_IN {roles: ['Evey Hammond']}]->(vforVendetta), (stephenR)-[:ACTED_IN {roles: ['Eric Finch']}]->(vforVendetta), (johnH)-[:ACTED_IN {roles: ['High Chancellor Adam Sutler']}]->(vforVendetta), (benM)-[:ACTED_IN {roles: ['Dascomb']}]->(vforVendetta), (jamesM)-[:DIRECTED]->(vforVendetta), (andyW)-[:PRODUCED]->(vforVendetta), (lanaW)-[:PRODUCED]->(vforVendetta), (joelS)-[:PRODUCED]->(vforVendetta), (andyW)-[:WROTE]->(vforVendetta), (lanaW)-[:WROTE]->(vforVendetta) CREATE (speedRacer:Movie {title: 'Speed Racer', released: 2008, tagline: 'Speed has no limits'}) CREATE (emileH:Person {name: 'Emile Hirsch', born: 1985}) CREATE (johnG:Person {name: 'John Goodman', born: 1960}) CREATE (susanS:Person {name: 'Susan Sarandon', born: 1946}) CREATE (matthewF:Person {name: 'Matthew Fox', born: 1966}) CREATE (christinaR:Person {name: 'Christina Ricci', born: 1980}) CREATE (rain:Person {name: 'Rain', born: 1982}) CREATE (emileH)-[:ACTED_IN {roles: ['Speed Racer']}]->(speedRacer), (johnG)-[:ACTED_IN {roles: ['Pops']}]->(speedRacer), (susanS)-[:ACTED_IN {roles: ['Mom']}]->(speedRacer), (matthewF)-[:ACTED_IN {roles: ['Racer X']}]->(speedRacer), (christinaR)-[:ACTED_IN {roles: ['Trixie']}]->(speedRacer), (rain)-[:ACTED_IN {roles: ['Taejo Togokahn']}]->(speedRacer), (benM)-[:ACTED_IN {roles: ['Cass Jones']}]->(speedRacer), (andyW)-[:DIRECTED]->(speedRacer), (lanaW)-[:DIRECTED]->(speedRacer), (andyW)-[:WROTE]->(speedRacer), (lanaW)-[:WROTE]->(speedRacer), (joelS)-[:PRODUCED]->(speedRacer) CREATE (ninjaAssassin:Movie {title: 'Ninja Assassin', released: 2009, tagline: 'Prepare to enter a secret world of assassins'}) CREATE (naomieH:Person {name: 'Naomie Harris'}) CREATE (rain)-[:ACTED_IN {roles: ['Raizo']}]->(ninjaAssassin), (naomieH)-[:ACTED_IN {roles: ['Mika Coretti']}]->(ninjaAssassin), (rickY)-[:ACTED_IN {roles: ['Takeshi']}]->(ninjaAssassin), (benM)-[:ACTED_IN {roles: ['Ryan Maslow']}]->(ninjaAssassin), (jamesM)-[:DIRECTED]->(ninjaAssassin), (andyW)-[:PRODUCED]->(ninjaAssassin), (lanaW)-[:PRODUCED]->(ninjaAssassin), (joelS)-[:PRODUCED]->(ninjaAssassin) CREATE (theGreenMile:Movie {title: 'The Green Mile', released: 1999, tagline: 'Walk a mile you\'ll never forget.'}) CREATE (michaelD:Person {name: 'Michael Clarke Duncan', born: 1957}) CREATE (davidM:Person {name: 'David Morse', born: 1953}) CREATE (samR:Person {name: 'Sam Rockwell', born: 1968}) CREATE (garyS:Person {name: 'Gary Sinise', born: 1955}) CREATE (patriciaC:Person {name: 'Patricia Clarkson', born: 1959}) CREATE (frankD:Person {name: 'Frank Darabont', born: 1959}) CREATE (tomH)-[:ACTED_IN {roles: ['Paul Edgecomb']}]->(theGreenMile), (michaelD)-[:ACTED_IN {roles: ['John Coffey']}]->(theGreenMile), (davidM)-[:ACTED_IN {roles: ['Brutus Brutal Howell']}]->(theGreenMile), (bonnieH)-[:ACTED_IN {roles: ['Jan Edgecomb']}]->(theGreenMile), (jamesC)-[:ACTED_IN {roles: ['Warden Hal Moores']}]->(theGreenMile), (samR)-[:ACTED_IN {roles: ['Wild Bill Wharton']}]->(theGreenMile), (garyS)-[:ACTED_IN {roles: ['Burt Hammersmith']}]->(theGreenMile), (patriciaC)-[:ACTED_IN {roles: ['Melinda Moores']}]->(theGreenMile), (frankD)-[:DIRECTED]->(theGreenMile) CREATE (frostNixon:Movie {title: 'Frost/Nixon', released: 2008, tagline: '400 million people were waiting for the truth.'}) CREATE (frankL:Person {name: 'Frank Langella', born: 1938}) CREATE (michaelS:Person {name: 'Michael Sheen', born: 1969}) CREATE (oliverP:Person {name: 'Oliver Platt', born: 1960}) CREATE (frankL)-[:ACTED_IN {roles: ['Richard Nixon']}]->(frostNixon), (michaelS)-[:ACTED_IN {roles: ['David Frost']}]->(frostNixon), (kevinB)-[:ACTED_IN {roles: ['Jack Brennan']}]->(frostNixon), (oliverP)-[:ACTED_IN {roles: ['Bob Zelnick']}]->(frostNixon), (samR)-[:ACTED_IN {roles: ['James Reston, Jr.']}]->(frostNixon), (ronH)-[:DIRECTED]->(frostNixon) CREATE (hoffa:Movie {title: 'Hoffa', released: 1992, tagline: "He didn't want law. He wanted justice."}) CREATE (dannyD:Person {name: 'Danny DeVito', born: 1944}) CREATE (johnR:Person {name: 'John C. Reilly', born: 1965}) CREATE (jackN)-[:ACTED_IN {roles: ['Hoffa']}]->(hoffa), (dannyD)-[:ACTED_IN {roles: ['Robert Bobby Ciaro']}]->(hoffa), (jTW)-[:ACTED_IN {roles: ['Frank Fitzsimmons']}]->(hoffa), (johnR)-[:ACTED_IN {roles: ['Peter Connelly']}]->(hoffa), (dannyD)-[:DIRECTED]->(hoffa) CREATE (apollo13:Movie {title: 'Apollo 13', released: 1995, tagline: 'Houston, we have a problem.'}) CREATE (edH:Person {name: 'Ed Harris', born: 1950}) CREATE (billPax:Person {name: 'Bill Paxton', born: 1955}) CREATE (tomH)-[:ACTED_IN {roles: ['Jim Lovell']}]->(apollo13), (kevinB)-[:ACTED_IN {roles: ['Jack Swigert']}]->(apollo13), (edH)-[:ACTED_IN {roles: ['Gene Kranz']}]->(apollo13), (billPax)-[:ACTED_IN {roles: ['Fred Haise']}]->(apollo13), (garyS)-[:ACTED_IN {roles: ['Ken Mattingly']}]->(apollo13), (ronH)-[:DIRECTED]->(apollo13) CREATE (twister:Movie {title: 'Twister', released: 1996, tagline: 'Don\'t Breathe. Don\'t Look Back.'}) CREATE (philipH:Person {name: 'Philip Seymour Hoffman', born: 1967}) CREATE (janB:Person {name: 'Jan de Bont', born: 1943}) CREATE (billPax)-[:ACTED_IN {roles: ['Bill Harding']}]->(twister), (helenH)-[:ACTED_IN {roles: ['Dr. Jo Harding']}]->(twister), (zachG)-[:ACTED_IN {roles: ['Eddie']}]->(twister), (philipH)-[:ACTED_IN {roles: ['Dustin Davis']}]->(twister), (janB)-[:DIRECTED]->(twister) CREATE (castAway:Movie {title: 'Cast Away', released: 2000, tagline: 'At the edge of the world, his journey begins.'}) CREATE (robertZ:Person {name: 'Robert Zemeckis', born: 1951}) CREATE (tomH)-[:ACTED_IN {roles: ['Chuck Noland']}]->(castAway), (helenH)-[:ACTED_IN {roles: ['Kelly Frears']}]->(castAway), (robertZ)-[:DIRECTED]->(castAway) CREATE (oneFlewOvertheCuckoosNest:Movie {title: 'One Flew Over the Cuckoo\'s Nest', released: 1975, tagline: 'If he is crazy, what does that make you?'}) CREATE (milosF:Person {name: 'Milos Forman', born: 1932}) CREATE (jackN)-[:ACTED_IN {roles: ['Randle McMurphy']}]->(oneFlewOvertheCuckoosNest), (dannyD)-[:ACTED_IN {roles: ['Martini']}]->(oneFlewOvertheCuckoosNest), (milosF)-[:DIRECTED]->(oneFlewOvertheCuckoosNest) CREATE (somethingsGottaGive:Movie {title: 'Something\'s Gotta Give', released: 2003}) CREATE (dianeK:Person {name: 'Diane Keaton', born: 1946}) CREATE (nancyM:Person {name: 'Nancy Meyers', born: 1949}) CREATE (jackN)-[:ACTED_IN {roles: ['Harry Sanborn']}]->(somethingsGottaGive), (dianeK)-[:ACTED_IN {roles: ['Erica Barry']}]->(somethingsGottaGive), (keanu)-[:ACTED_IN {roles: ['Julian Mercer']}]->(somethingsGottaGive), (nancyM)-[:DIRECTED]->(somethingsGottaGive), (nancyM)-[:PRODUCED]->(somethingsGottaGive), (nancyM)-[:WROTE]->(somethingsGottaGive) CREATE (bicentennialMan:Movie {title: 'Bicentennial Man', released: 1999, tagline: 'One robot\'s 200 year journey to become an ordinary man.'}) CREATE (chrisC:Person {name: 'Chris Columbus', born: 1958}) CREATE (robin)-[:ACTED_IN {roles: ['Andrew Marin']}]->(bicentennialMan), (oliverP)-[:ACTED_IN {roles: ['Rupert Burns']}]->(bicentennialMan), (chrisC)-[:DIRECTED]->(bicentennialMan) CREATE (charlieWilsonsWar:Movie {title: 'Charlie Wilson\'s War', released: 2007, tagline: 'A stiff drink. A little mascara. A lot of nerve. Who said they could not bring down the Soviet empire.'}) CREATE (juliaR:Person {name: 'Julia Roberts', born: 1967}) CREATE (tomH)-[:ACTED_IN {roles: ['Rep. Charlie Wilson']}]->(charlieWilsonsWar), (juliaR)-[:ACTED_IN {roles: ['Joanne Herring']}]->(charlieWilsonsWar), (philipH)-[:ACTED_IN {roles: ['Gust Avrakotos']}]->(charlieWilsonsWar), (mikeN)-[:DIRECTED]->(charlieWilsonsWar) CREATE (thePolarExpress:Movie {title: 'The Polar Express', released: 2004, tagline: 'This Holiday Season... Believe'}) CREATE (tomH)-[:ACTED_IN {roles: ['Hero Boy', 'Father', 'Conductor', 'Hobo', 'Scrooge', 'Santa Claus']}]->(thePolarExpress), (robertZ)-[:DIRECTED]->(thePolarExpress) CREATE (aLeagueofTheirOwn:Movie {title: 'A League of Their Own', released: 1992, tagline: 'A league of their own'}) CREATE (madonna:Person {name: 'Madonna', born: 1954}) CREATE (geenaD:Person {name: 'Geena Davis', born: 1956}) CREATE (loriP:Person {name: 'Lori Petty', born: 1963}) CREATE (pennyM:Person {name: 'Penny Marshall', born: 1943}) CREATE (tomH)-[:ACTED_IN {roles: ['Jimmy Dugan']}]->(aLeagueofTheirOwn), (geenaD)-[:ACTED_IN {roles: ['Dottie Hinson']}]->(aLeagueofTheirOwn), (loriP)-[:ACTED_IN {roles: ['Kit Keller']}]->(aLeagueofTheirOwn), (rosieO)-[:ACTED_IN {roles: ['Doris Murphy']}]->(aLeagueofTheirOwn), (madonna)-[:ACTED_IN {roles: ['Mae Mordabito']}]->(aLeagueofTheirOwn), (billPax)-[:ACTED_IN {roles: ['Bob Hinson']}]->(aLeagueofTheirOwn), (pennyM)-[:DIRECTED]->(aLeagueofTheirOwn) CREATE (paulBlythe:Person {name: 'Paul Blythe'}) CREATE (angelaScope:Person {name: 'Angela Scope'}) CREATE (jessicaThompson:Person {name: 'Jessica Thompson'}) CREATE (jamesThompson:Person {name: 'James Thompson'}) CREATE (jamesThompson)-[:FOLLOWS]->(jessicaThompson), (angelaScope)-[:FOLLOWS]->(jessicaThompson), (paulBlythe)-[:FOLLOWS]->(angelaScope) CREATE (jessicaThompson)-[:REVIEWED {summary: 'An amazing journey', rating: 95}]->(cloudAtlas), (jessicaThompson)-[:REVIEWED {summary: 'Silly, but fun', rating: 65}]->(theReplacements), (jamesThompson)-[:REVIEWED {summary: 'The coolest football movie ever', rating: 100}]->(theReplacements), (angelaScope)-[:REVIEWED {summary: 'Pretty funny at times', rating: 62}]->(theReplacements), (jessicaThompson)-[:REVIEWED {summary: 'Dark, but compelling', rating: 85}]->(unforgiven), (jessicaThompson)-[:REVIEWED {summary: 'Slapstick', rating: 45}]->(theBirdcage), (jessicaThompson)-[:REVIEWED {summary: 'A solid romp', rating: 68}]->(theDaVinciCode), (jamesThompson)-[:REVIEWED {summary: 'Fun, but a little far fetched', rating: 65}]->(theDaVinciCode), (jessicaThompson)-[:REVIEWED {summary: 'You had me at Jerry', rating: 92}]->(jerryMaguire)
CREATE (hf:School {name: 'Hilly Fields Technical College'}) CREATE (hf)-[:STAFF]->(mrb:Teacher {name: 'Mr Balls'}) CREATE (hf)-[:STAFF]->(mrspb:Teacher {name: 'Ms Packard-Bell'}) CREATE (hf)-[:STAFF]->(mrs:Teacher {name: 'Mr Smith'}) CREATE (hf)-[:STAFF]->(mrsa:Teacher {name: 'Mrs Adenough'}) CREATE (hf)-[:STAFF]->(mrvdg:Teacher {name: 'Mr Van der Graaf'}) CREATE (hf)-[:STAFF]->(msn:Teacher {name: 'Ms Noethe'}) CREATE (hf)-[:STAFF]->(mrsn:Teacher {name: 'Mrs Noakes'}) CREATE (hf)-[:STAFF]->(mrm:Teacher {name: 'Mr Marker'}) CREATE (hf)-[:STAFF]->(msd:Teacher {name: 'Ms Delgado'}) CREATE (hf)-[:STAFF]->(mrsg:Teacher {name: 'Mrs Glass'}) CREATE (hf)-[:STAFF]->(mrf:Teacher {name: 'Mr Flint'}) CREATE (hf)-[:STAFF]->(mrk:Teacher {name: 'Mr Kearney'}) CREATE (hf)-[:STAFF]->(msf:Teacher {name: 'Mrs Forrester'}) CREATE (hf)-[:STAFF]->(mrsf:Teacher {name: 'Mrs Fischer'}) CREATE (hf)-[:STAFF]->(mrj:Teacher {name: 'Mr Jameson'}) CREATE (hf)-[:STUDENT]->(_001:Student {name: 'Portia Vasquez'}) CREATE (hf)-[:STUDENT]->(_002:Student {name: 'Andrew Parks'}) CREATE (hf)-[:STUDENT]->(_003:Student {name: 'Germane Frye'}) CREATE (hf)-[:STUDENT]->(_004:Student {name: 'Yuli Gutierrez'}) CREATE (hf)-[:STUDENT]->(_005:Student {name: 'Kamal Solomon'}) CREATE (hf)-[:STUDENT]->(_006:Student {name: 'Lysandra Porter'}) CREATE (hf)-[:STUDENT]->(_007:Student {name: 'Stella Santiago'}) CREATE (hf)-[:STUDENT]->(_008:Student {name: 'Brenda Torres'}) CREATE (hf)-[:STUDENT]->(_009:Student {name: 'Heidi Dunlap'}) CREATE (hf)-[:STUDENT]->(_010:Student {name: 'Halee Taylor'}) CREATE (hf)-[:STUDENT]->(_011:Student {name: 'Brennan Crosby'}) CREATE (hf)-[:STUDENT]->(_012:Student {name: 'Rooney Cook'}) CREATE (hf)-[:STUDENT]->(_013:Student {name: 'Xavier Morrison'}) CREATE (hf)-[:STUDENT]->(_014:Student {name: 'Zelenia Santana'}) CREATE (hf)-[:STUDENT]->(_015:Student {name: 'Eaton Bonner'}) CREATE (hf)-[:STUDENT]->(_016:Student {name: 'Leilani Bishop'}) CREATE (hf)-[:STUDENT]->(_017:Student {name: 'Jamalia Pickett'}) CREATE (hf)-[:STUDENT]->(_018:Student {name: 'Wynter Russell'}) CREATE (hf)-[:STUDENT]->(_019:Student {name: 'Liberty Melton'}) CREATE (hf)-[:STUDENT]->(_020:Student {name: 'MacKensie Obrien'}) CREATE (hf)-[:STUDENT]->(_021:Student {name: 'Oprah Maynard'}) CREATE (hf)-[:STUDENT]->(_022:Student {name: 'Lyle Parks'}) CREATE (hf)-[:STUDENT]->(_023:Student {name: 'Madonna Justice'}) CREATE (hf)-[:STUDENT]->(_024:Student {name: 'Herman Frederick'}) CREATE (hf)-[:STUDENT]->(_025:Student {name: 'Preston Stevenson'}) CREATE (hf)-[:STUDENT]->(_026:Student {name: 'Drew Carrillo'}) CREATE (hf)-[:STUDENT]->(_027:Student {name: 'Hamilton Woodward'}) CREATE (hf)-[:STUDENT]->(_028:Student {name: 'Buckminster Bradley'}) CREATE (hf)-[:STUDENT]->(_029:Student {name: 'Shea Cote'}) CREATE (hf)-[:STUDENT]->(_030:Student {name: 'Raymond Leonard'}) CREATE (hf)-[:STUDENT]->(_031:Student {name: 'Gavin Branch'}) CREATE (hf)-[:STUDENT]->(_032:Student {name: 'Kylan Powers'}) CREATE (hf)-[:STUDENT]->(_033:Student {name: 'Hedy Bowers'}) CREATE (hf)-[:STUDENT]->(_034:Student {name: 'Derek Church'}) CREATE (hf)-[:STUDENT]->(_035:Student {name: 'Silas Santiago'}) CREATE (hf)-[:STUDENT]->(_036:Student {name: 'Elton Bright'}) CREATE (hf)-[:STUDENT]->(_037:Student {name: 'Dora Schmidt'}) CREATE (hf)-[:STUDENT]->(_038:Student {name: 'Julian Sullivan'}) CREATE (hf)-[:STUDENT]->(_039:Student {name: 'Willow Morton'}) CREATE (hf)-[:STUDENT]->(_040:Student {name: 'Blaze Hines'}) CREATE (hf)-[:STUDENT]->(_041:Student {name: 'Felicia Tillman'}) CREATE (hf)-[:STUDENT]->(_042:Student {name: 'Ralph Webb'}) CREATE (hf)-[:STUDENT]->(_043:Student {name: 'Roth Gilmore'}) CREATE (hf)-[:STUDENT]->(_044:Student {name: 'Dorothy Burgess'}) CREATE (hf)-[:STUDENT]->(_045:Student {name: 'Lana Sandoval'}) CREATE (hf)-[:STUDENT]->(_046:Student {name: 'Nevada Strickland'}) CREATE (hf)-[:STUDENT]->(_047:Student {name: 'Lucian Franco'}) CREATE (hf)-[:STUDENT]->(_048:Student {name: 'Jasper Talley'}) CREATE (hf)-[:STUDENT]->(_049:Student {name: 'Madaline Spears'}) CREATE (hf)-[:STUDENT]->(_050:Student {name: 'Upton Browning'}) CREATE (hf)-[:STUDENT]->(_051:Student {name: 'Cooper Leon'}) CREATE (hf)-[:STUDENT]->(_052:Student {name: 'Celeste Ortega'}) CREATE (hf)-[:STUDENT]->(_053:Student {name: 'Willa Hewitt'}) CREATE (hf)-[:STUDENT]->(_054:Student {name: 'Rooney Bryan'}) CREATE (hf)-[:STUDENT]->(_055:Student {name: 'Nayda Hays'}) CREATE (hf)-[:STUDENT]->(_056:Student {name: 'Kadeem Salazar'}) CREATE (hf)-[:STUDENT]->(_057:Student {name: 'Halee Allen'}) CREATE (hf)-[:STUDENT]->(_058:Student {name: 'Odysseus Mayo'}) CREATE (hf)-[:STUDENT]->(_059:Student {name: 'Kato Merrill'}) CREATE (hf)-[:STUDENT]->(_060:Student {name: 'Halee Juarez'}) CREATE (hf)-[:STUDENT]->(_061:Student {name: 'Chloe Charles'}) CREATE (hf)-[:STUDENT]->(_062:Student {name: 'Abel Montoya'}) CREATE (hf)-[:STUDENT]->(_063:Student {name: 'Hilda Welch'}) CREATE (hf)-[:STUDENT]->(_064:Student {name: 'Britanni Bean'}) CREATE (hf)-[:STUDENT]->(_065:Student {name: 'Joelle Beach'}) CREATE (hf)-[:STUDENT]->(_066:Student {name: 'Ciara Odom'}) CREATE (hf)-[:STUDENT]->(_067:Student {name: 'Zia Williams'}) CREATE (hf)-[:STUDENT]->(_068:Student {name: 'Darrel Bailey'}) CREATE (hf)-[:STUDENT]->(_069:Student {name: 'Lance Mcdowell'}) CREATE (hf)-[:STUDENT]->(_070:Student {name: 'Clayton Bullock'}) CREATE (hf)-[:STUDENT]->(_071:Student {name: 'Roanna Mosley'}) CREATE (hf)-[:STUDENT]->(_072:Student {name: 'Amethyst Mcclure'}) CREATE (hf)-[:STUDENT]->(_073:Student {name: 'Hanae Mann'}) CREATE (hf)-[:STUDENT]->(_074:Student {name: 'Graiden Haynes'}) CREATE (hf)-[:STUDENT]->(_075:Student {name: 'Marcia Byrd'}) CREATE (hf)-[:STUDENT]->(_076:Student {name: 'Yoshi Joyce'}) CREATE (hf)-[:STUDENT]->(_077:Student {name: 'Gregory Sexton'}) CREATE (hf)-[:STUDENT]->(_078:Student {name: 'Nash Carey'}) CREATE (hf)-[:STUDENT]->(_079:Student {name: 'Rae Stevens'}) CREATE (hf)-[:STUDENT]->(_080:Student {name: 'Blossom Fulton'}) CREATE (hf)-[:STUDENT]->(_081:Student {name: 'Lev Curry'}) CREATE (hf)-[:STUDENT]->(_082:Student {name: 'Margaret Gamble'}) CREATE (hf)-[:STUDENT]->(_083:Student {name: 'Rylee Patterson'}) CREATE (hf)-[:STUDENT]->(_084:Student {name: 'Harper Perkins'}) CREATE (hf)-[:STUDENT]->(_085:Student {name: 'Kennan Murphy'}) CREATE (hf)-[:STUDENT]->(_086:Student {name: 'Hilda Coffey'}) CREATE (hf)-[:STUDENT]->(_087:Student {name: 'Marah Reed'}) CREATE (hf)-[:STUDENT]->(_088:Student {name: 'Blaine Wade'}) CREATE (hf)-[:STUDENT]->(_089:Student {name: 'Geraldine Sanders'}) CREATE (hf)-[:STUDENT]->(_090:Student {name: 'Kerry Rollins'}) CREATE (hf)-[:STUDENT]->(_091:Student {name: 'Virginia Sweet'}) CREATE (hf)-[:STUDENT]->(_092:Student {name: 'Sophia Merrill'}) CREATE (hf)-[:STUDENT]->(_093:Student {name: 'Hedda Carson'}) CREATE (hf)-[:STUDENT]->(_094:Student {name: 'Tamekah Charles'}) CREATE (hf)-[:STUDENT]->(_095:Student {name: 'Knox Barton'}) CREATE (hf)-[:STUDENT]->(_096:Student {name: 'Ariel Porter'}) CREATE (hf)-[:STUDENT]->(_097:Student {name: 'Berk Wooten'}) CREATE (hf)-[:STUDENT]->(_098:Student {name: 'Galena Glenn'}) CREATE (hf)-[:STUDENT]->(_099:Student {name: 'Jolene Anderson'}) CREATE (hf)-[:STUDENT]->(_100:Student {name: 'Leonard Hewitt'}) CREATE (hf)-[:STUDENT]->(_101:Student {name: 'Maris Salazar'}) CREATE (hf)-[:STUDENT]->(_102:Student {name: 'Brian Frost'}) CREATE (hf)-[:STUDENT]->(_103:Student {name: 'Zane Moses'}) CREATE (hf)-[:STUDENT]->(_104:Student {name: 'Serina Finch'}) CREATE (hf)-[:STUDENT]->(_105:Student {name: 'Anastasia Fletcher'}) CREATE (hf)-[:STUDENT]->(_106:Student {name: 'Glenna Chapman'}) CREATE (hf)-[:STUDENT]->(_107:Student {name: 'Mufutau Gillespie'}) CREATE (hf)-[:STUDENT]->(_108:Student {name: 'Basil Guthrie'}) CREATE (hf)-[:STUDENT]->(_109:Student {name: 'Theodore Marsh'}) CREATE (hf)-[:STUDENT]->(_110:Student {name: 'Jaime Contreras'}) CREATE (hf)-[:STUDENT]->(_111:Student {name: 'Irma Poole'}) CREATE (hf)-[:STUDENT]->(_112:Student {name: 'Buckminster Bender'}) CREATE (hf)-[:STUDENT]->(_113:Student {name: 'Elton Morris'}) CREATE (hf)-[:STUDENT]->(_114:Student {name: 'Barbara Nguyen'}) CREATE (hf)-[:STUDENT]->(_115:Student {name: 'Tanya Kidd'}) CREATE (hf)-[:STUDENT]->(_116:Student {name: 'Kaden Hoover'}) CREATE (hf)-[:STUDENT]->(_117:Student {name: 'Christopher Bean'}) CREATE (hf)-[:STUDENT]->(_118:Student {name: 'Trevor Daugherty'}) CREATE (hf)-[:STUDENT]->(_119:Student {name: 'Rudyard Bates'}) CREATE (hf)-[:STUDENT]->(_120:Student {name: 'Stacy Monroe'}) CREATE (hf)-[:STUDENT]->(_121:Student {name: 'Kieran Keller'}) CREATE (hf)-[:STUDENT]->(_122:Student {name: 'Ivy Garrison'}) CREATE (hf)-[:STUDENT]->(_123:Student {name: 'Miranda Haynes'}) CREATE (hf)-[:STUDENT]->(_124:Student {name: 'Abigail Heath'}) CREATE (hf)-[:STUDENT]->(_125:Student {name: 'Margaret Santiago'}) CREATE (hf)-[:STUDENT]->(_126:Student {name: 'Cade Floyd'}) CREATE (hf)-[:STUDENT]->(_127:Student {name: 'Allen Crane'}) CREATE (hf)-[:STUDENT]->(_128:Student {name: 'Stella Gilliam'}) CREATE (hf)-[:STUDENT]->(_129:Student {name: 'Rashad Miller'}) CREATE (hf)-[:STUDENT]->(_130:Student {name: 'Francis Cox'}) CREATE (hf)-[:STUDENT]->(_131:Student {name: 'Darryl Rosario'}) CREATE (hf)-[:STUDENT]->(_132:Student {name: 'Michael Daniels'}) CREATE (hf)-[:STUDENT]->(_133:Student {name: 'Aretha Henderson'}) CREATE (hf)-[:STUDENT]->(_134:Student {name: 'Roth Barrera'}) CREATE (hf)-[:STUDENT]->(_135:Student {name: 'Yael Day'}) CREATE (hf)-[:STUDENT]->(_136:Student {name: 'Wynter Richmond'}) CREATE (hf)-[:STUDENT]->(_137:Student {name: 'Quyn Flowers'}) CREATE (hf)-[:STUDENT]->(_138:Student {name: 'Yvette Marquez'}) CREATE (hf)-[:STUDENT]->(_139:Student {name: 'Teagan Curry'}) CREATE (hf)-[:STUDENT]->(_140:Student {name: 'Brenden Bishop'}) CREATE (hf)-[:STUDENT]->(_141:Student {name: 'Montana Black'}) CREATE (hf)-[:STUDENT]->(_142:Student {name: 'Ramona Parker'}) CREATE (hf)-[:STUDENT]->(_143:Student {name: 'Merritt Hansen'}) CREATE (hf)-[:STUDENT]->(_144:Student {name: 'Melvin Vang'}) CREATE (hf)-[:STUDENT]->(_145:Student {name: 'Samantha Perez'}) CREATE (hf)-[:STUDENT]->(_146:Student {name: 'Thane Porter'}) CREATE (hf)-[:STUDENT]->(_147:Student {name: 'Vaughan Haynes'}) CREATE (hf)-[:STUDENT]->(_148:Student {name: 'Irma Miles'}) CREATE (hf)-[:STUDENT]->(_149:Student {name: 'Amery Jensen'}) CREATE (hf)-[:STUDENT]->(_150:Student {name: 'Montana Holman'}) CREATE (hf)-[:STUDENT]->(_151:Student {name: 'Kimberly Langley'}) CREATE (hf)-[:STUDENT]->(_152:Student {name: 'Ebony Bray'}) CREATE (hf)-[:STUDENT]->(_153:Student {name: 'Ishmael Pollard'}) CREATE (hf)-[:STUDENT]->(_154:Student {name: 'Illana Thompson'}) CREATE (hf)-[:STUDENT]->(_155:Student {name: 'Rhona Bowers'}) CREATE (hf)-[:STUDENT]->(_156:Student {name: 'Lilah Dotson'}) CREATE (hf)-[:STUDENT]->(_157:Student {name: 'Shelly Roach'}) CREATE (hf)-[:STUDENT]->(_158:Student {name: 'Celeste Woodward'}) CREATE (hf)-[:STUDENT]->(_159:Student {name: 'Christen Lynn'}) CREATE (hf)-[:STUDENT]->(_160:Student {name: 'Miranda Slater'}) CREATE (hf)-[:STUDENT]->(_161:Student {name: 'Lunea Clements'}) CREATE (hf)-[:STUDENT]->(_162:Student {name: 'Lester Francis'}) CREATE (hf)-[:STUDENT]->(_163:Student {name: 'David Fischer'}) CREATE (hf)-[:STUDENT]->(_164:Student {name: 'Kyra Bean'}) CREATE (hf)-[:STUDENT]->(_165:Student {name: 'Imelda Alston'}) CREATE (hf)-[:STUDENT]->(_166:Student {name: 'Finn Farrell'}) CREATE (hf)-[:STUDENT]->(_167:Student {name: 'Kirby House'}) CREATE (hf)-[:STUDENT]->(_168:Student {name: 'Amanda Zamora'}) CREATE (hf)-[:STUDENT]->(_169:Student {name: 'Rina Franco'}) CREATE (hf)-[:STUDENT]->(_170:Student {name: 'Sonia Lane'}) CREATE (hf)-[:STUDENT]->(_171:Student {name: 'Nora Jefferson'}) CREATE (hf)-[:STUDENT]->(_172:Student {name: 'Colton Ortiz'}) CREATE (hf)-[:STUDENT]->(_173:Student {name: 'Alden Munoz'}) CREATE (hf)-[:STUDENT]->(_174:Student {name: 'Ferdinand Cline'}) CREATE (hf)-[:STUDENT]->(_175:Student {name: 'Cynthia Prince'}) CREATE (hf)-[:STUDENT]->(_176:Student {name: 'Asher Hurst'}) CREATE (hf)-[:STUDENT]->(_177:Student {name: 'MacKensie Stevenson'}) CREATE (hf)-[:STUDENT]->(_178:Student {name: 'Sydnee Sosa'}) CREATE (hf)-[:STUDENT]->(_179:Student {name: 'Dante Callahan'}) CREATE (hf)-[:STUDENT]->(_180:Student {name: 'Isabella Santana'}) CREATE (hf)-[:STUDENT]->(_181:Student {name: 'Raven Bowman'}) CREATE (hf)-[:STUDENT]->(_182:Student {name: 'Kirby Bolton'}) CREATE (hf)-[:STUDENT]->(_183:Student {name: 'Peter Shaffer'}) CREATE (hf)-[:STUDENT]->(_184:Student {name: 'Fletcher Beard'}) CREATE (hf)-[:STUDENT]->(_185:Student {name: 'Irene Lowe'}) CREATE (hf)-[:STUDENT]->(_186:Student {name: 'Ella Talley'}) CREATE (hf)-[:STUDENT]->(_187:Student {name: 'Jorden Kerr'}) CREATE (hf)-[:STUDENT]->(_188:Student {name: 'Macey Delgado'}) CREATE (hf)-[:STUDENT]->(_189:Student {name: 'Ulysses Graves'}) CREATE (hf)-[:STUDENT]->(_190:Student {name: 'Declan Blake'}) CREATE (hf)-[:STUDENT]->(_191:Student {name: 'Lila Hurst'}) CREATE (hf)-[:STUDENT]->(_192:Student {name: 'David Rasmussen'}) CREATE (hf)-[:STUDENT]->(_193:Student {name: 'Desiree Cortez'}) CREATE (hf)-[:STUDENT]->(_194:Student {name: 'Myles Horton'}) CREATE (hf)-[:STUDENT]->(_195:Student {name: 'Rylee Willis'}) CREATE (hf)-[:STUDENT]->(_196:Student {name: 'Kelsey Yates'}) CREATE (hf)-[:STUDENT]->(_197:Student {name: 'Alika Stanton'}) CREATE (hf)-[:STUDENT]->(_198:Student {name: 'Ria Campos'}) CREATE (hf)-[:STUDENT]->(_199:Student {name: 'Elijah Hendricks'}) CREATE (hf)-[:STUDENT]->(_200:Student {name: 'Hayes House'}) CREATE (hf)-[:DEPARTMENT]->(md:Department {name: 'Mathematics'}) CREATE (hf)-[:DEPARTMENT]->(sd:Department {name: 'Science'}) CREATE (hf)-[:DEPARTMENT]->(ed:Department {name: 'Engineering'}) CREATE (pm:Subject {name: 'Pure Mathematics'}) CREATE (am:Subject {name: 'Applied Mathematics'}) CREATE (ph:Subject {name: 'Physics'}) CREATE (ch:Subject {name: 'Chemistry'}) CREATE (bi:Subject {name: 'Biology'}) CREATE (es:Subject {name: 'Earth Science'}) CREATE (me:Subject {name: 'Mechanical Engineering'}) CREATE (ce:Subject {name: 'Chemical Engineering'}) CREATE (se:Subject {name: 'Systems Engineering'}) CREATE (ve:Subject {name: 'Civil Engineering'}) CREATE (ee:Subject {name: 'Electrical Engineering'}) CREATE (sd)-[:CURRICULUM]->(ph) CREATE (sd)-[:CURRICULUM]->(ch) CREATE (sd)-[:CURRICULUM]->(bi) CREATE (sd)-[:CURRICULUM]->(es) CREATE (md)-[:CURRICULUM]->(pm) CREATE (md)-[:CURRICULUM]->(am) CREATE (ed)-[:CURRICULUM]->(me) CREATE (ed)-[:CURRICULUM]->(se) CREATE (ed)-[:CURRICULUM]->(ce) CREATE (ed)-[:CURRICULUM]->(ee) CREATE (ed)-[:CURRICULUM]->(ve) CREATE (ph)-[:TAUGHT_BY]->(mrb) CREATE (ph)-[:TAUGHT_BY]->(mrk) CREATE (ch)-[:TAUGHT_BY]->(mrk) CREATE (ch)-[:TAUGHT_BY]->(mrsn) CREATE (bi)-[:TAUGHT_BY]->(mrsn) CREATE (bi)-[:TAUGHT_BY]->(mrsf) CREATE (es)-[:TAUGHT_BY]->(msn) CREATE (pm)-[:TAUGHT_BY]->(mrf) CREATE (pm)-[:TAUGHT_BY]->(mrm) CREATE (pm)-[:TAUGHT_BY]->(mrvdg) CREATE (am)-[:TAUGHT_BY]->(mrsg) CREATE (am)-[:TAUGHT_BY]->(mrspb) CREATE (am)-[:TAUGHT_BY]->(mrvdg) CREATE (me)-[:TAUGHT_BY]->(mrj) CREATE (ce)-[:TAUGHT_BY]->(mrsa) CREATE (se)-[:TAUGHT_BY]->(mrs) CREATE (ve)-[:TAUGHT_BY]->(msd) CREATE (ee)-[:TAUGHT_BY]->(mrsf) CREATE(_001)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_188) CREATE(_002)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_198) CREATE(_003)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_106) CREATE(_004)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_029) CREATE(_005)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_153) CREATE(_006)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_061) CREATE(_007)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_177) CREATE(_008)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_115) CREATE(_009)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_131) CREATE(_010)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_142) CREATE(_011)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_043) CREATE(_012)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_065) CREATE(_013)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_074) CREATE(_014)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_165) CREATE(_015)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_117) CREATE(_016)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_086) CREATE(_017)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_062) CREATE(_018)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_033) CREATE(_019)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_171) CREATE(_020)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_117) CREATE(_021)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_086) CREATE(_022)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_121) CREATE(_023)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_049) CREATE(_024)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_152) CREATE(_025)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_152) CREATE(_026)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_085) CREATE(_027)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_084) CREATE(_028)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_143) CREATE(_029)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_099) CREATE(_030)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_094) CREATE(_031)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_125) CREATE(_032)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_024) CREATE(_033)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_075) CREATE(_034)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_161) CREATE(_035)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_197) CREATE(_036)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_067) CREATE(_037)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_049) CREATE(_038)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_038) CREATE(_039)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_116) CREATE(_040)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_149) CREATE(_041)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_044) CREATE(_042)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_150) CREATE(_043)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_095) CREATE(_044)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_016) CREATE(_045)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_021) CREATE(_046)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_047)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_189) CREATE(_048)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_094) CREATE(_049)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_161) CREATE(_050)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_098) CREATE(_051)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_145) CREATE(_052)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_148) CREATE(_053)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_054)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_196) CREATE(_055)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_175) CREATE(_056)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_010) CREATE(_057)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_042) CREATE(_058)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_196) CREATE(_059)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_067) CREATE(_060)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_034) CREATE(_061)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_062)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_088) CREATE(_063)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_142) CREATE(_064)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_88) CREATE(_065)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_099) CREATE(_066)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_178) CREATE(_067)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_041) CREATE(_068)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_022) CREATE(_069)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_109) CREATE(_070)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_045) CREATE(_071)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_182) CREATE(_072)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_144) CREATE(_073)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_140) CREATE(_074)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_128) CREATE(_075)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_149) CREATE(_076)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_038) CREATE(_077)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_104) CREATE(_078)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_032) CREATE(_079)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_080)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_117) CREATE(_081)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_174) CREATE(_082)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_162) CREATE(_083)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_011) CREATE(_084)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_145) CREATE(_085)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_003) CREATE(_086)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_067) CREATE(_087)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_173) CREATE(_088)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_128) CREATE(_089)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_177) CREATE(_090)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_076) CREATE(_091)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_137) CREATE(_092)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_024) CREATE(_093)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_156) CREATE(_094)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_020) CREATE(_095)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_112) CREATE(_096)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_193) CREATE(_097)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_006) CREATE(_098)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_117) CREATE(_099)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_141) CREATE(_100)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_001) CREATE(_101)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_169) CREATE(_102)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_161) CREATE(_103)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_136) CREATE(_104)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_125) CREATE(_105)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_127) CREATE(_106)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_095) CREATE(_107)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_036) CREATE(_108)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_074) CREATE(_109)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_150) CREATE(_110)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_191) CREATE(_111)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_068) CREATE(_112)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_019) CREATE(_113)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_035) CREATE(_114)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_061) CREATE(_115)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_070) CREATE(_116)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_069) CREATE(_117)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_096) CREATE(_118)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_107) CREATE(_119)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_140) CREATE(_120)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_167) CREATE(_121)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_120) CREATE(_122)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_090) CREATE(_123)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_004) CREATE(_124)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_083) CREATE(_125)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_094) CREATE(_126)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_174) CREATE(_127)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_168) CREATE(_128)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_084) CREATE(_129)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_186) CREATE(_130)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_090) CREATE(_131)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_010) CREATE(_132)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_031) CREATE(_133)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_059) CREATE(_134)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_037) CREATE(_135)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_012) CREATE(_136)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_197) CREATE(_137)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_059) CREATE(_138)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_065) CREATE(_139)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_175) CREATE(_140)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_170) CREATE(_141)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_191) CREATE(_142)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_139) CREATE(_143)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_054) CREATE(_144)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_176) CREATE(_145)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_188) CREATE(_146)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_072) CREATE(_147)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_096) CREATE(_148)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_108) CREATE(_149)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_155) CREATE(_150)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_151)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_076) CREATE(_152)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_169) CREATE(_153)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_179) CREATE(_154)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_186) CREATE(_155)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_058) CREATE(_156)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_071) CREATE(_157)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_073) CREATE(_158)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_003) CREATE(_159)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_182) CREATE(_160)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_199) CREATE(_161)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_072) CREATE(_162)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_014) CREATE(_163)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_163) CREATE(_164)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_038) CREATE(_165)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_044) CREATE(_166)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_136) CREATE(_167)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_038) CREATE(_168)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_110) CREATE(_169)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_198) CREATE(_170)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_178) CREATE(_171)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_022) CREATE(_172)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_020) CREATE(_173)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_164) CREATE(_174)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_075) CREATE(_175)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_175) CREATE(_176)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_003) CREATE(_177)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_120) CREATE(_178)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_006) CREATE(_179)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_057) CREATE(_180)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_185) CREATE(_181)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_074) CREATE(_182)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_120) CREATE(_183)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_131) CREATE(_184)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_045) CREATE(_185)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_200) CREATE(_186)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_140) CREATE(_187)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_150) CREATE(_188)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_014) CREATE(_189)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_096) CREATE(_190)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_063) CREATE(_191)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_079) CREATE(_192)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_121) CREATE(_193)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_196) CREATE(_194)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_029) CREATE(_195)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_164) CREATE(_196)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_083) CREATE(_197)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_101) CREATE(_198)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_039) CREATE(_199)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_011) CREATE(_200)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_073) CREATE(_001)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_129) CREATE(_002)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_078) CREATE(_003)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_181) CREATE(_004)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_162) CREATE(_005)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_057) CREATE(_006)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_111) CREATE(_007)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_027) CREATE(_008)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_009)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_132) CREATE(_010)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_147) CREATE(_011)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_083) CREATE(_012)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_118) CREATE(_013)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_099) CREATE(_014)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_140) CREATE(_015)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_107) CREATE(_016)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_116) CREATE(_017)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_018)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_069) CREATE(_019)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_024) CREATE(_020)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_022) CREATE(_021)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_184) CREATE(_022)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_200) CREATE(_023)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_200) CREATE(_024)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_075) CREATE(_025)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_087) CREATE(_026)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_163) CREATE(_027)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_115) CREATE(_028)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_042) CREATE(_029)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_058) CREATE(_030)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_188) CREATE(_031)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_032)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_015) CREATE(_033)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_130) CREATE(_034)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_141) CREATE(_035)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_158) CREATE(_036)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_020) CREATE(_037)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_102) CREATE(_038)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_184) CREATE(_039)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_196) CREATE(_040)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_003) CREATE(_041)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_171) CREATE(_042)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_050) CREATE(_043)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_085) CREATE(_044)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_025) CREATE(_045)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_084) CREATE(_046)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_118) CREATE(_047)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_048)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_099) CREATE(_049)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_071) CREATE(_050)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_178) CREATE(_051)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_200) CREATE(_052)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_059) CREATE(_053)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_095) CREATE(_054)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_185) CREATE(_055)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_108) CREATE(_056)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_083) CREATE(_057)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_031) CREATE(_058)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_054) CREATE(_059)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_198) CREATE(_060)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_138) CREATE(_061)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_176) CREATE(_062)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_086) CREATE(_063)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_032) CREATE(_064)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_101) CREATE(_065)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_181) CREATE(_066)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_153) CREATE(_067)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_166) CREATE(_068)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_003) CREATE(_069)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_027) CREATE(_070)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_021) CREATE(_071)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_193) CREATE(_072)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_022) CREATE(_073)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_108) CREATE(_074)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_174) CREATE(_075)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_019) CREATE(_076)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_179) CREATE(_077)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_005) CREATE(_078)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_014) CREATE(_079)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_017) CREATE(_080)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_146) CREATE(_081)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_098) CREATE(_082)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_171) CREATE(_083)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_099) CREATE(_084)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_161) CREATE(_085)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_098) CREATE(_086)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_199) CREATE(_087)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_057) CREATE(_088)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_164) CREATE(_089)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_064) CREATE(_090)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_109) CREATE(_091)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_077) CREATE(_092)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_124) CREATE(_093)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_181) CREATE(_094)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_142) CREATE(_095)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_191) CREATE(_096)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_093) CREATE(_097)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_031) CREATE(_098)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_045) CREATE(_099)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_182) CREATE(_100)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_043) CREATE(_101)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_146) CREATE(_102)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_141) CREATE(_103)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_040) CREATE(_104)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_199) CREATE(_105)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_063) CREATE(_106)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_180) CREATE(_107)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_010) CREATE(_108)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_122) CREATE(_109)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_111) CREATE(_110)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_065) CREATE(_111)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_199) CREATE(_112)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_135) CREATE(_113)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_172) CREATE(_114)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_096) CREATE(_115)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_028) CREATE(_116)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_109) CREATE(_117)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_191) CREATE(_118)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_169) CREATE(_119)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_101) CREATE(_120)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_184) CREATE(_121)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_032) CREATE(_122)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_127) CREATE(_123)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_129) CREATE(_124)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_116) CREATE(_125)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_150) CREATE(_126)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_175) CREATE(_127)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_018) CREATE(_128)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_165) CREATE(_129)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_117) CREATE(_130)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_066) CREATE(_131)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_050) CREATE(_132)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_197) CREATE(_133)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_111) CREATE(_134)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_125) CREATE(_135)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_112) CREATE(_136)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_173) CREATE(_137)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_181) CREATE(_138)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_072) CREATE(_139)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_115) CREATE(_140)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_013) CREATE(_141)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_140) CREATE(_142)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_003) CREATE(_143)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_144) CREATE(_144)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_145)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_015) CREATE(_146)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_061) CREATE(_147)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_009) CREATE(_148)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_145) CREATE(_149)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_176) CREATE(_150)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_152) CREATE(_151)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_055) CREATE(_152)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_157) CREATE(_153)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_090) CREATE(_154)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_162) CREATE(_155)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_146) CREATE(_156)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_073) CREATE(_157)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_044) CREATE(_158)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_154) CREATE(_159)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_160)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_168) CREATE(_161)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_122) CREATE(_162)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_015) CREATE(_163)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_041) CREATE(_164)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_087) CREATE(_165)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_104) CREATE(_166)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_116) CREATE(_167)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_019) CREATE(_168)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_021) CREATE(_169)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_065) CREATE(_170)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_183) CREATE(_171)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_147) CREATE(_172)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_045) CREATE(_173)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_172) CREATE(_174)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_137) CREATE(_175)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_145) CREATE(_176)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_138) CREATE(_177)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_078) CREATE(_178)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_176) CREATE(_179)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_062) CREATE(_180)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_145) CREATE(_181)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_178) CREATE(_182)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_173) CREATE(_183)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_107) CREATE(_184)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_198) CREATE(_185)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_057) CREATE(_186)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_041) CREATE(_187)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_076) CREATE(_188)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_132) CREATE(_189)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_093) CREATE(_190)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_191)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_183) CREATE(_192)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_140) CREATE(_193)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_196) CREATE(_194)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_117) CREATE(_195)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_054) CREATE(_196)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_197) CREATE(_197)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_086) CREATE(_198)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_190) CREATE(_199)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_143) CREATE(_200)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_144) CREATE(_001)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_050) CREATE(_002)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_024) CREATE(_003)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_135) CREATE(_004)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_094) CREATE(_005)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_143) CREATE(_006)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_066) CREATE(_007)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_193) CREATE(_008)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_022) CREATE(_009)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_074) CREATE(_010)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_166) CREATE(_011)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_131) CREATE(_012)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_036) CREATE(_013)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_016) CREATE(_014)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_108) CREATE(_015)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_083) CREATE(_016)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_120) CREATE(_017)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_016) CREATE(_018)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_130) CREATE(_019)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_013) CREATE(_020)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_186) CREATE(_021)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_026) CREATE(_022)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_040) CREATE(_023)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_064) CREATE(_024)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_072) CREATE(_025)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_017) CREATE(_026)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_159) CREATE(_027)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_076) CREATE(_028)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_014) CREATE(_029)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_089) CREATE(_030)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_157) CREATE(_031)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_029) CREATE(_032)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_184) CREATE(_033)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_131) CREATE(_034)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_171) CREATE(_035)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_051) CREATE(_036)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_031) CREATE(_037)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_200) CREATE(_038)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_057) CREATE(_039)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_023) CREATE(_040)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_109) CREATE(_041)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_177) CREATE(_042)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_020) CREATE(_043)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_069) CREATE(_044)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_068) CREATE(_045)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_027) CREATE(_046)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_018) CREATE(_047)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_154) CREATE(_048)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_090) CREATE(_049)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_166) CREATE(_050)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_150) CREATE(_051)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_045) CREATE(_052)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_123) CREATE(_053)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_160) CREATE(_054)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_088) CREATE(_055)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_196) CREATE(_056)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_120) CREATE(_057)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_110) CREATE(_058)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_060) CREATE(_059)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_084) CREATE(_060)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_030) CREATE(_061)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_170) CREATE(_062)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_027) CREATE(_063)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_018) CREATE(_064)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_004) CREATE(_065)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_138) CREATE(_066)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_009) CREATE(_067)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_172) CREATE(_068)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_077) CREATE(_069)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_112) CREATE(_070)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_069) CREATE(_071)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_018) CREATE(_072)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_172) CREATE(_073)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_053) CREATE(_074)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_098) CREATE(_075)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_068) CREATE(_076)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_132) CREATE(_077)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_134) CREATE(_078)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_138) CREATE(_079)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_080)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_125) CREATE(_081)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_129) CREATE(_082)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_048) CREATE(_083)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_145) CREATE(_084)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_101) CREATE(_085)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_131) CREATE(_086)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_011) CREATE(_087)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_200) CREATE(_088)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_070) CREATE(_089)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_008) CREATE(_090)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_107) CREATE(_091)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_002) CREATE(_092)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_180) CREATE(_093)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_001) CREATE(_094)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_120) CREATE(_095)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_135) CREATE(_096)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_116) CREATE(_097)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_171) CREATE(_098)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_122) CREATE(_099)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_100) CREATE(_100)-[:BUDDY]->(:StudyBuddy)<-[:BUDDY]-(_130)
MATCH (a), (b) WHERE a <> b RETURN a, b
MATCH (a), (b) WHERE a.id = 0 AND (a)-[:T]->(b:TheLabel) OR (a)-[:T*]->(b:MissingLabel) RETURN DISTINCT b
MATCH (:Root {name: 'x'})-->(i:TextNode) WHERE i.var > 'te' RETURN i
MATCH (:Root {name: 'x'})-->(i:TextNode) WHERE i.var > 'te' AND i:TextNode RETURN i
MATCH (:Root {name: 'x'})-->(i:TextNode) WHERE i.var > 'te' AND i.var IS NOT NULL RETURN i
MATCH (:Root {name: 'x'})-->(i) WHERE i.var > 'te' OR i.var IS NOT NULL RETURN i
CREATE (a {name: 'A'}), (b:B {name: 'B'}), (c:C {name: 'C'}), (d:D {name: 'C'}) CREATE (a)-[:T]->(b), (a)-[:T]->(c), (a)-[:T]->(d)
MATCH (a)-->(b) WHERE b:B OPTIONAL MATCH (a)-->(c) WHERE c:C RETURN a.name
MATCH (n:Single) OPTIONAL MATCH (n)-[r]-(m) WHERE m:NonExistent RETURN r
MATCH (n:Single) OPTIONAL MATCH (n)-[r]-(m) WHERE m.num = 42 RETURN m
CREATE (a), (b {name: 'Mark'}) CREATE (a)-[:T]->(b)
MATCH (n)-->(x0) OPTIONAL MATCH (x0)-->(x1) WHERE x1.name = 'bar' RETURN x0.name
MATCH (a1)-[r]->() WITH r, a1 LIMIT 1 OPTIONAL MATCH (a2)<-[r]-(b2) WHERE a1 = a2 RETURN a1, r, b2, a2
CREATE (:X {val: 1})-[:E1]->(:Y {val: 2})-[:E2]->(:Z {val: 3}), (:X {val: 4})-[:E1]->(:Y {val: 5}), (:X {val: 6})
MATCH (x:X) OPTIONAL MATCH (x)-[:E1]->(y:Y) WHERE x.val < y.val RETURN x, y
MATCH (x:X) OPTIONAL MATCH (x)-[:E1]->(y:Y)-[:E2]->(z:Z) WHERE x.val < z.val RETURN x, y, z
MATCH (x:X) OPTIONAL MATCH (x)-[:E1]->(y:Y) OPTIONAL MATCH (y)-[:E2]->(z:Z) WHERE x.val < z.val RETURN x, y, z
MATCH (a), (b) WHERE a = b RETURN a, b
MATCH (a:A), (b:B) WHERE a.id = b.id RETURN a, b
MATCH (n)-[rel]->(x) WHERE n.animal = x.animal RETURN n, x
MATCH (a)--(b)--(c)--(d)--(a), (b)--(d) WHERE a.id = 1 AND c.id = 2 RETURN d
MATCH (advertiser)-[:ADV_HAS_PRODUCT]->(out)-[:AP_HAS_VALUE]->(red)<-[:AA_HAS_VALUE]-(a) WHERE advertiser.id = $1 AND a.id = $2 AND red.name = 'red' AND out.name = 'product1' RETURN out.name
CREATE (:A {id: 0})<-[:ADMIN]-(:B {id: 1})-[:ADMIN]->(:C {id: 2, a: 'A'})
MATCH (a)-[:ADMIN]-(b) WHERE a:A RETURN a.id, b.id
MATCH (a)<--()<--(b)-->()-->(c) WHERE a:A RETURN c
CREATE (), ({name: 'Bar'}), (:Bar)
MATCH (n) WHERE n.name = 'Bar' RETURN n
CREATE (a:Person {name: 'Alice'}), (b:Person {name: 'Bob'}), (c), (d) CREATE (a)-[:T]->(c), (b)-[:T]->(d)
MATCH (n:Person)-->() WHERE n.name = 'Bob' RETURN n
CREATE ({name: 'Someone'})<-[:X]-()-[:X]->({name: 'Andres'})
MATCH ()-[rel:X]-(a) WHERE a.name = 'Andres' RETURN a
CREATE (:A)-[:T {name: 'bar'}]->(:B {name: 'me'})
MATCH (a)-[r]->(b) WHERE b.name = $param RETURN r
CREATE (a:A {name: 'A'}), (b:B {name: 'B'}), (c:C {name: 'C'}), (a)-[:KNOWS]->(b), (a)-[:HATES]->(c)
MATCH (n {name: 'A'})-[r]->(x) WHERE type(r) = 'KNOWS' RETURN x
MATCH (node)-[r:KNOWS]->(a) WHERE r.name = 'monkey' RETURN a
MATCH (a)-[r]->(b) WHERE r.name = $param RETURN b
CREATE (a:A {p1: 12}), (b:B {p2: 13}), (c:C)
MATCH (n) WHERE n.p1 = 12 OR n.p2 = 13 RETURN n
MATCH (n)-[r]->(x) WHERE type(r) = 'KNOWS' OR type(r) = 'HATES' RETURN r
MATCH p = (n)-->(x) WHERE length(p) = 1 RETURN x
MATCH p = (n)-->(x) WHERE length(p) = 10 RETURN x
MATCH (n) MATCH r = (n)-[*]->() WHERE r.name = 'apa' RETURN r
MATCH (a) WHERE count(a) > 10 RETURN a
CREATE (n1 {num: 1}), (n2 {num: 3}), (n3 {num: -5})
MATCH (n) RETURN n.num AS prop ORDER BY n.num
MATCH (n) RETURN n.num AS prop ORDER BY n.num DESC
CREATE ({division: 'A', age: 22}), ({division: 'B', age: 33}), ({division: 'B', age: 44}), ({division: 'C', age: 55})
MATCH (n) RETURN n.division, max(n.age) ORDER BY max(n.age)
MATCH (a) RETURN DISTINCT a ORDER BY a.name
MATCH (a)-->(b) RETURN DISTINCT b ORDER BY b.name
CREATE (:L1), (:L2), (:L3)
MATCH (a) RETURN a, count(*) ORDER BY count(*)
CREATE ({name: 'nisse'})
MATCH (n) RETURN n.name, count(*) AS foo ORDER BY n.name
CREATE ({id: 1}), ({id: 10})
MATCH (n) RETURN * ORDER BY n.id
MATCH (n) RETURN DISTINCT n.id AS id ORDER BY id DESC
MATCH (n) RETURN DISTINCT n ORDER BY n.id
CREATE (:A), (:X), (:X)
MATCH (a:A), (b:X) RETURN count(a) * 10 + count(b) * 5 AS x ORDER BY x
CREATE (a:A), (b:B), (c:C), (d:D), (e:E), (f:F) CREATE (a)-[:R]->(b) CREATE (c)-[:R]->(d) CREATE (d)-[:R]->(e) CREATE (e)-[:R]->(f)
MATCH p = (a)-[*]->(b) RETURN collect(nodes(p)) AS paths, length(p) AS l ORDER BY l
CREATE ({name: 'A', age: 13}), ({name: 'B', age: 12}), ({name: 'C', age: 11})
MATCH (a) RETURN DISTINCT a.name ORDER BY a.age
MATCH (n) RETURN n.num1 ORDER BY max(n.num2)
CREATE ({division: 'Sweden'}) CREATE ({division: 'Germany'}) CREATE ({division: 'England'}) CREATE ({division: 'Sweden'})
MATCH (n) RETURN n.division, count(*) ORDER BY count(*) DESC, n.division ASC
UNWIND [true, false] AS bools RETURN bools ORDER BY bools
UNWIND [true, false] AS bools RETURN bools ORDER BY bools DESC
UNWIND ['.*', '', ' ', 'one'] AS strings RETURN strings ORDER BY strings
UNWIND ['.*', '', ' ', 'one'] AS strings RETURN strings ORDER BY strings DESC
UNWIND [1, 3, 2] AS ints RETURN ints ORDER BY ints
UNWIND [1, 3, 2] AS ints RETURN ints ORDER BY ints DESC
UNWIND [1.5, 1.3, 999.99] AS floats RETURN floats ORDER BY floats
UNWIND [1.5, 1.3, 999.99] AS floats RETURN floats ORDER BY floats DESC
UNWIND [[], ['a'], ['a', 1], [1], [1, 'a'], [1, null], [null, 1], [null, 2]] AS lists RETURN lists ORDER BY lists
UNWIND [[], ['a'], ['a', 1], [1], [1, 'a'], [1, null], [null, 1], [null, 2]] AS lists RETURN lists ORDER BY lists DESC
MATCH p = (n:N)-[r:REL]->() UNWIND [n, r, p, 1.5, ['list'], 'text', null, false, 0.0 / 0.0, {a: 'map'}] AS types RETURN types ORDER BY types
MATCH p = (n:N)-[r:REL]->() UNWIND [n, r, p, 1.5, ['list'], 'text', null, false, 0.0 / 0.0, {a: 'map'}] AS types RETURN types ORDER BY types DESC
MATCH (n) RETURN n.num AS n ORDER BY n + 2
WITH [0, 1] AS prows, [[2], [3, 4]] AS qrows UNWIND prows AS p UNWIND qrows[p] AS q WITH p, count(q) AS rng RETURN p ORDER BY rng
CREATE (c1:Crew {name: 'Neo', rank: 1}), (c2:Crew {name: 'Neo', rank: 2}), (c3:Crew {name: 'Neo', rank: 3}), (c4:Crew {name: 'Neo', rank: 4}), (c5:Crew {name: 'Neo', rank: 5})
MATCH (c:Crew {name: 'Neo'}) WITH c, 0 AS relevance RETURN c.rank AS rank ORDER BY relevance, c.rank
MATCH (person) RETURN avg(person.age) AS avgAge ORDER BY $age + avg(person.age) - 1000
MATCH (me: Person)--(you: Person) RETURN me.age AS age, count(you.age) AS cnt ORDER BY age, age + count(you.age)
MATCH (me: Person)--(you: Person) RETURN me.age AS age, count(you.age) AS cnt ORDER BY me.age + count(you.age)
MATCH (me: Person)--(you: Person) RETURN count(you.age) AS agg ORDER BY me.age + count(you.age)
MATCH (me: Person)--(you: Person) RETURN me.age + you.age, count(*) AS cnt ORDER BY me.age + you.age + count(*)
CALL foo. bar.baz();
CALL foo.bar.baz(1+n, 'foo');
CALL foo.bar.baz(1, 2) YIELD a AS x, b AS y;
CALL foo.bar.baz(1, 2) YIELD -;
CALL foo.bar.baz(1, 2) YIELD a WHERE a = 5;
RETURN 1;
CYPHER RETURN 1;
CYPHER 3.0 RETURN 1;
CYPHER runtime=fast RETURN 1;
CYPHER 2.3 runtime=fast planner=slow RETURN 1;
EXPLAIN RETURN 1;
PROFILE RETURN 1;
CYPHER 3.0 PROFILE RETURN 1;
RETURN reduce(a = 0, b in list | a + b);
RETURN -1, +1, NOT false;
RETURN a-1, 1 / b, c STARTS WITH 'foo', d =~ '.*', e = 1;
RETURN NOT 1 - 2 AND 3;
RETURN a < 1, 4 > b > 2, 2 <= c >= 5;
RETURN foo(bar, baz), sum(DISTINCT a), count(*), count(DISTINCT *);
RETURN fuz .foo(bar, baz);
RETURN foo[n];
RETURN foo[1..5], bar[..n+5], baz[..];
RETURN 3 IN [[1,2,3]][0] AS r
RETURN 1 UNION RETURN 2;
MATCH (x:Foo) RETURN x UNION ALL MATCH (x:Bar) RETURN x;
:hunter
:hunter s thompson
:thompson 'hunter s'
:thompson lastname='hunter s'
:hunter :s;:thompson // loathing
:hunter \ //firstname s \   \  thompson //lastname
:hunter\;s\\
:hunter /*;s */thompson
:hunter //;s :thompson \
CREATE (n)-[:KNOWS]->(f);
CREATE UNIQUE (n)-[:KNOWS]->(f);
MATCH (n)-[:KNOWS]->(f) RETURN f;
OPTIONAL MATCH (n) RETURN n;
MATCH (n) WHERE n:Foo RETURN n;
MATCH (n:Foo) USING INDEX n:Foo(bar) RETURN n;
MATCH (n), (m) USING JOIN ON n, m RETURN n;
MATCH (n:Foo) USING SCAN n:Foo RETURN n;
/*MATCH*/ FOREACH (x IN [1,2,3] | SET n.foo = x REMOVE n.bar)
RETURN [ x in list /* nothing */ ];
RETURN [x in list WHERE x.foo < 10 | x.bar ];
RETURN filter(x in list WHERE x.foo < 10);
RETURN extract(x in list | x.bar);
RETURN all(x in list WHERE x.foo < 10);
RETURN any(x in list WHERE x.foo < 10);
RETURN single(x in list WHERE x.foo < 10);
RETURN none(x in list WHERE x.foo < 10);
RETURN [ (a)-->(b) | b.name ];
MATCH (n:Label) RETURN n

;
/*foo*/
/*foo*/;
foo
foo;
return 1
return 1;
:foo bar
:foo bar // baz
return 1; return 2; ; ;
return 1; return 2; ; // foo
return 1; return 2; ; foo
return 1; return 2; return 3
MATCH (n) RETURN n;
MATCH (n:Foo) RETURN n;
MATCH (n:Foo:Bar) RETURN n;
MATCH (n:Person {name: 'Hunter'}) RETURN n;
MATCH (n:Person {param}) RETURN n;
MATCH (n)-[:Foo]->(m) RETURN n;
MATCH (n)-[r:Foo*]-(m) RETURN n;
MATCH (n)<-[r:Foo*5..]-(m) RETURN n;
MATCH (n)<-[r:Foo*..9]->(m) RETURN n;
MATCH (n)<-[r:Foo*7]->(m) RETURN n;
RETURN (n)-[:Foo {start:1999, end:2000}]->(m) AS p;
RETURN (n)-[:Foo {param}]->(m) AS p;
MATCH p = (n)-[:Foo]->(m) RETURN p;
MATCH p = shortestPath((n)-[:Foo]->(m)) RETURN n;
RETURN allShortestPaths((n)-[:Foo]->(m)) AS p;
RETURN a{} AS x
RETURN map{x: 1, .y, z, .*}
CREATE INDEX ON :Foo(bar);
CREATE INDEX ON :Foo(bar, baz);
/* drop! */DROP INDEX ON /* a label */ :Foo(bar);
/* drop! */DROP INDEX ON /* a label */ :Foo(bar, baz);
START n=node:index(foo = 'bar');
START n=node:index('bar');
START n=node(65, 78, 3, 0) // find nodes RETURN n;
START n = node(*) RETURN /* all nodes */ n;
START n=rel:index(foo = 'bar');
START n=rel:index('bar');
START n=rel(65, 78, 3, 0) // find nodes RETURN n;
START n = rel(*) RETURN /* all rels */ n;
START n = node(*) /* predicate */ WHERE n.foo > 1 RETURN n;
CREATE CONSTRAINT ON (f:Foo) ASSERT f.bar IS UNIQUE;
DROP CONSTRAINT ON (f:Foo) ASSERT f.bar IS UNIQUE;
CREATE CONSTRAINT ON (f:Foo) ASSERT exists(f.bar);
DROP CONSTRAINT ON (f:Foo) ASSERT exists(f.bar);
CREATE CONSTRAINT ON ()-[f:Foo]-() ASSERT exists(f.bar);
DROP CONSTRAINT ON ()-[f:Foo]-() ASSERT exists(f.bar);
RETURN CASE x WHEN 1 THEN y WHEN 2 THEN z ELSE d END AS r
RETURN CASE x WHEN 1 THEN y WHEN 2 THEN z END AS r
RETURN CASE WHEN x=1 THEN y WHEN x=2 THEN z ELSE d END AS r
RETURN CASE WHEN x=1 THEN y WHEN x=2 THEN z END AS r
UNWIND [1,2,3] AS x RETURN x;
MERGE (n)-[:KNOWS]->(f) RETURN f;
MERGE (n:Foo) ON MATCH SET n.bar = 'baz' RETURN n;
MERGE (n:Foo) ON CREATE SET n.bar = 'baz', n:Bar RETURN n;
MERGE (n:Foo) ON CREATE SET n.bar = 'baz' ON MATCH SET n.bar = 'foo' RETURN n;
RETURN 'foo
RETURN 1; [1,2,3]
MATCH (n)
MATCH n; ; MATCH (n) RETURN n;
RETURN \
match (n) return n;
/* MATCH */ RETURN 1 AS x, 'bar' AS y
/* MATCH */ RETURN DISTINCT 1 AS x, 'bar' AS y
/* MATCH */ RETURN *, 1 AS x, 'bar' AS y
RETURN 1 AS x, 'bar' AS y ORDER BY x DESC, y ASC, z.prop + 10
RETURN *, 1 AS x, 'bar' AS y SKIP 10
RETURN *, 1 AS x, 'bar' AS y SKIP 10 LIMIT 5
USING PERIODIC COMMIT 500 CREATE (n);
USING PERIODIC COMMIT CREATE (n);
LOAD CSV FROM 'file:///movies.csv' AS m RETURN m;
LOAD CSV WITH HEADERS FROM {source} AS m RETURN m;
LOAD CSV FROM {source} AS m FIELDTERMINATOR '|' RETURN m;
/*MATCH*/ SET n.foo = bar;
/*MATCH*/ SET n = {foo: bar};
/*MATCH*/ SET n.foo.bar = baz;
/*MATCH*/ SET (n.foo).bar = baz;
/*MATCH*/ SET n += {foo: bar};
/*MATCH*/ SET n:Foo:Bar;
WITH 1 AS x, 'bar' AS y RETURN x, y
WITH DISTINCT 1 AS x, 'bar' AS y RETURN x, y
WITH *, 1 AS x, 'bar' AS y RETURN x, y
WITH 1 AS x, 'bar' AS y ORDER BY x DESC, y ASC, z.prop + 10
WITH *, 1 AS x, 'bar' AS y SKIP 10
WITH *, 1 AS x, 'bar' AS y SKIP 10 LIMIT 5
WITH * WHERE n.foo > 10
/*MATCH*/ REMOVE n:Foo, m:Bar:Baz
/*MATCH*/ REMOVE n.foo, m.bar.baz
/*MATCH*/ DELETE n, CASE WHEN exists(n.foo) THEN m ELSE n END;
/*MATCH*/ DETACH DELETE n, CASE WHEN exists(n.foo) THEN m ELSE n END;
