Restored files from an older commit.

Project: http://git-wip-us.apache.org/repos/asf/vxquery/repo
Commit: http://git-wip-us.apache.org/repos/asf/vxquery/commit/75d19970
Tree: http://git-wip-us.apache.org/repos/asf/vxquery/tree/75d19970
Diff: http://git-wip-us.apache.org/repos/asf/vxquery/diff/75d19970

Branch: refs/heads/prestonc/exrt_benchmark_queries
Commit: 75d1997088a25b29f5288179e6204e3fba88ef2f
Parents: 837a0ef
Author: Preston Carman <[email protected]>
Authored: Fri Aug 22 15:53:26 2014 -0700
Committer: Preston Carman <[email protected]>
Committed: Mon Sep 22 20:15:07 2014 -0700

----------------------------------------------------------------------
 .../noaa-ghcn-daily/conf/weather_example.xml    |  35 +++
 .../conf/weather_example_cluster.xml            |  58 +++++
 .../noaa-ghcn-daily/other_systems/saxon/q00.xq  |  15 ++
 .../noaa-ghcn-daily/other_systems/saxon/q01.xq  |   8 +
 .../noaa-ghcn-daily/other_systems/saxon/q02.xq  |  14 ++
 .../noaa-ghcn-daily/other_systems/saxon/q03.xq  |   8 +
 .../other_systems/saxon/q04_sensor.xq           |  10 +
 .../other_systems/saxon/q04_station.xq          |   8 +
 .../other_systems/saxon/q05_sensor.xq           |  11 +
 .../other_systems/saxon/q05_station.xq          |   8 +
 .../other_systems/saxon/q06_sensor.xq           |   8 +
 .../other_systems/saxon/q06_station.xq          |   5 +
 .../noaa-ghcn-daily/other_systems/saxon/q07.xq  |  15 ++
 .../other_systems/saxon/q07_tmax.xq             |   9 +
 .../other_systems/saxon/q07_tmin.xq             |   9 +
 .../other_systems/saxon/saxon9he.jar            | Bin 0 -> 10290812 bytes
 .../other_systems/saxon/sensor_count.xq         |   7 +
 .../other_systems/saxon/station_count.xq        |   7 +
 .../scripts/benchmark_logging.properties        |   1 +
 .../src/main/resources/xmark/README.md          |  28 +++
 .../xmark/data/categories/micro_categories.xml  |  36 +++
 .../xmark/data/catgraph/micro_catgraph.xml      |   6 +
 .../closed_auctions/micro_closed_auctions.xml   | 118 +++++++++
 .../data/open_auctions/micro_open_auctions.xml  | 117 +++++++++
 .../xmark/data/people/micro_people.xml          |  15 ++
 .../xmark/data/regions/micro_regions.xml        | 243 +++++++++++++++++++
 .../src/main/resources/xmark/queries/q01.xq     |  23 ++
 .../src/main/resources/xmark/queries/q02.xq     |  22 ++
 .../src/main/resources/xmark/queries/q03.xq     |  26 ++
 .../src/main/resources/xmark/queries/q04.xq     |  26 ++
 .../src/main/resources/xmark/queries/q05.xq     |  25 ++
 .../src/main/resources/xmark/queries/q06.xq     |  22 ++
 .../src/main/resources/xmark/queries/q07.xq     |  23 ++
 .../src/main/resources/xmark/queries/q08.xq     |  27 +++
 .../src/main/resources/xmark/queries/q09.xq     |  33 +++
 .../src/main/resources/xmark/queries/q10.xq     |  46 ++++
 .../src/main/resources/xmark/queries/q11.xq     |  27 +++
 .../src/main/resources/xmark/queries/q12.xq     |  28 +++
 .../src/main/resources/xmark/queries/q13.xq     |  22 ++
 .../src/main/resources/xmark/queries/q14.xq     |  23 ++
 .../src/main/resources/xmark/queries/q15.xq     |  29 +++
 .../src/main/resources/xmark/queries/q16.xq     |  30 +++
 .../src/main/resources/xmark/queries/q17.xq     |  23 ++
 .../src/main/resources/xmark/queries/q18.xq     |  28 +++
 .../src/main/resources/xmark/queries/q19.xq     |  24 ++
 .../src/main/resources/xmark/queries/q20.xq     |  58 +++++
 46 files changed, 1364 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example.xml 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example.xml
