Allow queries with more than one join