corrected datomisca query