Prompt:
Sensor network script:
  Node: turbidity | code: gst | fields: depth, lon, qc, lat
  Sensor: lightning | fields: qc, depth, lat, ts
Task: Fetch lon from turbidity that have at least one corresponding lightning measurement for the same qc.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="gst"),
    filter=has_match(
        source=Probe("lightning", code="cnd"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: air_quality | code: ref | fields: depth, level, type, lon
  Sensor: frost | fields: unit, reading, type, qc
Task: Fetch reading from air_quality where qc exists in frost sensor data for the same ts.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="ref"),
    filter=set_member(
        field="qc",
        source=Probe("frost", code="gst"),
        match="ts",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: lightning | code: clr | fields: reading, value, qc, type
  Sensor: pressure | fields: level, ts, lat, type
Task: Fetch depth from lightning where reading is greater than the total of reading in pressure for matching qc.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "reading",
                            source=Probe("pressure", code="flx"),
                            match="qc"),
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: temperature | code: ref | fields: type, lon, lat, level
  Sensor: soil_moisture | fields: type, qc, reading, value
Task: Fetch level from temperature that have at least one corresponding soil_moisture measurement for the same ts.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="ref"),
    filter=has_match(
        source=Probe("soil_moisture", code="prt"),
        match="ts",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: dew_point | code: ref | fields: reading, value, type, lat
  Sensor: snow_depth | fields: value, ts, qc, type
Task: Get depth from dew_point where qc appears in snow_depth readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="ref"),
    filter=set_member(
        field="qc",
        source=Probe("snow_depth", code="nbl"),
        match="type",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: temperature | code: mst | fields: type, unit, value, level
  Sensor: turbidity | fields: lat, ts, value, type
Task: Retrieve value from temperature that have at least one matching reading in turbidity sharing the same ts.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="mst"),
    filter=has_match(
        source=Probe("turbidity", code="nbl"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: gst | fields: lon, lat, ts, type
  Sensor: visibility | fields: ts, lat, qc, value
Task: Get reading from snow_depth where qc appears in visibility readings with matching unit.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="gst"),
    filter=set_member(
        field="qc",
        source=Probe("visibility", code="thr"),
        match="unit",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: pressure | code: mst | fields: level, ts, qc, type
  Sensor: dew_point | fields: lon, level, unit, ts
Task: Retrieve lat from pressure whose depth is found in dew_point records where unit matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="mst"),
    filter=set_member(
        field="depth",
        source=Probe("dew_point", code="hgr"),
        match="unit",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: turbidity | code: hub | fields: ts, type, qc, reading
  Sensor: rainfall | fields: reading, level, type, lon
Task: Retrieve lat from turbidity that have at least one matching reading in rainfall sharing the same ts.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="hub"),
    filter=has_match(
        source=Probe("rainfall", code="ftu"),
        match="ts",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: evaporation | code: thr | fields: reading, lon, value, qc
  Sensor: air_quality | fields: lat, value, depth, ts
Task: Retrieve value from evaporation whose qc is found in air_quality records where ts matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="thr"),
    filter=set_member(
        field="qc",
        source=Probe("air_quality", code="nbl"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: uv_index | code: ref | fields: lon, depth, unit, lat
  Sensor: sunlight | fields: depth, type, qc, unit
Task: Retrieve reading from uv_index whose type is found in sunlight records where type matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="ref"),
    filter=set_member(
        field="type",
        source=Probe("sunlight", code="ftu"),
        match="type",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: wind_speed | code: gst | fields: value, level, depth, ts
  Sensor: snow_depth | fields: depth, level, qc, ts
Task: Get level from wind_speed where reading exceeds the minimum depth from snow_depth for the same qc.
Script:

Question:
readings = fetch(
    node=Node("wind_speed", code="gst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "depth",
                            source=Probe("snow_depth", code="tnd"),
                            match="qc"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: drought_index | code: mst | fields: type, depth, qc, value
  Sensor: humidity | fields: qc, unit, depth, level
Task: Fetch value from drought_index where depth is greater than the maximum of depth in humidity for matching unit.
Script:

Question:
readings = fetch(
    node=Node("drought_index", code="mst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MAX", "depth",
                            source=Probe("humidity", code="thr"),
                            match="unit"),
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: evaporation | code: mst | fields: value, type, reading, qc
  Sensor: turbidity | fields: unit, lat, reading, qc
Task: Fetch reading from evaporation that have at least one corresponding turbidity measurement for the same qc.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="mst"),
    filter=has_match(
        source=Probe("turbidity", code="hgr"),
        match="qc",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: turbidity | code: stn | fields: ts, qc, type, value
  Sensor: lightning | fields: unit, level, value, type
Task: Fetch lat from turbidity where unit exists in lightning sensor data for the same ts.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="stn"),
    filter=set_member(
        field="unit",
        source=Probe("lightning", code="grvl"),
        match="ts",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: evaporation | code: thr | fields: value, depth, level, lat
  Sensor: dew_point | fields: ts, level, reading, qc
Task: Retrieve reading from evaporation with value above the COUNT(value) of dew_point readings sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="thr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("COUNT", "value",
                            source=Probe("dew_point", code="nbl"),
                            match="qc"),
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: hub | fields: level, unit, lon, qc
  Sensor: rainfall | fields: qc, depth, ts, lat
Task: Get depth from cloud_cover where a corresponding entry exists in rainfall with the same unit.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="hub"),
    filter=has_match(
        source=Probe("rainfall", code="thr"),
        match="unit",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: evaporation | code: thr | fields: level, reading, type, lat
  Sensor: uv_index | fields: level, unit, value, type
Task: Retrieve value from evaporation that have at least one matching reading in uv_index sharing the same unit.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="thr"),
    filter=has_match(
        source=Probe("uv_index", code="clr"),
        match="unit",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: humidity | code: gst | fields: type, lon, qc, level
  Sensor: rainfall | fields: type, depth, lon, value
Task: Fetch level from humidity where value is greater than the maximum of reading in rainfall for matching type.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="gst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MAX", "reading",
                            source=Probe("rainfall", code="grvl"),
                            match="type"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: rainfall | code: ref | fields: reading, lon, value, qc
  Sensor: humidity | fields: value, type, depth, lon
Task: Fetch lat from rainfall where unit exists in humidity sensor data for the same type.
Script:

Question:
readings = fetch(
    node=Node("rainfall", code="ref"),
    filter=set_member(
        field="unit",
        source=Probe("humidity", code="hgr"),
        match="type",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: sunlight | code: ref | fields: level, ts, qc, type
  Sensor: uv_index | fields: type, value, reading, qc
Task: Get value from sunlight where reading exceeds the count of reading from uv_index for the same qc.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="ref"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("uv_index", code="gst"),
                            match="qc"),
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: air_quality | code: ref | fields: unit, ts, type, level
  Sensor: drought_index | fields: unit, qc, value, level
Task: Retrieve lon from air_quality with reading above the MIN(depth) of drought_index readings sharing the same unit.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="ref"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "depth",
                            source=Probe("drought_index", code="grvl"),
                            match="unit"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: humidity | code: prt | fields: lon, lat, unit, qc
  Sensor: temperature | fields: unit, type, lon, value
Task: Get lat from humidity where a corresponding entry exists in temperature with the same ts.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="prt"),
    filter=has_match(
        source=Probe("temperature", code="clr"),
        match="ts",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: pressure | code: clr | fields: type, level, reading, depth
  Sensor: temperature | fields: type, qc, lat, lon
Task: Get lat from pressure where depth exceeds the average value from temperature for the same type.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="clr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "value",
                            source=Probe("temperature", code="flx"),
                            match="type"),
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: wind_speed | code: prt | fields: lon, level, ts, type
  Sensor: dew_point | fields: depth, ts, unit, value
Task: Get reading from wind_speed where reading exceeds the average value from dew_point for the same unit.
Script:

Question:
readings = fetch(
    node=Node("wind_speed", code="prt"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "value",
                            source=Probe("dew_point", code="snw"),
                            match="unit"),
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: hub | fields: type, lon, qc, depth
  Sensor: frost | fields: value, reading, depth, unit
Task: Retrieve level from cloud_cover that have at least one matching reading in frost sharing the same depth.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="hub"),
    filter=has_match(
        source=Probe("frost", code="cnd"),
        match="depth",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: sunlight | code: thr | fields: ts, depth, unit, lon
  Sensor: rainfall | fields: lon, lat, value, ts
Task: Retrieve lon from sunlight whose type is found in rainfall records where qc matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="thr"),
    filter=set_member(
        field="type",
        source=Probe("rainfall", code="prt"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: turbidity | code: gst | fields: qc, depth, lat, value
  Sensor: temperature | fields: depth, lon, type, value
Task: Get depth from turbidity where a corresponding entry exists in temperature with the same type.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="gst"),
    filter=has_match(
        source=Probe("temperature", code="flx"),
        match="type",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: gst | fields: level, value, qc, reading
  Sensor: humidity | fields: reading, depth, qc, level
Task: Retrieve lat from snow_depth whose qc is found in humidity records where ts matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="gst"),
    filter=set_member(
        field="qc",
        source=Probe("humidity", code="ftu"),
        match="ts",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: uv_index | code: mst | fields: lon, depth, type, lat
  Sensor: snow_depth | fields: lon, level, reading, type
Task: Get lon from uv_index where a corresponding entry exists in snow_depth with the same qc.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="mst"),
    filter=has_match(
        source=Probe("snow_depth", code="tnd"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: dew_point | code: thr | fields: value, lat, type, qc
  Sensor: wind_speed | fields: depth, qc, reading, ts
Task: Retrieve value from dew_point that have at least one matching reading in wind_speed sharing the same unit.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="thr"),
    filter=has_match(
        source=Probe("wind_speed", code="nbl"),
        match="unit",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: evaporation | code: ref | fields: lat, ts, lon, value
  Sensor: temperature | fields: ts, level, value, reading
Task: Get lat from evaporation where reading exceeds the count of value from temperature for the same type.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="ref"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "value",
                            source=Probe("temperature", code="cnd"),
                            match="type"),
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: sunlight | code: ref | fields: lon, ts, value, qc
  Sensor: air_quality | fields: qc, reading, ts, depth
Task: Retrieve value from sunlight with reading above the SUM(reading) of air_quality readings sharing the same type.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="ref"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "reading",
                            source=Probe("air_quality", code="drt"),
                            match="type"),
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: temperature | code: gst | fields: lon, type, value, ts
  Sensor: turbidity | fields: type, level, unit, reading
Task: Retrieve value from temperature whose depth is found in turbidity records where type matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="gst"),
    filter=set_member(
        field="depth",
        source=Probe("turbidity", code="snw"),
        match="type",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: dew_point | code: hub | fields: reading, unit, lat, lon
  Sensor: soil_moisture | fields: type, qc, lon, depth
Task: Get lat from dew_point where a corresponding entry exists in soil_moisture with the same depth.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="hub"),
    filter=has_match(
        source=Probe("soil_moisture", code="snw"),
        match="depth",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: lightning | code: hub | fields: level, ts, reading, value
  Sensor: rainfall | fields: lon, ts, depth, reading
Task: Retrieve level from lightning with value above the MIN(reading) of rainfall readings sharing the same ts.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="hub"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "reading",
                            source=Probe("rainfall", code="hgr"),
                            match="ts"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: dew_point | code: stn | fields: qc, lat, value, ts
  Sensor: frost | fields: level, depth, qc, ts
Task: Fetch lat from dew_point where type exists in frost sensor data for the same unit.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="stn"),
    filter=set_member(
        field="type",
        source=Probe("frost", code="rnfl"),
        match="unit",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: dew_point | code: thr | fields: lat, type, unit, qc
  Sensor: drought_index | fields: value, reading, level, depth
Task: Get lat from dew_point where a corresponding entry exists in drought_index with the same depth.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="thr"),
    filter=has_match(
        source=Probe("drought_index", code="cnd"),
        match="depth",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: air_quality | code: gst | fields: depth, lon, unit, level
  Sensor: drought_index | fields: unit, ts, value, lon
Task: Fetch value from air_quality that have at least one corresponding drought_index measurement for the same qc.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="gst"),
    filter=has_match(
        source=Probe("drought_index", code="prt"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: drought_index | code: prt | fields: unit, ts, lon, value
  Sensor: lightning | fields: reading, value, ts, depth
Task: Get lat from drought_index where a corresponding entry exists in lightning with the same ts.
Script:

Question:
readings = fetch(
    node=Node("drought_index", code="prt"),
    filter=has_match(
        source=Probe("lightning", code="gst"),
        match="ts",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: temperature | code: hub | fields: reading, value, qc, unit
  Sensor: lightning | fields: depth, reading, value, level
Task: Retrieve value from temperature that have at least one matching reading in lightning sharing the same type.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="hub"),
    filter=has_match(
        source=Probe("lightning", code="brt"),
        match="type",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: thr | fields: unit, ts, type, level
  Sensor: frost | fields: type, level, depth, ts
Task: Fetch depth from snow_depth that have at least one corresponding frost measurement for the same ts.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="thr"),
    filter=has_match(
        source=Probe("frost", code="tnd"),
        match="ts",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: thr | fields: lon, value, lat, reading
  Sensor: pressure | fields: unit, reading, lat, lon
Task: Get value from cloud_cover where reading exceeds the total depth from pressure for the same ts.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="thr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "depth",
                            source=Probe("pressure", code="snw"),
                            match="ts"),
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: uv_index | code: clr | fields: level, unit, lon, qc
  Sensor: soil_moisture | fields: qc, unit, lat, lon
Task: Retrieve level from uv_index that have at least one matching reading in soil_moisture sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="clr"),
    filter=has_match(
        source=Probe("soil_moisture", code="prt"),
        match="qc",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: uv_index | code: mst | fields: value, unit, level, ts
  Sensor: frost | fields: lat, qc, unit, value
Task: Retrieve level from uv_index with reading above the AVG(depth) of frost readings sharing the same unit.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="mst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "depth",
                            source=Probe("frost", code="hgr"),
                            match="unit"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: stn | fields: type, unit, depth, lon
  Sensor: drought_index | fields: qc, value, ts, lat
Task: Retrieve depth from cloud_cover with depth above the COUNT(depth) of drought_index readings sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="stn"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("COUNT", "depth",
                            source=Probe("drought_index", code="cnd"),
                            match="qc"),
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: evaporation | code: prt | fields: lon, qc, type, unit
  Sensor: lightning | fields: reading, type, qc, level
Task: Get lat from evaporation where type appears in lightning readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="prt"),
    filter=set_member(
        field="type",
        source=Probe("lightning", code="grvl"),
        match="type",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: hub | fields: depth, reading, level, lat
  Sensor: humidity | fields: value, qc, depth, lon
Task: Retrieve value from soil_moisture whose unit is found in humidity records where qc matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="hub"),
    filter=set_member(
        field="unit",
        source=Probe("humidity", code="prt"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: temperature | code: mst | fields: qc, level, lat, reading
  Sensor: turbidity | fields: value, qc, depth, lat
Task: Fetch lon from temperature where value is greater than the total of value in turbidity for matching qc.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="mst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "value",
                            source=Probe("turbidity", code="snw"),
                            match="qc"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: pressure | code: thr | fields: lon, lat, type, reading
  Sensor: dew_point | fields: reading, unit, level, depth
Task: Get value from pressure where a corresponding entry exists in dew_point with the same ts.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="thr"),
    filter=has_match(
        source=Probe("dew_point", code="cnd"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: turbidity | code: gst | fields: lat, qc, depth, reading
  Sensor: pressure | fields: level, value, reading, unit
Task: Retrieve lat from turbidity whose ts is found in pressure records where type matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="gst"),
    filter=set_member(
        field="ts",
        source=Probe("pressure", code="rnfl"),
        match="type",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: lightning | code: stn | fields: level, value, reading, depth
  Sensor: dew_point | fields: value, lat, reading, depth
Task: Fetch lat from lightning where reading is greater than the total of depth in dew_point for matching qc.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "depth",
                            source=Probe("dew_point", code="nbl"),
                            match="qc"),
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: uv_index | code: thr | fields: value, reading, qc, level
  Sensor: sunlight | fields: level, unit, qc, reading
Task: Retrieve depth from uv_index that have at least one matching reading in sunlight sharing the same depth.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="thr"),
    filter=has_match(
        source=Probe("sunlight", code="mbl"),
        match="depth",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: sunlight | code: clr | fields: depth, reading, lat, type
  Sensor: temperature | fields: lon, ts, lat, depth
Task: Fetch lon from sunlight that have at least one corresponding temperature measurement for the same qc.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="clr"),
    filter=has_match(
        source=Probe("temperature", code="mbl"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: drought_index | code: mst | fields: qc, type, unit, level
  Sensor: turbidity | fields: qc, type, unit, reading
Task: Get level from drought_index where depth exceeds the maximum reading from turbidity for the same type.
Script:

Question:
readings = fetch(
    node=Node("drought_index", code="mst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MAX", "reading",
                            source=Probe("turbidity", code="brt"),
                            match="type"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: temperature | code: hub | fields: ts, lon, level, lat
  Sensor: uv_index | fields: level, type, ts, unit
Task: Get depth from temperature where ts appears in uv_index readings with matching qc.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="hub"),
    filter=set_member(
        field="ts",
        source=Probe("uv_index", code="thr"),
        match="qc",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: drought_index | code: gst | fields: depth, ts, lon, qc
  Sensor: cloud_cover | fields: level, depth, lon, type
Task: Get lon from drought_index where type appears in cloud_cover readings with matching ts.
Script:

Question:
readings = fetch(
    node=Node("drought_index", code="gst"),
    filter=set_member(
        field="type",
        source=Probe("cloud_cover", code="flx"),
        match="ts",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: air_quality | code: gst | fields: ts, reading, type, qc
  Sensor: lightning | fields: ts, value, level, depth
Task: Get lon from air_quality where a corresponding entry exists in lightning with the same ts.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="gst"),
    filter=has_match(
        source=Probe("lightning", code="ftu"),
        match="ts",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: lightning | code: ref | fields: value, lat, type, lon
  Sensor: snow_depth | fields: unit, value, qc, ts
Task: Get value from lightning where reading exceeds the minimum depth from snow_depth for the same unit.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="ref"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "depth",
                            source=Probe("snow_depth", code="frs"),
                            match="unit"),
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: frost | code: stn | fields: qc, value, level, ts
  Sensor: wind_speed | fields: type, depth, reading, level
Task: Fetch lon from frost that have at least one corresponding wind_speed measurement for the same ts.
Script:

Question:
readings = fetch(
    node=Node("frost", code="stn"),
    filter=has_match(
        source=Probe("wind_speed", code="ftu"),
        match="ts",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: hub | fields: qc, depth, lat, value
  Sensor: pressure | fields: type, qc, lon, depth
Task: Get lon from soil_moisture where depth exceeds the total value from pressure for the same ts.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="hub"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "value",
                            source=Probe("pressure", code="flx"),
                            match="ts"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: lightning | code: ref | fields: ts, lat, qc, reading
  Sensor: air_quality | fields: ts, type, unit, value
Task: Get value from lightning where unit appears in air_quality readings with matching ts.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="ref"),
    filter=set_member(
        field="unit",
        source=Probe("air_quality", code="cnd"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: lightning | code: gst | fields: reading, lon, unit, level
  Sensor: cloud_cover | fields: reading, level, lat, lon
Task: Get reading from lightning where qc appears in cloud_cover readings with matching ts.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="gst"),
    filter=set_member(
        field="qc",
        source=Probe("cloud_cover", code="flx"),
        match="ts",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: drought_index | code: mst | fields: depth, lat, reading, level
  Sensor: cloud_cover | fields: lon, level, qc, lat
Task: Retrieve level from drought_index whose depth is found in cloud_cover records where depth matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("drought_index", code="mst"),
    filter=set_member(
        field="depth",
        source=Probe("cloud_cover", code="evp"),
        match="depth",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: dew_point | code: ref | fields: reading, ts, value, lat
  Sensor: frost | fields: lon, unit, depth, ts
Task: Retrieve lat from dew_point whose ts is found in frost records where ts matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="ref"),
    filter=set_member(
        field="ts",
        source=Probe("frost", code="frs"),
        match="ts",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: lightning | code: stn | fields: unit, reading, ts, lon
  Sensor: temperature | fields: qc, type, lat, depth
Task: Retrieve depth from lightning whose unit is found in temperature records where depth matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="stn"),
    filter=set_member(
        field="unit",
        source=Probe("temperature", code="rnfl"),
        match="depth",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: frost | code: hub | fields: reading, unit, lat, depth
  Sensor: uv_index | fields: qc, type, unit, lon
Task: Retrieve depth from frost with depth above the MAX(reading) of uv_index readings sharing the same type.
Script:

Question:
readings = fetch(
    node=Node("frost", code="hub"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MAX", "reading",
                            source=Probe("uv_index", code="rnfl"),
                            match="type"),
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: air_quality | code: mst | fields: lat, lon, level, unit
  Sensor: cloud_cover | fields: unit, depth, value, type
Task: Get value from air_quality where a corresponding entry exists in cloud_cover with the same unit.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="mst"),
    filter=has_match(
        source=Probe("cloud_cover", code="gst"),
        match="unit",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: dew_point | code: ref | fields: depth, qc, lat, unit
  Sensor: cloud_cover | fields: type, qc, level, lon
Task: Get level from dew_point where a corresponding entry exists in cloud_cover with the same unit.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="ref"),
    filter=has_match(
        source=Probe("cloud_cover", code="gst"),
        match="unit",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: turbidity | code: ref | fields: reading, lat, type, ts
  Sensor: wind_speed | fields: depth, unit, value, level
Task: Get lon from turbidity where a corresponding entry exists in wind_speed with the same ts.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="ref"),
    filter=has_match(
        source=Probe("wind_speed", code="flx"),
        match="ts",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: thr | fields: depth, qc, value, lon
  Sensor: uv_index | fields: reading, level, lon, lat
Task: Get lon from snow_depth where reading exceeds the average value from uv_index for the same qc.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="thr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "value",
                            source=Probe("uv_index", code="hgr"),
                            match="qc"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: sunlight | code: gst | fields: reading, ts, lon, lat
  Sensor: evaporation | fields: qc, type, ts, value
Task: Get value from sunlight where type appears in evaporation readings with matching qc.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="gst"),
    filter=set_member(
        field="type",
        source=Probe("evaporation", code="cnd"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: ref | fields: type, value, level, qc
  Sensor: air_quality | fields: value, ts, reading, lon
Task: Get value from snow_depth where a corresponding entry exists in air_quality with the same ts.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="ref"),
    filter=has_match(
        source=Probe("air_quality", code="cnd"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: visibility | code: ref | fields: reading, lat, qc, depth
  Sensor: drought_index | fields: lat, value, lon, depth
Task: Get value from visibility where a corresponding entry exists in drought_index with the same ts.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="ref"),
    filter=has_match(
        source=Probe("drought_index", code="flx"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: evaporation | code: gst | fields: depth, lat, level, reading
  Sensor: pressure | fields: reading, lat, unit, lon
Task: Retrieve depth from evaporation whose ts is found in pressure records where unit matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="gst"),
    filter=set_member(
        field="ts",
        source=Probe("pressure", code="clr"),
        match="unit",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: clr | fields: lat, qc, type, unit
  Sensor: snow_depth | fields: value, ts, type, unit
Task: Retrieve lon from cloud_cover with depth above the SUM(depth) of snow_depth readings sharing the same unit.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="clr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "depth",
                            source=Probe("snow_depth", code="snw"),
                            match="unit"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: gst | fields: reading, unit, lon, level
  Sensor: dew_point | fields: value, ts, qc, lat
Task: Retrieve value from cloud_cover that have at least one matching reading in dew_point sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="gst"),
    filter=has_match(
        source=Probe("dew_point", code="flx"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: humidity | code: mst | fields: level, reading, ts, value
  Sensor: rainfall | fields: level, type, unit, reading
Task: Get level from humidity where type appears in rainfall readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="mst"),
    filter=set_member(
        field="type",
        source=Probe("rainfall", code="cnd"),
        match="type",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: dew_point | code: thr | fields: value, ts, lat, qc
  Sensor: cloud_cover | fields: unit, ts, lon, reading
Task: Fetch depth from dew_point where qc exists in cloud_cover sensor data for the same unit.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="thr"),
    filter=set_member(
        field="qc",
        source=Probe("cloud_cover", code="hgr"),
        match="unit",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: visibility | code: prt | fields: ts, qc, level, reading
  Sensor: frost | fields: ts, level, reading, lat
Task: Retrieve lat from visibility whose depth is found in frost records where qc matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="prt"),
    filter=set_member(
        field="depth",
        source=Probe("frost", code="drt"),
        match="qc",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: gst | fields: type, reading, depth, unit
  Sensor: temperature | fields: lon, lat, level, depth
Task: Fetch level from soil_moisture where depth is greater than the count of of depth in temperature for matching unit.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="gst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("COUNT", "depth",
                            source=Probe("temperature", code="frs"),
                            match="unit"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: temperature | code: ref | fields: reading, lon, lat, depth
  Sensor: visibility | fields: reading, type, unit, qc
Task: Fetch lat from temperature that have at least one corresponding visibility measurement for the same type.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="ref"),
    filter=has_match(
        source=Probe("visibility", code="snw"),
        match="type",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: wind_speed | code: prt | fields: ts, depth, level, unit
  Sensor: pressure | fields: ts, type, lon, depth
Task: Fetch lon from wind_speed where reading is greater than the maximum of reading in pressure for matching type.
Script:

Question:
readings = fetch(
    node=Node("wind_speed", code="prt"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MAX", "reading",
                            source=Probe("pressure", code="flx"),
                            match="type"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: pressure | code: prt | fields: unit, ts, lon, value
  Sensor: turbidity | fields: unit, lat, depth, reading
Task: Retrieve value from pressure whose ts is found in turbidity records where qc matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="prt"),
    filter=set_member(
        field="ts",
        source=Probe("turbidity", code="ftu"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: gst | fields: type, lon, unit, depth
  Sensor: air_quality | fields: qc, depth, type, level
Task: Retrieve lon from cloud_cover that have at least one matching reading in air_quality sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="gst"),
    filter=has_match(
        source=Probe("air_quality", code="tnd"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: visibility | code: mst | fields: qc, value, reading, type
  Sensor: drought_index | fields: unit, type, depth, value
Task: Fetch level from visibility where value is greater than the minimum of depth in drought_index for matching type.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="mst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "depth",
                            source=Probe("drought_index", code="rnfl"),
                            match="type"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: ref | fields: depth, type, lat, reading
  Sensor: humidity | fields: unit, depth, lat, type
Task: Retrieve lat from soil_moisture that have at least one matching reading in humidity sharing the same unit.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="ref"),
    filter=has_match(
        source=Probe("humidity", code="hgr"),
        match="unit",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: thr | fields: type, lat, reading, ts
  Sensor: cloud_cover | fields: level, reading, unit, qc
Task: Retrieve value from snow_depth whose ts is found in cloud_cover records where ts matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="thr"),
    filter=set_member(
        field="ts",
        source=Probe("cloud_cover", code="brt"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: temperature | code: hub | fields: qc, value, type, lon
  Sensor: soil_moisture | fields: type, depth, lat, reading
Task: Get depth from temperature where reading exceeds the count of depth from soil_moisture for the same qc.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="hub"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "depth",
                            source=Probe("soil_moisture", code="prt"),
                            match="qc"),
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: rainfall | code: prt | fields: lon, value, depth, ts
  Sensor: humidity | fields: unit, value, reading, qc
Task: Retrieve reading from rainfall that have at least one matching reading in humidity sharing the same depth.
Script:

Question:
readings = fetch(
    node=Node("rainfall", code="prt"),
    filter=has_match(
        source=Probe("humidity", code="clr"),
        match="depth",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: uv_index | code: clr | fields: value, reading, qc, level
  Sensor: pressure | fields: type, reading, depth, qc
Task: Get depth from uv_index where ts appears in pressure readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="clr"),
    filter=set_member(
        field="ts",
        source=Probe("pressure", code="ftu"),
        match="type",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: lightning | code: clr | fields: depth, level, lat, ts
  Sensor: dew_point | fields: lat, level, qc, lon
Task: Fetch lon from lightning where value is greater than the average of depth in dew_point for matching unit.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="clr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("AVG", "depth",
                            source=Probe("dew_point", code="evp"),
                            match="unit"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: ref | fields: depth, ts, unit, type
  Sensor: evaporation | fields: value, level, reading, depth
Task: Get lat from soil_moisture where reading exceeds the average reading from evaporation for the same depth.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="ref"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "reading",
                            source=Probe("evaporation", code="prt"),
                            match="depth"),
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: air_quality | code: prt | fields: value, lat, depth, unit
  Sensor: snow_depth | fields: value, level, unit, ts
Task: Get reading from air_quality where depth appears in snow_depth readings with matching ts.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="prt"),
    filter=set_member(
        field="depth",
        source=Probe("snow_depth", code="evp"),
        match="ts",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: air_quality | code: mst | fields: level, lat, lon, reading
  Sensor: pressure | fields: lon, reading, qc, value
Task: Retrieve reading from air_quality with depth above the AVG(value) of pressure readings sharing the same depth.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="mst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "value",
                            source=Probe("pressure", code="thr"),
                            match="depth"),
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: uv_index | code: prt | fields: unit, lat, type, reading
  Sensor: lightning | fields: lat, value, reading, depth
Task: Fetch lat from uv_index where unit exists in lightning sensor data for the same type.
Script:

Question:
readings = fetch(
    node=Node("uv_index", code="prt"),
    filter=set_member(
        field="unit",
        source=Probe("lightning", code="clr"),
        match="type",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: sunlight | code: mst | fields: depth, unit, type, lat
  Sensor: humidity | fields: qc, depth, lon, reading
Task: Retrieve reading from sunlight with depth above the MIN(depth) of humidity readings sharing the same type.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="mst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MIN", "depth",
                            source=Probe("humidity", code="frs"),
                            match="type"),
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: evaporation | code: mst | fields: value, type, unit, lat
  Sensor: frost | fields: ts, qc, level, type
Task: Get lat from evaporation where value exceeds the total value from frost for the same depth.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="mst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "value",
                            source=Probe("frost", code="grvl"),
                            match="depth"),
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: visibility | code: stn | fields: unit, depth, reading, value
  Sensor: humidity | fields: type, reading, lat, unit
Task: Get reading from visibility where reading exceeds the minimum reading from humidity for the same depth.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "reading",
                            source=Probe("humidity", code="nbl"),
                            match="depth"),
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: lightning | code: thr | fields: unit, lon, type, qc
  Sensor: temperature | fields: value, type, reading, unit
Task: Retrieve depth from lightning with value above the AVG(value) of temperature readings sharing the same depth.
Script:

Question:
readings = fetch(
    node=Node("lightning", code="thr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("AVG", "value",
                            source=Probe("temperature", code="drt"),
                            match="depth"),
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: mst | fields: reading, type, qc, unit
  Sensor: temperature | fields: lat, qc, level, reading
Task: Fetch reading from soil_moisture where ts exists in temperature sensor data for the same unit.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="mst"),
    filter=set_member(
        field="ts",
        source=Probe("temperature", code="nbl"),
        match="unit",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: sunlight | code: prt | fields: lat, lon, value, level
  Sensor: dew_point | fields: level, lat, qc, ts
Task: Fetch depth from sunlight where type exists in dew_point sensor data for the same depth.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="prt"),
    filter=set_member(
        field="type",
        source=Probe("dew_point", code="nbl"),
        match="depth",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: pressure | code: mst | fields: lon, lat, type, reading
  Sensor: sunlight | fields: unit, depth, value, qc
Task: Get level from pressure where a corresponding entry exists in sunlight with the same depth.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="mst"),
    filter=has_match(
        source=Probe("sunlight", code="evp"),
        match="depth",
    ),
    output="level",
)