---
# System prepended metadata

title: CYPHER QUERY

---

# CYPHER QUERY


```
CONSTANS ortholog query
match (a)-[b]-(f)-[k:`biolink:orthologous_to`]->(g {id:'AT5G15840'})-[c:`biolink:expressed_in`]-(d) return *
```

---

what this means below: `PECO` is the "Plant Experimental Conditions Antology", the query is looking for a drought feature `0007404`. And then the query is looking for the increased expression of a gene (g) in the biolink taxon that are orthologous in their expression during a drought

this query is looking for a list of genes whose expression is increased during drought. And so is their ortholog (the homologous gene in another species).

We are looking at arabadopsis vs anything; the only thing that is returned is populus tricicarpa

And we have evidence of that:
```
MATCH (e {id:'PECO:0007404'})-[r:`biolink:increases_expression_of`]->(g)-[q:`biolink:in_taxon`]->(h {id:'NCBITaxon:3702'}),(k)-[s:`biolink:orthologous_to`]->(g),(e)-->(k) RETURN *
```

The environment is also linked to those genes

Again, give me all of the genes that have an orthologous relationship to drought at the intersection of arabidopsis genes and their interlogs that have increased expression during drought

Give me any relationship to drought both increased or decreases (by specifying `[r]`)

```
MATCH (e {id:'PECO:0007404'})-[r]->(g),(g)-[q:`biolink:orthologous_to`]-(h),(e {id:'PECO:0007404'})-[s]->(h) RETURN *
```

```
MATCH (g {id:'AT1G12940'})--(h) RETURN *
```