Bug 176963 Subquery's resultSetExpressions is not consistent between generate and present time.
In generate time, subquery will add the parent query's column binding to its own resultSetExpressions. While in present time, it only has the ones of itself.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
Map map = baseQueryDefn.getResultSetExpressions( );
			if ( map != null )
			{
				Iterator it = map.keySet( ).iterator( );
				while ( it.hasNext( ) )
				{
					Object key = it.next( );
					IBaseExpression icbe = (IBaseExpression) map.get( key );
					if ( ( !icbe.getGroupName( )
							.equals( IBaseExpression.GROUP_OVERALL ) )
							&& !groupNameSet.contains( icbe.getGroupName( ) ) )
					{
						throw new DataException( ResourceConstants.GROUP_NOT_EXIST,
								new Object[]{
										icbe.getGroupName( ), key
								} );
					}
				}
			}
			mappingParentColumnBinding( );
			
			for ( int i = 0; i <= groups.size( ); i++ )
			{
				prepareGroup( baseQueryDefn, i, cx );
			}
		}
		finally
		{			
		    Context.exit();
		}