add ruby queries and tests