Progress on querying

Signed-off-by: Matthias Stevens <matthias.stevens@gmail.com>