I am running the below practice code from graph academy and noticed that the code has movie name in forward quotes i.e. 'Hoffa' while the custom output column name in backward quotes i.e. Year Born
, though both are text characters. I tried using the same forward quote (as in most programming languages)for both but it failed, throwing error for output field. I am wondering whats the logic behind having two separate style quotes.
MATCH (p:Person)-[:ACTED_IN]-(m:Movie)
WHERE m.title = 'Hoffa'
RETURN p.name AS Actor, p.born asYear Born
ORDER BY p.born DESC LIMIT 1