Template:WD query link

{{#switch: {{{ask1_query|}}}{{{ask2_query|}}}{{{ask3_query|}}}{{{ask4_query|}}}{{{ask5_query|}}}{{{ask6_query|}}} }}
 * #default= {{#if: {{{ask1_query|}}} | {{#if: {{{return_prop1|}}} | {{#replace:{{#replace:|}}}| |+}}{{#if: {{{ask2_query|}}} |+{{#replace:{{{ask2_query|}}}| |+}}{{#if: {{{ask3_query|}}} |+{{#replace:{{{ask3_query|}}}| |+}}{{#if: {{{ask4_query|}}} |+{{#replace:{{{ask4_query|}}}| |+}}{{#if: {{{ask5_query|}}} |+{{#replace:{{{ask5_query|}}}| |+}}{{#if: {{{ask6_query|}}} |+{{#replace:{{{ask6_query|}}}| |+}}}}}}}}}}}}&po=%3F|<|%3C}}|>|%3E}}{{#replace:{{{return_prop1|}}}| |+}}{{#if: {{{return_prop2|}}} | %0D%0A%3F{{#replace:{{{return_prop2|}}}| |+}}{{#if: {{{return_prop3|}}} | %0D%0A%3F{{#replace:{{{return_prop3|}}}| |+}}{{#if: {{{return_prop4|}}} | %0D%0A%3F{{#replace:{{{return_prop4|}}}| |+}}{{#if: {{{return_prop5|}}} | %0D%0A%3F{{#replace:{{{return_prop5|}}}| |+}}{{#if: {{{return_prop6|}}} | %0D%0A%3F{{#replace:{{{return_prop6|}}}| |+}}{{#if: {{{return_prop7|}}} | %0D%0A%3F{{#replace:{{{return_prop7|}}}| |+}}{{#if: {{{return_prop8|}}} | %0D%0A%3F{{#replace:{{{return_prop8|}}}| |+}}{{#if: {{{return_prop9|}}} | %0D%0A%3F{{#replace:{{{return_prop9|}}}| |+}}{{#if: {{{return_prop10|}}} | %0D%0A%3F{{#replace:{{{return_prop10|}}}| |+}}{{#if: {{{return_prop11|}}} | %0D%0A%3F{{#replace:{{{return_prop11|}}}| |+}}{{#if: {{{return_prop12|}}} | %0D%0A%3F{{#replace:{{{return_prop12|}}}| |+}}{{#if: {{{return_prop13|}}} | %0D%0A%3F{{#replace:{{{return_prop13|}}}| |+}}{{#if: {{{return_prop14|}}} | %0D%0A%3F{{#replace:{{{return_prop14|}}}| |+}}{{#if: {{{return_prop15|}}} | %0D%0A%3F{{#replace:{{{return_prop15|}}}| |+}}{{#if: {{{return_prop16|}}} | %0D%0A%3F{{#replace:{{{return_prop16|}}}| |+}}{{#if: {{{return_prop17|}}} | %0D%0A%3F{{#replace:{{{return_prop17|}}}| |+}}{{#if: {{{return_prop18|}}} | %0D%0A%3F{{#replace:{{{return_prop18|}}}| |+}}{{#if: {{{return_prop19|}}} | %0D%0A%3F{{#replace:{{{return_prop19|}}}| |+}}{{#if: {{{return_prop20|}}} | %0D%0A%3F{{#replace:{{{return_prop20|}}}| |+}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}&eq={{#if: {{{hide_query|}}} |no|yes}}&p%5Bformat%5D=broadtable&order%5B0%5D=ASC&sort_num=&order_num=ASC&p%5Blimit%5D={{#if: {{{limit|}}} |{{{limit|}}}|200}}&p%5Boffset%5D=&p%5Blink%5D=all&p%5Bsort%5D={{#if: {{{sort_string|}}}|{{#replace:{{#replace:{{{sort_string|}}}| |+}}|,|%2C}}&p%5Border%5D%5B{{#ifeq:{{{sort_order|}}}|descending|descending|ascending}}%5D=1|}}&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=&p%5Boutro%5D=&p%5Bsearchlabel%5D={{#if: {{{search_label|}}}|{{#replace:{{{search_label|}}}| |+}}|%E2%80%A6+further+results}}&p%5Bdefault%5D=&p%5Bclass%5D=sortable+wikitable+smwtable {{#if: {{{link_text|}}}|{{{link_text|}}}|here}} | Flags::invalid semantic query link }} | Flags::invalid semantic query link} }}
 * #default= {{#if: {{{ask1_query|}}} | {{#if: {{{return_prop1|}}} | {{#replace:{{#replace:|}}}| |+}}{{#if: {{{ask2_query|}}} |+{{#replace:{{{ask2_query|}}}| |+}}{{#if: {{{ask3_query|}}} |+{{#replace:{{{ask3_query|}}}| |+}}{{#if: {{{ask4_query|}}} |+{{#replace:{{{ask4_query|}}}| |+}}{{#if: {{{ask5_query|}}} |+{{#replace:{{{ask5_query|}}}| |+}}{{#if: {{{ask6_query|}}} |+{{#replace:{{{ask6_query|}}}| |+}}}}}}}}}}}}&po=%3F|<|%3C}}|>|%3E}}{{#replace:{{{return_prop1|}}}| |+}}{{#if: {{{return_prop2|}}} | %0D%0A%3F{{#replace:{{{return_prop2|}}}| |+}}{{#if: {{{return_prop3|}}} | %0D%0A%3F{{#replace:{{{return_prop3|}}}| |+}}{{#if: {{{return_prop4|}}} | %0D%0A%3F{{#replace:{{{return_prop4|}}}| |+}}{{#if: {{{return_prop5|}}} | %0D%0A%3F{{#replace:{{{return_prop5|}}}| |+}}{{#if: {{{return_prop6|}}} | %0D%0A%3F{{#replace:{{{return_prop6|}}}| |+}}{{#if: {{{return_prop7|}}} | %0D%0A%3F{{#replace:{{{return_prop7|}}}| |+}}{{#if: {{{return_prop8|}}} | %0D%0A%3F{{#replace:{{{return_prop8|}}}| |+}}{{#if: {{{return_prop9|}}} | %0D%0A%3F{{#replace:{{{return_prop9|}}}| |+}}{{#if: {{{return_prop10|}}} | %0D%0A%3F{{#replace:{{{return_prop10|}}}| |+}}{{#if: {{{return_prop11|}}} | %0D%0A%3F{{#replace:{{{return_prop11|}}}| |+}}{{#if: {{{return_prop12|}}} | %0D%0A%3F{{#replace:{{{return_prop12|}}}| |+}}{{#if: {{{return_prop13|}}} | %0D%0A%3F{{#replace:{{{return_prop13|}}}| |+}}{{#if: {{{return_prop14|}}} | %0D%0A%3F{{#replace:{{{return_prop14|}}}| |+}}{{#if: {{{return_prop15|}}} | %0D%0A%3F{{#replace:{{{return_prop15|}}}| |+}}{{#if: {{{return_prop16|}}} | %0D%0A%3F{{#replace:{{{return_prop16|}}}| |+}}{{#if: {{{return_prop17|}}} | %0D%0A%3F{{#replace:{{{return_prop17|}}}| |+}}{{#if: {{{return_prop18|}}} | %0D%0A%3F{{#replace:{{{return_prop18|}}}| |+}}{{#if: {{{return_prop19|}}} | %0D%0A%3F{{#replace:{{{return_prop19|}}}| |+}}{{#if: {{{return_prop20|}}} | %0D%0A%3F{{#replace:{{{return_prop20|}}}| |+}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}&eq={{#if: {{{hide_query|}}} |no|yes}}&p%5Bformat%5D=broadtable&order%5B0%5D=ASC&sort_num=&order_num=ASC&p%5Blimit%5D={{#if: {{{limit|}}} |{{{limit|}}}|200}}&p%5Boffset%5D=&p%5Blink%5D=all&p%5Bsort%5D={{#if: {{{sort_string|}}}|{{#replace:{{#replace:{{{sort_string|}}}| |+}}|,|%2C}}&p%5Border%5D%5B{{#ifeq:{{{sort_order|}}}|descending|descending|ascending}}%5D=1|}}&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=&p%5Boutro%5D=&p%5Bsearchlabel%5D={{#if: {{{search_label|}}}|{{#replace:{{{search_label|}}}| |+}}|%E2%80%A6+further+results}}&p%5Bdefault%5D=&p%5Bclass%5D=sortable+wikitable+smwtable {{#if: {{{link_text|}}}|{{{link_text|}}}|here}} | Flags::invalid semantic query link }} | Flags::invalid semantic query link} }}