(* Example 1 returns subgraphs that are pointed by b from the root of $db *) select $G where {b : $G} in $db