Do a detail query.