id stringlengths 10 19 | family stringclasses 10
values | question stringlengths 47 110 | answer unknown | kind stringclasses 3
values | tolerance float64 0.01 0.02 ⌀ | gold_sql stringlengths 69 217 | naive_sql stringlengths 60 250 ⌀ |
|---|---|---|---|---|---|---|---|
radius_degrees-00 | radius_degrees | How many other sites are within 50 km of site S-HEL-04? | 4 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-04' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=50000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-04' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.4491555874955085 |
radius_degrees-01 | radius_degrees | How many other sites are within 40 km of site S-REK-06? | 5 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-REK-06' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=40000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-REK-06' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.35932446999640677 |
radius_degrees-02 | radius_degrees | How many other sites are within 40 km of site S-REK-04? | 5 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-REK-04' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=40000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-REK-04' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.35932446999640677 |
radius_degrees-03 | radius_degrees | How many other sites are within 40 km of site S-HEL-12? | 3 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-12' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=40000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-12' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.35932446999640677 |
radius_degrees-04 | radius_degrees | How many other sites are within 20 km of site S-TRO-13? | 1 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-TRO-13' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=20000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-TRO-13' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.17966223499820339 |
radius_degrees-05 | radius_degrees | How many other sites are within 30 km of site S-HEL-13? | 1 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-13' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=30000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-13' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.2694933524973051 |
radius_degrees-06 | radius_degrees | How many other sites are within 20 km of site S-ANC-04? | 1 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-ANC-04' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=20000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-ANC-04' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.17966223499820339 |
radius_degrees-07 | radius_degrees | How many other sites are within 40 km of site S-TRO-10? | 2 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-TRO-10' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=40000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-TRO-10' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.35932446999640677 |
radius_degrees-08 | radius_degrees | How many other sites are within 20 km of site S-ANC-08? | 1 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-ANC-08' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=20000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-ANC-08' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.17966223499820339 |
radius_degrees-09 | radius_degrees | How many other sites are within 30 km of site S-HEL-07? | 2 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-07' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=30000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-HEL-07' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.2694933524973051 |
radius_degrees-10 | radius_degrees | How many other sites are within 40 km of site S-TRO-03? | 1 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-TRO-03' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=40000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-TRO-03' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.35932446999640677 |
radius_degrees-11 | radius_degrees | How many other sites are within 50 km of site S-REK-01? | 8 | int | null | SELECT count(*) FROM sites a, sites b WHERE a.name='S-REK-01' AND b.name<>a.name AND ST_Distance_Spheroid(a.geom,b.geom)<=50000 | SELECT count(*) FROM sites a, sites b WHERE a.name='S-REK-01' AND b.name<>a.name AND ST_Distance(a.geom,b.geom)<=0.4491555874955085 |
nearest_degrees-00 | nearest_degrees | Which other site is nearest to site S-OSL-00? Return its name. | "S-OSL-08" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-OSL-00' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-OSL-00' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-01 | nearest_degrees | Which other site is nearest to site S-OSL-03? Return its name. | "S-OSL-12" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-OSL-03' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-OSL-03' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-02 | nearest_degrees | Which other site is nearest to site S-TRO-10? Return its name. | "S-TRO-04" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-TRO-10' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-TRO-10' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-03 | nearest_degrees | Which other site is nearest to site S-HEL-07? Return its name. | "S-HEL-06" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-HEL-07' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-HEL-07' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-04 | nearest_degrees | Which other site is nearest to site S-USH-02? Return its name. | "S-USH-13" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-USH-02' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-USH-02' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-05 | nearest_degrees | Which other site is nearest to site S-ANC-01? Return its name. | "S-ANC-05" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-ANC-01' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-ANC-01' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-06 | nearest_degrees | Which other site is nearest to site S-OSL-04? Return its name. | "S-OSL-02" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-OSL-04' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-OSL-04' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-07 | nearest_degrees | Which other site is nearest to site S-USH-09? Return its name. | "S-USH-08" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-USH-09' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-USH-09' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-08 | nearest_degrees | Which other site is nearest to site S-HEL-08? Return its name. | "S-HEL-09" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-HEL-08' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-HEL-08' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-09 | nearest_degrees | Which other site is nearest to site S-ANC-03? Return its name. | "S-ANC-02" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-ANC-03' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-ANC-03' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-10 | nearest_degrees | Which other site is nearest to site S-TRO-02? Return its name. | "S-TRO-01" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-TRO-02' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-TRO-02' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
nearest_degrees-11 | nearest_degrees | Which other site is nearest to site S-TRO-06? Return its name. | "S-TRO-00" | text | null | SELECT b.name FROM sites a, sites b WHERE a.name='S-TRO-06' AND b.name<>a.name ORDER BY ST_Distance_Spheroid(a.geom,b.geom) LIMIT 1 | SELECT b.name FROM sites a, sites b WHERE a.name='S-TRO-06' AND b.name<>a.name ORDER BY ST_Distance(a.geom,b.geom) LIMIT 1 |
distance_webmerc-00 | distance_webmerc | What is the true ground distance in kilometres between site S-OSL-01 and site S-OSL-10 in table sites_webmerc? | 28.9368958642 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-OSL-01' AND b.name='S-OSL-10' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-OSL-01' AND b.name='S-OSL-10' |
distance_webmerc-01 | distance_webmerc | What is the true ground distance in kilometres between site S-HEL-04 and site S-HEL-06 in table sites_webmerc? | 84.7820574712 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-HEL-04' AND b.name='S-HEL-06' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-HEL-04' AND b.name='S-HEL-06' |
distance_webmerc-02 | distance_webmerc | What is the true ground distance in kilometres between site S-REK-06 and site S-REK-08 in table sites_webmerc? | 65.1566663404 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-REK-06' AND b.name='S-REK-08' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-REK-06' AND b.name='S-REK-08' |
distance_webmerc-03 | distance_webmerc | What is the true ground distance in kilometres between site S-REK-04 and site S-REK-06 in table sites_webmerc? | 58.3797693474 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-REK-04' AND b.name='S-REK-06' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-REK-04' AND b.name='S-REK-06' |
distance_webmerc-04 | distance_webmerc | What is the true ground distance in kilometres between site S-OSL-00 and site S-OSL-10 in table sites_webmerc? | 25.6120756438 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-OSL-00' AND b.name='S-OSL-10' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-OSL-00' AND b.name='S-OSL-10' |
distance_webmerc-05 | distance_webmerc | What is the true ground distance in kilometres between site S-HEL-12 and site S-HEL-05 in table sites_webmerc? | 42.4257288385 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-HEL-12' AND b.name='S-HEL-05' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-HEL-12' AND b.name='S-HEL-05' |
distance_webmerc-06 | distance_webmerc | What is the true ground distance in kilometres between site S-OSL-03 and site S-OSL-10 in table sites_webmerc? | 117.0198881004 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-OSL-03' AND b.name='S-OSL-10' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-OSL-03' AND b.name='S-OSL-10' |
distance_webmerc-07 | distance_webmerc | What is the true ground distance in kilometres between site S-TRO-13 and site S-TRO-04 in table sites_webmerc? | 111.7049602655 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-TRO-13' AND b.name='S-TRO-04' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-TRO-13' AND b.name='S-TRO-04' |
distance_webmerc-08 | distance_webmerc | What is the true ground distance in kilometres between site S-HEL-13 and site S-HEL-01 in table sites_webmerc? | 37.8237148752 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-HEL-13' AND b.name='S-HEL-01' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-HEL-13' AND b.name='S-HEL-01' |
distance_webmerc-09 | distance_webmerc | What is the true ground distance in kilometres between site S-ANC-04 and site S-ANC-06 in table sites_webmerc? | 92.4782489944 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-ANC-04' AND b.name='S-ANC-06' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-ANC-04' AND b.name='S-ANC-06' |
distance_webmerc-10 | distance_webmerc | What is the true ground distance in kilometres between site S-TRO-10 and site S-TRO-08 in table sites_webmerc? | 50.2647522289 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-TRO-10' AND b.name='S-TRO-08' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-TRO-10' AND b.name='S-TRO-08' |
distance_webmerc-11 | distance_webmerc | What is the true ground distance in kilometres between site S-ANC-08 and site S-ANC-03 in table sites_webmerc? | 75.1691260468 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Transform(a.geom,'EPSG:3857','EPSG:4326',true),ST_Transform(b.geom,'EPSG:3857','EPSG:4326',true))/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-ANC-08' AND b.name='S-ANC-03' | SELECT ST_Distance(a.geom,b.geom)/1000 FROM sites_webmerc a, sites_webmerc b WHERE a.name='S-ANC-08' AND b.name='S-ANC-03' |
axis_order-00 | axis_order | What is the distance in kilometres between stations T-ANC-02 and T-ANC-13? | 73.939864226 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-ANC-02' AND b.name='T-ANC-13' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-ANC-02' AND b.name='T-ANC-13' |
axis_order-01 | axis_order | What is the distance in kilometres between stations T-IST-00 and T-IST-03? | 67.9263251933 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-IST-00' AND b.name='T-IST-03' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-IST-00' AND b.name='T-IST-03' |
axis_order-02 | axis_order | What is the distance in kilometres between stations T-IST-07 and T-IST-08? | 88.107668693 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-IST-07' AND b.name='T-IST-08' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-IST-07' AND b.name='T-IST-08' |
axis_order-03 | axis_order | What is the distance in kilometres between stations T-ANC-06 and T-ANC-05? | 39.6391235995 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-ANC-06' AND b.name='T-ANC-05' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-ANC-06' AND b.name='T-ANC-05' |
axis_order-04 | axis_order | What is the distance in kilometres between stations T-TRO-00 and T-TRO-05? | 8.6558425824 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-TRO-00' AND b.name='T-TRO-05' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-TRO-00' AND b.name='T-TRO-05' |
axis_order-05 | axis_order | What is the distance in kilometres between stations T-ANC-00 and T-ANC-04? | 87.1240561908 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-ANC-00' AND b.name='T-ANC-04' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-ANC-00' AND b.name='T-ANC-04' |
axis_order-06 | axis_order | What is the distance in kilometres between stations T-USH-09 and T-USH-01? | 75.0513733992 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-USH-09' AND b.name='T-USH-01' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-USH-09' AND b.name='T-USH-01' |
axis_order-07 | axis_order | What is the distance in kilometres between stations T-REK-02 and T-REK-00? | 65.7819454675 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-REK-02' AND b.name='T-REK-00' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-REK-02' AND b.name='T-REK-00' |
axis_order-08 | axis_order | What is the distance in kilometres between stations T-USH-11 and T-USH-01? | 22.5382389756 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-USH-11' AND b.name='T-USH-01' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-USH-11' AND b.name='T-USH-01' |
axis_order-09 | axis_order | What is the distance in kilometres between stations T-WLG-02 and T-WLG-07? | 145.187988498 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-WLG-02' AND b.name='T-WLG-07' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-WLG-02' AND b.name='T-WLG-07' |
axis_order-10 | axis_order | What is the distance in kilometres between stations T-REK-06 and T-REK-13? | 77.0880887108 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-REK-06' AND b.name='T-REK-13' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-REK-06' AND b.name='T-REK-13' |
axis_order-11 | axis_order | What is the distance in kilometres between stations T-HEL-08 and T-HEL-07? | 86.9291564007 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM stations a, stations b WHERE a.name='T-HEL-08' AND b.name='T-HEL-07' | SELECT ST_Distance_Spheroid(ST_Point(a.latitude,a.longitude),ST_Point(b.latitude,b.longitude))/1000 FROM stations a, stations b WHERE a.name='T-HEL-08' AND b.name='T-HEL-07' |
area_degrees-00 | area_degrees | What is the area of parcel P-OSL-1 in hectares? | 573.7595660512 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-OSL-1' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-OSL-1' |
area_degrees-01 | area_degrees | What is the area of parcel P-IST-0 in hectares? | 101.3169618313 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-IST-0' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-IST-0' |
area_degrees-02 | area_degrees | What is the area of parcel P-USH-0 in hectares? | 260.4731785324 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-USH-0' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-USH-0' |
area_degrees-03 | area_degrees | What is the area of parcel P-WLG-3 in hectares? | 463.0876944166 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-WLG-3' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-WLG-3' |
area_degrees-04 | area_degrees | What is the area of parcel P-USH-1 in hectares? | 380.5130390853 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-USH-1' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-USH-1' |
area_degrees-05 | area_degrees | What is the area of parcel P-WLG-2 in hectares? | 130.7185880789 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-WLG-2' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-WLG-2' |
area_degrees-06 | area_degrees | What is the area of parcel P-ANC-0 in hectares? | 529.1528231771 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-ANC-0' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-ANC-0' |
area_degrees-07 | area_degrees | What is the area of parcel P-REK-2 in hectares? | 316.1292936213 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-REK-2' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-REK-2' |
area_degrees-08 | area_degrees | What is the area of parcel P-NBO-0 in hectares? | 62.3084661414 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-NBO-0' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-NBO-0' |
area_degrees-09 | area_degrees | What is the area of parcel P-UIO-0 in hectares? | 352.2096601739 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-UIO-0' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-UIO-0' |
area_degrees-10 | area_degrees | What is the area of parcel P-TRO-2 in hectares? | 519.6175663179 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-TRO-2' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-TRO-2' |
area_degrees-11 | area_degrees | What is the area of parcel P-WLG-0 in hectares? | 576.6241242367 | num | 0.02 | SELECT ST_Area_Spheroid(geom)/10000 FROM parcels WHERE name='P-WLG-0' | SELECT ST_Area(geom)/10000 FROM parcels WHERE name='P-WLG-0' |
area_webmerc-00 | area_webmerc | What is the true ground area of parcel P-ANC-0 in table parcels_webmerc, in hectares? | 529.1528231771 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-ANC-0' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-ANC-0' |
area_webmerc-01 | area_webmerc | What is the true ground area of parcel P-HEL-2 in table parcels_webmerc, in hectares? | 142.6889353766 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-HEL-2' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-HEL-2' |
area_webmerc-02 | area_webmerc | What is the true ground area of parcel P-ANC-1 in table parcels_webmerc, in hectares? | 564.7256979438 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-ANC-1' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-ANC-1' |
area_webmerc-03 | area_webmerc | What is the true ground area of parcel P-OSL-2 in table parcels_webmerc, in hectares? | 510.2294967174 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-OSL-2' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-OSL-2' |
area_webmerc-04 | area_webmerc | What is the true ground area of parcel P-TRO-0 in table parcels_webmerc, in hectares? | 504.5054532843 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-TRO-0' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-TRO-0' |
area_webmerc-05 | area_webmerc | What is the true ground area of parcel P-REK-0 in table parcels_webmerc, in hectares? | 462.2925793453 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-REK-0' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-REK-0' |
area_webmerc-06 | area_webmerc | What is the true ground area of parcel P-HEL-3 in table parcels_webmerc, in hectares? | 508.4259964994 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-HEL-3' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-HEL-3' |
area_webmerc-07 | area_webmerc | What is the true ground area of parcel P-TRO-3 in table parcels_webmerc, in hectares? | 253.8143186967 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-TRO-3' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-TRO-3' |
area_webmerc-08 | area_webmerc | What is the true ground area of parcel P-ANC-2 in table parcels_webmerc, in hectares? | 607.2359439864 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-ANC-2' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-ANC-2' |
area_webmerc-09 | area_webmerc | What is the true ground area of parcel P-HEL-0 in table parcels_webmerc, in hectares? | 136.9376706502 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-HEL-0' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-HEL-0' |
area_webmerc-10 | area_webmerc | What is the true ground area of parcel P-ANC-3 in table parcels_webmerc, in hectares? | 605.1346110371 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-ANC-3' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-ANC-3' |
area_webmerc-11 | area_webmerc | What is the true ground area of parcel P-REK-2 in table parcels_webmerc, in hectares? | 316.1292936213 | num | 0.02 | SELECT ST_Area_Spheroid(ST_Transform(geom,'EPSG:3857','EPSG:4326',true))/10000 FROM parcels_webmerc WHERE name='P-REK-2' | SELECT ST_Area(geom)/10000 FROM parcels_webmerc WHERE name='P-REK-2' |
length_degrees-00 | length_degrees | What is the length of pipeline L-WLG-0 in kilometres? | 57.3133596102 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-WLG-0' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-WLG-0' |
length_degrees-01 | length_degrees | What is the length of pipeline L-REK-2 in kilometres? | 25.7743328805 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-REK-2' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-REK-2' |
length_degrees-02 | length_degrees | What is the length of pipeline L-REK-1 in kilometres? | 33.8611276833 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-REK-1' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-REK-1' |
length_degrees-03 | length_degrees | What is the length of pipeline L-USH-0 in kilometres? | 38.9961516562 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-USH-0' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-USH-0' |
length_degrees-04 | length_degrees | What is the length of pipeline L-OSL-1 in kilometres? | 28.4026287044 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-OSL-1' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-OSL-1' |
length_degrees-05 | length_degrees | What is the length of pipeline L-HEL-1 in kilometres? | 19.518938545 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-HEL-1' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-HEL-1' |
length_degrees-06 | length_degrees | What is the length of pipeline L-NBO-3 in kilometres? | 40.3940729658 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-NBO-3' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-NBO-3' |
length_degrees-07 | length_degrees | What is the length of pipeline L-HEL-0 in kilometres? | 17.8626165256 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-HEL-0' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-HEL-0' |
length_degrees-08 | length_degrees | What is the length of pipeline L-IST-2 in kilometres? | 40.8144578793 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-IST-2' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-IST-2' |
length_degrees-09 | length_degrees | What is the length of pipeline L-UIO-3 in kilometres? | 66.3882567634 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-UIO-3' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-UIO-3' |
length_degrees-10 | length_degrees | What is the length of pipeline L-REK-0 in kilometres? | 16.1795378297 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-REK-0' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-REK-0' |
length_degrees-11 | length_degrees | What is the length of pipeline L-ANC-3 in kilometres? | 37.2565243697 | num | 0.01 | SELECT ST_Length_Spheroid(geom)/1000 FROM pipelines WHERE name='L-ANC-3' | SELECT ST_Length(geom)/1000 FROM pipelines WHERE name='L-ANC-3' |
crs_join-00 | crs_join | How many assets are within 60 km of site S-OSL-04? | 26 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-04' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=60000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-04' AND ST_Distance(s.geom,a.geom)<=60000 |
crs_join-01 | crs_join | How many assets are within 60 km of site S-OSL-00? | 26 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-00' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=60000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-00' AND ST_Distance(s.geom,a.geom)<=60000 |
crs_join-02 | crs_join | How many assets are within 45 km of site S-OSL-02? | 13 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-02' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=45000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-02' AND ST_Distance(s.geom,a.geom)<=45000 |
crs_join-03 | crs_join | How many assets are within 35 km of site S-OSL-12? | 9 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-12' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=35000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-12' AND ST_Distance(s.geom,a.geom)<=35000 |
crs_join-04 | crs_join | How many assets are within 25 km of site S-OSL-08? | 7 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-08' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=25000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-08' AND ST_Distance(s.geom,a.geom)<=25000 |
crs_join-05 | crs_join | How many assets are within 45 km of site S-OSL-03? | 2 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-03' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=45000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-03' AND ST_Distance(s.geom,a.geom)<=45000 |
crs_join-06 | crs_join | How many assets are within 25 km of site S-OSL-13? | 5 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-13' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=25000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-13' AND ST_Distance(s.geom,a.geom)<=25000 |
crs_join-07 | crs_join | How many assets are within 25 km of site S-OSL-06? | 7 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-06' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=25000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-06' AND ST_Distance(s.geom,a.geom)<=25000 |
crs_join-08 | crs_join | How many assets are within 45 km of site S-OSL-10? | 13 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-10' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=45000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-10' AND ST_Distance(s.geom,a.geom)<=45000 |
crs_join-09 | crs_join | How many assets are within 25 km of site S-OSL-07? | 9 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-07' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=25000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-07' AND ST_Distance(s.geom,a.geom)<=25000 |
crs_join-10 | crs_join | How many assets are within 35 km of site S-OSL-11? | 3 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-11' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=35000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-11' AND ST_Distance(s.geom,a.geom)<=35000 |
crs_join-11 | crs_join | How many assets are within 60 km of site S-OSL-05? | 17 | int | null | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-05' AND ST_Distance_Spheroid(s.geom,ST_Transform(a.geom,'EPSG:32632','EPSG:4326',true))<=60000 | SELECT count(*) FROM sites s, assets_utm32n a WHERE s.name='S-OSL-05' AND ST_Distance(s.geom,a.geom)<=60000 |
antimeridian-00 | antimeridian | What is the shortest distance in kilometres between Adak and Attu in table islands? | 700.9927500112 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM islands a, islands b WHERE a.name='Adak' AND b.name='Attu' | SELECT ST_Distance(ST_Transform(ST_Point(a.longitude,a.latitude),'EPSG:4326','EPSG:3857',true),ST_Transform(ST_Point(b.longitude,b.latitude),'EPSG:4326','EPSG:3857',true))/1000 FROM islands a, islands b WHERE a.name='Adak' AND b.name='Attu' |
antimeridian-01 | antimeridian | What is the shortest distance in kilometres between Apia and Whangarei in table islands? | 2797.4721120552 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM islands a, islands b WHERE a.name='Apia' AND b.name='Whangarei' | SELECT ST_Distance(ST_Transform(ST_Point(a.longitude,a.latitude),'EPSG:4326','EPSG:3857',true),ST_Transform(ST_Point(b.longitude,b.latitude),'EPSG:4326','EPSG:3857',true))/1000 FROM islands a, islands b WHERE a.name='Apia' AND b.name='Whangarei' |
antimeridian-02 | antimeridian | What is the shortest distance in kilometres between Nukualofa and Whangarei in table islands? | 1912.417118691 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM islands a, islands b WHERE a.name='Nukualofa' AND b.name='Whangarei' | SELECT ST_Distance(ST_Transform(ST_Point(a.longitude,a.latitude),'EPSG:4326','EPSG:3857',true),ST_Transform(ST_Point(b.longitude,b.latitude),'EPSG:4326','EPSG:3857',true))/1000 FROM islands a, islands b WHERE a.name='Nukualofa' AND b.name='Whangarei' |
antimeridian-03 | antimeridian | What is the shortest distance in kilometres between Chatham and Whangarei in table islands? | 1199.4042403641 | num | 0.01 | SELECT ST_Distance_Spheroid(ST_Point(a.longitude,a.latitude),ST_Point(b.longitude,b.latitude))/1000 FROM islands a, islands b WHERE a.name='Chatham' AND b.name='Whangarei' | SELECT ST_Distance(ST_Transform(ST_Point(a.longitude,a.latitude),'EPSG:4326','EPSG:3857',true),ST_Transform(ST_Point(b.longitude,b.latitude),'EPSG:4326','EPSG:3857',true))/1000 FROM islands a, islands b WHERE a.name='Chatham' AND b.name='Whangarei' |
GeoSQL-Traps
When an LLM writes spatial SQL, the dangerous answer is not the one that crashes. It is the one that runs and returns a plausible wrong number.
GeoSQL-Traps is a small benchmark of 120 spatial questions over a DuckDB database. 108 questions hide a classic GIS trap: distances in degrees, Web Mercator area and length, swapped axis order, a join across two coordinate systems, and the antimeridian. 12 control questions have no trap. Every reference answer is computed independently with pyproj.Geod on the WGS84 ellipsoid, never by SQL.
Each model answer is executed and sorted into one of four outcomes:
| Outcome | Meaning |
|---|---|
correct |
The query runs and the value is within tolerance |
wrong_silent |
The query runs and returns a wrong value, with no error. This is the outcome the benchmark exists to measure |
sql_error |
The query still fails after one repair turn |
no_sql |
The reply contains no SELECT statement |
Main result: the function list was doing the work
The first two prompt conditions listed the available functions, including the spheroidal ones (ST_Distance_Spheroid, ST_Area_Spheroid, ...). warned adds one sentence asking for true values on the Earth's surface. With the function list, three of the four models were perfect and no model produced a single silent error in 960 answers.
The nohint condition removes only that one paragraph. Everything else (schema comments with each table's CRS, the repair turn, temperature 0) stays the same.
| Model | plain correct | warned correct | nohint correct | nohint silent wrong | nohint SQL error | nohint no SQL |
|---|---|---|---|---|---|---|
| deepseek-v4.1-flash | 120 | 120 | 112 | 3 | 5 | 0 |
| glm-5.3 | 120 | 120 | 83 | 2 | 8 | 27 |
| gemma-4-31b | 120 | 120 | 35 | 33 | 52 | 0 |
| qwen3.8-flash-next | 105 | 90 | 18 | 4 | 3 | 95 |
Silent-error rate in nohint over the 108 trap questions, with 95% Wilson intervals:
| Model | Silent wrong | 95% CI |
|---|---|---|
| gemma-4-31b | 33 / 108 (30.6%) | 22.7% – 39.8% |
| qwen3.8-flash-next | 4 / 108 (3.7%) | 1.5% – 9.1% |
| deepseek-v4.1-flash | 3 / 108 (2.8%) | 1.0% – 7.9% |
| glm-5.3 | 2 / 108 (1.9%) | 0.5% – 6.5% |
Without the hint, gemma-4-31b returned a wrong number with no warning on almost a third of the trap questions. In 18 of those 33 cases its value matched the textbook naive mistake.
What the silent errors look like
Two nohint answers from gemma-4-31b, both of which run without complaint:
-- "What is the length of pipeline L-WLG-0 in kilometres?" (Wellington, about 41° S)
SELECT ST_Length(ST_Transform(geom, 'EPSG:4326', 'EPSG:3857')) / 1000.0
FROM pipelines WHERE name = 'L-WLG-0'
-- returns 76.2 km; true ground length 57.3 km. Web Mercator metres are not ground metres.
-- "How many other sites are within 40 km of site S-REK-06?" (Reykjavík, 64° N)
SELECT count(*) FROM sites_webmerc
WHERE name != 'S-REK-06'
AND ST_Distance(geom, (SELECT geom FROM sites_webmerc WHERE name = 'S-REK-06')) <= 40000
-- returns 1; the correct answer is 5. At 64° N a Mercator "metre" is about 0.44 ground metres.
Correct answers per trap family (nohint, 12 questions each)
| Family | deepseek | glm | gemma | qwen |
|---|---|---|---|---|
| radius_degrees | 11 | 12 | 1 | 0 |
| nearest_degrees | 12 | 10 | 1 | 1 |
| distance_webmerc | 12 | 7 | 6 | 0 |
| axis_order | 12 | 7 | 4 | 1 |
| area_degrees | 11 | 7 | 3 | 2 |
| area_webmerc | 11 | 3 | 3 | 0 |
| length_degrees | 10 | 11 | 0 | 0 |
| crs_join | 9 | 6 | 1 | 0 |
| antimeridian | 12 | 8 | 4 | 2 |
| control (no trap) | 12 | 12 | 12 | 12 |
All four models answered every control question correctly, so the drop is caused by the traps, not by the SQL dialect.
Read these limits before quoting a number
- One run per question, temperature 0. No repeats; the intervals above reflect question sampling only, not run-to-run variance.
no_sqlmeans the token budget ran out. Innohint, 97 of qwen3.8-flash-next's answers and all 27 of glm-5.3'sno_sqlanswers ended withfinish_reason = length: the model spent the 4,096-token output budget reasoning and returned no SQL. For qwen this explains most of its low score; it measures that budget, not its SQL skill. A larger budget would likely change both rows. Note that a model which gives up is safer than one that answers wrongly in silence.- Hosted models. All models were called through a hosted OpenAI-compatible endpoint. Serving details such as quantization are unknown and may change over time.
- A fifth model was dropped. The provider retired it during the study and silently routed requests made with its name to another model in this table. Those answers were removed from the results. If you benchmark hosted models, check which model actually answered.
- Synthetic, fictional data. Site names and geometries are generated; only the regional coordinates (Tromsø, Reykjavík, Oslo, Helsinki, Anchorage, Istanbul, Nairobi, Quito, Ushuaia, Wellington, and Pacific islands near the antimeridian) are real.
- One engine. DuckDB 2.0 with the spatial extension and
geometry_always_xyon. Other engines (PostGIS withgeography, BigQuery) offer different safe paths, and the same model may do better or worse there. - English questions only.
Files
| Path | Contents |
|---|---|
data/questions.jsonl |
120 questions: id, family, question, answer, kind (int/num/text), tolerance, gold_sql, naive_sql (the classic mistake; must run and be wrong) |
data/schema.txt |
Table list with CRS comments, as shown to the models |
data/geosql.duckdb |
The database (2.4 MB) |
results/scored.jsonl |
Every scored answer: condition, model, question, outcome, returned value, extracted SQL |
results/summary.json |
Per condition and model: outcome counts, Wilson intervals, family breakdown |
prompts.md |
The exact system prompts for plain, warned and nohint, and the repair-turn message |
code/build.py |
Rebuilds the database and questions from a fixed seed (pyproj reference answers) |
code/score.py |
Runs SQL on a read-only, locked DuckDB connection and classifies the outcome; python code/score.py validate checks that every gold query passes and every naive query fails silently |
code/report.py |
Rescores raw replies and writes the summary |
Reproduce the scoring
pip install duckdb pyproj
python code/build.py # optional: rebuild data/ from the seed
python code/score.py validate # gold passes, naive fails silently
To score your own model, write one JSON line per question to results/raw/<condition>/<model>.jsonl with fields id and reply (the model's raw text), then run python code/report.py.
Licence
Data and results: CC0 1.0. Code: MIT.
- Downloads last month
- 73