first stab at querycode - works but one needs to select the lang for now