examples.json 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [
  2. {
  3. "query_type": "land_site_selection",
  4. "query": "帮我在萧山区推荐几块50亩左右的工业用地,数据表是控制性详细规划",
  5. "sql_code": "select id from sde.kzxxxgh where xzqmc = '萧山区' and ydxz like '%工业%' and abs(ydmj - 50*0.0667) <= 1 and shape is not null order by (dkcsd + ghfhd + dkgzd + jtblx + cyppd) desc nulls last limit 5"
  6. },
  7. {
  8. "query_type": "land_site_selection",
  9. "query": "帮我在萧山区推荐一宗1公顷左右的学校用地,数据表是控制性详细规划",
  10. "sql_code": "select id from sde.kzxxxgh where xzqmc = '萧山区' and ydxz like '%学校%' and abs(ydmj - 1) <= 1 and shape is not null order by (dkcsd + ghfhd + dkgzd + jtblx + cyppd) desc nulls last limit 1"
  11. },
  12. {
  13. "query_type": "land_site_selection",
  14. "query": "帮我在萧山区推荐几块50亩左右的工业用地,数据表是公告地块",
  15. "sql_code": "select id from sde.ecgap_klyzy where xzqmc = '萧山区' and tdyt like '%工业%' and abs(dkmj-5) <= 1 and shape is not null and sfsj=1 order by (dkcsd + ghfhd + dkgzd + jtblx + cyppd) desc nulls last limit 5"
  16. },
  17. {
  18. "query_type": "land_site_selection",
  19. "query": "请在萧山机场附近选出30-100亩之间的工业用地,数据表是公告地块",
  20. "sql_code": "select t.id from (select id,dkmj,dkcsd,ghfhd,dkgzd,jtblx,cyppd,round(st_distance(st_geometryfromtext('POINT (120.42827489304307 30.23751646603668)', 4490)::geography,shape::geography)::numeric,0) as distance from sde.ecgap_klyzy where tdyt like '%工业%' and sfsj=1 and shape is not null and dkmj BETWEEN 30 and 100) as t where t.distance <= 10000 order by (dkcsd + ghfhd + dkgzd + jtblx + cyppd) desc nulls last limit 5"
  21. },
  22. {
  23. "query_type": "land_site_selection",
  24. "query": "帮我在萧山机场附近推荐几块50亩左右的工业用地,数据表是控制性详细规划",
  25. "sql_code": "select t.id from (select id,dkcsd,ghfhd,dkgzd,jtblx,cyppd,ydmj,round(st_distance(st_geometryfromtext('POINT (120.42827489304307 30.23751646603668)', 4490)::geography,shape::geography)::numeric,0) as distance from sde.kzxxxgh where ydxz like '%工业%' and shape is not null and abs(ydmj - 50*0.0667) <= 1) as t where t.distance <= 10000 order by (dkcsd + ghfhd + dkgzd + jtblx + cyppd) desc nulls last limit 5"
  26. },
  27. {
  28. "query_type": "land_site_selection",
  29. "query": "帮我在温州南站附近推荐几块工业用地,温州南站的坐标为120.58,27.97,数据表是控制性详细规划",
  30. "sql_code": "select t.id from (select id,dkcsd,ghfhd,dkgzd,jtblx,cyppd,ydmj,round(st_distance(st_geometryfromtext('POINT (120.58 27.97)', 4490)::geography,shape::geography)::numeric,0) as distance from sde.kzxxxgh where ydxz like '%工业%' and shape is not null) as t where t.distance <= 10000 order by (dkcsd + ghfhd + dkgzd + jtblx + cyppd) desc nulls last limit 5"
  31. },
  32. {
  33. "query_type": "land_site_selection",
  34. "query": "请在萧山区找出面积最大的商业用地,数据表是控制性详细规划",
  35. "sql_code": "SELECT id FROM sde.kzxxxgh WHERE xzqmc = '萧山区' AND ydxz LIKE '%商业%' AND shape IS NOT NUL ORDER BY ydmj DESC LIMIT 1;"
  36. }
  37. ]