   USING btree
   ((sample & B'00001'::"bit"));
 
-ALTER TABLE s_facts ALTER node_anno SET STATISTICS 1000;
+ALTER TABLE s_facts ALTER node_anno SET STATISTICS 2000;
 
 VACUUM ANALYZE s_facts;
 VACUUM ANALYZE s_node_anno;
  namespace varchar(150),
  "name" varchar(150),
  val varchar(1500),
  UNIQUE(namespace, "name", val)
);

INSERT INTO s_node_anno(namespace, "name", val)
(
  SELECT DISTINCT node_annotation_namespace, node_annotation_name, node_annotation_value
  FROM facts_2014 
  WHERE (sample & B'01000') = B'01000'
);

-- indexes on node annotations

    edge_namespace,
    edge_name,
    (SELECT id FROM s_node_anno AS na 
      WHERE na.namespace = node_annotation_namespace
        AND na.name = node_annotation_name
        AND na.val = node_annotation_value
    ),
