<human>:  Build a GQL query (for Google App Engine) that has a condition on ReferenceProperty
<bot>: Here is some code to google App Engine execute GQL query 'SELECT * FROM Schedule WHERE station = $1' with parameter `foo.key()`

db.GqlQuery('SELECT * FROM Schedule WHERE station = $1', foo.key())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.