'Cannot run Cypher query

I have to do that:Find the students who are over 22 years old and are studying Databases. Expected result:

MATCH (p:Student)-[:Study]->(s:Subject)
WHERE p.age > 22 AND s.name = “Databases” 
RETURN p
Invalid input '“': expected whitespace, comment or an expression (line 2, column 31 (offset: 70))
"WHERE p.age > 22 AND s.name = “Databases”"


Solution 1:[1]

You are using the wrong double quotes (“ instead of "). The query should be:

MATCH (p:Student)-[:Study]->(s:Subject)
WHERE p.age > 22 AND s.name = "Databases"
RETURN p

Solution 2:[2]

Try using single quotes

MATCH (p:Student)-[:Study]->(s:Subject)
WHERE p.age > 22 AND s.name = 'Databases' 
RETURN p

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fbiville
Solution 2 Parth