What would the syntax be to run this query from the terminal?