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

Question:
readings = fetch(
    node=Node("cloud_cover", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "reading",
                            source=Probe("rainfall", code="rnfl"),
                            match="depth"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("air_quality", code="thr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "reading",
                            source=Probe("turbidity", code="ftu"),
                            match="ts"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("sunlight", code="clr"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="type",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("humidity", code="ref"),
    filter=has_match(
        source=Probe("temperature", code="thr"),
        match="unit",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="stn"),
    filter=set_member(
        field="ts",
        source=Probe("temperature", code="thr"),
        match="type",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("dew_point", code="clr"),
    filter=set_member(
        field="ts",
        source=Probe("snow_depth", code="snw"),
        match="unit",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="mst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MAX", "value",
                            source=Probe("turbidity", code="ftu"),
                            match="ts"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("humidity", code="hub"),
    filter=has_match(
        source=Probe("wind_speed", code="gst"),
        match="ts",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("drought_index", code="stn"),
    filter=set_member(
        field="qc",
        source=Probe("air_quality", code="prt"),
        match="type",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: humidity | code: thr | fields: depth, reading, value, lat
  Sensor: frost | fields: depth, lat, level, type
Task: Retrieve depth from humidity with reading above the AVG(reading) of frost readings sharing the same type.
Script:

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


Prompt:
Sensor network script:
  Node: turbidity | code: stn | fields: lon, lat, level, depth
  Sensor: rainfall | fields: depth, value, reading, unit
Task: Fetch reading from turbidity that have at least one corresponding rainfall measurement for the same unit.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="stn"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="unit",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: stn | fields: level, lat, ts, type
  Sensor: drought_index | fields: level, qc, depth, ts
Task: Get level from soil_moisture where reading exceeds the maximum value from drought_index for the same depth.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MAX", "value",
                            source=Probe("drought_index", code="drt"),
                            match="depth"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("frost", code="prt"),
    filter=has_match(
        source=Probe("drought_index", code="drt"),
        match="qc",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: air_quality | code: prt | fields: ts, type, lon, depth
  Sensor: cloud_cover | fields: lon, lat, value, type
Task: Retrieve lon from air_quality with depth above the AVG(value) of cloud_cover readings sharing the same depth.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="prt"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "value",
                            source=Probe("cloud_cover", code="nbl"),
                            match="depth"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("sunlight", code="mst"),
    filter=set_member(
        field="qc",
        source=Probe("frost", code="frs"),
        match="type",
    ),
    output="depth",
)


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

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


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

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


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

Question:
readings = fetch(
    node=Node("rainfall", code="clr"),
    filter=has_match(
        source=Probe("snow_depth", code="snw"),
        match="unit",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="hub"),
    filter=set_member(
        field="depth",
        source=Probe("lightning", code="tnd"),
        match="unit",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: cloud_cover | code: clr | fields: reading, type, lat, lon
  Sensor: lightning | fields: type, value, lat, reading
Task: Fetch value from cloud_cover where reading is greater than the maximum of value in lightning for matching depth.
Script:

Question:
readings = fetch(
    node=Node("cloud_cover", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MAX", "value",
                            source=Probe("lightning", code="tnd"),
                            match="depth"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("turbidity", code="ref"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="ts",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: dew_point | code: ref | fields: value, lat, type, lon
  Sensor: soil_moisture | fields: lon, qc, lat, depth
Task: Fetch lat from dew_point where value is greater than the total of value in soil_moisture for matching type.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="ref"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "value",
                            source=Probe("soil_moisture", code="grvl"),
                            match="type"),
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="ref"),
    filter=exceeds(
        field="value",
        threshold=aggregate("AVG", "depth",
                            source=Probe("evaporation", code="evp"),
                            match="qc"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("soil_moisture", code="gst"),
    filter=set_member(
        field="depth",
        source=Probe("sunlight", code="brt"),
        match="depth",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="stn"),
    filter=has_match(
        source=Probe("uv_index", code="flx"),
        match="type",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("humidity", code="gst"),
    filter=set_member(
        field="type",
        source=Probe("air_quality", code="prt"),
        match="unit",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("pressure", code="ref"),
    filter=set_member(
        field="unit",
        source=Probe("sunlight", code="brt"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: dew_point | code: prt | fields: reading, lat, unit, level
  Sensor: turbidity | fields: lat, unit, ts, level
Task: Get level from dew_point where depth exceeds the count of depth from turbidity for the same depth.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="prt"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("COUNT", "depth",
                            source=Probe("turbidity", code="ftu"),
                            match="depth"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("frost", code="mst"),
    filter=set_member(
        field="type",
        source=Probe("uv_index", code="flx"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: visibility | code: thr | fields: ts, value, depth, type
  Sensor: rainfall | fields: level, ts, lon, value
Task: Get level from visibility where type appears in rainfall readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="thr"),
    filter=set_member(
        field="type",
        source=Probe("rainfall", code="rnfl"),
        match="type",
    ),
    output="level",
)


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

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


Prompt:
Sensor network script:
  Node: humidity | code: hub | fields: depth, ts, lat, level
  Sensor: snow_depth | fields: value, ts, depth, reading
Task: Fetch reading from humidity where reading is greater than the total of reading in snow_depth for matching unit.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="hub"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "reading",
                            source=Probe("snow_depth", code="snw"),
                            match="unit"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="gst"),
    filter=set_member(
        field="qc",
        source=Probe("dew_point", code="cnd"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: evaporation | code: hub | fields: lat, value, type, qc
  Sensor: humidity | fields: lat, lon, value, unit
Task: Fetch lat from evaporation where reading is greater than the average of value in humidity for matching ts.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="hub"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "value",
                            source=Probe("humidity", code="hgr"),
                            match="ts"),
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="prt"),
    filter=set_member(
        field="unit",
        source=Probe("uv_index", code="flx"),
        match="qc",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="thr"),
    filter=set_member(
        field="type",
        source=Probe("uv_index", code="flx"),
        match="ts",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MAX", "reading",
                            source=Probe("rainfall", code="rnfl"),
                            match="depth"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="ref"),
    filter=has_match(
        source=Probe("snow_depth", code="snw"),
        match="depth",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("soil_moisture", code="thr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "value",
                            source=Probe("visibility", code="clr"),
                            match="unit"),
    ),
    output="depth",
)


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

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


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

Question:
readings = fetch(
    node=Node("temperature", code="stn"),
    filter=set_member(
        field="unit",
        source=Probe("frost", code="frs"),
        match="unit",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: sunlight | code: prt | fields: level, depth, lat, value
  Sensor: evaporation | fields: lat, value, level, unit
Task: Fetch lon from sunlight where value is greater than the count of of reading in evaporation for matching depth.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="prt"),
    filter=exceeds(
        field="value",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("evaporation", code="evp"),
                            match="depth"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("frost", code="hub"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "depth",
                            source=Probe("temperature", code="thr"),
                            match="unit"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("evaporation", code="stn"),
    filter=set_member(
        field="depth",
        source=Probe("dew_point", code="cnd"),
        match="depth",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: dew_point | code: ref | fields: value, depth, lon, qc
  Sensor: drought_index | fields: reading, lon, level, value
Task: Retrieve reading from dew_point that have at least one matching reading in drought_index sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="ref"),
    filter=has_match(
        source=Probe("drought_index", code="drt"),
        match="qc",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("drought_index", code="thr"),
    filter=has_match(
        source=Probe("cloud_cover", code="nbl"),
        match="ts",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("lightning", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "depth",
                            source=Probe("rainfall", code="rnfl"),
                            match="type"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("sunlight", code="gst"),
    filter=set_member(
        field="type",
        source=Probe("turbidity", code="ftu"),
        match="unit",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: sunlight | code: clr | fields: value, ts, depth, qc
  Sensor: soil_moisture | fields: unit, value, depth, lon
Task: Get value from sunlight where a corresponding entry exists in soil_moisture with the same qc.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="clr"),
    filter=has_match(
        source=Probe("soil_moisture", code="grvl"),
        match="qc",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="ref"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "value",
                            source=Probe("humidity", code="hgr"),
                            match="ts"),
    ),
    output="depth",
)


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

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


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

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


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

Question:
readings = fetch(
    node=Node("turbidity", code="thr"),
    filter=set_member(
        field="depth",
        source=Probe("dew_point", code="cnd"),
        match="ts",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("soil_moisture", code="thr"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="unit",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="prt"),
    filter=has_match(
        source=Probe("humidity", code="hgr"),
        match="qc",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("pressure", code="hub"),
    filter=set_member(
        field="unit",
        source=Probe("sunlight", code="brt"),
        match="type",
    ),
    output="lon",
)


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

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


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

Question:
readings = fetch(
    node=Node("wind_speed", code="stn"),
    filter=has_match(
        source=Probe("turbidity", code="ftu"),
        match="depth",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="thr"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="unit",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: ref | fields: lon, type, value, depth
  Sensor: drought_index | fields: lon, type, lat, qc
Task: Get depth from soil_moisture where unit appears in drought_index readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="ref"),
    filter=set_member(
        field="unit",
        source=Probe("drought_index", code="drt"),
        match="type",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("evaporation", code="thr"),
    filter=set_member(
        field="unit",
        source=Probe("visibility", code="clr"),
        match="ts",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="ref"),
    filter=exceeds(
        field="value",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("turbidity", code="ftu"),
                            match="type"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("drought_index", code="thr"),
    filter=set_member(
        field="type",
        source=Probe("visibility", code="clr"),
        match="depth",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("evaporation", code="ref"),
    filter=set_member(
        field="depth",
        source=Probe("snow_depth", code="snw"),
        match="ts",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="hub"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "depth",
                            source=Probe("sunlight", code="brt"),
                            match="type"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="clr"),
    filter=has_match(
        source=Probe("cloud_cover", code="nbl"),
        match="unit",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="thr"),
    filter=has_match(
        source=Probe("pressure", code="mbl"),
        match="qc",
    ),
    output="lat",
)


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

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


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

Question:
readings = fetch(
    node=Node("drought_index", code="hub"),
    filter=set_member(
        field="unit",
        source=Probe("evaporation", code="evp"),
        match="unit",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: sunlight | code: hub | fields: type, lat, qc, depth
  Sensor: wind_speed | fields: lat, qc, value, depth
Task: Retrieve value from sunlight with value above the MAX(value) of wind_speed readings sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="hub"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MAX", "value",
                            source=Probe("wind_speed", code="gst"),
                            match="qc"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("sunlight", code="gst"),
    filter=set_member(
        field="unit",
        source=Probe("cloud_cover", code="nbl"),
        match="ts",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("frost", code="thr"),
    filter=has_match(
        source=Probe("sunlight", code="brt"),
        match="ts",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="hub"),
    filter=has_match(
        source=Probe("soil_moisture", code="grvl"),
        match="unit",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="clr"),
    filter=has_match(
        source=Probe("humidity", code="hgr"),
        match="ts",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("lightning", code="hub"),
    filter=has_match(
        source=Probe("turbidity", code="ftu"),
        match="type",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="thr"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="ts",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="stn"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="ts",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="thr"),
    filter=set_member(
        field="unit",
        source=Probe("snow_depth", code="snw"),
        match="qc",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: visibility | code: hub | fields: type, level, ts, value
  Sensor: snow_depth | fields: level, lat, type, qc
Task: Get depth from visibility where a corresponding entry exists in snow_depth with the same qc.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="hub"),
    filter=has_match(
        source=Probe("snow_depth", code="snw"),
        match="qc",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("soil_moisture", code="mst"),
    filter=has_match(
        source=Probe("temperature", code="thr"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: air_quality | code: mst | fields: value, qc, level, ts
  Sensor: dew_point | fields: lat, depth, value, level
Task: Get lon from air_quality where reading exceeds the count of reading from dew_point for the same unit.
Script:

Question:
readings = fetch(
    node=Node("air_quality", code="mst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("dew_point", code="cnd"),
                            match="unit"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("air_quality", code="mst"),
    filter=set_member(
        field="depth",
        source=Probe("turbidity", code="ftu"),
        match="type",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: rainfall | code: clr | fields: level, ts, qc, unit
  Sensor: sunlight | fields: reading, lat, lon, value
Task: Retrieve depth from rainfall with value above the MAX(depth) of sunlight readings sharing the same qc.
Script:

Question:
readings = fetch(
    node=Node("rainfall", code="clr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MAX", "depth",
                            source=Probe("sunlight", code="brt"),
                            match="qc"),
    ),
    output="depth",
)


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

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


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

Question:
readings = fetch(
    node=Node("uv_index", code="stn"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "value",
                            source=Probe("turbidity", code="ftu"),
                            match="depth"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="clr"),
    filter=set_member(
        field="qc",
        source=Probe("uv_index", code="flx"),
        match="unit",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="ref"),
    filter=set_member(
        field="depth",
        source=Probe("temperature", code="thr"),
        match="unit",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("turbidity", code="hub"),
    filter=set_member(
        field="type",
        source=Probe("wind_speed", code="gst"),
        match="qc",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="ref"),
    filter=has_match(
        source=Probe("pressure", code="mbl"),
        match="depth",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("frost", code="thr"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="qc",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: visibility | code: hub | fields: type, qc, reading, depth
  Sensor: rainfall | fields: qc, reading, value, unit
Task: Get level from visibility where type appears in rainfall readings with matching qc.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="hub"),
    filter=set_member(
        field="type",
        source=Probe("rainfall", code="rnfl"),
        match="qc",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="ref"),
    filter=set_member(
        field="ts",
        source=Probe("evaporation", code="evp"),
        match="ts",
    ),
    output="depth",
)


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

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


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

Question:
readings = fetch(
    node=Node("wind_speed", code="prt"),
    filter=set_member(
        field="type",
        source=Probe("lightning", code="tnd"),
        match="depth",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="gst"),
    filter=has_match(
        source=Probe("dew_point", code="cnd"),
        match="ts",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: visibility | code: hub | fields: reading, value, qc, type
  Sensor: wind_speed | fields: level, type, value, qc
Task: Retrieve lon from visibility with value above the AVG(reading) of wind_speed readings sharing the same ts.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="hub"),
    filter=exceeds(
        field="value",
        threshold=aggregate("AVG", "reading",
                            source=Probe("wind_speed", code="gst"),
                            match="ts"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="hub"),
    filter=set_member(
        field="depth",
        source=Probe("visibility", code="clr"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: turbidity | code: gst | fields: unit, qc, level, value
  Sensor: evaporation | fields: value, type, unit, level
Task: Get level from turbidity where value exceeds the average value from evaporation for the same type.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="gst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("AVG", "value",
                            source=Probe("evaporation", code="evp"),
                            match="type"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("frost", code="gst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "depth",
                            source=Probe("dew_point", code="cnd"),
                            match="type"),
    ),
    output="reading",
)


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

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


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

Question:
readings = fetch(
    node=Node("drought_index", code="hub"),
    filter=set_member(
        field="qc",
        source=Probe("temperature", code="thr"),
        match="type",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("air_quality", code="ref"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MIN", "depth",
                            source=Probe("turbidity", code="ftu"),
                            match="ts"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("dew_point", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "reading",
                            source=Probe("evaporation", code="evp"),
                            match="qc"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("lightning", code="ref"),
    filter=set_member(
        field="qc",
        source=Probe("visibility", code="clr"),
        match="qc",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="ref"),
    filter=set_member(
        field="ts",
        source=Probe("temperature", code="thr"),
        match="unit",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: dew_point | code: hub | fields: type, reading, level, value
  Sensor: drought_index | fields: unit, type, lon, depth
Task: Fetch value from dew_point where ts exists in drought_index sensor data for the same ts.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="hub"),
    filter=set_member(
        field="ts",
        source=Probe("drought_index", code="drt"),
        match="ts",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: turbidity | code: stn | fields: qc, reading, type, ts
  Sensor: frost | fields: lon, lat, type, ts
Task: Get lon from turbidity where ts appears in frost readings with matching ts.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="stn"),
    filter=set_member(
        field="ts",
        source=Probe("frost", code="frs"),
        match="ts",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="prt"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "reading",
                            source=Probe("wind_speed", code="gst"),
                            match="ts"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("lightning", code="gst"),
    filter=set_member(
        field="ts",
        source=Probe("dew_point", code="cnd"),
        match="type",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("pressure", code="mst"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="depth",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: pressure | code: gst | fields: type, unit, value, level
  Sensor: soil_moisture | fields: type, lat, depth, unit
Task: Get lon from pressure where depth appears in soil_moisture readings with matching depth.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="gst"),
    filter=set_member(
        field="depth",
        source=Probe("soil_moisture", code="grvl"),
        match="depth",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="hub"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MAX", "value",
                            source=Probe("frost", code="frs"),
                            match="unit"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("pressure", code="ref"),
    filter=set_member(
        field="depth",
        source=Probe("dew_point", code="cnd"),
        match="qc",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: frost | code: hub | fields: type, depth, lat, ts
  Sensor: temperature | fields: depth, ts, type, value
Task: Get value from frost where depth appears in temperature readings with matching ts.
Script:

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


Prompt:
Sensor network script:
  Node: sunlight | code: hub | fields: reading, type, depth, ts
  Sensor: snow_depth | fields: unit, ts, level, type
Task: Retrieve reading from sunlight whose depth is found in snow_depth records where ts matches the outer node.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="hub"),
    filter=set_member(
        field="depth",
        source=Probe("snow_depth", code="snw"),
        match="ts",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: temperature | code: clr | fields: level, reading, value, unit
  Sensor: sunlight | fields: qc, value, lat, level
Task: Fetch value from temperature where reading is greater than the maximum of reading in sunlight for matching depth.
Script:

Question:
readings = fetch(
    node=Node("temperature", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MAX", "reading",
                            source=Probe("sunlight", code="brt"),
                            match="depth"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="gst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "value",
                            source=Probe("visibility", code="clr"),
                            match="depth"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: sunlight | code: clr | fields: type, depth, lat, ts
  Sensor: cloud_cover | fields: reading, value, depth, level
Task: Get value from sunlight where value exceeds the maximum value from cloud_cover for the same depth.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="clr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MAX", "value",
                            source=Probe("cloud_cover", code="nbl"),
                            match="depth"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="thr"),
    filter=set_member(
        field="qc",
        source=Probe("lightning", code="tnd"),
        match="depth",
    ),
    output="level",
)


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

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


Prompt:
Sensor network script:
  Node: snow_depth | code: hub | fields: value, unit, reading, qc
  Sensor: soil_moisture | fields: qc, lat, reading, unit
Task: Fetch reading from snow_depth where reading is greater than the count of of reading in soil_moisture for matching type.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="hub"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("soil_moisture", code="grvl"),
                            match="type"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="hub"),
    filter=set_member(
        field="ts",
        source=Probe("air_quality", code="prt"),
        match="ts",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("pressure", code="gst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "value",
                            source=Probe("evaporation", code="evp"),
                            match="qc"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="stn"),
    filter=set_member(
        field="type",
        source=Probe("turbidity", code="ftu"),
        match="unit",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: rainfall | code: thr | fields: lon, type, reading, unit
  Sensor: lightning | fields: lon, lat, unit, qc
Task: Get depth from rainfall where depth exceeds the count of depth from lightning for the same type.
Script:

Question:
readings = fetch(
    node=Node("rainfall", code="thr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("COUNT", "depth",
                            source=Probe("lightning", code="tnd"),
                            match="type"),
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: humidity | code: clr | fields: value, lat, depth, level
  Sensor: pressure | fields: lon, unit, value, lat
Task: Fetch value from humidity where value is greater than the total of depth in pressure for matching depth.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="clr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "depth",
                            source=Probe("pressure", code="mbl"),
                            match="depth"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="clr"),
    filter=set_member(
        field="type",
        source=Probe("evaporation", code="evp"),
        match="depth",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: sunlight | code: clr | fields: ts, depth, reading, lat
  Sensor: soil_moisture | fields: unit, value, reading, qc
Task: Retrieve depth from sunlight with reading above the COUNT(reading) of soil_moisture readings sharing the same ts.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("soil_moisture", code="grvl"),
                            match="ts"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="clr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "depth",
                            source=Probe("evaporation", code="evp"),
                            match="depth"),
    ),
    output="value",
)


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

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


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

Question:
readings = fetch(
    node=Node("dew_point", code="clr"),
    filter=has_match(
        source=Probe("air_quality", code="prt"),
        match="depth",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: dew_point | code: hub | fields: lat, type, qc, level
  Sensor: soil_moisture | fields: level, type, lat, ts
Task: Retrieve level from dew_point with depth above the AVG(reading) of soil_moisture readings sharing the same type.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="hub"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "reading",
                            source=Probe("soil_moisture", code="grvl"),
                            match="type"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("air_quality", code="hub"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="qc",
    ),
    output="depth",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: mst | fields: value, reading, lon, level
  Sensor: visibility | fields: reading, type, value, qc
Task: Fetch reading from snow_depth where type exists in visibility sensor data for the same qc.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="mst"),
    filter=set_member(
        field="type",
        source=Probe("visibility", code="clr"),
        match="qc",
    ),
    output="reading",
)


Prompt:
Sensor network script:
  Node: evaporation | code: stn | fields: ts, lat, reading, depth
  Sensor: sunlight | fields: lat, depth, unit, type
Task: Fetch depth from evaporation where unit exists in sunlight sensor data for the same type.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="stn"),
    filter=set_member(
        field="unit",
        source=Probe("sunlight", code="brt"),
        match="type",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("frost", code="stn"),
    filter=set_member(
        field="depth",
        source=Probe("drought_index", code="drt"),
        match="ts",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="stn"),
    filter=set_member(
        field="depth",
        source=Probe("pressure", code="mbl"),
        match="type",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="mst"),
    filter=set_member(
        field="type",
        source=Probe("humidity", code="hgr"),
        match="unit",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("dew_point", code="stn"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="qc",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="ref"),
    filter=set_member(
        field="qc",
        source=Probe("dew_point", code="cnd"),
        match="type",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: prt | fields: value, depth, qc, unit
  Sensor: uv_index | fields: depth, level, reading, unit
Task: Get depth from soil_moisture where reading exceeds the minimum depth from uv_index for the same ts.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="prt"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "depth",
                            source=Probe("uv_index", code="flx"),
                            match="ts"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="stn"),
    filter=has_match(
        source=Probe("turbidity", code="ftu"),
        match="qc",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="ref"),
    filter=set_member(
        field="type",
        source=Probe("wind_speed", code="gst"),
        match="qc",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: sunlight | code: ref | fields: reading, lat, value, qc
  Sensor: rainfall | fields: depth, level, ts, unit
Task: Get lon from sunlight where depth appears in rainfall readings with matching unit.
Script:

Question:
readings = fetch(
    node=Node("sunlight", code="ref"),
    filter=set_member(
        field="depth",
        source=Probe("rainfall", code="rnfl"),
        match="unit",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="mst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MAX", "value",
                            source=Probe("frost", code="frs"),
                            match="ts"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("sunlight", code="clr"),
    filter=has_match(
        source=Probe("air_quality", code="prt"),
        match="type",
    ),
    output="lat",
)


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

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


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

Question:
readings = fetch(
    node=Node("dew_point", code="thr"),
    filter=set_member(
        field="ts",
        source=Probe("turbidity", code="ftu"),
        match="qc",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "value",
                            source=Probe("temperature", code="thr"),
                            match="qc"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: visibility | code: gst | fields: unit, reading, level, lon
  Sensor: cloud_cover | fields: unit, type, ts, depth
Task: Fetch lon from visibility where depth is greater than the total of depth in cloud_cover for matching depth.
Script:

Question:
readings = fetch(
    node=Node("visibility", code="gst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("SUM", "depth",
                            source=Probe("cloud_cover", code="nbl"),
                            match="depth"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: evaporation | code: stn | fields: type, depth, qc, lat
  Sensor: rainfall | fields: value, lon, level, type
Task: Get reading from evaporation where value exceeds the total value from rainfall for the same type.
Script:

Question:
readings = fetch(
    node=Node("evaporation", code="stn"),
    filter=exceeds(
        field="value",
        threshold=aggregate("SUM", "value",
                            source=Probe("rainfall", code="rnfl"),
                            match="type"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="mst"),
    filter=has_match(
        source=Probe("drought_index", code="drt"),
        match="qc",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="prt"),
    filter=set_member(
        field="unit",
        source=Probe("visibility", code="clr"),
        match="depth",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("turbidity", code="thr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "depth",
                            source=Probe("uv_index", code="flx"),
                            match="unit"),
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="prt"),
    filter=set_member(
        field="ts",
        source=Probe("wind_speed", code="gst"),
        match="type",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("pressure", code="clr"),
    filter=set_member(
        field="type",
        source=Probe("temperature", code="thr"),
        match="qc",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="thr"),
    filter=has_match(
        source=Probe("snow_depth", code="snw"),
        match="depth",
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: turbidity | code: clr | fields: lon, type, lat, depth
  Sensor: snow_depth | fields: unit, qc, reading, level
Task: Fetch level from turbidity where reading is greater than the minimum of depth in snow_depth for matching unit.
Script:

Question:
readings = fetch(
    node=Node("turbidity", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("MIN", "depth",
                            source=Probe("snow_depth", code="snw"),
                            match="unit"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="thr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MAX", "depth",
                            source=Probe("turbidity", code="ftu"),
                            match="qc"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="clr"),
    filter=set_member(
        field="ts",
        source=Probe("air_quality", code="prt"),
        match="ts",
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: dew_point | code: thr | fields: reading, lon, type, unit
  Sensor: visibility | fields: type, lon, ts, level
Task: Fetch level from dew_point where ts exists in visibility sensor data for the same ts.
Script:

Question:
readings = fetch(
    node=Node("dew_point", code="thr"),
    filter=set_member(
        field="ts",
        source=Probe("visibility", code="clr"),
        match="ts",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: humidity | code: ref | fields: lon, reading, depth, ts
  Sensor: air_quality | fields: ts, type, depth, level
Task: Get level from humidity where type appears in air_quality readings with matching type.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="ref"),
    filter=set_member(
        field="type",
        source=Probe("air_quality", code="prt"),
        match="type",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: humidity | code: hub | fields: level, lat, depth, ts
  Sensor: snow_depth | fields: lat, unit, value, ts
Task: Fetch level from humidity where depth exists in snow_depth sensor data for the same depth.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="hub"),
    filter=set_member(
        field="depth",
        source=Probe("snow_depth", code="snw"),
        match="depth",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: pressure | code: thr | fields: reading, qc, type, lat
  Sensor: wind_speed | fields: depth, value, level, unit
Task: Get value from pressure where value exceeds the count of value from wind_speed for the same qc.
Script:

Question:
readings = fetch(
    node=Node("pressure", code="thr"),
    filter=exceeds(
        field="value",
        threshold=aggregate("COUNT", "value",
                            source=Probe("wind_speed", code="gst"),
                            match="qc"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="prt"),
    filter=has_match(
        source=Probe("rainfall", code="rnfl"),
        match="unit",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("frost", code="thr"),
    filter=has_match(
        source=Probe("pressure", code="mbl"),
        match="type",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("frost", code="prt"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "value",
                            source=Probe("lightning", code="tnd"),
                            match="type"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("uv_index", code="mst"),
    filter=has_match(
        source=Probe("cloud_cover", code="nbl"),
        match="type",
    ),
    output="level",
)


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

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


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

Question:
readings = fetch(
    node=Node("soil_moisture", code="prt"),
    filter=set_member(
        field="qc",
        source=Probe("dew_point", code="cnd"),
        match="qc",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="stn"),
    filter=has_match(
        source=Probe("soil_moisture", code="grvl"),
        match="type",
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("frost", code="prt"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="unit",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: soil_moisture | code: mst | fields: level, lon, unit, depth
  Sensor: evaporation | fields: type, ts, unit, depth
Task: Get level from soil_moisture where depth exceeds the maximum depth from evaporation for the same ts.
Script:

Question:
readings = fetch(
    node=Node("soil_moisture", code="mst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("MAX", "depth",
                            source=Probe("evaporation", code="evp"),
                            match="ts"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: wind_speed | code: clr | fields: lat, reading, value, depth
  Sensor: turbidity | fields: lon, qc, value, reading
Task: Get depth from wind_speed where depth exceeds the count of value from turbidity for the same ts.
Script:

Question:
readings = fetch(
    node=Node("wind_speed", code="clr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("COUNT", "value",
                            source=Probe("turbidity", code="ftu"),
                            match="ts"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("frost", code="thr"),
    filter=set_member(
        field="depth",
        source=Probe("turbidity", code="ftu"),
        match="qc",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="clr"),
    filter=set_member(
        field="unit",
        source=Probe("turbidity", code="ftu"),
        match="unit",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("lightning", code="gst"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("AVG", "reading",
                            source=Probe("evaporation", code="evp"),
                            match="qc"),
    ),
    output="lon",
)


Prompt:
Sensor network script:
  Node: wind_speed | code: ref | fields: type, ts, lon, level
  Sensor: rainfall | fields: level, ts, value, reading
Task: Get depth from wind_speed where ts appears in rainfall readings with matching ts.
Script:

Question:
readings = fetch(
    node=Node("wind_speed", code="ref"),
    filter=set_member(
        field="ts",
        source=Probe("rainfall", code="rnfl"),
        match="ts",
    ),
    output="depth",
)


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

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


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

Question:
readings = fetch(
    node=Node("rainfall", code="thr"),
    filter=has_match(
        source=Probe("soil_moisture", code="grvl"),
        match="depth",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("humidity", code="thr"),
    filter=has_match(
        source=Probe("drought_index", code="drt"),
        match="qc",
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("temperature", code="stn"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("COUNT", "reading",
                            source=Probe("lightning", code="tnd"),
                            match="qc"),
    ),
    output="value",
)


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

Question:
readings = fetch(
    node=Node("drought_index", code="prt"),
    filter=set_member(
        field="type",
        source=Probe("rainfall", code="rnfl"),
        match="unit",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("dew_point", code="ref"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MAX", "depth",
                            source=Probe("drought_index", code="drt"),
                            match="ts"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("sunlight", code="ref"),
    filter=has_match(
        source=Probe("dew_point", code="cnd"),
        match="ts",
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("snow_depth", code="mst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "value",
                            source=Probe("drought_index", code="drt"),
                            match="depth"),
    ),
    output="lat",
)


Prompt:
Sensor network script:
  Node: wind_speed | code: clr | fields: depth, lon, reading, ts
  Sensor: uv_index | fields: reading, level, lat, unit
Task: Get level from wind_speed where depth exceeds the count of depth from uv_index for the same type.
Script:

Question:
readings = fetch(
    node=Node("wind_speed", code="clr"),
    filter=exceeds(
        field="depth",
        threshold=aggregate("COUNT", "depth",
                            source=Probe("uv_index", code="flx"),
                            match="type"),
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: snow_depth | code: gst | fields: qc, lat, value, depth
  Sensor: air_quality | fields: type, qc, reading, value
Task: Fetch lat from snow_depth where value is greater than the average of depth in air_quality for matching unit.
Script:

Question:
readings = fetch(
    node=Node("snow_depth", code="gst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("AVG", "depth",
                            source=Probe("air_quality", code="prt"),
                            match="unit"),
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("dew_point", code="gst"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "reading",
                            source=Probe("uv_index", code="flx"),
                            match="unit"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("visibility", code="prt"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "value",
                            source=Probe("lightning", code="tnd"),
                            match="depth"),
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("turbidity", code="prt"),
    filter=has_match(
        source=Probe("lightning", code="tnd"),
        match="qc",
    ),
    output="lat",
)


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

Question:
readings = fetch(
    node=Node("dew_point", code="hub"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("SUM", "value",
                            source=Probe("sunlight", code="brt"),
                            match="unit"),
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("wind_speed", code="gst"),
    filter=exceeds(
        field="value",
        threshold=aggregate("MIN", "depth",
                            source=Probe("uv_index", code="flx"),
                            match="unit"),
    ),
    output="depth",
)


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

Question:
readings = fetch(
    node=Node("cloud_cover", code="gst"),
    filter=has_match(
        source=Probe("snow_depth", code="snw"),
        match="type",
    ),
    output="value",
)


Prompt:
Sensor network script:
  Node: sunlight | code: ref | fields: unit, lat, lon, reading
  Sensor: temperature | fields: reading, depth, qc, unit
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="ref"),
    filter=has_match(
        source=Probe("temperature", code="thr"),
        match="qc",
    ),
    output="lon",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="clr"),
    filter=exceeds(
        field="reading",
        threshold=aggregate("AVG", "value",
                            source=Probe("drought_index", code="drt"),
                            match="type"),
    ),
    output="reading",
)


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

Question:
readings = fetch(
    node=Node("drought_index", code="thr"),
    filter=has_match(
        source=Probe("turbidity", code="ftu"),
        match="qc",
    ),
    output="level",
)


Prompt:
Sensor network script:
  Node: humidity | code: mst | fields: lon, value, level, ts
  Sensor: visibility | fields: qc, reading, value, depth
Task: Get level from humidity where ts appears in visibility readings with matching depth.
Script:

Question:
readings = fetch(
    node=Node("humidity", code="mst"),
    filter=set_member(
        field="ts",
        source=Probe("visibility", code="clr"),
        match="depth",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("lightning", code="hub"),
    filter=has_match(
        source=Probe("visibility", code="clr"),
        match="unit",
    ),
    output="level",
)


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

Question:
readings = fetch(
    node=Node("rainfall", code="gst"),
    filter=set_member(
        field="type",
        source=Probe("evaporation", code="evp"),
        match="unit",
    ),
    output="level",
)