db_id stringclasses 140
values | query stringlengths 18 577 | question stringlengths 16 224 | query_toks listlengths 4 90 | query_toks_no_value listlengths 4 125 | question_toks listlengths 4 44 | question_toks_masked listlengths 4 44 | query_toks_masked listlengths 4 125 |
|---|---|---|---|---|---|---|---|
customers_and_addresses | SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | Return the the "active to date" of the latest contact channel used by the customer named "Tillman Ernser". | [
"SELECT",
"max",
"(",
"t2.active_to_date",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_contact_channels",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Tillman",
"Ernser",
"''"
] | [
"select",
"max",
"(",
"t2",
".",
"active_to_date",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_contact_channels",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
] | [
"Return",
"the",
"the",
"``",
"active",
"to",
"date",
"''",
"of",
"the",
"latest",
"contact",
"channel",
"used",
"by",
"the",
"customer",
"named",
"``",
"Tillman",
"Ernser",
"''",
"."
] | [
"Return",
"the",
"the",
"``",
"<mask>",
"to",
"<mask>",
"''",
"of",
"the",
"latest",
"<mask>",
"<mask>",
"used",
"by",
"the",
"<mask>",
"<mask>",
"``",
"Tillman",
"Ernser",
"''",
"."
] | [
"select",
"max",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels | What is the average time span of contact channels in the database? | [
"SELECT",
"avg",
"(",
"active_to_date",
"-",
"active_from_date",
")",
"FROM",
"customer_contact_channels"
] | [
"select",
"avg",
"(",
"active_to_date",
"-",
"active_from_date",
")",
"from",
"customer_contact_channels"
] | [
"What",
"is",
"the",
"average",
"time",
"span",
"of",
"contact",
"channels",
"in",
"the",
"database",
"?"
] | [
"What",
"is",
"the",
"average",
"time",
"span",
"of",
"<mask>",
"<mask>",
"in",
"the",
"database",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
"-",
"<mask>",
")",
"from",
"<mask>"
] |
customers_and_addresses | SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels | Compute the average active time span of contact channels. | [
"SELECT",
"avg",
"(",
"active_to_date",
"-",
"active_from_date",
")",
"FROM",
"customer_contact_channels"
] | [
"select",
"avg",
"(",
"active_to_date",
"-",
"active_from_date",
")",
"from",
"customer_contact_channels"
] | [
"Compute",
"the",
"average",
"active",
"time",
"span",
"of",
"contact",
"channels",
"."
] | [
"Compute",
"the",
"average",
"<mask>",
"time",
"span",
"of",
"<mask>",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
"-",
"<mask>",
")",
"from",
"<mask>"
] |
customers_and_addresses | SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1) | What is the channel code and contact number of the customer contact channel that was active for the longest time? | [
"SELECT",
"channel_code",
",",
"contact_number",
"FROM",
"customer_contact_channels",
"WHERE",
"active_to_date",
"-",
"active_from_date",
"=",
"(",
"SELECT",
"active_to_date",
"-",
"active_from_date",
"FROM",
"customer_contact_channels",
"ORDER",
"BY",
"(",
"active_to_date"... | [
"select",
"channel_code",
",",
"contact_number",
"from",
"customer_contact_channels",
"where",
"active_to_date",
"-",
"active_from_date",
"=",
"(",
"select",
"active_to_date",
"-",
"active_from_date",
"from",
"customer_contact_channels",
"order",
"by",
"(",
"active_to_date"... | [
"What",
"is",
"the",
"channel",
"code",
"and",
"contact",
"number",
"of",
"the",
"customer",
"contact",
"channel",
"that",
"was",
"active",
"for",
"the",
"longest",
"time",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"<mask>",
"that",
"was",
"<mask>",
"for",
"the",
"longest",
"time",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"-",
"<mask>",
"=",
"(",
"select",
"<mask>",
"-",
"<mask>",
"from",
"<mask>",
"order",
"by",
"(",
"<mask>",
"-",
"<mask>",
")",
"desc",
"limit",
"<unk>",
")"
] |
customers_and_addresses | SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1) | Return the channel code and contact number of the customer contact channel whose active duration was the longest. | [
"SELECT",
"channel_code",
",",
"contact_number",
"FROM",
"customer_contact_channels",
"WHERE",
"active_to_date",
"-",
"active_from_date",
"=",
"(",
"SELECT",
"active_to_date",
"-",
"active_from_date",
"FROM",
"customer_contact_channels",
"ORDER",
"BY",
"(",
"active_to_date"... | [
"select",
"channel_code",
",",
"contact_number",
"from",
"customer_contact_channels",
"where",
"active_to_date",
"-",
"active_from_date",
"=",
"(",
"select",
"active_to_date",
"-",
"active_from_date",
"from",
"customer_contact_channels",
"order",
"by",
"(",
"active_to_date"... | [
"Return",
"the",
"channel",
"code",
"and",
"contact",
"number",
"of",
"the",
"customer",
"contact",
"channel",
"whose",
"active",
"duration",
"was",
"the",
"longest",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"<mask>",
"whose",
"<mask>",
"duration",
"was",
"the",
"longest",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"-",
"<mask>",
"=",
"(",
"select",
"<mask>",
"-",
"<mask>",
"from",
"<mask>",
"order",
"by",
"(",
"<mask>",
"-",
"<mask>",
")",
"desc",
"limit",
"<unk>",
")"
] |
customers_and_addresses | SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' | Find the name and active date of the customer that use email as the contact channel. | [
"SELECT",
"t1.customer_name",
",",
"t2.active_from_date",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_contact_channels",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t2.channel_code",
"=",
"'Email",
"'"
] | [
"select",
"t1",
".",
"customer_name",
",",
"t2",
".",
"active_from_date",
"from",
"customers",
"as",
"t1",
"join",
"customer_contact_channels",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t2",
".",
"channel_code",
"=",
... | [
"Find",
"the",
"name",
"and",
"active",
"date",
"of",
"the",
"customer",
"that",
"use",
"email",
"as",
"the",
"contact",
"channel",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"that",
"use",
"email",
"as",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' | What are the name and active date of the customers whose contact channel code is email? | [
"SELECT",
"t1.customer_name",
",",
"t2.active_from_date",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_contact_channels",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t2.channel_code",
"=",
"'Email",
"'"
] | [
"select",
"t1",
".",
"customer_name",
",",
"t2",
".",
"active_from_date",
"from",
"customers",
"as",
"t1",
"join",
"customer_contact_channels",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t2",
".",
"channel_code",
"=",
... | [
"What",
"are",
"the",
"name",
"and",
"active",
"date",
"of",
"the",
"customers",
"whose",
"contact",
"channel",
"code",
"is",
"email",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"<mask>",
"<mask>",
"is",
"email",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items) | What is the name of the customer that made the order with the largest quantity? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"WHERE",
"t3.order_quantity",
"=",
"(",
... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
"... | [
"What",
"is",
"the",
"name",
"of",
"the",
"customer",
"that",
"made",
"the",
"order",
"with",
"the",
"largest",
"quantity",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"made",
"the",
"<mask>",
"with",
"the",
"largest",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items) | Find the name of the customer who made the order of the largest amount of goods. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"WHERE",
"t3.order_quantity",
"=",
"(",
... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
"... | [
"Find",
"the",
"name",
"of",
"the",
"customer",
"who",
"made",
"the",
"order",
"of",
"the",
"largest",
"amount",
"of",
"goods",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"made",
"the",
"<mask>",
"of",
"the",
"largest",
"amount",
"of",
"goods",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1 | What is the name of the customer that has purchased the most items? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDER... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
"... | [
"What",
"is",
"the",
"name",
"of",
"the",
"customer",
"that",
"has",
"purchased",
"the",
"most",
"items",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"purchased",
"the",
"most",
"items",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1 | Give me the name of the customer who ordered the most items in total. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDER... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
"... | [
"Give",
"me",
"the",
"name",
"of",
"the",
"customer",
"who",
"ordered",
"the",
"most",
"items",
"in",
"total",
"."
] | [
"Give",
"me",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"<mask>",
"the",
"most",
"items",
"in",
"total",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1 | What is the payment method of the customer that has purchased the least quantity of items? | [
"SELECT",
"t1.payment_method",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDE... | [
"select",
"t1",
".",
"payment_method",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
... | [
"What",
"is",
"the",
"payment",
"method",
"of",
"the",
"customer",
"that",
"has",
"purchased",
"the",
"least",
"quantity",
"of",
"items",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"purchased",
"the",
"least",
"<mask>",
"of",
"items",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1 | Tell me the payment method used by the customer who ordered the least amount of goods in total. | [
"SELECT",
"t1.payment_method",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDE... | [
"select",
"t1",
".",
"payment_method",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
... | [
"Tell",
"me",
"the",
"payment",
"method",
"used",
"by",
"the",
"customer",
"who",
"ordered",
"the",
"least",
"amount",
"of",
"goods",
"in",
"total",
"."
] | [
"Tell",
"me",
"the",
"<mask>",
"<mask>",
"used",
"by",
"the",
"<mask>",
"who",
"<mask>",
"the",
"least",
"amount",
"of",
"goods",
"in",
"total",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney" | How many types of products have Rodrick Heaney bought in total? | [
"SELECT",
"count",
"(",
"DISTINCT",
"t3.product_id",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"WHERE",
... | [
"select",
"count",
"(",
"distinct",
"t3",
".",
"product_id",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"... | [
"How",
"many",
"types",
"of",
"products",
"have",
"Rodrick",
"Heaney",
"bought",
"in",
"total",
"?"
] | [
"How",
"many",
"<mask>",
"of",
"<mask>",
"have",
"Rodrick",
"Heaney",
"bought",
"in",
"total",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
customers_and_addresses | SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney" | Find the number of distinct products Rodrick Heaney has bought so far. | [
"SELECT",
"count",
"(",
"DISTINCT",
"t3.product_id",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"WHERE",
... | [
"select",
"count",
"(",
"distinct",
"t3",
".",
"product_id",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"... | [
"Find",
"the",
"number",
"of",
"distinct",
"products",
"Rodrick",
"Heaney",
"has",
"bought",
"so",
"far",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"distinct",
"<mask>",
"Rodrick",
"Heaney",
"has",
"bought",
"so",
"far",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
customers_and_addresses | SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney" | What is the total quantity of products purchased by "Rodrick Heaney"? | [
"SELECT",
"sum",
"(",
"t3.order_quantity",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"WHERE",
"t1.customer... | [
"select",
"sum",
"(",
"t3",
".",
"order_quantity",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
... | [
"What",
"is",
"the",
"total",
"quantity",
"of",
"products",
"purchased",
"by",
"``",
"Rodrick",
"Heaney",
"''",
"?"
] | [
"What",
"is",
"the",
"total",
"<mask>",
"of",
"<mask>",
"purchased",
"by",
"``",
"Rodrick",
"Heaney",
"''",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"... |
customers_and_addresses | SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney" | Tell me the total quantity of products bought by the customer called "Rodrick Heaney". | [
"SELECT",
"sum",
"(",
"t3.order_quantity",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"WHERE",
"t1.customer... | [
"select",
"sum",
"(",
"t3",
".",
"order_quantity",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
... | [
"Tell",
"me",
"the",
"total",
"quantity",
"of",
"products",
"bought",
"by",
"the",
"customer",
"called",
"``",
"Rodrick",
"Heaney",
"''",
"."
] | [
"Tell",
"me",
"the",
"total",
"<mask>",
"of",
"<mask>",
"bought",
"by",
"the",
"<mask>",
"called",
"``",
"Rodrick",
"Heaney",
"''",
"."
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"... |
customers_and_addresses | SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = "Cancelled" | How many customers have at least one order with status "Cancelled"? | [
"SELECT",
"count",
"(",
"DISTINCT",
"customer_id",
")",
"FROM",
"customer_orders",
"WHERE",
"order_status",
"=",
"``",
"Cancelled",
"''"
] | [
"select",
"count",
"(",
"distinct",
"customer_id",
")",
"from",
"customer_orders",
"where",
"order_status",
"=",
"value"
] | [
"How",
"many",
"customers",
"have",
"at",
"least",
"one",
"order",
"with",
"status",
"``",
"Cancelled",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"have",
"at",
"least",
"one",
"<mask>",
"with",
"<mask>",
"``",
"Cancelled",
"''",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = "Cancelled" | Return the number of customers who have at least one order with "Cancelled" status. | [
"SELECT",
"count",
"(",
"DISTINCT",
"customer_id",
")",
"FROM",
"customer_orders",
"WHERE",
"order_status",
"=",
"``",
"Cancelled",
"''"
] | [
"select",
"count",
"(",
"distinct",
"customer_id",
")",
"from",
"customer_orders",
"where",
"order_status",
"=",
"value"
] | [
"Return",
"the",
"number",
"of",
"customers",
"who",
"have",
"at",
"least",
"one",
"order",
"with",
"``",
"Cancelled",
"''",
"status",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"at",
"least",
"one",
"<mask>",
"with",
"``",
"Cancelled",
"''",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT count(*) FROM customer_orders WHERE order_details = "Second time" | How many orders have detail "Second time"? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customer_orders",
"WHERE",
"order_details",
"=",
"``",
"Second",
"time",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"customer_orders",
"where",
"order_details",
"=",
"value"
] | [
"How",
"many",
"orders",
"have",
"detail",
"``",
"Second",
"time",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"have",
"detail",
"``",
"Second",
"time",
"''",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT count(*) FROM customer_orders WHERE order_details = "Second time" | Tell me the number of orders with "Second time" as order detail. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customer_orders",
"WHERE",
"order_details",
"=",
"``",
"Second",
"time",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"customer_orders",
"where",
"order_details",
"=",
"value"
] | [
"Tell",
"me",
"the",
"number",
"of",
"orders",
"with",
"``",
"Second",
"time",
"''",
"as",
"order",
"detail",
"."
] | [
"Tell",
"me",
"the",
"<mask>",
"of",
"<mask>",
"with",
"``",
"Second",
"time",
"''",
"as",
"<mask>",
"detail",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered" | Find the customer name and date of the orders that have the status "Delivered". | [
"SELECT",
"t1.customer_name",
",",
"t2.order_date",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"order_status",
"=",
"``",
"Delivered",
"''"
] | [
"select",
"t1",
".",
"customer_name",
",",
"t2",
".",
"order_date",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"order_status",
"=",
"value"
] | [
"Find",
"the",
"customer",
"name",
"and",
"date",
"of",
"the",
"orders",
"that",
"have",
"the",
"status",
"``",
"Delivered",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"the",
"<mask>",
"``",
"Delivered",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered" | What are the customer name and date of the orders whose status is "Delivered". | [
"SELECT",
"t1.customer_name",
",",
"t2.order_date",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"order_status",
"=",
"``",
"Delivered",
"''"
] | [
"select",
"t1",
".",
"customer_name",
",",
"t2",
".",
"order_date",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"order_status",
"=",
"value"
] | [
"What",
"are",
"the",
"customer",
"name",
"and",
"date",
"of",
"the",
"orders",
"whose",
"status",
"is",
"``",
"Delivered",
"''",
"."
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"is",
"``",
"Delivered",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled" | What is the total number of products that are in orders with status "Cancelled"? | [
"SELECT",
"sum",
"(",
"t2.order_quantity",
")",
"FROM",
"customer_orders",
"AS",
"t1",
"JOIN",
"order_items",
"AS",
"t2",
"ON",
"t1.order_id",
"=",
"t2.order_id",
"WHERE",
"t1.order_status",
"=",
"``",
"Cancelled",
"''"
] | [
"select",
"sum",
"(",
"t2",
".",
"order_quantity",
")",
"from",
"customer_orders",
"as",
"t1",
"join",
"order_items",
"as",
"t2",
"on",
"t1",
".",
"order_id",
"=",
"t2",
".",
"order_id",
"where",
"t1",
".",
"order_status",
"=",
"value"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"products",
"that",
"are",
"in",
"orders",
"with",
"status",
"``",
"Cancelled",
"''",
"?"
] | [
"What",
"is",
"the",
"total",
"<mask>",
"of",
"<mask>",
"that",
"are",
"in",
"<mask>",
"with",
"<mask>",
"``",
"Cancelled",
"''",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled" | Find the total quantity of products associated with the orders in the "Cancelled" status. | [
"SELECT",
"sum",
"(",
"t2.order_quantity",
")",
"FROM",
"customer_orders",
"AS",
"t1",
"JOIN",
"order_items",
"AS",
"t2",
"ON",
"t1.order_id",
"=",
"t2.order_id",
"WHERE",
"t1.order_status",
"=",
"``",
"Cancelled",
"''"
] | [
"select",
"sum",
"(",
"t2",
".",
"order_quantity",
")",
"from",
"customer_orders",
"as",
"t1",
"join",
"order_items",
"as",
"t2",
"on",
"t1",
".",
"order_id",
"=",
"t2",
".",
"order_id",
"where",
"t1",
".",
"order_status",
"=",
"value"
] | [
"Find",
"the",
"total",
"quantity",
"of",
"products",
"associated",
"with",
"the",
"orders",
"in",
"the",
"``",
"Cancelled",
"''",
"status",
"."
] | [
"Find",
"the",
"total",
"<mask>",
"of",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"in",
"the",
"``",
"Cancelled",
"''",
"<mask>",
"."
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < "2018-03-17 07:13:53" | Find the total amount of products ordered before 2018-03-17 07:13:53. | [
"SELECT",
"sum",
"(",
"t2.order_quantity",
")",
"FROM",
"customer_orders",
"AS",
"t1",
"JOIN",
"order_items",
"AS",
"t2",
"ON",
"t1.order_id",
"=",
"t2.order_id",
"WHERE",
"t1.order_date",
"<",
"``",
"2018-03-17",
"07:13:53",
"''"
] | [
"select",
"sum",
"(",
"t2",
".",
"order_quantity",
")",
"from",
"customer_orders",
"as",
"t1",
"join",
"order_items",
"as",
"t2",
"on",
"t1",
".",
"order_id",
"=",
"t2",
".",
"order_id",
"where",
"t1",
".",
"order_date",
"<",
"value"
] | [
"Find",
"the",
"total",
"amount",
"of",
"products",
"ordered",
"before",
"2018-03-17",
"07:13:53",
"."
] | [
"Find",
"the",
"total",
"amount",
"of",
"<mask>",
"<mask>",
"before",
"2018-03-17",
"07:13:53",
"."
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
customers_and_addresses | SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < "2018-03-17 07:13:53" | What is the total amount of products purchased before 2018-03-17 07:13:53? | [
"SELECT",
"sum",
"(",
"t2.order_quantity",
")",
"FROM",
"customer_orders",
"AS",
"t1",
"JOIN",
"order_items",
"AS",
"t2",
"ON",
"t1.order_id",
"=",
"t2.order_id",
"WHERE",
"t1.order_date",
"<",
"``",
"2018-03-17",
"07:13:53",
"''"
] | [
"select",
"sum",
"(",
"t2",
".",
"order_quantity",
")",
"from",
"customer_orders",
"as",
"t1",
"join",
"order_items",
"as",
"t2",
"on",
"t1",
".",
"order_id",
"=",
"t2",
".",
"order_id",
"where",
"t1",
".",
"order_date",
"<",
"value"
] | [
"What",
"is",
"the",
"total",
"amount",
"of",
"products",
"purchased",
"before",
"2018-03-17",
"07:13:53",
"?"
] | [
"What",
"is",
"the",
"total",
"amount",
"of",
"<mask>",
"purchased",
"before",
"2018-03-17",
"07:13:53",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 | Who made the latest order? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"ORDER",
"BY",
"t2.order_date",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"order",
"by",
"t2",
".",
"order_date",
"desc",
"limit",
"value"
] | [
"Who",
"made",
"the",
"latest",
"order",
"?"
] | [
"Who",
"made",
"the",
"latest",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<unk>"
] |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 | Find the name of the customer who made an order most recently. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"ORDER",
"BY",
"t2.order_date",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"order",
"by",
"t2",
".",
"order_date",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"name",
"of",
"the",
"customer",
"who",
"made",
"an",
"order",
"most",
"recently",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"made",
"an",
"<mask>",
"most",
"recently",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<unk>"
] |
customers_and_addresses | SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1 | Which product has been ordered most number of times? | [
"SELECT",
"t2.product_details",
"FROM",
"order_items",
"AS",
"t1",
"JOIN",
"products",
"AS",
"t2",
"ON",
"t1.product_id",
"=",
"t2.product_id",
"GROUP",
"BY",
"t1.product_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"product_details",
"from",
"order_items",
"as",
"t1",
"join",
"products",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t1",
".",
"product_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",... | [
"Which",
"product",
"has",
"been",
"ordered",
"most",
"number",
"of",
"times",
"?"
] | [
"Which",
"<mask>",
"has",
"been",
"<mask>",
"most",
"<mask>",
"of",
"times",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
customers_and_addresses | SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1 | What is the most frequently ordered product? Tell me the detail of the product | [
"SELECT",
"t2.product_details",
"FROM",
"order_items",
"AS",
"t1",
"JOIN",
"products",
"AS",
"t2",
"ON",
"t1.product_id",
"=",
"t2.product_id",
"GROUP",
"BY",
"t1.product_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"product_details",
"from",
"order_items",
"as",
"t1",
"join",
"products",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t1",
".",
"product_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",... | [
"What",
"is",
"the",
"most",
"frequently",
"ordered",
"product",
"?",
"Tell",
"me",
"the",
"detail",
"of",
"the",
"product"
] | [
"What",
"is",
"the",
"most",
"frequently",
"<mask>",
"<mask>",
"?",
"Tell",
"me",
"the",
"detail",
"of",
"the",
"<mask>"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
customers_and_addresses | SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1 | Find the name and ID of the product whose total order quantity is the largest. | [
"SELECT",
"t2.product_details",
",",
"t2.product_id",
"FROM",
"order_items",
"AS",
"t1",
"JOIN",
"products",
"AS",
"t2",
"ON",
"t1.product_id",
"=",
"t2.product_id",
"GROUP",
"BY",
"t1.product_id",
"ORDER",
"BY",
"sum",
"(",
"t1.order_quantity",
")",
"LIMIT",
"1"
... | [
"select",
"t2",
".",
"product_details",
",",
"t2",
".",
"product_id",
"from",
"order_items",
"as",
"t1",
"join",
"products",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t1",
".",
"product_id",
"order",
"by",
"... | [
"Find",
"the",
"name",
"and",
"ID",
"of",
"the",
"product",
"whose",
"total",
"order",
"quantity",
"is",
"the",
"largest",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"ID",
"of",
"the",
"<mask>",
"whose",
"total",
"<mask>",
"<mask>",
"is",
"the",
"largest",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"sum"... |
customers_and_addresses | SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1 | What are the name and ID of the product bought the most. | [
"SELECT",
"t2.product_details",
",",
"t2.product_id",
"FROM",
"order_items",
"AS",
"t1",
"JOIN",
"products",
"AS",
"t2",
"ON",
"t1.product_id",
"=",
"t2.product_id",
"GROUP",
"BY",
"t1.product_id",
"ORDER",
"BY",
"sum",
"(",
"t1.order_quantity",
")",
"LIMIT",
"1"
... | [
"select",
"t2",
".",
"product_details",
",",
"t2",
".",
"product_id",
"from",
"order_items",
"as",
"t1",
"join",
"products",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t1",
".",
"product_id",
"order",
"by",
"... | [
"What",
"are",
"the",
"name",
"and",
"ID",
"of",
"the",
"product",
"bought",
"the",
"most",
"."
] | [
"What",
"are",
"the",
"<mask>",
"and",
"ID",
"of",
"the",
"<mask>",
"bought",
"the",
"most",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"sum"... |
customers_and_addresses | SELECT address_content FROM addresses WHERE city = "East Julianaside" AND state_province_county = "Texas" UNION SELECT address_content FROM addresses WHERE city = "Gleasonmouth" AND state_province_county = "Arizona" | Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona. | [
"SELECT",
"address_content",
"FROM",
"addresses",
"WHERE",
"city",
"=",
"``",
"East",
"Julianaside",
"''",
"AND",
"state_province_county",
"=",
"``",
"Texas",
"''",
"UNION",
"SELECT",
"address_content",
"FROM",
"addresses",
"WHERE",
"city",
"=",
"``",
"Gleasonmout... | [
"select",
"address_content",
"from",
"addresses",
"where",
"city",
"=",
"value",
"and",
"state_province_county",
"=",
"value",
"union",
"select",
"address_content",
"from",
"addresses",
"where",
"city",
"=",
"value",
"and",
"state_province_county",
"=",
"value"
] | [
"Find",
"all",
"the",
"addresses",
"in",
"East",
"Julianaside",
",",
"Texas",
"or",
"in",
"Gleasonmouth",
",",
"Arizona",
"."
] | [
"Find",
"all",
"the",
"<mask>",
"in",
"East",
"Julianaside",
",",
"Texas",
"or",
"in",
"Gleasonmouth",
",",
"Arizona",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>",
"union",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT address_content FROM addresses WHERE city = "East Julianaside" AND state_province_county = "Texas" UNION SELECT address_content FROM addresses WHERE city = "Gleasonmouth" AND state_province_county = "Arizona" | What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona. | [
"SELECT",
"address_content",
"FROM",
"addresses",
"WHERE",
"city",
"=",
"``",
"East",
"Julianaside",
"''",
"AND",
"state_province_county",
"=",
"``",
"Texas",
"''",
"UNION",
"SELECT",
"address_content",
"FROM",
"addresses",
"WHERE",
"city",
"=",
"``",
"Gleasonmout... | [
"select",
"address_content",
"from",
"addresses",
"where",
"city",
"=",
"value",
"and",
"state_province_county",
"=",
"value",
"union",
"select",
"address_content",
"from",
"addresses",
"where",
"city",
"=",
"value",
"and",
"state_province_county",
"=",
"value"
] | [
"What",
"are",
"all",
"the",
"addresses",
"in",
"East",
"Julianaside",
",",
"Texas",
"or",
"in",
"Gleasonmouth",
",",
"Arizona",
"."
] | [
"What",
"are",
"all",
"the",
"<mask>",
"in",
"East",
"Julianaside",
",",
"Texas",
"or",
"in",
"Gleasonmouth",
",",
"Arizona",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>",
"union",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE payment_method != 'Cash' | Find the name of customers who did not pay with Cash. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"!",
"=",
"'Cash",
"'"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"!",
"=",
"value"
] | [
"Find",
"the",
"name",
"of",
"customers",
"who",
"did",
"not",
"pay",
"with",
"Cash",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"did",
"not",
"pay",
"with",
"Cash",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE payment_method != 'Cash' | What is the name of customers who do not use Cash as payment method. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"!",
"=",
"'Cash",
"'"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"!",
"=",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"customers",
"who",
"do",
"not",
"use",
"Cash",
"as",
"payment",
"method",
"."
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"who",
"do",
"not",
"use",
"Cash",
"as",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
customers_and_addresses | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' | Find the names of customers who never ordered product Latte. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"="... | [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
... | [
"Find",
"the",
"names",
"of",
"customers",
"who",
"never",
"ordered",
"product",
"Latte",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"never",
"<mask>",
"<mask>",
"Latte",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<ma... |
customers_and_addresses | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' | What are names of customers who never ordered product Latte. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"="... | [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
... | [
"What",
"are",
"names",
"of",
"customers",
"who",
"never",
"ordered",
"product",
"Latte",
"."
] | [
"What",
"are",
"<mask>",
"of",
"<mask>",
"who",
"never",
"<mask>",
"<mask>",
"Latte",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<ma... |
customers_and_addresses | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id | Find the names of customers who never placed an order. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id"
] | [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id"
] | [
"Find",
"the",
"names",
"of",
"customers",
"who",
"never",
"placed",
"an",
"order",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"never",
"placed",
"an",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
customers_and_addresses | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id | What are the names of customers who never made an order. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id"
] | [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id"
] | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"never",
"made",
"an",
"order",
"."
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"never",
"made",
"an",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN custo... | Find the names of customers who ordered both products Latte and Americano. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"JOIN",
"products",
"AS",
"t4",
"ON",
... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
"... | [
"Find",
"the",
"names",
"of",
"customers",
"who",
"ordered",
"both",
"products",
"Latte",
"and",
"Americano",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"<mask>",
"both",
"<mask>",
"Latte",
"and",
"Americano",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN custo... | What are the names of customers who have purchased both products Latte and Americano? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_orders",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"order_items",
"AS",
"t3",
"ON",
"t2.order_id",
"=",
"t3.order_id",
"JOIN",
"products",
"AS",
"t4",
"ON",
... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_orders",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"order_items",
"as",
"t3",
"on",
"t2",
".",
"order_id",
"=",
"t3",
".",
"... | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"have",
"purchased",
"both",
"products",
"Latte",
"and",
"Americano",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"purchased",
"both",
"<mask>",
"Latte",
"and",
"Americano",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
music_4 | SELECT count(*) FROM artist | How many artists are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"artist"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"artist"
] | [
"How",
"many",
"artists",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
music_4 | SELECT count(*) FROM artist | Count the number of artists. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"artist"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"artist"
] | [
"Count",
"the",
"number",
"of",
"artists",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
music_4 | SELECT Age FROM artist | List the age of all music artists. | [
"SELECT",
"Age",
"FROM",
"artist"
] | [
"select",
"age",
"from",
"artist"
] | [
"List",
"the",
"age",
"of",
"all",
"music",
"artists",
"."
] | [
"List",
"the",
"<mask>",
"of",
"all",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
music_4 | SELECT Age FROM artist | What are the ages of all music artists? | [
"SELECT",
"Age",
"FROM",
"artist"
] | [
"select",
"age",
"from",
"artist"
] | [
"What",
"are",
"the",
"ages",
"of",
"all",
"music",
"artists",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
music_4 | SELECT avg(Age) FROM artist | What is the average age of all artists? | [
"SELECT",
"avg",
"(",
"Age",
")",
"FROM",
"artist"
] | [
"select",
"avg",
"(",
"age",
")",
"from",
"artist"
] | [
"What",
"is",
"the",
"average",
"age",
"of",
"all",
"artists",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT avg(Age) FROM artist | Return the average age across all artists. | [
"SELECT",
"avg",
"(",
"Age",
")",
"FROM",
"artist"
] | [
"select",
"avg",
"(",
"age",
")",
"from",
"artist"
] | [
"Return",
"the",
"average",
"age",
"across",
"all",
"artists",
"."
] | [
"Return",
"the",
"average",
"<mask>",
"across",
"all",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT Famous_Title FROM artist WHERE Artist = "Triumfall" | What are the famous titles of the artist "Triumfall"? | [
"SELECT",
"Famous_Title",
"FROM",
"artist",
"WHERE",
"Artist",
"=",
"``",
"Triumfall",
"''"
] | [
"select",
"famous_title",
"from",
"artist",
"where",
"artist",
"=",
"value"
] | [
"What",
"are",
"the",
"famous",
"titles",
"of",
"the",
"artist",
"``",
"Triumfall",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"``",
"Triumfall",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT Famous_Title FROM artist WHERE Artist = "Triumfall" | Return the famous titles of the artist called "Triumfall". | [
"SELECT",
"Famous_Title",
"FROM",
"artist",
"WHERE",
"Artist",
"=",
"``",
"Triumfall",
"''"
] | [
"select",
"famous_title",
"from",
"artist",
"where",
"artist",
"=",
"value"
] | [
"Return",
"the",
"famous",
"titles",
"of",
"the",
"artist",
"called",
"``",
"Triumfall",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"called",
"``",
"Triumfall",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT distinct(Famous_Release_date) FROM artist | What are the distinct Famous release dates? | [
"SELECT",
"distinct",
"(",
"Famous_Release_date",
")",
"FROM",
"artist"
] | [
"select",
"distinct",
"(",
"famous_release_date",
")",
"from",
"artist"
] | [
"What",
"are",
"the",
"distinct",
"Famous",
"release",
"dates",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT distinct(Famous_Release_date) FROM artist | Give the distinct famous release dates for all artists. | [
"SELECT",
"distinct",
"(",
"Famous_Release_date",
")",
"FROM",
"artist"
] | [
"select",
"distinct",
"(",
"famous_release_date",
")",
"from",
"artist"
] | [
"Give",
"the",
"distinct",
"famous",
"release",
"dates",
"for",
"all",
"artists",
"."
] | [
"Give",
"the",
"distinct",
"<mask>",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"."
] | [
"select",
"distinct",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT Date_of_ceremony , RESULT FROM music_festival | Return the dates of ceremony and the results of all music festivals | [
"SELECT",
"Date_of_ceremony",
",",
"RESULT",
"FROM",
"music_festival"
] | [
"select",
"date_of_ceremony",
",",
"result",
"from",
"music_festival"
] | [
"Return",
"the",
"dates",
"of",
"ceremony",
"and",
"the",
"results",
"of",
"all",
"music",
"festivals"
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"<mask>",
"of",
"all",
"<mask>",
"<mask>"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
music_4 | SELECT Date_of_ceremony , RESULT FROM music_festival | What are the dates of ceremony and results for each music festival? | [
"SELECT",
"Date_of_ceremony",
",",
"RESULT",
"FROM",
"music_festival"
] | [
"select",
"date_of_ceremony",
",",
"result",
"from",
"music_festival"
] | [
"What",
"are",
"the",
"dates",
"of",
"ceremony",
"and",
"results",
"for",
"each",
"music",
"festival",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"and",
"<mask>",
"for",
"each",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
music_4 | SELECT Category FROM music_festival WHERE RESULT = "Awarded" | What are the category of music festivals with result "Awarded"? | [
"SELECT",
"Category",
"FROM",
"music_festival",
"WHERE",
"RESULT",
"=",
"``",
"Awarded",
"''"
] | [
"select",
"category",
"from",
"music_festival",
"where",
"result",
"=",
"value"
] | [
"What",
"are",
"the",
"category",
"of",
"music",
"festivals",
"with",
"result",
"``",
"Awarded",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"<mask>",
"with",
"<mask>",
"``",
"Awarded",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT Category FROM music_festival WHERE RESULT = "Awarded" | Return the categories of music festivals that have the result "Awarded". | [
"SELECT",
"Category",
"FROM",
"music_festival",
"WHERE",
"RESULT",
"=",
"``",
"Awarded",
"''"
] | [
"select",
"category",
"from",
"music_festival",
"where",
"result",
"=",
"value"
] | [
"Return",
"the",
"categories",
"of",
"music",
"festivals",
"that",
"have",
"the",
"result",
"``",
"Awarded",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"<mask>",
"that",
"have",
"the",
"<mask>",
"``",
"Awarded",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume | What are the maximum and minimum week on top of all volumes? | [
"SELECT",
"max",
"(",
"Weeks_on_Top",
")",
",",
"min",
"(",
"Weeks_on_Top",
")",
"FROM",
"volume"
] | [
"select",
"max",
"(",
"weeks_on_top",
")",
",",
"min",
"(",
"weeks_on_top",
")",
"from",
"volume"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"week",
"on",
"top",
"of",
"all",
"volumes",
"?"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"week",
"on",
"<mask>",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume | Give the maximum and minimum weeks on top across all volumes. | [
"SELECT",
"max",
"(",
"Weeks_on_Top",
")",
",",
"min",
"(",
"Weeks_on_Top",
")",
"FROM",
"volume"
] | [
"select",
"max",
"(",
"weeks_on_top",
")",
",",
"min",
"(",
"weeks_on_top",
")",
"from",
"volume"
] | [
"Give",
"the",
"maximum",
"and",
"minimum",
"weeks",
"on",
"top",
"across",
"all",
"volumes",
"."
] | [
"Give",
"the",
"maximum",
"and",
"minimum",
"weeks",
"on",
"<mask>",
"across",
"all",
"<mask>",
"."
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT Song FROM volume WHERE Weeks_on_Top > 1 | What are the songs in volumes with more than 1 week on top? | [
"SELECT",
"Song",
"FROM",
"volume",
"WHERE",
"Weeks_on_Top",
">",
"1"
] | [
"select",
"song",
"from",
"volume",
"where",
"weeks_on_top",
">",
"value"
] | [
"What",
"are",
"the",
"songs",
"in",
"volumes",
"with",
"more",
"than",
"1",
"week",
"on",
"top",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"in",
"<mask>",
"with",
"more",
"than",
"<unk>",
"week",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
music_4 | SELECT Song FROM volume WHERE Weeks_on_Top > 1 | Give the songs included in volumes that have more than 1 week on top. | [
"SELECT",
"Song",
"FROM",
"volume",
"WHERE",
"Weeks_on_Top",
">",
"1"
] | [
"select",
"song",
"from",
"volume",
"where",
"weeks_on_top",
">",
"value"
] | [
"Give",
"the",
"songs",
"included",
"in",
"volumes",
"that",
"have",
"more",
"than",
"1",
"week",
"on",
"top",
"."
] | [
"Give",
"the",
"<mask>",
"included",
"in",
"<mask>",
"that",
"have",
"more",
"than",
"<unk>",
"week",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
music_4 | SELECT Song FROM volume ORDER BY Song | Please list all songs in volumes in ascending alphabetical order. | [
"SELECT",
"Song",
"FROM",
"volume",
"ORDER",
"BY",
"Song"
] | [
"select",
"song",
"from",
"volume",
"order",
"by",
"song"
] | [
"Please",
"list",
"all",
"songs",
"in",
"volumes",
"in",
"ascending",
"alphabetical",
"order",
"."
] | [
"Please",
"list",
"all",
"<mask>",
"in",
"<mask>",
"in",
"ascending",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
music_4 | SELECT Song FROM volume ORDER BY Song | What are the the songs in volumes, listed in ascending order? | [
"SELECT",
"Song",
"FROM",
"volume",
"ORDER",
"BY",
"Song"
] | [
"select",
"song",
"from",
"volume",
"order",
"by",
"song"
] | [
"What",
"are",
"the",
"the",
"songs",
"in",
"volumes",
",",
"listed",
"in",
"ascending",
"order",
"?"
] | [
"What",
"are",
"the",
"the",
"<mask>",
"in",
"<mask>",
",",
"listed",
"in",
"ascending",
"order",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
music_4 | SELECT COUNT(DISTINCT Artist_ID) FROM volume | How many distinct artists do the volumes associate to? | [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"Artist_ID",
")",
"FROM",
"volume"
] | [
"select",
"count",
"(",
"distinct",
"artist_id",
")",
"from",
"volume"
] | [
"How",
"many",
"distinct",
"artists",
"do",
"the",
"volumes",
"associate",
"to",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"do",
"the",
"<mask>",
"associate",
"to",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT COUNT(DISTINCT Artist_ID) FROM volume | Count the number of distinct artists who have volumes. | [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"Artist_ID",
")",
"FROM",
"volume"
] | [
"select",
"count",
"(",
"distinct",
"artist_id",
")",
"from",
"volume"
] | [
"Count",
"the",
"number",
"of",
"distinct",
"artists",
"who",
"have",
"volumes",
"."
] | [
"Count",
"the",
"number",
"of",
"distinct",
"<mask>",
"who",
"have",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 | Please show the date of ceremony of the volumes that last more than 2 weeks on top. | [
"SELECT",
"T1.Date_of_ceremony",
"FROM",
"music_festival",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Volume",
"=",
"T2.Volume_ID",
"WHERE",
"T2.Weeks_on_Top",
">",
"2"
] | [
"select",
"t1",
".",
"date_of_ceremony",
"from",
"music_festival",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"volume",
"=",
"t2",
".",
"volume_id",
"where",
"t2",
".",
"weeks_on_top",
">",
"value"
] | [
"Please",
"show",
"the",
"date",
"of",
"ceremony",
"of",
"the",
"volumes",
"that",
"last",
"more",
"than",
"2",
"weeks",
"on",
"top",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"of",
"<mask>",
"of",
"the",
"<mask>",
"that",
"last",
"more",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
music_4 | SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 | What are the dates of ceremony at music festivals corresponding to volumes that lasted more than 2 weeks on top? | [
"SELECT",
"T1.Date_of_ceremony",
"FROM",
"music_festival",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Volume",
"=",
"T2.Volume_ID",
"WHERE",
"T2.Weeks_on_Top",
">",
"2"
] | [
"select",
"t1",
".",
"date_of_ceremony",
"from",
"music_festival",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"volume",
"=",
"t2",
".",
"volume_id",
"where",
"t2",
".",
"weeks_on_top",
">",
"value"
] | [
"What",
"are",
"the",
"dates",
"of",
"ceremony",
"at",
"music",
"festivals",
"corresponding",
"to",
"volumes",
"that",
"lasted",
"more",
"than",
"2",
"weeks",
"on",
"top",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"at",
"<mask>",
"<mask>",
"corresponding",
"to",
"<mask>",
"that",
"lasted",
"more",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
music_4 | SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = "Nominated" | Please show the songs that have result "nominated" at music festivals. | [
"SELECT",
"T2.Song",
"FROM",
"music_festival",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Volume",
"=",
"T2.Volume_ID",
"WHERE",
"T1.Result",
"=",
"``",
"Nominated",
"''"
] | [
"select",
"t2",
".",
"song",
"from",
"music_festival",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"volume",
"=",
"t2",
".",
"volume_id",
"where",
"t1",
".",
"result",
"=",
"value"
] | [
"Please",
"show",
"the",
"songs",
"that",
"have",
"result",
"``",
"nominated",
"''",
"at",
"music",
"festivals",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"that",
"have",
"<mask>",
"``",
"nominated",
"''",
"at",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = "Nominated" | What are the songs in volumes that have resulted in a nomination at music festivals? | [
"SELECT",
"T2.Song",
"FROM",
"music_festival",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Volume",
"=",
"T2.Volume_ID",
"WHERE",
"T1.Result",
"=",
"``",
"Nominated",
"''"
] | [
"select",
"t2",
".",
"song",
"from",
"music_festival",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"volume",
"=",
"t2",
".",
"volume_id",
"where",
"t1",
".",
"result",
"=",
"value"
] | [
"What",
"are",
"the",
"songs",
"in",
"volumes",
"that",
"have",
"resulted",
"in",
"a",
"nomination",
"at",
"music",
"festivals",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"in",
"<mask>",
"that",
"have",
"<mask>",
"in",
"a",
"nomination",
"at",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = "Gorgoroth" | What are the issue dates of volumes associated with the artist "Gorgoroth"? | [
"SELECT",
"T2.Issue_Date",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T1.Artist",
"=",
"``",
"Gorgoroth",
"''"
] | [
"select",
"t2",
".",
"issue_date",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t1",
".",
"artist",
"=",
"value"
] | [
"What",
"are",
"the",
"issue",
"dates",
"of",
"volumes",
"associated",
"with",
"the",
"artist",
"``",
"Gorgoroth",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"``",
"Gorgoroth",
"''",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = "Gorgoroth" | Return the issue dates of volumes that are by the artist named Gorgoroth. | [
"SELECT",
"T2.Issue_Date",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T1.Artist",
"=",
"``",
"Gorgoroth",
"''"
] | [
"select",
"t2",
".",
"issue_date",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t1",
".",
"artist",
"=",
"value"
] | [
"Return",
"the",
"issue",
"dates",
"of",
"volumes",
"that",
"are",
"by",
"the",
"artist",
"named",
"Gorgoroth",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"that",
"are",
"by",
"the",
"<mask>",
"named",
"Gorgoroth",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 | What are the songs in volumes associated with the artist aged 32 or older? | [
"SELECT",
"T2.Song",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T1.age",
">",
"=",
"32"
] | [
"select",
"t2",
".",
"song",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t1",
".",
"age",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"songs",
"in",
"volumes",
"associated",
"with",
"the",
"artist",
"aged",
"32",
"or",
"older",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"in",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"aged",
"<unk>",
"or",
"older",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"=",
"<unk>"
] |
music_4 | SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 | Return names of songs in volumes that are by artists that are at least 32 years old. | [
"SELECT",
"T2.Song",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T1.age",
">",
"=",
"32"
] | [
"select",
"t2",
".",
"song",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t1",
".",
"age",
">",
"=",
"value"
] | [
"Return",
"names",
"of",
"songs",
"in",
"volumes",
"that",
"are",
"by",
"artists",
"that",
"are",
"at",
"least",
"32",
"years",
"old",
"."
] | [
"Return",
"names",
"of",
"<mask>",
"in",
"<mask>",
"that",
"are",
"by",
"<mask>",
"that",
"are",
"at",
"least",
"<unk>",
"years",
"old",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"=",
"<unk>"
] |
music_4 | SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 | What is the average weeks on top of volumes associated with the artist aged 25 or younger? | [
"SELECT",
"avg",
"(",
"T2.Weeks_on_Top",
")",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T1.age",
"<",
"=",
"25"
] | [
"select",
"avg",
"(",
"t2",
".",
"weeks_on_top",
")",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t1",
".",
"age",
"<",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"weeks",
"on",
"top",
"of",
"volumes",
"associated",
"with",
"the",
"artist",
"aged",
"25",
"or",
"younger",
"?"
] | [
"What",
"is",
"the",
"average",
"weeks",
"on",
"<mask>",
"of",
"<mask>",
"associated",
"with",
"the",
"<mask>",
"aged",
"<unk>",
"or",
"younger",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"=",
"<unk>"
] |
music_4 | SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 | Return the average number of weeks on top for volumes by artists that are at most 25 years old. | [
"SELECT",
"avg",
"(",
"T2.Weeks_on_Top",
")",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T1.age",
"<",
"=",
"25"
] | [
"select",
"avg",
"(",
"t2",
".",
"weeks_on_top",
")",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t1",
".",
"age",
"<",
"=",
"value"
] | [
"Return",
"the",
"average",
"number",
"of",
"weeks",
"on",
"top",
"for",
"volumes",
"by",
"artists",
"that",
"are",
"at",
"most",
"25",
"years",
"old",
"."
] | [
"Return",
"the",
"average",
"number",
"of",
"weeks",
"on",
"<mask>",
"for",
"<mask>",
"by",
"<mask>",
"that",
"are",
"at",
"most",
"<unk>",
"years",
"old",
"."
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"=",
"<unk>"
] |
music_4 | SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 | What are the famous title of the artists associated with volumes with more than 2 weeks on top? | [
"SELECT",
"T1.Famous_Title",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T2.Weeks_on_Top",
">",
"2"
] | [
"select",
"t1",
".",
"famous_title",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t2",
".",
"weeks_on_top",
">",
"value"
] | [
"What",
"are",
"the",
"famous",
"title",
"of",
"the",
"artists",
"associated",
"with",
"volumes",
"with",
"more",
"than",
"2",
"weeks",
"on",
"top",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"associated",
"with",
"<mask>",
"with",
"more",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
music_4 | SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 | Return the famous titles for artists that have volumes that lasted more than 2 weeks on top. | [
"SELECT",
"T1.Famous_Title",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T2.Weeks_on_Top",
">",
"2"
] | [
"select",
"t1",
".",
"famous_title",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t2",
".",
"weeks_on_top",
">",
"value"
] | [
"Return",
"the",
"famous",
"titles",
"for",
"artists",
"that",
"have",
"volumes",
"that",
"lasted",
"more",
"than",
"2",
"weeks",
"on",
"top",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"for",
"<mask>",
"that",
"have",
"<mask>",
"that",
"lasted",
"more",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
music_4 | SELECT Famous_Title , Age FROM artist ORDER BY Age DESC | Please list the age and famous title of artists in descending order of age. | [
"SELECT",
"Famous_Title",
",",
"Age",
"FROM",
"artist",
"ORDER",
"BY",
"Age",
"DESC"
] | [
"select",
"famous_title",
",",
"age",
"from",
"artist",
"order",
"by",
"age",
"desc"
] | [
"Please",
"list",
"the",
"age",
"and",
"famous",
"title",
"of",
"artists",
"in",
"descending",
"order",
"of",
"age",
"."
] | [
"Please",
"list",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"<mask>",
"in",
"descending",
"order",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
music_4 | SELECT Famous_Title , Age FROM artist ORDER BY Age DESC | What are the famous titles and ages of each artist, listed in descending order by age? | [
"SELECT",
"Famous_Title",
",",
"Age",
"FROM",
"artist",
"ORDER",
"BY",
"Age",
"DESC"
] | [
"select",
"famous_title",
",",
"age",
"from",
"artist",
"order",
"by",
"age",
"desc"
] | [
"What",
"are",
"the",
"famous",
"titles",
"and",
"ages",
"of",
"each",
"artist",
",",
"listed",
"in",
"descending",
"order",
"by",
"age",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"each",
"<mask>",
",",
"listed",
"in",
"descending",
"order",
"by",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
music_4 | SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 | What is the famous release date of the artist with the oldest age? | [
"SELECT",
"Famous_Release_date",
"FROM",
"artist",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"1"
] | [
"select",
"famous_release_date",
"from",
"artist",
"order",
"by",
"age",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"famous",
"release",
"date",
"of",
"the",
"artist",
"with",
"the",
"oldest",
"age",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"oldest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_4 | SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 | Return the famous release date for the oldest artist. | [
"SELECT",
"Famous_Release_date",
"FROM",
"artist",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"1"
] | [
"select",
"famous_release_date",
"from",
"artist",
"order",
"by",
"age",
"desc",
"limit",
"value"
] | [
"Return",
"the",
"famous",
"release",
"date",
"for",
"the",
"oldest",
"artist",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"<mask>",
"for",
"the",
"oldest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_4 | SELECT Category , COUNT(*) FROM music_festival GROUP BY Category | Please show the categories of the music festivals and the count. | [
"SELECT",
"Category",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"music_festival",
"GROUP",
"BY",
"Category"
] | [
"select",
"category",
",",
"count",
"(",
"*",
")",
"from",
"music_festival",
"group",
"by",
"category"
] | [
"Please",
"show",
"the",
"categories",
"of",
"the",
"music",
"festivals",
"and",
"the",
"count",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"and",
"the",
"count",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_4 | SELECT Category , COUNT(*) FROM music_festival GROUP BY Category | Return the number of music festivals of each category. | [
"SELECT",
"Category",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"music_festival",
"GROUP",
"BY",
"Category"
] | [
"select",
"category",
",",
"count",
"(",
"*",
")",
"from",
"music_festival",
"group",
"by",
"category"
] | [
"Return",
"the",
"number",
"of",
"music",
"festivals",
"of",
"each",
"category",
"."
] | [
"Return",
"the",
"number",
"of",
"<mask>",
"<mask>",
"of",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_4 | SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 | What is the most common result of the music festival? | [
"SELECT",
"RESULT",
"FROM",
"music_festival",
"GROUP",
"BY",
"RESULT",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"result",
"from",
"music_festival",
"group",
"by",
"result",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"most",
"common",
"result",
"of",
"the",
"music",
"festival",
"?"
] | [
"What",
"is",
"the",
"most",
"common",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_4 | SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 | Return the result that is most frequent at music festivals. | [
"SELECT",
"RESULT",
"FROM",
"music_festival",
"GROUP",
"BY",
"RESULT",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"result",
"from",
"music_festival",
"group",
"by",
"result",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Return",
"the",
"result",
"that",
"is",
"most",
"frequent",
"at",
"music",
"festivals",
"."
] | [
"Return",
"the",
"<mask>",
"that",
"is",
"most",
"frequent",
"at",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_4 | SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 | Please show the categories of the music festivals with count more than 1. | [
"SELECT",
"Category",
"FROM",
"music_festival",
"GROUP",
"BY",
"Category",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"1"
] | [
"select",
"category",
"from",
"music_festival",
"group",
"by",
"category",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Please",
"show",
"the",
"categories",
"of",
"the",
"music",
"festivals",
"with",
"count",
"more",
"than",
"1",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"with",
"count",
"more",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
music_4 | SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 | What are the categories of music festivals for which there have been more than 1 music festival? | [
"SELECT",
"Category",
"FROM",
"music_festival",
"GROUP",
"BY",
"Category",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"1"
] | [
"select",
"category",
"from",
"music_festival",
"group",
"by",
"category",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"What",
"are",
"the",
"categories",
"of",
"music",
"festivals",
"for",
"which",
"there",
"have",
"been",
"more",
"than",
"1",
"music",
"festival",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"<mask>",
"for",
"which",
"there",
"have",
"been",
"more",
"than",
"<unk>",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
music_4 | SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 | What is the song in the volume with the maximum weeks on top? | [
"SELECT",
"Song",
"FROM",
"volume",
"ORDER",
"BY",
"Weeks_on_Top",
"DESC",
"LIMIT",
"1"
] | [
"select",
"song",
"from",
"volume",
"order",
"by",
"weeks_on_top",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"song",
"in",
"the",
"volume",
"with",
"the",
"maximum",
"weeks",
"on",
"top",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"in",
"the",
"<mask>",
"with",
"the",
"maximum",
"weeks",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_4 | SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 | Return the song in the volume that has spent the most weeks on top? | [
"SELECT",
"Song",
"FROM",
"volume",
"ORDER",
"BY",
"Weeks_on_Top",
"DESC",
"LIMIT",
"1"
] | [
"select",
"song",
"from",
"volume",
"order",
"by",
"weeks_on_top",
"desc",
"limit",
"value"
] | [
"Return",
"the",
"song",
"in",
"the",
"volume",
"that",
"has",
"spent",
"the",
"most",
"weeks",
"on",
"top",
"?"
] | [
"Return",
"the",
"<mask>",
"in",
"the",
"<mask>",
"that",
"has",
"spent",
"the",
"most",
"weeks",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_4 | SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume) | Find the famous titles of artists that do not have any volume. | [
"SELECT",
"Famous_Title",
"FROM",
"artist",
"WHERE",
"Artist_ID",
"NOT",
"IN",
"(",
"SELECT",
"Artist_ID",
"FROM",
"volume",
")"
] | [
"select",
"famous_title",
"from",
"artist",
"where",
"artist_id",
"not",
"in",
"(",
"select",
"artist_id",
"from",
"volume",
")"
] | [
"Find",
"the",
"famous",
"titles",
"of",
"artists",
"that",
"do",
"not",
"have",
"any",
"volume",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"that",
"do",
"not",
"have",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
music_4 | SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume) | What are the famous titles of artists who do not have any volumes? | [
"SELECT",
"Famous_Title",
"FROM",
"artist",
"WHERE",
"Artist_ID",
"NOT",
"IN",
"(",
"SELECT",
"Artist_ID",
"FROM",
"volume",
")"
] | [
"select",
"famous_title",
"from",
"artist",
"where",
"artist_id",
"not",
"in",
"(",
"select",
"artist_id",
"from",
"volume",
")"
] | [
"What",
"are",
"the",
"famous",
"titles",
"of",
"artists",
"who",
"do",
"not",
"have",
"any",
"volumes",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"who",
"do",
"not",
"have",
"any",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
music_4 | SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2 | Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top. | [
"SELECT",
"T1.Famous_Title",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T2.Weeks_on_Top",
">",
"2",
"INTERSECT",
"SELECT",
"T1.Famous_Title",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"A... | [
"select",
"t1",
".",
"famous_title",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t2",
".",
"weeks_on_top",
">",
"value",
"intersect",
"select",
"t1",
".",
"famous_title",
... | [
"Show",
"the",
"famous",
"titles",
"of",
"the",
"artists",
"with",
"both",
"volumes",
"that",
"lasted",
"more",
"than",
"2",
"weeks",
"on",
"top",
"and",
"volumes",
"that",
"lasted",
"less",
"than",
"2",
"weeks",
"on",
"top",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"with",
"both",
"<mask>",
"that",
"lasted",
"more",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"and",
"<mask>",
"that",
"lasted",
"less",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
music_4 | SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2 | What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top? | [
"SELECT",
"T1.Famous_Title",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"AS",
"T2",
"ON",
"T1.Artist_ID",
"=",
"T2.Artist_ID",
"WHERE",
"T2.Weeks_on_Top",
">",
"2",
"INTERSECT",
"SELECT",
"T1.Famous_Title",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"volume",
"A... | [
"select",
"t1",
".",
"famous_title",
"from",
"artist",
"as",
"t1",
"join",
"volume",
"as",
"t2",
"on",
"t1",
".",
"artist_id",
"=",
"t2",
".",
"artist_id",
"where",
"t2",
".",
"weeks_on_top",
">",
"value",
"intersect",
"select",
"t1",
".",
"famous_title",
... | [
"What",
"are",
"the",
"famous",
"titles",
"of",
"artists",
"who",
"have",
"not",
"only",
"had",
"volumes",
"that",
"spent",
"more",
"than",
"2",
"weeks",
"on",
"top",
"but",
"also",
"volumes",
"that",
"spent",
"less",
"than",
"2",
"weeks",
"on",
"top",
... | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"who",
"have",
"not",
"only",
"had",
"<mask>",
"that",
"spent",
"more",
"than",
"<unk>",
"weeks",
"on",
"<mask>",
"but",
"also",
"<mask>",
"that",
"spent",
"less",
"than",
"<unk>",
"weeks",
"on",
... | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
music_4 | SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded" | What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"? | [
"SELECT",
"Date_of_ceremony",
"FROM",
"music_festival",
"WHERE",
"Category",
"=",
"``",
"Best",
"Song",
"''",
"AND",
"RESULT",
"=",
"``",
"Awarded",
"''"
] | [
"select",
"date_of_ceremony",
"from",
"music_festival",
"where",
"category",
"=",
"value",
"and",
"result",
"=",
"value"
] | [
"What",
"are",
"the",
"date",
"of",
"ceremony",
"of",
"music",
"festivals",
"with",
"category",
"``",
"Best",
"Song",
"''",
"and",
"result",
"``",
"Awarded",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"of",
"<mask>",
"<mask>",
"with",
"<mask>",
"``",
"Best",
"<mask>",
"''",
"and",
"<mask>",
"``",
"Awarded",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded" | Return the dates of ceremony corresponding to music festivals that had the category "Best Song" and result "Awarded". | [
"SELECT",
"Date_of_ceremony",
"FROM",
"music_festival",
"WHERE",
"Category",
"=",
"``",
"Best",
"Song",
"''",
"AND",
"RESULT",
"=",
"``",
"Awarded",
"''"
] | [
"select",
"date_of_ceremony",
"from",
"music_festival",
"where",
"category",
"=",
"value",
"and",
"result",
"=",
"value"
] | [
"Return",
"the",
"dates",
"of",
"ceremony",
"corresponding",
"to",
"music",
"festivals",
"that",
"had",
"the",
"category",
"``",
"Best",
"Song",
"''",
"and",
"result",
"``",
"Awarded",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"corresponding",
"to",
"<mask>",
"<mask>",
"that",
"had",
"the",
"<mask>",
"``",
"Best",
"<mask>",
"''",
"and",
"<mask>",
"``",
"Awarded",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
music_4 | SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1 | What is the issue date of the volume with the minimum weeks on top? | [
"SELECT",
"Issue_Date",
"FROM",
"volume",
"ORDER",
"BY",
"Weeks_on_Top",
"ASC",
"LIMIT",
"1"
] | [
"select",
"issue_date",
"from",
"volume",
"order",
"by",
"weeks_on_top",
"asc",
"limit",
"value"
] | [
"What",
"is",
"the",
"issue",
"date",
"of",
"the",
"volume",
"with",
"the",
"minimum",
"weeks",
"on",
"top",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"minimum",
"weeks",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
music_4 | SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1 | Return the issue date of the volume that has spent the fewest weeks on top. | [
"SELECT",
"Issue_Date",
"FROM",
"volume",
"ORDER",
"BY",
"Weeks_on_Top",
"ASC",
"LIMIT",
"1"
] | [
"select",
"issue_date",
"from",
"volume",
"order",
"by",
"weeks_on_top",
"asc",
"limit",
"value"
] | [
"Return",
"the",
"issue",
"date",
"of",
"the",
"volume",
"that",
"has",
"spent",
"the",
"fewest",
"weeks",
"on",
"top",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"spent",
"the",
"fewest",
"weeks",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
music_4 | SELECT COUNT(DISTINCT Artist_ID) FROM volume | How many distinct artists have volumes? | [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"Artist_ID",
")",
"FROM",
"volume"
] | [
"select",
"count",
"(",
"distinct",
"artist_id",
")",
"from",
"volume"
] | [
"How",
"many",
"distinct",
"artists",
"have",
"volumes",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"have",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT COUNT(DISTINCT Artist_ID) FROM volume | Count the number of artists who have had volumes. | [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"Artist_ID",
")",
"FROM",
"volume"
] | [
"select",
"count",
"(",
"distinct",
"artist_id",
")",
"from",
"volume"
] | [
"Count",
"the",
"number",
"of",
"artists",
"who",
"have",
"had",
"volumes",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"who",
"have",
"had",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
music_4 | SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC | Please show the results of music festivals and the number of music festivals that have had each, ordered by this count. | [
"SELECT",
"RESULT",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"music_festival",
"GROUP",
"BY",
"RESULT",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC"
] | [
"select",
"result",
",",
"count",
"(",
"*",
")",
"from",
"music_festival",
"group",
"by",
"result",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
] | [
"Please",
"show",
"the",
"results",
"of",
"music",
"festivals",
"and",
"the",
"number",
"of",
"music",
"festivals",
"that",
"have",
"had",
"each",
",",
"ordered",
"by",
"this",
"count",
"."
] | [
"Please",
"show",
"the",
"<mask>",
"of",
"<mask>",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"<mask>",
"that",
"have",
"had",
"each",
",",
"ordered",
"by",
"this",
"count",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.