Added querys to Java