SELECT str ( ?g ) AS ?GRAPH (COUNT(?g) as ?count) 
WHERE { 
GRAPH ?g {
      ?s ?p ?o .
      }
} 
GROUP BY ?g
ORDER BY ?GRAPH
SELECT str (?o ) AS ?O str ( ?id ) AS ?ID 
WHERE { 
GRAPH <http://glycoinfo.org/database/carbbank> { 
  ?s <http://glycoinfo.org/carbbank/structure> ?o . 
  FILTER( contains(str(?o),'deoxy') ) 
  ?s <http://purl.org/dc/terms/identifier> ?id .
  } 
} 
LIMIT 100
SELECT distinct str ( ?id ) as ?ID 
WHERE { 
  GRAPH <http://glycoinfo.org/wurcs/relation> { 
    ?s <http://www.glycoinfo.org/glyco/owl/wurcs#substructure> ?o . 
    ?o <http://purl.org/dc/terms/identifier> 'G47037BZ' . 
    ?s <http://purl.org/dc/terms/identifier> ?id . 
  }
}
LIMIT 20
SELECT DISTINCT ?p (COUNT( DISTINCT ?o) AS ?count) 
WHERE { 
      GRAPH <http://glycoinfo.org/wurcs/relation> { 
      ?s ?p ?o .
    }
} 
GROUP BY ?p