|
@@ -1,122 +0,0 @@
|
|
|
-[
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省2024年土地供应情况",
|
|
|
- "sql_code": "select count(1) as supplyNums, round(sum(amount), 2) as totalAmounts, round(sum(land_area * 0.0015), 0) as totalAreas from zlzd.land_supply where to_char(sell_date, 'yyyy') = '2024' and province = '浙江省'"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省今年土地供应情况",
|
|
|
- "sql_code": "select count(1) as supplyNums, round(sum(amount), 2) as totalAmounts, round(sum(land_area * 0.0015), 0) as totalAreas from zlzd.land_supply where to_char(sell_date, 'yyyy') = to_char(CURRENT_DATE, 'YYYY') and province = '浙江省'"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省2024年土地出让面积是多少",
|
|
|
- "sql_code": "select round(sum(land_area * 0.0015), 0) as totalArea from zlzd.land_supply where to_char(sell_date, 'yyyy') = to_char(CURRENT_DATE, 'YYYY') and province = '浙江省' and land_supply_type similar to '(2|3)%'"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省2024年各土地用途供应面积是多少",
|
|
|
- "sql_code": "SELECT CASE WHEN land_use_type LIKE '05%' THEN '商业用地' WHEN land_use_type LIKE '06%' THEN '工业用地' WHEN land_use_type LIKE '07%' THEN '住宅用地' WHEN land_use_type LIKE '12%' THEN '其他用地' END AS land_use_category, ROUND(SUM(land_area * 0.0015), 0)::int AS total_area FROM zlzd.land_supply WHERE to_char(sell_date, 'yyyy') = '2024' AND province = '浙江省' and land_use_type similar to '(05|06|07|12)%' GROUP BY land_use_category ORDER BY land_use_category"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省本月土地供应面积环比数据",
|
|
|
- "sql_code": "select round(sum(case when to_char(sell_date, 'yyyy-MM') = to_char(current_date, 'yyyy-MM') then land_area * 0.0015 else 0 end), 0) as current_month_area, round(sum(case when to_char(sell_date, 'yyyy-MM') = to_char(current_date - interval '1 month', 'yyyy-MM') then land_area * 0.0015 else 0 end), 0) as last_month_area from zlzd.land_supply where province = '浙江省' and to_char(sell_date, 'yyyy-MM') in(to_char(current_date, 'yyyy-MM'), to_char(current_date - interval '1 month', 'yyyy-MM')) group by province"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省2024年2月土地供应面积环比数据",
|
|
|
- "sql_code": "select province, round(sum(case when to_char(sell_date, 'yyyy-MM') = '2024-02' then land_area * 0.0015 else 0 end), 0) as month_area, round(sum(case when to_char(sell_date, 'yyyy-MM') = to_char(to_date('2024-02', 'yyyy-MM') - interval '1 month', 'yyyy-MM') then land_area * 0.0015 else 0 end), 0) as last_month_area from zlzd.land_supply where province = '浙江省' and to_char(sell_date, 'yyyy-MM') in ('2024-02', to_char(to_date('2024-02', 'yyyy-MM') - interval '1 month', 'yyyy-MM')) group by province"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省本月土地供应出让金额环比数据",
|
|
|
- "sql_code": "select province, round(sum(case when to_char(sell_date, 'yyyy-MM') = '2024-02' then amount else 0 end), 2) as month_amount, round(sum(case when to_char(sell_date, 'yyyy-MM') = to_char(to_date('2024-02', 'yyyy-MM') - interval '1 month', 'yyyy-MM') then amount else 0 end), 2) as prev_month_amount from zlzd.land_supply where province = '浙江省' and to_char(sell_date, 'yyyy-MM') in ('2024-02', to_char(to_date('2024-02', 'yyyy-MM') - interval '1 month', 'yyyy-MM')) group by province"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "今年浙江省工业用地出让行业分布情况",
|
|
|
- "sql_code": "select industry, round(sum(land_area) * 0.0015, 0) from zlzd.land_supply where industry in ('制造业', '电力、燃气及水的生产和供应业', '交通运输、仓储和邮政业') and land_use_type like '06%' and land_supply_type similar to '(2|3)%' and province = '浙江省' and to_char(sell_date, 'yyyy') = to_char(current_date, 'yyyy') group by industry"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析浙江省今年土地供应结构",
|
|
|
- "sql_code": "select landType, sum(landArea)::int as landArea from (SELECT case when substr(t.land_use_type, 1, 2) = '05' then '商服用地' when substr(t.land_use_type, 1, 2) = '06' then '工矿仓储用地' when substr(t.land_use_type, 1, 2) = '07' then '住宅用地' else '基础设施用地' end as landType, ROUND(sum(land_area) * 0.0015) landArea FROM zlzd.land_supply_structure t WHERE t.land_supply_type not like '7%' AND province = '浙江省' AND to_char(t.sell_date, 'yyyy') = to_char(CURRENT_DATE, 'YYYY') GROUP BY substr(t.land_use_type, 1, 2) order by substr(land_use_type, 1, 2)) t group by landType"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省今年土地供应结构",
|
|
|
- "sql_code": "select landType, sum(landArea)::int as landArea from (SELECT case when substr(t.land_use_type, 1, 2) = '05' then '商服用地' when substr(t.land_use_type, 1, 2) = '06' then '工矿仓储用地' when substr(t.land_use_type, 1, 2) = '07' then '住宅用地' else '基础设施用地' end as landType, ROUND(sum(land_area) * 0.0015) landArea FROM zlzd.land_supply_structure t WHERE t.land_supply_type not like '7%' AND province = '浙江省' AND to_char(t.sell_date, 'yyyy') = to_char(CURRENT_DATE, 'YYYY') GROUP BY substr(t.land_use_type, 1, 2) order by substr(land_use_type, 1, 2)) t group by landType"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省2023年土地供应结构情况",
|
|
|
- "sql_code": "select landType, sum(landArea)::int as landArea from (SELECT case when substr(t.land_use_type, 1, 2) = '05' then '商服用地' when substr(t.land_use_type, 1, 2) = '06' then '工矿仓储用地' when substr(t.land_use_type, 1, 2) = '07' then '住宅用地' else '基础设施用地' end as landType, ROUND(sum(land_area) * 0.0015) landArea FROM zlzd.land_supply_structure t WHERE t.land_supply_type not like '7%' AND province = '浙江省' AND to_char(t.sell_date, 'yyyy') = '2023' GROUP BY substr(t.land_use_type, 1, 2) order by substr(land_use_type, 1, 2)) t group by landType"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析浙江省2024年各地级市土地供应情况",
|
|
|
- "sql_code": "select city, substr(region_code, 1, 4) , count(1) as supplyNums, round(sum(amount), 2) as totalAmounts, round(sum(land_area * 0.0015), 0)::int as totalAreas from zlzd.land_supply where to_char(sell_date, 'yyyy') = '2024' and province = '浙江省' group by city, substr(region_code, 1, 4) order by substr(region_code, 1, 4)"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "浙江省今年各地级市土地供应情况",
|
|
|
- "sql_code": "select city, substr(region_code, 1, 4) , count(1) as supplyNums, round(sum(amount), 2) as totalAmounts, round(sum(land_area * 0.0015), 0)::int as totalAreas from zlzd.land_supply where to_char(sell_date, 'yyyy') = to_char(CURRENT_DATE, 'YYYY') and province = '浙江省' group by city, substr(region_code, 1, 4) order by substr(region_code, 1, 4)"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析近几年杭州市工业用地出让情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as 供应年份, round(sum(land_area) * 0.0015, 0)::int as 工业用地供应总面积 from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '06%' group by select to_char(sell_date, 'yyyy') order by select to_char(sell_date, 'yyyy')"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "杭州市近几年工业用地出让情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as 供应年份, round(sum(land_area) * 0.0015, 0)::int as 工业用地供应总面积 from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '06%' group by select to_char(sell_date, 'yyyy') order by select to_char(sell_date, 'yyyy')"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析近几年杭州市住宅用地出让情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as 供应年份, round(sum(land_area) * 0.0015, 0)::int as 住宅用地供应总面积 from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '07%' group by select to_char(sell_date, 'yyyy') order by select to_char(sell_date, 'yyyy')"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "杭州市近几年住宅用地出让情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as 供应年份, round(sum(land_area) * 0.0015, 0)::int as 住宅用地供应总面积 from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '07%' group by select to_char(sell_date, 'yyyy') order by select to_char(sell_date, 'yyyy')"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析近几年杭州市商业用地出让情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as 供应年份, round(sum(land_area) * 0.0015, 0)::int as 商业用地供应总面积 from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '05%' group by select to_char(sell_date, 'yyyy') order by select to_char(sell_date, 'yyyy')"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "杭州市近几年商业用地出让情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as 供应年份, round(sum(land_area) * 0.0015, 0)::int as 商业用地供应总面积 from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '05%' group by select to_char(sell_date, 'yyyy') order by select to_char(sell_date, 'yyyy')"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析浙江省各地级市标准地供应情况",
|
|
|
- "sql_code": "select substr(region_code, 1, 4) as region_code, city, round(sum(land_area) * 0.0015, 0)::int land_total_area from zlzd.land_supply_structure where to_char(current_date, 'yyyy') = to_char(current_date, 'yyyy') and province = '浙江省' and region_code is not null and is_sampleplot = '是' group by city, substr(region_code, 1, 4) order by region_code"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "今年浙江省各地级市标准地供应情况",
|
|
|
- "sql_code": "select to_char(sell_date, 'yyyy') as supply_year, round(sum(land_area) * 0.0015, 0)::int as land_total_area from zlzd.land_supply_structure where to_char(sell_date, 'yyyy') >= to_char(current_date - interval '5 year', 'yyyy') and city = '杭州市' and land_supply_type not like '3%' and land_use_type like '07%' group by supply_year order by supply_year"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "请分析近几年浙江省供地同比和环比增长率",
|
|
|
- "sql_code": "select supply_month, round((land_total_area - pre_month)::numeric * 100 / pre_month , 2) as qoq, round((land_total_area - last_year_month)::numeric * 100 / last_year_month , 2) as yoy from (select supply_month, land_total_area, lag(land_total_area, 1) over (order by supply_month ) pre_month, lag(land_total_area, 12) over (order by supply_month ) last_year_month from (select to_char(sell_date, 'yyyy-mm') as supply_month, round(sum(land_area) * 0.0015, 0)::int as land_total_area from zlzd.land_supply where to_char(sell_date, 'yyyy-mm') <= to_char(current_date, 'yyyy-mm') and to_char(sell_date, 'yyyy-mm') >= '2015-01-01' group by supply_month order by supply_month) t) t order by supply_month desc limit 12"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "杭州市2024年至今,住宅、工业、商服用地出让的宗数和面积是多少?",
|
|
|
- "sql_code": "select land_use_type_alias_cn as 土地用途, count(1) as 出让宗数, sum(land_area) as 出让总面积 from nrllm.land_supply where city = '杭州市' and to_char(sell_date, 'yyyy') >= '2024' and sell_date <= current_date group by land_use_type_alias_cn"
|
|
|
- },
|
|
|
- {
|
|
|
- "query_type": "land_supply",
|
|
|
- "query": "杭州市今年各行政区土地出让的数量分布如何",
|
|
|
- "sql_code": "select county, count(1) nums from nrllm.land_supply where city = '杭州市' and to_char(sell_date, 'yyyy') = to_char(current_date, 'yyyy') group by county"
|
|
|
- }
|
|
|
-]
|