This is what I have at the moment:
$q = new ParseQuery("Artist");
$q->descending('createdAt');
$r = $q->find();
var_dump($r[0]->get('painting'));
However an Artist may have many Paintings. The result returned doesn't include any Paintings. Is it possible to retrieve all related data with a single query?