The following OPM multidatabase queries are examples of typical queries expressed over GDB 6.0 and GSDB 2.0. These queries were suggested by Chris Fields of the National Center for Genome Resources, Santa Fe, and were specified with help provided by Ken Fasman and Stan Letovsky of the Johns Hopkins School of Medicine, Baltimore and Carol Harger of the National Center for Genome Resources.
SELECT GDB:Gene.displayName, GDB:Gene.accessionID, Feature.products.name
FROM GSDB:Feature, GDB:Gene
WHERE Feature.products.name MATCH "%protein kinase%"
AND Feature.genes.gdb_xref = GDB:Gene.accessionID
AND GDB:Gene.mapElements.map.chromosome.displayName = "4";
SELECT Entry.accession_number, Entry.sequence.length
FROM GDB:MapElement, GDB:SequenceLink, GSDB:Entry
WHERE MapElement.map.chromosome = "17"
AND SequenceLink.dBObject = MapElement.segment
AND SequenceLink.externalDB.displayName = "GSDB"
AND SequenceLink.accessionID = Entry.accession_number
AND Entry.sequences.length > 100000;
The first part of the query finds the coordinates of the points q21.1 and q21.2 in the Cytogenetic Map of chromosome 4:
SELECT MapElement.coordinate, MapElement.point, MapElement.segment.displayName
FROM GDB:MapElement
WHERE MapElement.map.objectClass = "CytogeneticMap"
AND MapElement.map.chromosome.displayName = "4"
AND MapElement.segment.displayName IN {"q21.1", "q21.2"};
Next, one can retrieve the expressed Amplimers occurring between these coordinates and lookup the corresponding sequence in GSDB.
SELECT Amplimer.displayName, Entry.accession_number,
Entry.sequences.length, Entry.sequences.sequence
FROM GDB:Amplimer, GDB:SequenceLink, GSDB:Entry
WHERE Amplimer.isExpressed = "Yes"
AND Amplimer.mapElements.map.chromosome.displayName = "4"
AND Amplimer.mapElements.sortCoord >= START_COORD
AND Amplimer.mapElements.sortCoord <= END_COORD
AND SequenceLink.dbObject = Amplimer
AND SequenceLink.externalDB.displayName = "GSDB"
AND SequenceLink.accessionID = Entry.accession_number;
where START_COORD and END_COORD are the values from the
previous query.