http://neo4j.com/docs/2.1/cypher-refcard/
labels(n)
MATCH n
RETURN distinct labels(n), count(n) as count_n
ORDER BY count_n desc
http://neo4j.com/docs/milestone/query-functions-scalar.html#functions-type
MATCH ()-[r]-()
RETURN distinct type(r), count(r) as count_r
ORDER BY count_r desc
MATCH (n)-[r]-()
WHERE r is null
RETURN n, count(n)
MATCH (a)<-[r]-(b)
RETURN DISTINCT labels(a) AS This, type(r) as To, labels(b) AS That
MATCH (n:User {id:1234})
RETURN n
or
MATCH (n:User)
WHERE n.id = 1234
RETURN n
MATCH (u:User)
WHERE NOT (u)-[:likes]->(:Seafood)
RETURN u.name as UserName
MATCH (u:User)
WHERE u.name =~ '(?i)Alex.*'
RETURN u.name
MATCH (u:User)
WHERE NOT (:User)<-[:likes]-(u)-[:likes]->(:User)
RETURN u.name