new file mode 100644
index 0000000..2c15a33
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example.xml
@@ -0,0 +1,35 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<data xmlns="data">
+    <name>Local Example</name>
+    <save_path>/data</save_path>
+    <package>ghcnd_all</package>
+    <node>
+        <id>localhost</id>
+        <cluster_ip>127.0.0.1</cluster_ip>
+    </node>
+    <dataset>
+        <name>tiny-example</name>
+        <test>local_speed_up</test>
+        <save_path>/data</save_path>
+        <partition_type>small_files</partition_type>
+        <partitions_per_path>1</partitions_per_path>
+        <partitions_per_path>2</partitions_per_path>
+        <partitions_per_path>4</partitions_per_path>
+        <partitions_per_path>8</partitions_per_path>
+    </dataset>
+</data>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example_cluster.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example_cluster.xml
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example_cluster.xml
new file mode 100644
index 0000000..7d05ac0
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/conf/weather_example_cluster.xml
@@ -0,0 +1,58 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<data xmlns="data">
+    <name>Cluster Example</name>
+    <save_path>/data</save_path>
+    <package>ghcnd_all</package>
+    <node>
+        <id>machine1</id>
+        <cluster_ip>127.0.0.1</cluster_ip>
+    </node>
+    <node>
+        <id>machine2</id>
+        <cluster_ip>127.0.0.2</cluster_ip>
+    </node>
+    <node>
+        <id>machine3</id>
+        <cluster_ip>127.0.0.3</cluster_ip>
+    </node>
+    <node>
+        <id>machine4</id>
+        <cluster_ip>127.0.0.4</cluster_ip>
+    </node>
+    <node>
+        <id>machine5</id>
+        <cluster_ip>127.0.0.5</cluster_ip>
+    </node>
+    <dataset>
+        <name>tiny-1drive</name>
+        <test>speed_up</test>
+        <test>batch_scale_out</test>
+        <save_path>/data</save_path>
+        <partition_type>small_files</partition_type>
+        <partitions_per_path>1</partitions_per_path>
+    </dataset>
+    <dataset>
+        <name>small-2drives</name>
+        <test>speed_up</test>
+        <test>batch_scale_out</test>
+        <save_path>/data</save_path>
+        <save_path>/data2</save_path>
+        <partition_type>large_files</partition_type>
+        <partitions_per_path>1</partitions_per_path>
+    </dataset>
+</data>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q00.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q00.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q00.xq
new file mode 100644
index 0000000..09c5b79
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q00.xq
@@ -0,0 +1,15 @@
+(: 
+XQuery Filter Query
+-------------------
+See historical data for Key West International Airport, FL (USW00012836)
+station by selecting  the weather readings for December 25 over the last 
+10 years. 
+:)
+let $collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+for $r in collection($collection)/root/dataCollection/data
+let $datetime := xs:dateTime(fn:data($r/date))
+where $r/station eq "GHCND:USW00012836" 
+    and fn:year-from-dateTime($datetime) ge 2003
+    and fn:month-from-dateTime($datetime) eq 12 
+    and fn:day-from-dateTime($datetime) eq 25
+return $r
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q01.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q01.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q01.xq
new file mode 100644
index 0000000..39d7e20
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q01.xq
@@ -0,0 +1,8 @@
+(: XQuery Filter Query :)
+(: Find all reading for hurricane force wind warning or extreme wind warning. 
:)
+(: The warnings occur when the wind speed (AWND) exceeds 110 mph (49.1744     
:)
+(: meters per second). (Wind value is in tenth of a meter per second)         
:)
+let $collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+for $r in fn:collection($collection)/root/dataCollection/data
+where $r/dataType eq "AWND" and xs:decimal($r/value) gt 491.744
+return $r

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q02.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q02.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q02.xq
new file mode 100644
index 0000000..3fb0975
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q02.xq
@@ -0,0 +1,14 @@
+(:
+XQuery Aggregate Query
+----------------------
+Find the annual precipitation (PRCP) for a Syracuse, NY using the airport
+weather station (USW00014771) report for 1999.                                 
    
+:)
+fn:sum(
+    let $collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r in collection($collection)/root/dataCollection/data
+    where $r/station eq "GHCND:USW00014771" 
+        and $r/dataType eq "PRCP" 
+        and fn:year-from-dateTime(xs:dateTime(fn:data($r/date))) eq 1999
+    return $r/value
+) div 10

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q03.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q03.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q03.xq
new file mode 100644
index 0000000..cda344a
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q03.xq
@@ -0,0 +1,8 @@
+(: XQuery Aggregate Query :)
+(: Find the highest recorded temperature (TMAX) in Celsius.                   
:)
+fn:max(
+    let $collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r in collection($collection)/root/dataCollection/data
+    where $r/dataType eq "TMAX"
+    return $r/value
+) div 10

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_sensor.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_sensor.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_sensor.xq
new file mode 100644
index 0000000..6c927a4
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_sensor.xq
@@ -0,0 +1,10 @@
+(: XQuery Join Query :)
+(: Count all the weather sensor readings on 1976-07-04.                       
:)
+count(
+    let $sensor_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r in collection($sensor_collection)/root/dataCollection/data
+        
+    let $date := xs:date(fn:substring(xs:string(fn:data($r/date)), 0, 11))
+    where $date eq xs:date("1976-07-04")
+    return $r
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_station.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_station.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_station.xq
new file mode 100644
index 0000000..957aec0
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q04_station.xq
@@ -0,0 +1,8 @@
+(: XQuery Join Query :)
+(: Count all the weather stations for King county.                            
:)
+count(
+    let $station_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/stations/?select=*.xml;recurse=yes"
+    for $s in collection($station_collection)/root/stationCollection/station
+    where (some $x in $s/locationLabels satisfies ($x/type eq "CNTY" and 
fn:contains(fn:upper-case(fn:data($x/displayName)), "KING")))
+    return $s
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_sensor.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_sensor.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_sensor.xq
new file mode 100644
index 0000000..4ac353b
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_sensor.xq
@@ -0,0 +1,11 @@
+(: XQuery Join Aggregate Query :)
+(: Count all sensor readings for TMIN in 2001.                                
:)
+count(
+    let $sensor_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r in collection($sensor_collection)/root/dataCollection/data
+    
+    let $date := xs:date(fn:substring(xs:string(fn:data($r/date)), 0, 11))
+    where $r/dataType eq "TMIN" 
+        and fn:year-from-date($date) eq 2001
+    return $r/value
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_station.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_station.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_station.xq
new file mode 100644
index 0000000..4349805
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q05_station.xq
@@ -0,0 +1,8 @@
+(: XQuery Join Aggregate Query :)
+(: Count all stations in the state of Oregon.                                 
:)
+count(
+    let $station_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/stations/?select=*.xml;recurse=yes"
+    for $s in collection($station_collection)/root/stationCollection/station
+    where (some $x in $s/locationLabels satisfies ($x/type eq "ST" and 
fn:upper-case(fn:data($x/displayName)) eq "OREGON"))
+    return $s
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_sensor.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_sensor.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_sensor.xq
new file mode 100644
index 0000000..5ca3329
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_sensor.xq
@@ -0,0 +1,8 @@
+count(
+    let $sensor_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r in collection($sensor_collection)/root/dataCollection/data
+    
+    where $r/dataType eq "TMAX" 
+        and fn:year-from-dateTime(xs:dateTime(fn:data($r/date))) eq 2000
+    return $r
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_station.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_station.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_station.xq
new file mode 100644
index 0000000..ef1e732
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q06_station.xq
@@ -0,0 +1,5 @@
+count(
+    let $station_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/stations/?select=*.xml;recurse=yes"
+    for $s in collection($station_collection)/root/stationCollection/station
+    return $s
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07.xq
new file mode 100644
index 0000000..35e5ea2
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07.xq
@@ -0,0 +1,15 @@
+(: XQuery Join Aggregate Query :)
+(: Self join with all sensor readings after the year 2000.                    
:)
+fn:avg(
+let $sensor_collection_min := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+for $r_min in collection($sensor_collection_min)/root/dataCollection/data
+
+let $sensor_collection_max := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+for $r_max in collection($sensor_collection_max)/root/dataCollection/data
+
+where $r_min/station eq $r_max/station
+    and $r_min/date eq $r_max/date
+    and $r_min/dataType eq "TMIN"
+    and $r_max/dataType eq "TMAX"
+return ($r_max/value - $r_min/value)
+) div 10
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmax.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmax.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmax.xq
new file mode 100644
index 0000000..3245746
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmax.xq
@@ -0,0 +1,9 @@
+(: XQuery Join Query :)
+(: Find the all the records for TMAX.                                         
:)
+count(
+    let $sensor_collection_max := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r_max in collection($sensor_collection_max)/root/dataCollection/data
+    
+    where $r_max/dataType eq "TMAX"
+    return $r_max
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmin.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmin.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmin.xq
new file mode 100644
index 0000000..6fcd276
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/q07_tmin.xq
@@ -0,0 +1,9 @@
+(: XQuery Join Query :)
+(: Find the all the records for TMIN.                                         
:)
+count(
+    let $sensor_collection_min := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r_min in collection($sensor_collection_min)/root/dataCollection/data
+    
+    where $r_min/dataType eq "TMIN"
+    return $r_min
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/saxon9he.jar
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/saxon9he.jar
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/saxon9he.jar
new file mode 100644
index 0000000..1557983
Binary files /dev/null and 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/saxon9he.jar
 differ

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/sensor_count.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/sensor_count.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/sensor_count.xq
new file mode 100644
index 0000000..1e8e312
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/sensor_count.xq
@@ -0,0 +1,7 @@
+(: XQuery Join Query :)
+(: Count all the weather sensor readings available.                           
:)
+count(
+    let $sensor_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/sensors/?select=*.xml;recurse=yes"
+    for $r in collection($sensor_collection)/root/dataCollection/data
+    return $r
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/station_count.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/station_count.xq
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/station_count.xq
new file mode 100644
index 0000000..fe6ec8f
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/other_systems/saxon/station_count.xq
@@ -0,0 +1,7 @@
+(: XQuery Join Query :)
+(: Count all the weather stations available.                                  
:)
+count(
+    let $station_collection := 
"../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/stations/?select=*.xml;recurse=yes"
+    for $s in collection($station_collection)/root/stationCollection/station
+    return $s
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/benchmark_logging.properties
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/benchmark_logging.properties
 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/benchmark_logging.properties
new file mode 100644
index 0000000..2fb0af0
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/benchmark_logging.properties
@@ -0,0 +1 @@
+java.util.logging.ConsoleHandler.level=OFF
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/README.md
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/README.md 
b/vxquery-benchmark/src/main/resources/xmark/README.md
new file mode 100644
index 0000000..2c293bd
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/README.md
@@ -0,0 +1,28 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+XMark
+=====
+
+# Description
+
+The original XMark queries and data generation are available at 
http://www.xml-benchmark.org/downloads.html, 
+with the queries being viewable online at 
http://www.ins.cwi.nl/projects/xmark/Assets/xmlquery.txt. In the
+query folder, we have separate query files singling out the exact syntax for 
the versions of these queries 
+used in our VXQuery work with XMark; the differences are due to the way we 
have physically organized the 
+XMark data for storage/parallelism reasons.
+  

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml
 
b/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml
new file mode 100644
index 0000000..b5c4b7f
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" standalone="yes"?>
+<site>
+<categories>
+<category id="category0">
+<name>dispatch reported dotard holofernes </name>
+<description>
+<parlist>
+<listitem>
+<text>
+shift carrion doubtful strangle sounding crowned troubled naked yesterday 
overthrow owe silent recount waters derive sans four 
+</text>
+</listitem>
+<listitem>
+<parlist>
+<listitem>
+<text>
+fragment pamper arthur thrive wound fouler streets preventions obey vow bawds 
myrtle said infinite montague fierce sense ride souls commended gainsay 
profession labour intents persuade alter 
+</text>
+</listitem>
+<listitem>
+<text>
+ord villain wore thunder congeal pawned alack customary deny faithful top 
office spoken please neighbour office afternoon drum embowell touch sue 
lifeless leapt called weary congregation yield 
+</text>
+</listitem>
+<listitem>
+<text>
+mental fatal hard ancient stands cor dishes therein gramercy discipline 
farewell dire tricks protest cut horatio brother speech sleeping adultress 
pitch cave liv nurse drink state plants combating desired requir rebellion 
afraid repented tree scald stopp wine advise undermine norfolk vilely whet 
scars companions hanging foolish scene musty fruitful unburthen teacher 
garments betimes sight now for oaths vouchsafe particulars globe laertes 
afflictions rouse once news humanity buck destroy military lucius lap <keyword> 
considered forc mourning verona </keyword> waters triumphing officer hastily 
<emph> resign subject figure hay thwart written signs gout bred distance period 
glove players change folly </emph> going wat lost song hautboys pick business 
crocodile leading cave twice frenzy sprightly dislike invite forbids morn 
devour ambassador seldom speak tickling rejoice triumphant ascanius forward 
+</text>
+</listitem>
+</parlist>
+</listitem>
+</parlist>
+</description>
+</category>
+</categories>
+</site>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml 
b/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml
new file mode 100644
index 0000000..85427ef
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" standalone="yes"?>
+<site>
+<catgraph>
+<edge from="category0" to="category0"/>
+</catgraph>
+</site>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml
 
b/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml
new file mode 100644
index 0000000..d637766
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml
@@ -0,0 +1,118 @@
+<?xml version="1.0" standalone="yes"?>
+<site>
+<closed_auctions>
+<closed_auction>
+<seller person="person0"/>
+<buyer person="person0"/>
+<itemref item="item1"/>
+<price>113.87</price>
+<date>06/06/2000</date>
+<quantity>1</quantity>
+<type>Regular</type>
+<annotation>
+<author person="person0"/>
+<description>
+<parlist>
+<listitem>
+<parlist>
+<listitem>
+<text>
+farewells religion fetch bells rage names valued exeunt soul albans ungently 
advised serving ratcliff braggarts knowest desp sheep died repeat toy corrupted 
michael help dunghill trembles pill reap office early secure desires hated 
garland carriage impatient deserts feel challenger evil <bold> editions depart 
laur hereford richer </bold> 
+</text>
+</listitem>
+<listitem>
+<text>
+proudest lust approve rey should spectacles fiery perfect worshipp foul quod 
yes remorse young tyburn thrust attending spear shun doctor wild 
+</text>
+</listitem>
+</parlist>
+</listitem>
+<listitem>
+<text>
+throng grandam awak helpless ventidius tread defeat teem durst wonderful 
attaint chaste sees fulfill mortality arme expedient attendants themselves 
performed leading sing villain skill store mischief see consciences sail text 
speed sons spleen die oft girl atomies commodity honor fall stopp they 
+</text>
+</listitem>
+<listitem>
+<text>
+rain pays spilling rancour reasons grieves camp bachelor crow can whom 
soldiers growth invite less for vaughan properties <keyword> record penury 
herself reasons merits villainous whereupon wrote penny mar </keyword> 
preventions followed best eternity bestow blots rocks barnardine torn cassio 
tailor fame forfeit triumphant conceived deem cowardly merciful topgallant 
flint purgation whosoever ventidius befits forever bankrupt choughs stains 
certain violated burgundy shadows possesseth men repent predominant burns 
revelry swore prodigious next tyrant oath noses apart balth trade feasting 
field importunity expect experience kingly stay babe hopes liege astonished 
suspicion unmannerd alexander crown soil committed god stately incensed trance 
oracle slowness fast princes damned corn grandsire change tender end fields 
slain palm softly samp shore notion herod messengers horseman <bold> riggish 
</bold> quirks shut thence beware jewels sland preventions has sells assails 
influences oppressi
 on pow maggot caught methought mechanical durst liker not seat <emph> assigns 
flesh made his third <keyword> seemeth </keyword> peril gain they stroke 
forsworn scape full determin professes commons </emph> lordship clear operation 
practice pyrrhus earnest broke devil posterity company text misbegotten oregon 
strike saw arthur earnestly brow popilius ugly serves presentation commandment 
metal comparing thereon true secretly gallows preventions horridly slack 
lieutenant hers stop clown rosalinde wed pretty wildly 
+</text>
+</listitem>
+</parlist>
+</description>
+<happiness>9</happiness>
+</annotation>
+</closed_auction>
+<closed_auction>
+<seller person="person0"/>
+<buyer person="person0"/>
+<itemref item="item2"/>
+<price>96.92</price>
+<date>12/05/2001</date>
+<quantity>1</quantity>
+<type>Featured</type>
+<annotation>
+<author person="person0"/>
+<description>
+<text>
+hitherto queen painted seat fords clay recall countryman divided delicate 
mocking active bills filth pledge surrender madness sufficiency moved converse 
goot claw show edmundsbury torment tough fish mediators tarquin pyrrhus 
<keyword> heathen </keyword> 
+</text>
+</description>
+<happiness>6</happiness>
+</annotation>
+</closed_auction>
+<closed_auction>
+<seller person="person0"/>
+<buyer person="person0"/>
+<itemref item="item3"/>
+<price>53.85</price>
+<date>05/11/1999</date>
+<quantity>1</quantity>
+<type>Featured</type>
+<annotation>
+<author person="person0"/>
+<description>
+<text>
+strives occasion question sticks shall ingenious sinews liquid ashy 
gentlewomen authority assay hole selves living near doting modest wiltshire 
mocker eton profess forgeries butt wade lawful maccabaeus wert forced 
succeeding becomes wayward got 
+</text>
+</description>
+<happiness>6</happiness>
+</annotation>
+</closed_auction>
+<closed_auction>
+<seller person="person0"/>
+<buyer person="person0"/>
+<itemref item="item4"/>
+<price>123.52</price>
+<date>02/11/1999</date>
+<quantity>1</quantity>
+<type>Regular</type>
+<annotation>
+<author person="person0"/>
+<description>
+<text>
+vowed keys imperial were swinstead forsake cat aliena spies crave requite 
forfeit doctor <emph> possess </emph> aught demand ceremonies obscure engross 
hero restraint bolingbroke neighbour crimes dominions common turns conduct wav 
therewithal abandon yet hunger 
+</text>
+</description>
+<happiness>5</happiness>
+</annotation>
+</closed_auction>
+<closed_auction>
+<seller person="person0"/>
+<buyer person="person0"/>
+<itemref item="item5"/>
+<price>96.06</price>
+<date>04/24/1999</date>
+<quantity>2</quantity>
+<type>Featured</type>
+<annotation>
+<author person="person0"/>
+<description>
+<text>
+jove superiors prolong which conspirator crowns fellowship indisposition skins 
filthy divers fault apparell worthiness supposition parchment restitution rings 
rages remains lass dependent pelican contrive paradoxes unmask desdemona weak 
pleases shame wisely cheek poison avoid ulysses exeunt answer smoothing 
punishment much anointed bloody shook here armado supply four digestion 
unresisted consummate glou ding figure made unwrung worst repute envious 
meanest read nan stake shriek tower nights armed drinking instant scruple 
citizens rightful nonino shame hills dismal other fasting attends judge aspire 
hand putting repeal grounds bestrid commission crave mess tarries sport view 
freely lame done intend cast shun kills presented body landed question hem same 
burdens plenty esteem weak sigh sunday body preventions revenge horses 
cleomenes thrust what albeit foolishly mirror gently mock allow index evils 
should consider deeds suit damsons willoughby thousand number morn banish 
barricado un
 folding perhaps gently stalk degree oblivion wars monsieur companies swords 
shifted clay strives frozen jour <emph> ajax states mark parcels advertised 
utterly virtue flatter sleeping ope </emph> lucilius tybalt glow killed account 
obdurate kindly <bold> heart light bosom garden cog yet daughters tott </bold> 
lifted offer 
+</text>
+</description>
+<happiness>4</happiness>
+</annotation>
+</closed_auction>
+</closed_auctions>
+</site>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml
 
b/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml
new file mode 100644
index 0000000..70a2709
--- /dev/null
+++ 
b/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" standalone="yes"?>
+<site>
+<open_auctions>
+<open_auction id="open_auction0">
+<initial>13.56</initial>
+<reserve>33.78</reserve>
+<bidder>
+<date>10/22/2001</date>
+<time>10:21:43</time>
+<personref person="person0"/>
+<increase>55.50</increase>
+</bidder>
+<bidder>
+<date>07/27/2001</date>
+<time>12:36:50</time>
+<personref person="person0"/>
+<increase>19.50</increase>
+</bidder>
+<bidder>
+<date>02/14/2000</date>
+<time>16:40:16</time>
+<personref person="person0"/>
+<increase>19.50</increase>
+</bidder>
+<bidder>
+<date>05/09/2001</date>
+<time>11:39:57</time>
+<personref person="person0"/>
+<increase>30.00</increase>
+</bidder>
+<bidder>
+<date>07/12/1999</date>
+<time>23:20:27</time>
+<personref person="person0"/>
+<increase>13.50</increase>
+</bidder>
+<bidder>
+<date>10/21/2001</date>
+<time>01:19:47</time>
+<personref person="person0"/>
+<increase>3.00</increase>
+</bidder>
+<bidder>
+<date>09/28/2001</date>
+<time>17:03:24</time>
+<personref person="person0"/>
+<increase>6.00</increase>
+</bidder>
+<bidder>
+<date>11/15/1999</date>
+<time>14:23:15</time>
+<personref person="person0"/>
+<increase>9.00</increase>
+</bidder>
+<bidder>
+<date>01/02/1998</date>
+<time>22:18:07</time>
+<personref person="person0"/>
+<increase>1.50</increase>
+</bidder>
+<bidder>
+<date>12/24/2001</date>
+<time>16:46:32</time>
+<personref person="person0"/>
+<increase>13.50</increase>
+</bidder>
+<bidder>
+<date>08/12/2000</date>
+<time>11:41:54</time>
+<personref person="person0"/>
+<increase>3.00</increase>
+</bidder>
+<bidder>
+<date>11/15/2000</date>
+<time>15:53:40</time>
+<personref person="person0"/>
+<increase>6.00</increase>
+</bidder>
+<bidder>
+<date>03/04/2000</date>
+<time>20:46:15</time>
+<personref person="person0"/>
+<increase>16.50</increase>
+</bidder>
+<bidder>
+<date>07/22/1998</date>
+<time>10:34:11</time>
+<personref person="person0"/>
+<increase>25.50</increase>
+</bidder>
+<bidder>
+<date>04/01/1998</date>
+<time>10:44:22</time>
+<personref person="person0"/>
+<increase>7.50</increase>
+</bidder>
+<current>243.06</current>
+<itemref item="item0"/>
+<seller person="person0"/>
+<annotation>
+<author person="person0"/>
+<description>
+<text>
+debauch corpse canons domain night forsake yea satisfy between fume were 
monsters ear players moreover ungentleness sorrows prouder tonight favours rome 
bastard unshown excellence journey loves swearing proceeds stone buck battle 
breathless kindness prophesy entomb urging rogues hector conquer provoke 
nothing raw wight places needy feasted romeo rivers worser occupation brook 
stoops brooch plucks level samp tent windsor rubs whereof beam signior built 
suff heavy dull husbands roman favour urge spear gone wolf cheeks execute 
resolv such horrid drives provide twice spoke trade friar taking pheasant 
sentenc scarf corrections brothers charge spur ass agamemnon truepenny saves 
roots practis impatient diest didest starv seeing beneath interpose gods home 
black forgot snuff dress dozen napkins <emph> countess northumberland headlong 
needless angry pleading </emph> better joy <emph> meagre </emph> reap enquire 
crab wales died violent rear past liberty <emph> braggart armour infer bankrupt 
w
 inds teeth </emph> case wore pouch crows cognition <keyword> reports 
expedition free chief cressida hearsed </keyword> loath monuments silent 
congregation soon farm doct ross susan ready empty dedicate shilling whole soul 
foot beseech higher lifeless hay postmaster distress disposition <bold> 
inherits </bold> marcus betters pitch betray beam corse player quality ros 
conduct thersites greediness boast pilgrims startles contented belch hung thus 
captain early blood par brook jul gain needs above ensign grapes revelling 
glean thank 
+</text>
+</description>
+<happiness>6</happiness>
+</annotation>
+<quantity>1</quantity>
+<type>Regular</type>
+<interval>
+<start>06/16/1999</start>
+<end>05/12/2001</end>
+</interval>
+</open_auction>
+</open_auctions>
+</site>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml 
b/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml
new file mode 100644
index 0000000..55d8203
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" standalone="yes"?>
+<site>
+<people>
+<person id="person0">
+<name>Jaak Tempesti</name>
+<emailaddress>mailto:[email protected]</emailaddress>
+<phone>+0 (873) 14873867</phone>
+<homepage>http://www.labs.com/~Tempesti</homepage>
+<creditcard>5048 5813 2703 8253</creditcard>
+<watches>
+<watch open_auction="open_auction0"/>
+</watches>
+</person>
+</people>
+</site>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml
----------------------------------------------------------------------
diff --git 
a/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml 
b/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml
new file mode 100644
index 0000000..7f4a07a
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml
@@ -0,0 +1,243 @@
+<?xml version="1.0" standalone="yes"?>
+<site>
+<regions>
+<africa>
+<item id="item0">
+<location>United States</location>
+<quantity>1</quantity>
+<name>duteous nine eighteen </name>
+<payment>Creditcard</payment>
+<description>
+<parlist>
+<listitem>
+<text>
+page rous lady idle authority capt professes stabs monster petition heave 
humbly removes rescue runs shady peace most piteous worser oak assembly holes 
patience but malice whoreson mirrors master tenants smocks yielded <keyword> 
officer embrace such fears distinction attires </keyword> 
+</text>
+</listitem>
+<listitem>
+<text>
+shepherd noble supposed dotage humble servilius bitch theirs venus dismal 
wounds gum merely raise red breaks earth god folds closet captain dying reek 
+</text>
+</listitem>
+</parlist>
+</description>
+<shipping>Will ship internationally, See description for charges</shipping>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<mailbox>
+<mail>
+<from>Dominic Takano mailto:[email protected]</from>
+<to>Mechthild Renear mailto:[email protected]</to>
+<date>10/12/1999</date>
+<text>
+asses scruple learned crowns preventions half whisper logotype weapons doors 
factious already pestilent sacks dram atwain girdles deserts flood park lest 
graves discomfort sinful conceiv therewithal motion stained preventions greatly 
suit observe sinews enforcement <emph> armed </emph> gold gazing set almost 
catesby turned servilius cook doublet preventions shrunk 
+</text>
+</mail>
+</mailbox>
+</item>
+</africa>
+<asia>
+<item id="item1">
+<location>United States</location>
+<quantity>1</quantity>
+<name>great </name>
+<payment>Money order, Cash</payment>
+<description>
+<text>
+print deceit arming ros apes unjustly oregon spring hamlet containing leaves 
italian turn <bold> spirit model favour disposition </bold> approach charg gold 
promotions despair flow assured terror assembly marry concluded author debase 
get bourn openly gonzago wisest bane continue cries 
+</text>
+</description>
+<shipping>Will ship internationally</shipping>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<mailbox>
+<mail>
+<from>Fumitaka Cenzer mailto:[email protected]</from>
+<to>Lanju Takano mailto:[email protected]</to>
+<date>02/24/2000</date>
+<text>
+entreaty hath fowl prescience bounds roof fiend intellect boughs caught add 
jests feelingly doubt trojans wisdom greatness tune worship doors fields reads 
canst france pay progeny wisdom stir mov impious promis clothes hangman 
trebonius choose men fits preparation <keyword> benefit since eclipse gates 
</keyword> 
+</text>
+</mail>
+<mail>
+<from>Papa Godskesen mailto:[email protected]</from>
+<to>Ioana Blumberg mailto:[email protected]</to>
+<date>08/02/2001</date>
+<text>
+jealousy back greg folded gauntlets conduct hardness across sickness peter 
enough royal herb embrace piteous die servilius avoid <keyword> laying chance 
dungeons pleasant thyself fellow purse steward heaven ambassador terrible 
doubtfully </keyword> milk sky clouds unbraced put sacrifices seas childish 
longer flout heavy pitch rosalind orderly music delivery appease 
+</text>
+</mail>
+</mailbox>
+</item>
+</asia>
+<australia>
+<item id="item2">
+<location>United States</location>
+<quantity>1</quantity>
+<name>scarce brook </name>
+<payment></payment>
+<description>
+<parlist>
+<listitem>
+<text>
+senses concave valiant star further instruments bankrupts countrymen horrid 
costard youth necessity tend curiously waken witness navy there honest interest 
perceive defendant chief traffic where nuptial descent travel prepare agreed 
voices swears remember peerless doing <keyword> preparation rejoice </keyword> 
+</text>
+</listitem>
+<listitem>
+<text>
+swear canker barbarian parching coxcomb excess conspiring nobles sounded 
consider sayings fishified prime may spirit <emph> untruths misgives choughs 
mew here garments tenfold </emph> error discontent hung beatrice straight muse 
shame deep twice mann maecenas any conveyance fingers whereupon child case 
<keyword> season presently victory women beating </keyword> deprive almost wed 
dreams slew reveal 
+</text>
+</listitem>
+<listitem>
+<text>
+spotted attend burden camillo field enlarge stead corporal ground tormenting 
<bold> naturally sanctuary riddle exile coming awake senseless chance famous 
albans </bold> service cricket limb from clouds amongst shore penker defend 
quantity dumb churlish uncover swung eros figur sulphur sky birth stare 
negligent unction shield instance ambition gate injury fort put infants find 
slavish hugh see afterwards slanders chides eyes minds alb loved endure 
combating voyage 
+</text>
+</listitem>
+<listitem>
+<parlist>
+<listitem>
+<text>
+maintained peril rivall suddenly finds studies weary truth indulgence anatomy 
assisted imminent may excepted yonder aches regal 
+</text>
+</listitem>
+<listitem>
+<text>
+<bold> friar prophetess </bold> spirits delays turning cassio finding 
unpractis steel sweets promises credulity err nym complete star greatly mope 
sorry experience virtues been offending bed drives faction learnt hurl eleven 
huge 
+</text>
+</listitem>
+<listitem>
+<text>
+piece hours cruelly april league winged <keyword> tract element sails course 
placed fouler four plac joint </keyword> words blessing fortified loving 
forfeit doctor valiant crying wife county planet charge haughty precious 
alexander longboat bells lewd kingdoms knife giver frantic raz commend sit 
sovereignty engaged perceive its art alliance forge bestow perforce complete 
roof fie confident raging possible cassio teen crave park reign lords sounded 
our requite fourth confidence high 
+</text>
+</listitem>
+</parlist>
+</listitem>
+<listitem>
+<parlist>
+<listitem>
+<text>
+sent fled bids oswald help answer artillery jealous hugh fingers gladly mows 
our craving <emph> preventions spurr edmund drunk how faction quickly 
bolingbroke painfully </emph> valorous line clasp cheek patchery encompassed 
honest after auspicious home engaged prompt mortimer bird dread jephthah 
prithee unfold deeds fifty goose either herald temperance coctus took sought 
fail each ado checking funeral thinks linger advantage bag ridiculous along 
accomplishment flower glittering school disguis portia beloved crown sheets 
garish rather forestall vaults doublet embassy ecstasy crimson rheum befall sin 
devout pedro little exquisite mote messenger lancaster hideous object arrows 
smites gently skins bora parting desdemona longing third throng character hat 
sov quit mounts true house field nearest lucrece tidings fought logotype eaten 
commanding treason censur ripe praises windsor temperate jealous made sleeve 
scorn throats fits uncape tended science preventions preventions high pipes repr
 ieves <bold> sold </bold> marriage sampson safety distrust witch christianlike 
plague doubling visited with bleed offenders catching attendants <emph> cars 
livery stand </emph> denay <keyword> cimber paper admittance tread character 
</keyword> battlements seen dun irish throw redeem afflicts suspicion 
+</text>
+</listitem>
+<listitem>
+<text>
+traduc barks twenty secure pursuit believing necessities longs mental lack 
further observancy uncleanly understanding vault athens lucius sleeps nor 
safety evidence repay whensoever senses proudest restraint love mouths slaves 
water athenian willingly hot grieves delphos pavilion sword indeed lepidus 
taking disguised proffer salt before educational streets things osw rey stern 
lap studies finger doomsday pots bounty famous manhood observe hopes unless 
languish <keyword> transformed nourish breeds north </keyword> 
+</text>
+</listitem>
+</parlist>
+</listitem>
+</parlist>
+</description>
+<shipping>Will ship internationally</shipping>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<mailbox>
+<mail>
+<from>Aspi L'Ecuyer mailto:L'[email protected]</from>
+<to>Lesley Jeris mailto:[email protected]</to>
+<date>10/09/1998</date>
+<text>
+necessities chains rosencrantz house heed course lawn diest unvirtuous 
supposed sees chough swor numbers game roman soundest wrestler sky lodovico 
beast shivers desolate norfolk forgot paulina wars george while beggar sheath 
thursday capable presently his protector father orchard enemies believe drains 
tokens prison charge cloud stab york mild scene true devotion confidence 
hundred those guiltless pricks sort himself mutiny officers directive wholesome 
edge acts dion ride draw brings custom chapless beside sex dowry casca goods 
priam blasphemy prick octavia brain curer thinkest idiot inward missing 
conspiracy tents scab inundation caesar officer dramatis 
+</text>
+</mail>
+</mailbox>
+</item>
+</australia>
+<europe>
+<item id="item3">
+<location>Uzbekistan</location>
+<quantity>1</quantity>
+<name>abhorr execution beckon rue </name>
+<payment>Money order, Creditcard, Cash</payment>
+<description>
+<parlist>
+<listitem>
+<text>
+<keyword> perjur kills insanie unfortunate conjuration deeper confounded 
belied first guard </keyword> pale profits height desir ashore france strength 
kept entrench poisons worth fought ignorance moody poniards speaks jack egg 
offspring victory food double emperor round jewel abbey apparel untainted lass 
protest start wings acquit lake lady battles further low thief try brook cake 
mounted officers dean shrunk lowness dew sandy prologue armies suspicion eighty 
advance thankfulness albany ended experience halt doubted wert kingdom fiend 
directed pair perhaps 
+</text>
+</listitem>
+<listitem>
+<text>
+prayer odds rend condemn conrade swearing dispos losses boar little from 
thought different couch respected human robe dictynna later pays edward babe 
distemper bards damned mayst sustain while self alcibiades listen weak soil 
<keyword> view presume loggets feed </keyword> afoot yields erection balthasar 
fathers datchet thankless lear cause evil cheerfully instance tarried because 
cough ancient testimony tarquin cousin reported porter beastly jade bark sex 
slack lear devil devoured amiable mason moss shoulders labour meanest feign 
eggs encount forbid enobarbus halters nam emilia fiends bearing food inheritor 
wiser <emph> hedge </emph> functions there capital greasy dark crush your 
sequest between devout thou strikes demand dost reverent conference least told 
ado modena jealousy nunnery mistrust nightly worthy closes tall proudly fierce 
receive nearness safer jacks shut dire mates wind unfortunate monsieur parcels 
sauced extremities throat dog empty treasury etc detested stand taxatio
 ns edges mourner sue knavery unlook perseus diadem heartily peer tut 
compounded art reconcile study thought cockatrice money pity intend thing claud 
edmund throws torments ropes contrive story slain advise lecher ardea relics 
keeping treads buckingham defences lag neighbour ourself marshal disordered 
moderate venus afeard article rot hazards craft crowns <emph> plainness patient 
</emph> lying knowledge diseases meritorious medicine instead lid happy without 
them bands answer 
+</text>
+</listitem>
+</parlist>
+</description>
+<shipping>Will ship only within country</shipping>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<mailbox>
+</mailbox>
+</item>
+</europe>
+<namerica>
+<item id="item4">
+<location>United States</location>
+<quantity>1</quantity>
+<name>unsur brutish </name>
+<payment>Money order, Creditcard</payment>
+<description>
+<parlist>
+<listitem>
+<text>
+prepar likelihood eagle body walk borachio month writing left speed patents 
coach through protectorship congruent confusion favours following populous 
garden henceforth shoots function fourscore mangled favorably slain secretly 
vice distinguish bardolph content hence boy worse bring usurers stew beard 
longed creep hid pursuivant beholders senators son mercutio woo bestow trumpet 
excess muffler pick ugly felt causes remove adding tear often rounds 
underbearing tree purer kibes endless women benefit throw <emph> claim firmness 
<keyword> arrived sees wrestled multitude repent preventions infamy reproof 
shalt hearted prais knave doubtless </keyword> deny </emph> merely grave 
voluble late loath digest horn slave hunger stronger amazed salt killing ross 
cry dry tongue kiss yields auspicious quietness perpetual ways 
+</text>
+</listitem>
+<listitem>
+<text>
+court mean returning brook creatures appointed paunches henry sights west 
prunes flutes regiment seems bed musicians slumber post friendship prevention 
abreast wouldst words vexation builds unfelt holly walk inform moods deck bulk 
begin action school nobles antique people unkennel stomach into petitions jack 
assail yongrey ages betimes golden sink droop kernel hoppedance perfection 
weight <emph> whining safe english rod other featur </emph> betwixt orator 
across amiss mine guests guard yon willing remit longing goneril visitation 
honey 
+</text>
+</listitem>
+</parlist>
+</description>
+<shipping>Will ship only within country, Buyer pays fixed shipping charges, 
See description for charges</shipping>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<mailbox>
+<mail>
+<from>Honari Castan mailto:[email protected]</from>
+<to>Maz Lucky mailto:[email protected]</to>
+<date>01/24/1998</date>
+<text>
+scene disposition substance prick counsel start temples 
+</text>
+</mail>
+</mailbox>
+</item>
+</namerica>
+<samerica>
+<item id="item5">
+<location>United States</location>
+<quantity>1</quantity>
+<name>nakedness </name>
+<payment>Creditcard, Personal Check, Cash</payment>
+<description>
+<text>
+music sift kissing design airy office dismantled hope reconcil combat wert 
quite translate overcome unthrifty <emph> fell othello <bold> wolf entreat 
audaciously down sands sports pilgrimage duellist league holiday cheek that 
tables merrily knot selves ionia impure </bold> prophet draw throwing solemn 
yonder </emph> rightful foam worthless polack veronesa antony beget thereby 
carry untread hales 
+</text>
+</description>
+<shipping>Will ship only within country, Will ship internationally</shipping>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<incategory category="category0"/>
+<mailbox>
+</mailbox>
+</item>
+</samerica>
+</regions>
+</site>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq
new file mode 100644
index 0000000..bc9fbf6
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq
@@ -0,0 +1,23 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $b in collection($collection)/site/people/person
+where $b/@id = "person0"
+return $b/name/text()

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq
new file mode 100644
index 0000000..299de6d
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq
@@ -0,0 +1,22 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection := 
"vxquery-benchmark/src/main/resources/xmark/data/open_auctions/"
+for $b in collection($collection)/site/open_auctions/open_auction
+return <increase>{$b/bidder[1]/increase/text()}</increase>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq
new file mode 100644
index 0000000..5488122
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq
@@ -0,0 +1,26 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection := 
"vxquery-benchmark/src/main/resources/xmark/data/open_auctions/"
+for $b in collection($collection)/site/open_auctions/open_auction
+where zero-or-one($b/bidder[1]/increase/text()) * 2 <= 
$b/bidder[last()]/increase/text()
+return
+  <increase
+  first="{$b/bidder[1]/increase/text()}"
+  last="{$b/bidder[last()]/increase/text()}"/>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq
new file mode 100644
index 0000000..756db87
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq
@@ -0,0 +1,26 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection := 
"vxquery-benchmark/src/main/resources/xmark/data/open_auctions/"
+for $b in collection($collection)/site/open_auctions/open_auction
+where
+  some $pr1 in $b/bidder/personref[@person = "person20"],
+       $pr2 in $b/bidder/personref[@person = "person51"]
+  satisfies $pr1 << $pr2
+return <history>{$b/reserve/text()}</history>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq
new file mode 100644
index 0000000..01d6dba
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq
@@ -0,0 +1,25 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+count(
+  let $collection := 
"vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/"
+  for $i in collection($collection)/site/closed_auctions/closed_auction
+  where $i/price/text() >= 40
+  return $i/price
+)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq
new file mode 100644
index 0000000..fc8f78d
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq
@@ -0,0 +1,22 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection := "vxquery-benchmark/src/main/resources/xmark/data/regions/"
+for $b in collection($collection)/site/regions
+return count($b/*/item)

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq
new file mode 100644
index 0000000..f251a61
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq
@@ -0,0 +1,23 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection := "vxquery-benchmark/src/main/resources/xmark/data/"
+for $p in collection($collection)/site
+return
+  count($p//description) + count($p//annotation) + count($p//emailaddress)

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq
new file mode 100644
index 0000000..fe9b9ed
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq
@@ -0,0 +1,27 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $p in collection($collection1)/site/people/person
+let $a :=
+  let $collection2 := 
"vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/"
+  for $t in collection($collection2)/site/closed_auctions/closed_auction
+  where $t/buyer/@person = $p/@id
+  return $t
+return <item person="{$p/name/text()}">{count($a)}</item>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq
new file mode 100644
index 0000000..db94097
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq
@@ -0,0 +1,33 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection3 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $p in collection($collection3)/site/people/person 
+let $a :=
+  let $collection1 := 
"vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/"
+  for $t in collection($collection1)/site/closed_auctions/closed_auction 
+  where $p/@id = $t/buyer/@person
+  return
+    let $n := 
+      let $collection2 := 
"vxquery-benchmark/src/main/resources/xmark/data/regions/"
+      for $t2 in collection($collection2)/site/regions/europe/item 
+      where $t/itemref/@item = $t2/@id 
+      return $t2
+    return <item>{$n/name/text()}</item>
+return <person name="{$p/name/text()}">{$a}</person>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq
new file mode 100644
index 0000000..cd31444
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq
@@ -0,0 +1,46 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $i in 
distinct-values(collection($collection1)/site/people/person/profile/interest/@category)
+let $p :=
+  let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+  for $t in collection($collection2)/site/people/person 
+  where $t/profile/interest/@category = $i
+  return
+    <personne>
+      <statistiques>
+        <sexe>{$t/profile/gender/text()}</sexe>
+        <age>{$t/profile/age/text()}</age>
+        <education>{$t/profile/education/text()}</education>
+        <revenu>{fn:data($t/profile/@income)}</revenu>
+      </statistiques>
+      <coordonnees>
+        <nom>{$t/name/text()}</nom>
+        <rue>{$t/address/street/text()}</rue>
+        <ville>{$t/address/city/text()}</ville>
+        <pays>{$t/address/country/text()}</pays>
+        <reseau>
+          <courrier>{$t/emailaddress/text()}</courrier>
+          <pagePerso>{$t/homepage/text()}</pagePerso>
+        </reseau>
+      </coordonnees>
+      <cartePaiement>{$t/creditcard/text()}</cartePaiement>
+    </personne>
+return <categorie>{<id>{$i}</id>, $p}</categorie>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq
new file mode 100644
index 0000000..81cd15d
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq
@@ -0,0 +1,27 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $p in collection($collection1)/site/people/person 
+let $l :=
+  let $collection2 := 
"vxquery-benchmark/src/main/resources/xmark/data/open_auctions/"
+  for $i in collection($collection2)/site/open_auctions/open_auction/initial
+  where $p/profile/@income > 5000 * exactly-one($i/text())
+  return $i
+return <items name="{$p/name/text()}">{count($l)}</items>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq
new file mode 100644
index 0000000..f3d7dc4
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq
@@ -0,0 +1,28 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $p in collection($collection1)/site/people/person 
+let $l :=
+  let $collection2 := 
"vxquery-benchmark/src/main/resources/xmark/data/open_auctions/"
+  for $i in collection($collection2)/site/open_auctions/open_auction/initial
+  where $p/profile/@income > 5000 * exactly-one($i/text())
+  return $i
+where $p/profile/@income > 50000
+return <items person="{$p/profile/@income}">{count($l)}</items>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq
new file mode 100644
index 0000000..b06e8e6
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq
@@ -0,0 +1,22 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/regions/"
+for $i in collection($collection1)/site/regions/australia/item
+return <item name="{$i/name/text()}">{$i/description}</item>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq
new file mode 100644
index 0000000..7d989a8
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq
@@ -0,0 +1,23 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/"
+for $i in collection($collection1)/site//item
+where contains(string(exactly-one($i/description)), "gold")
+return $i/name/text()

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq
new file mode 100644
index 0000000..f6052d7
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq
@@ -0,0 +1,29 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := 
"vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/"
+for $i in 
collection($collection1)/site/closed_auctions/closed_auction/annotation/description/parlist/
+   listitem/
+   parlist/
+   listitem/
+   text/
+   emph/
+   keyword/
+   text()
+return <text>{$a}</text>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq
new file mode 100644
index 0000000..fa200bc
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq
@@ -0,0 +1,30 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := 
"vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/"
+for $a in collection($collection1)/site/closed_auctions/closed_auction
+where
+  not(
+    empty(
+      $a/annotation/description/parlist/listitem/parlist/listitem/text/emph/
+       keyword/
+       text()
+    )
+  )
+return <person id="{$a/seller/@person}"/>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq
new file mode 100644
index 0000000..19a9988
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq
@@ -0,0 +1,23 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/"
+for $p in collection($collection1)/site/people/person
+where empty($p/homepage/text())
+return <person name="{$p/name/text()}"/>

http://git-wip-us.apache.org/repos/asf/vxquery/blob/75d19970/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq 
b/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq
new file mode 100644
index 0000000..8ceaf49
--- /dev/null
+++ b/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq
@@ -0,0 +1,28 @@
+(: Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+   
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License. :)
+
+(: XMark Query see README.md for full details. :)
+
+declare namespace local = "http://www.foobar.org";;
+declare function local:convert($v as xs:decimal?) as xs:decimal?
+{
+  2.20371 * $v (: convert Dfl to Euro :)
+};
+
+let $collection1 := 
"vxquery-benchmark/src/main/resources/xmark/data/open_auctions/"
+for $i in collection($collection1)/site/open_auctions/open_auction
+return local:convert(zero-or-one($i/reserve))

Reply via email to