working towards simple query (unfinished)