db_id
stringlengths 4
31
| query
stringlengths 18
577
| question
stringlengths 19
228
| query_toks
list | query_toks_no_value
list | question_toks
list |
---|---|---|---|---|---|
insurance_fnol | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4 | Find the policys types more than 4 use. Show theirn types codes. | [
"SELECT",
"policy_type_code",
"FROM",
"available_policies",
"GROUP",
"BY",
"policy_type_code",
"HAVING",
"count",
"(",
"*",
")",
">",
"4"
]
| [
"select",
"policy_type_code",
"from",
"available_policies",
"group",
"by",
"policy_type_code",
"having",
"count",
"(",
"*",
")",
">",
"value"
]
| [
"Find",
"the",
"policys",
"types",
"more",
"than",
"4",
"use.",
"Show",
"theirn",
"types",
"codes."
]
|
insurance_fnol | SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements | Are Finding the total and average amount of settlements. | [
"SELECT",
"sum",
"(",
"settlement_amount",
")",
",",
"avg",
"(",
"settlement_amount",
")",
"FROM",
"settlements"
]
| [
"select",
"sum",
"(",
"settlement_amount",
")",
",",
"avg",
"(",
"settlement_amount",
")",
"from",
"settlements"
]
| [
"Are",
"Finding",
"the",
"total",
"and",
"average",
"amount",
"of",
"settlements."
]
|
insurance_fnol | SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements | Return the sum and average of all settlement amounts. | [
"SELECT",
"sum",
"(",
"settlement_amount",
")",
",",
"avg",
"(",
"settlement_amount",
")",
"FROM",
"settlements"
]
| [
"select",
"sum",
"(",
"settlement_amount",
")",
",",
"avg",
"(",
"settlement_amount",
")",
"from",
"settlements"
]
| [
"Return",
"the",
"sum",
"and",
"average",
"of",
"all",
"settlement",
"amounts."
]
|
insurance_fnol | SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 | Are Finding the name of services that have done been used for more than 2 times in first notification of loss. | [
"SELECT",
"t2.service_name",
"FROM",
"first_notification_of_loss",
"AS",
"t1",
"JOIN",
"services",
"AS",
"t2",
"ON",
"t1.service_id",
"=",
"t2.service_id",
"GROUP",
"BY",
"t1.service_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"2"
]
| [
"select",
"t2",
".",
"service_name",
"from",
"first_notification_of_loss",
"as",
"t1",
"join",
"services",
"as",
"t2",
"on",
"t1",
".",
"service_id",
"=",
"t2",
".",
"service_id",
"group",
"by",
"t1",
".",
"service_id",
"having",
"count",
"(",
"*",
")",
">",
"value"
]
| [
"Are",
"Finding",
"the",
"name",
"of",
"services",
"that",
"have",
"done",
"been",
"used",
"for",
"more",
"than",
"2",
"times",
"in",
"first",
"notification",
"of",
"loss."
]
|
insurance_fnol | SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 | Which services done a-been a-used more than twice in first notification of loses? Are Returning the service name. | [
"SELECT",
"t2.service_name",
"FROM",
"first_notification_of_loss",
"AS",
"t1",
"JOIN",
"services",
"AS",
"t2",
"ON",
"t1.service_id",
"=",
"t2.service_id",
"GROUP",
"BY",
"t1.service_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"2"
]
| [
"select",
"t2",
".",
"service_name",
"from",
"first_notification_of_loss",
"as",
"t1",
"join",
"services",
"as",
"t2",
"on",
"t1",
".",
"service_id",
"=",
"t2",
".",
"service_id",
"group",
"by",
"t1",
".",
"service_id",
"having",
"count",
"(",
"*",
")",
">",
"value"
]
| [
"Which",
"services",
"done",
"a-been",
"a-used",
"more",
"than",
"twice",
"in",
"first",
"notification",
"of",
"loses?",
"Are",
"Returning",
"the",
"service",
"name."
]
|
insurance_fnol | SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 | What-all is the effective date of the claim has the largest amount of total settlement? | [
"SELECT",
"t1.Effective_Date",
"FROM",
"claims",
"AS",
"t1",
"JOIN",
"settlements",
"AS",
"t2",
"ON",
"t1.claim_id",
"=",
"t2.claim_id",
"GROUP",
"BY",
"t1.claim_id",
"ORDER",
"BY",
"sum",
"(",
"t2.settlement_amount",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"effective_date",
"from",
"claims",
"as",
"t1",
"join",
"settlements",
"as",
"t2",
"on",
"t1",
".",
"claim_id",
"=",
"t2",
".",
"claim_id",
"group",
"by",
"t1",
".",
"claim_id",
"order",
"by",
"sum",
"(",
"t2",
".",
"settlement_amount",
")",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"effective",
"date",
"of",
"the",
"claim",
"has",
"the",
"largest",
"amount",
"of",
"total",
"settlement?"
]
|
insurance_fnol | SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 | Are Finding the claim has the largest total settlement amount. Are Returning the effective date of the claim. | [
"SELECT",
"t1.Effective_Date",
"FROM",
"claims",
"AS",
"t1",
"JOIN",
"settlements",
"AS",
"t2",
"ON",
"t1.claim_id",
"=",
"t2.claim_id",
"GROUP",
"BY",
"t1.claim_id",
"ORDER",
"BY",
"sum",
"(",
"t2.settlement_amount",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"effective_date",
"from",
"claims",
"as",
"t1",
"join",
"settlements",
"as",
"t2",
"on",
"t1",
".",
"claim_id",
"=",
"t2",
".",
"claim_id",
"group",
"by",
"t1",
".",
"claim_id",
"order",
"by",
"sum",
"(",
"t2",
".",
"settlement_amount",
")",
"desc",
"limit",
"value"
]
| [
"Are",
"Finding",
"the",
"claim",
"has",
"the",
"largest",
"total",
"settlement",
"amount.",
"Are",
"Returning",
"the",
"effective",
"date",
"of",
"the",
"claim."
]
|
insurance_fnol | SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" | How many policies are a-listed for the customer a-named "Dayana Robel"? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Dayana",
"Robel",
"''"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
]
| [
"How",
"many",
"policies",
"are",
"a-listed",
"for",
"the",
"customer",
"a-named",
"\"Dayana",
"Robel\"?"
]
|
insurance_fnol | SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" | Count the total number of policies a-used by the customer a-named "Dayana Robel". | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Dayana",
"Robel",
"''"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
]
| [
"Count",
"the",
"total",
"number",
"of",
"policies",
"a-used",
"by",
"the",
"customer",
"a-named",
"\"Dayana",
"Robel\"."
]
|
insurance_fnol | SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 | What-all is the name of the customers which has the most policies a-listed? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"group",
"by",
"t1",
".",
"customer_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"name",
"of",
"the",
"customers",
"which",
"has",
"the",
"most",
"policies",
"a-listed?"
]
|
insurance_fnol | SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 | Which customer is using the most policies? Are Giving me the customer name. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"group",
"by",
"t1",
".",
"customer_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
]
| [
"Which",
"customer",
"is",
"using",
"the",
"most",
"policies?",
"Are",
"Giving",
"me",
"the",
"customer",
"name."
]
|
insurance_fnol | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel" | What-all are all the policys types of the customers a-named "Dayana Robel"? | [
"SELECT",
"DISTINCT",
"t3.policy_type_code",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"available_policies",
"AS",
"t3",
"ON",
"t2.policy_id",
"=",
"t3.policy_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Dayana",
"Robel",
"''"
]
| [
"select",
"distinct",
"t3",
".",
"policy_type_code",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"available_policies",
"as",
"t3",
"on",
"t2",
".",
"policy_id",
"=",
"t3",
".",
"policy_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
]
| [
"What-all",
"are",
"all",
"the",
"policys",
"types",
"of",
"the",
"customers",
"a-named",
"\"Dayana",
"Robel\"?"
]
|
insurance_fnol | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel" | Are Telling us the types of the policys used by the customers named "Dayana Robel". | [
"SELECT",
"DISTINCT",
"t3.policy_type_code",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"available_policies",
"AS",
"t3",
"ON",
"t2.policy_id",
"=",
"t3.policy_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Dayana",
"Robel",
"''"
]
| [
"select",
"distinct",
"t3",
".",
"policy_type_code",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"available_policies",
"as",
"t3",
"on",
"t2",
".",
"policy_id",
"=",
"t3",
".",
"policy_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
]
| [
"Are",
"Telling",
"us",
"the",
"types",
"of",
"the",
"policys",
"used",
"by",
"the",
"customers",
"named",
"\"Dayana",
"Robel\"."
]
|
insurance_fnol | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) | What-all are all the policy types of the customer has the most policies listed? | [
"SELECT",
"DISTINCT",
"t3.policy_type_code",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"available_policies",
"AS",
"t3",
"ON",
"t2.policy_id",
"=",
"t3.policy_id",
"WHERE",
"t1.customer_name",
"=",
"(",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
")"
]
| [
"select",
"distinct",
"t3",
".",
"policy_type_code",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"available_policies",
"as",
"t3",
"on",
"t2",
".",
"policy_id",
"=",
"t3",
".",
"policy_id",
"where",
"t1",
".",
"customer_name",
"=",
"(",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"group",
"by",
"t1",
".",
"customer_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value",
")"
]
| [
"What-all",
"are",
"all",
"the",
"policy",
"types",
"of",
"the",
"customer",
"has",
"the",
"most",
"policies",
"listed?"
]
|
insurance_fnol | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) | Are Listing all the policys types a-used by the customers a-enrolled in the most policies. | [
"SELECT",
"DISTINCT",
"t3.policy_type_code",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"available_policies",
"AS",
"t3",
"ON",
"t2.policy_id",
"=",
"t3.policy_id",
"WHERE",
"t1.customer_name",
"=",
"(",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"GROUP",
"BY",
"t1.customer_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
")"
]
| [
"select",
"distinct",
"t3",
".",
"policy_type_code",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"available_policies",
"as",
"t3",
"on",
"t2",
".",
"policy_id",
"=",
"t3",
".",
"policy_id",
"where",
"t1",
".",
"customer_name",
"=",
"(",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"group",
"by",
"t1",
".",
"customer_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value",
")"
]
| [
"Are",
"Listing",
"all",
"the",
"policys",
"types",
"a-used",
"by",
"the",
"customers",
"a-enrolled",
"in",
"the",
"most",
"policies."
]
|
insurance_fnol | SELECT service_name FROM services ORDER BY service_name | List all the the alphabetical order services. | [
"SELECT",
"service_name",
"FROM",
"services",
"ORDER",
"BY",
"service_name"
]
| [
"select",
"service_name",
"from",
"services",
"order",
"by",
"service_name"
]
| [
"List",
"all",
"the",
"the",
"alphabetical",
"order",
"services."
]
|
insurance_fnol | SELECT service_name FROM services ORDER BY service_name | Are Giving me a list of all the service names a-sorted alphabetically. | [
"SELECT",
"service_name",
"FROM",
"services",
"ORDER",
"BY",
"service_name"
]
| [
"select",
"service_name",
"from",
"services",
"order",
"by",
"service_name"
]
| [
"Are",
"Giving",
"me",
"a",
"list",
"of",
"all",
"the",
"service",
"names",
"a-sorted",
"alphabetically."
]
|
insurance_fnol | SELECT count(*) FROM services | How many services are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"services"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"services"
]
| [
"How",
"many",
"services",
"are",
"there?"
]
|
insurance_fnol | SELECT count(*) FROM services | Count the total number of available services. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"services"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"services"
]
| [
"Count",
"the",
"total",
"number",
"of",
"available",
"services."
]
|
insurance_fnol | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id | Are Finding the names of users which do ain't a first notification of loses record. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id"
]
| [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id"
]
| [
"Are",
"Finding",
"the",
"names",
"of",
"users",
"which",
"do",
"ain't",
"a",
"first",
"notification",
"of",
"loses",
"record."
]
|
insurance_fnol | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id | Which customers do ain't a first notification of loss record? Are Giving me the customer names. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id"
]
| [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id"
]
| [
"Which",
"customers",
"do",
"ain't",
"a",
"first",
"notification",
"of",
"loss",
"record?",
"Are",
"Giving",
"me",
"the",
"customer",
"names."
]
|
insurance_fnol | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy" | Find the names of customers used either the service "To Close a policy" or the service "Upgrade a policy". | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"services",
"AS",
"t3",
"ON",
"t2.service_id",
"=",
"t3.service_id",
"WHERE",
"t3.service_name",
"=",
"``",
"Close",
"a",
"policy",
"''",
"OR",
"t3.service_name",
"=",
"``",
"Upgrade",
"a",
"policy",
"''"
]
| [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"services",
"as",
"t3",
"on",
"t2",
".",
"service_id",
"=",
"t3",
".",
"service_id",
"where",
"t3",
".",
"service_name",
"=",
"value",
"or",
"t3",
".",
"service_name",
"=",
"value"
]
| [
"Find",
"the",
"names",
"of",
"customers",
"used",
"either",
"the",
"service",
"\"To",
"Close",
"a",
"policy\"",
"or",
"the",
"service",
"\"Upgrade",
"a",
"policy\"."
]
|
insurance_fnol | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy" | Which customers used the service named "Close a policys" or "Are Upgrading a policys"? Are Giving us the customers names. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"services",
"AS",
"t3",
"ON",
"t2.service_id",
"=",
"t3.service_id",
"WHERE",
"t3.service_name",
"=",
"``",
"Close",
"a",
"policy",
"''",
"OR",
"t3.service_name",
"=",
"``",
"Upgrade",
"a",
"policy",
"''"
]
| [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"services",
"as",
"t3",
"on",
"t2",
".",
"service_id",
"=",
"t3",
".",
"service_id",
"where",
"t3",
".",
"service_name",
"=",
"value",
"or",
"t3",
".",
"service_name",
"=",
"value"
]
| [
"Which",
"customers",
"used",
"the",
"service",
"named",
"\"Close",
"a",
"policys\"",
"or",
"\"Are",
"Upgrading",
"a",
"policys\"?",
"Are",
"Giving",
"us",
"the",
"customers",
"names."
]
|
insurance_fnol | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application" | Find the names of customers at done a-used both the service "Close a policy" and the service "New policy application". | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"services",
"AS",
"t3",
"ON",
"t2.service_id",
"=",
"t3.service_id",
"WHERE",
"t3.service_name",
"=",
"``",
"Close",
"a",
"policy",
"''",
"INTERSECT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"services",
"AS",
"t3",
"ON",
"t2.service_id",
"=",
"t3.service_id",
"WHERE",
"t3.service_name",
"=",
"``",
"New",
"policy",
"application",
"''"
]
| [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"services",
"as",
"t3",
"on",
"t2",
".",
"service_id",
"=",
"t3",
".",
"service_id",
"where",
"t3",
".",
"service_name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"services",
"as",
"t3",
"on",
"t2",
".",
"service_id",
"=",
"t3",
".",
"service_id",
"where",
"t3",
".",
"service_name",
"=",
"value"
]
| [
"Find",
"the",
"names",
"of",
"customers",
"at",
"done",
"a-used",
"both",
"the",
"service",
"\"Close",
"a",
"policy\"",
"and",
"the",
"service",
"\"New",
"policy",
"application\"."
]
|
insurance_fnol | SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application" | Which customers used both the service named "Close a policy" and the service named "Upgrade a policy"? Are Giving me the customer names. | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"services",
"AS",
"t3",
"ON",
"t2.service_id",
"=",
"t3.service_id",
"WHERE",
"t3.service_name",
"=",
"``",
"Close",
"a",
"policy",
"''",
"INTERSECT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"first_notification_of_loss",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"services",
"AS",
"t3",
"ON",
"t2.service_id",
"=",
"t3.service_id",
"WHERE",
"t3.service_name",
"=",
"``",
"New",
"policy",
"application",
"''"
]
| [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"services",
"as",
"t3",
"on",
"t2",
".",
"service_id",
"=",
"t3",
".",
"service_id",
"where",
"t3",
".",
"service_name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"first_notification_of_loss",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"services",
"as",
"t3",
"on",
"t2",
".",
"service_id",
"=",
"t3",
".",
"service_id",
"where",
"t3",
".",
"service_name",
"=",
"value"
]
| [
"Which",
"customers",
"used",
"both",
"the",
"service",
"named",
"\"Close",
"a",
"policy\"",
"and",
"the",
"service",
"named",
"\"Upgrade",
"a",
"policy\"?",
"Are",
"Giving",
"me",
"the",
"customer",
"names."
]
|
insurance_fnol | SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%" | Are Finding the IDs of customers whose is containing "Diana". | [
"SELECT",
"customer_id",
"FROM",
"customers",
"WHERE",
"customer_name",
"LIKE",
"``",
"%",
"Diana",
"%",
"''"
]
| [
"select",
"customer_id",
"from",
"customers",
"where",
"customer_name",
"like",
"value"
]
| [
"Are",
"Finding",
"the",
"IDs",
"of",
"customers",
"whose",
"is",
"containing",
"\"Diana\"."
]
|
insurance_fnol | SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%" | What-all are the IDs of customers at have "Diana" in part of theirn names? | [
"SELECT",
"customer_id",
"FROM",
"customers",
"WHERE",
"customer_name",
"LIKE",
"``",
"%",
"Diana",
"%",
"''"
]
| [
"select",
"customer_id",
"from",
"customers",
"where",
"customer_name",
"like",
"value"
]
| [
"What-all",
"are",
"the",
"IDs",
"of",
"customers",
"at",
"have",
"\"Diana\"",
"in",
"part",
"of",
"theirn",
"names?"
]
|
insurance_fnol | SELECT max(settlement_amount) , min(settlement_amount) FROM settlements | What-all are the maximum and minimum settlement amount on record? | [
"SELECT",
"max",
"(",
"settlement_amount",
")",
",",
"min",
"(",
"settlement_amount",
")",
"FROM",
"settlements"
]
| [
"select",
"max",
"(",
"settlement_amount",
")",
",",
"min",
"(",
"settlement_amount",
")",
"from",
"settlements"
]
| [
"What-all",
"are",
"the",
"maximum",
"and",
"minimum",
"settlement",
"amount",
"on",
"record?"
]
|
insurance_fnol | SELECT max(settlement_amount) , min(settlement_amount) FROM settlements | Are Finding the maximum and minimum settlement amount. | [
"SELECT",
"max",
"(",
"settlement_amount",
")",
",",
"min",
"(",
"settlement_amount",
")",
"FROM",
"settlements"
]
| [
"select",
"max",
"(",
"settlement_amount",
")",
",",
"min",
"(",
"settlement_amount",
")",
"from",
"settlements"
]
| [
"Are",
"Finding",
"the",
"maximum",
"and",
"minimum",
"settlement",
"amount."
]
|
insurance_fnol | SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC | List all the customers in increasing order of IDs. | [
"SELECT",
"customer_id",
",",
"customer_name",
"FROM",
"customers",
"ORDER",
"BY",
"customer_id",
"ASC"
]
| [
"select",
"customer_id",
",",
"customer_name",
"from",
"customers",
"order",
"by",
"customer_id",
"asc"
]
| [
"List",
"all",
"the",
"customers",
"in",
"increasing",
"order",
"of",
"IDs."
]
|
insurance_fnol | SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC | What-all is the ordered list of customer ids? | [
"SELECT",
"customer_id",
",",
"customer_name",
"FROM",
"customers",
"ORDER",
"BY",
"customer_id",
"ASC"
]
| [
"select",
"customer_id",
",",
"customer_name",
"from",
"customers",
"order",
"by",
"customer_id",
"asc"
]
| [
"What-all",
"is",
"the",
"ordered",
"list",
"of",
"customer",
"ids?"
]
|
insurance_fnol | SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" | Retrieve the open and close dates of all the policies associated with the customer whose contains "Diana" | [
"SELECT",
"t2.date_opened",
",",
"t2.date_closed",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"LIKE",
"``",
"%",
"Diana",
"%",
"''"
]
| [
"select",
"t2",
".",
"date_opened",
",",
"t2",
".",
"date_closed",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"like",
"value"
]
| [
"Retrieve",
"the",
"open",
"and",
"close",
"dates",
"of",
"all",
"the",
"policies",
"associated",
"with",
"the",
"customer",
"whose",
"contains",
"\"Diana\""
]
|
insurance_fnol | SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" | What-all are the open and close dates of all the policies a-used by the customer which have "Diana" in part of theirn names? | [
"SELECT",
"t2.date_opened",
",",
"t2.date_closed",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customers_policies",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"LIKE",
"``",
"%",
"Diana",
"%",
"''"
]
| [
"select",
"t2",
".",
"date_opened",
",",
"t2",
".",
"date_closed",
"from",
"customers",
"as",
"t1",
"join",
"customers_policies",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"like",
"value"
]
| [
"What-all",
"are",
"the",
"open",
"and",
"close",
"dates",
"of",
"all",
"the",
"policies",
"a-used",
"by",
"the",
"customer",
"which",
"have",
"\"Diana\"",
"in",
"part",
"of",
"theirn",
"names?"
]
|
medicine_enzyme_interaction | SELECT count(*) FROM enzyme | How many kinds of enzymes are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"enzyme"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"enzyme"
]
| [
"How",
"many",
"kinds",
"of",
"enzymes",
"are",
"there?"
]
|
medicine_enzyme_interaction | SELECT count(*) FROM enzyme | What-all is the total count of enzymes? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"enzyme"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"enzyme"
]
| [
"What-all",
"is",
"the",
"total",
"count",
"of",
"enzymes?"
]
|
medicine_enzyme_interaction | SELECT name FROM enzyme ORDER BY name DESC | List the name of enzymes in a-descending lexicographical orders. | [
"SELECT",
"name",
"FROM",
"enzyme",
"ORDER",
"BY",
"name",
"DESC"
]
| [
"select",
"name",
"from",
"enzyme",
"order",
"by",
"name",
"desc"
]
| [
"List",
"the",
"name",
"of",
"enzymes",
"in",
"a-descending",
"lexicographical",
"orders."
]
|
medicine_enzyme_interaction | SELECT name FROM enzyme ORDER BY name DESC | What-all are the names of enzymes in a-descending order? | [
"SELECT",
"name",
"FROM",
"enzyme",
"ORDER",
"BY",
"name",
"DESC"
]
| [
"select",
"name",
"from",
"enzyme",
"order",
"by",
"name",
"desc"
]
| [
"What-all",
"are",
"the",
"names",
"of",
"enzymes",
"in",
"a-descending",
"order?"
]
|
medicine_enzyme_interaction | SELECT name , LOCATION FROM enzyme | Are Listing the names and the locations that the enzymes might can make an effect. | [
"SELECT",
"name",
",",
"LOCATION",
"FROM",
"enzyme"
]
| [
"select",
"name",
",",
"location",
"from",
"enzyme"
]
| [
"Are",
"Listing",
"the",
"names",
"and",
"the",
"locations",
"that",
"the",
"enzymes",
"might",
"can",
"make",
"an",
"effect."
]
|
medicine_enzyme_interaction | SELECT name , LOCATION FROM enzyme | What-all are the names and locations of all enzymes listed? | [
"SELECT",
"name",
",",
"LOCATION",
"FROM",
"enzyme"
]
| [
"select",
"name",
",",
"location",
"from",
"enzyme"
]
| [
"What-all",
"are",
"the",
"names",
"and",
"locations",
"of",
"all",
"enzymes",
"listed?"
]
|
medicine_enzyme_interaction | SELECT max(OMIM) FROM enzyme | What-all is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes? | [
"SELECT",
"max",
"(",
"OMIM",
")",
"FROM",
"enzyme"
]
| [
"select",
"max",
"(",
"omim",
")",
"from",
"enzyme"
]
| [
"What-all",
"is",
"the",
"maximum",
"Online",
"Mendelian",
"Inheritance",
"in",
"Man",
"(OMIM)",
"value",
"of",
"the",
"enzymes?"
]
|
medicine_enzyme_interaction | SELECT max(OMIM) FROM enzyme | What-all is the maximum OMIM value in the database? | [
"SELECT",
"max",
"(",
"OMIM",
")",
"FROM",
"enzyme"
]
| [
"select",
"max",
"(",
"omim",
")",
"from",
"enzyme"
]
| [
"What-all",
"is",
"the",
"maximum",
"OMIM",
"value",
"in",
"the",
"database?"
]
|
medicine_enzyme_interaction | SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol' | What-all is the product, chromosome and porphyria related to the enzymes is taking effect at the location 'Cytosol'? | [
"SELECT",
"product",
",",
"chromosome",
",",
"porphyria",
"FROM",
"enzyme",
"WHERE",
"LOCATION",
"=",
"'Cytosol",
"'"
]
| [
"select",
"product",
",",
"chromosome",
",",
"porphyria",
"from",
"enzyme",
"where",
"location",
"=",
"value"
]
| [
"What-all",
"is",
"the",
"product,",
"chromosome",
"and",
"porphyria",
"related",
"to",
"the",
"enzymes",
"is",
"taking",
"effect",
"at",
"the",
"location",
"'Cytosol'?"
]
|
medicine_enzyme_interaction | SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol' | What-all is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'? | [
"SELECT",
"product",
",",
"chromosome",
",",
"porphyria",
"FROM",
"enzyme",
"WHERE",
"LOCATION",
"=",
"'Cytosol",
"'"
]
| [
"select",
"product",
",",
"chromosome",
",",
"porphyria",
"from",
"enzyme",
"where",
"location",
"=",
"value"
]
| [
"What-all",
"is",
"the",
"product,",
"chromosome,",
"and",
"porphyria",
"of",
"the",
"enzymes",
"located",
"at",
"'Cytosol'?"
]
|
medicine_enzyme_interaction | SELECT name FROM enzyme WHERE product != 'Heme' | What-all are the names of enzymes as does not produce 'Heme'? | [
"SELECT",
"name",
"FROM",
"enzyme",
"WHERE",
"product",
"!",
"=",
"'Heme",
"'"
]
| [
"select",
"name",
"from",
"enzyme",
"where",
"product",
"!",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"of",
"enzymes",
"as",
"does",
"not",
"produce",
"'Heme'?"
]
|
medicine_enzyme_interaction | SELECT name FROM enzyme WHERE product != 'Heme' | What-all are the names of enzymes that's product ain't what'sHeme'? | [
"SELECT",
"name",
"FROM",
"enzyme",
"WHERE",
"product",
"!",
"=",
"'Heme",
"'"
]
| [
"select",
"name",
"from",
"enzyme",
"where",
"product",
"!",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"of",
"enzymes",
"that's",
"product",
"ain't",
"what'sHeme'?"
]
|
medicine_enzyme_interaction | SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes' | What-all are the names and trade names of the medicines which has 'Yes' value in the FDA record? | [
"SELECT",
"name",
",",
"trade_name",
"FROM",
"medicine",
"WHERE",
"FDA_approved",
"=",
"'Yes",
"'"
]
| [
"select",
"name",
",",
"trade_name",
"from",
"medicine",
"where",
"fda_approved",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"and",
"trade",
"names",
"of",
"the",
"medicines",
"which",
"has",
"'Yes'",
"value",
"in",
"the",
"FDA",
"record?"
]
|
medicine_enzyme_interaction | SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes' | What-all are the names and trade names of the medcines that are FDA approved? | [
"SELECT",
"name",
",",
"trade_name",
"FROM",
"medicine",
"WHERE",
"FDA_approved",
"=",
"'Yes",
"'"
]
| [
"select",
"name",
",",
"trade_name",
"from",
"medicine",
"where",
"fda_approved",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"and",
"trade",
"names",
"of",
"the",
"medcines",
"that",
"are",
"FDA",
"approved?"
]
|
medicine_enzyme_interaction | SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' | What-all are the names of enzymes in the medicine a-named 'Amisulpride' can serve as an 'inhibitor'? | [
"SELECT",
"T1.name",
"FROM",
"enzyme",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.enzyme_id",
"JOIN",
"medicine",
"AS",
"T3",
"ON",
"T2.medicine_id",
"=",
"T3.id",
"WHERE",
"T3.name",
"=",
"'Amisulpride",
"'",
"AND",
"T2.interaction_type",
"=",
"'inhibitor",
"'"
]
| [
"select",
"t1",
".",
"name",
"from",
"enzyme",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"enzyme_id",
"join",
"medicine",
"as",
"t3",
"on",
"t2",
".",
"medicine_id",
"=",
"t3",
".",
"id",
"where",
"t3",
".",
"name",
"=",
"value",
"and",
"t2",
".",
"interaction_type",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"of",
"enzymes",
"in",
"the",
"medicine",
"a-named",
"'Amisulpride'",
"can",
"serve",
"as",
"an",
"'inhibitor'?"
]
|
medicine_enzyme_interaction | SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' | What-all are the names of the enzymes used in the medicine Amisulpride that is acting as inhibitors? | [
"SELECT",
"T1.name",
"FROM",
"enzyme",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.enzyme_id",
"JOIN",
"medicine",
"AS",
"T3",
"ON",
"T2.medicine_id",
"=",
"T3.id",
"WHERE",
"T3.name",
"=",
"'Amisulpride",
"'",
"AND",
"T2.interaction_type",
"=",
"'inhibitor",
"'"
]
| [
"select",
"t1",
".",
"name",
"from",
"enzyme",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"enzyme_id",
"join",
"medicine",
"as",
"t3",
"on",
"t2",
".",
"medicine_id",
"=",
"t3",
".",
"id",
"where",
"t3",
".",
"name",
"=",
"value",
"and",
"t2",
".",
"interaction_type",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"of",
"the",
"enzymes",
"used",
"in",
"the",
"medicine",
"",
"Amisulpride",
"that",
"is",
"acting",
"as",
"inhibitors?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2 | What-all are the ids and names of the medicine that can interact with two or more enzyme? | [
"SELECT",
"T1.id",
",",
"T1.Name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"ids",
"and",
"names",
"of",
"the",
"medicine",
"that",
"can",
"interact",
"with",
"two",
"or",
"more",
"enzyme?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2 | For every medicine id, what are the names of the medicines that can interact with more than one enzyme? | [
"SELECT",
"T1.id",
",",
"T1.Name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
]
| [
"For",
"every",
"medicine",
"id,",
"what",
"are",
"the",
"names",
"of",
"the",
"medicines",
"that",
"can",
"interact",
"with",
"more",
"than",
"one",
"enzyme?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC | What-all are the ids, names and FDA approval status of medicines in a-descending order of the number of enzymes that can interact with. | [
"SELECT",
"T1.id",
",",
"T1.Name",
",",
"T1.FDA_approved",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
",",
"t1",
".",
"fda_approved",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
]
| [
"What-all",
"are",
"the",
"ids,",
"names",
"and",
"FDA",
"approval",
"status",
"of",
"medicines",
"in",
"a-descending",
"order",
"of",
"the",
"number",
"of",
"enzymes",
"that",
"can",
"interact",
"with."
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC | What-all are the ids, names, and FDA approval status for medicines a-ordered by descending number of possible enzyme interactions? | [
"SELECT",
"T1.id",
",",
"T1.Name",
",",
"T1.FDA_approved",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
",",
"t1",
".",
"fda_approved",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"order",
"by",
"count",
"(",
"*",
")",
"desc"
]
| [
"What-all",
"are",
"the",
"ids,",
"names,",
"and",
"FDA",
"approval",
"status",
"for",
"medicines",
"a-ordered",
"by",
"descending",
"number",
"of",
"possible",
"enzyme",
"interactions?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1 | What-all is the imight would and name of the enzyme with most number of medicines that might can interact as 'activator'? | [
"SELECT",
"T1.id",
",",
"T1.name",
"FROM",
"enzyme",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.enzyme_id",
"WHERE",
"T2.interaction_type",
"=",
"'activitor",
"'",
"GROUP",
"BY",
"T1.id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"enzyme",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"enzyme_id",
"where",
"t2",
".",
"interaction_type",
"=",
"value",
"group",
"by",
"t1",
".",
"id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"imight",
"would",
"and",
"name",
"of",
"the",
"enzyme",
"with",
"most",
"number",
"of",
"medicines",
"that",
"might",
"can",
"interact",
"as",
"'activator'?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1 | What-all is the imight would and name of the enzyme might can interact with the most medicines as an activator? | [
"SELECT",
"T1.id",
",",
"T1.name",
"FROM",
"enzyme",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.enzyme_id",
"WHERE",
"T2.interaction_type",
"=",
"'activitor",
"'",
"GROUP",
"BY",
"T1.id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"enzyme",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"enzyme_id",
"where",
"t2",
".",
"interaction_type",
"=",
"value",
"group",
"by",
"t1",
".",
"id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"imight",
"would",
"and",
"name",
"of",
"the",
"enzyme",
"might",
"can",
"interact",
"with",
"the",
"most",
"medicines",
"as",
"an",
"activator?"
]
|
medicine_enzyme_interaction | SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' | What-all is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? | [
"SELECT",
"T1.interaction_type",
"FROM",
"medicine_enzyme_interaction",
"AS",
"T1",
"JOIN",
"medicine",
"AS",
"T2",
"ON",
"T1.medicine_id",
"=",
"T2.id",
"JOIN",
"enzyme",
"AS",
"T3",
"ON",
"T1.enzyme_id",
"=",
"T3.id",
"WHERE",
"T3.name",
"=",
"'ALA",
"synthase",
"'",
"AND",
"T2.name",
"=",
"'Aripiprazole",
"'"
]
| [
"select",
"t1",
".",
"interaction_type",
"from",
"medicine_enzyme_interaction",
"as",
"t1",
"join",
"medicine",
"as",
"t2",
"on",
"t1",
".",
"medicine_id",
"=",
"t2",
".",
"id",
"join",
"enzyme",
"as",
"t3",
"on",
"t1",
".",
"enzyme_id",
"=",
"t3",
".",
"id",
"where",
"t3",
".",
"name",
"=",
"value",
"and",
"t2",
".",
"name",
"=",
"value"
]
| [
"What-all",
"is",
"the",
"interaction",
"type",
"of",
"the",
"enzyme",
"named",
"'ALA",
"synthase'",
"and",
"the",
"medicine",
"named",
"'Aripiprazole'?"
]
|
medicine_enzyme_interaction | SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' | What-all is the type of the enzyme interaction named 'ALA synthase' and the medicine named 'Aripiprazole'? | [
"SELECT",
"T1.interaction_type",
"FROM",
"medicine_enzyme_interaction",
"AS",
"T1",
"JOIN",
"medicine",
"AS",
"T2",
"ON",
"T1.medicine_id",
"=",
"T2.id",
"JOIN",
"enzyme",
"AS",
"T3",
"ON",
"T1.enzyme_id",
"=",
"T3.id",
"WHERE",
"T3.name",
"=",
"'ALA",
"synthase",
"'",
"AND",
"T2.name",
"=",
"'Aripiprazole",
"'"
]
| [
"select",
"t1",
".",
"interaction_type",
"from",
"medicine_enzyme_interaction",
"as",
"t1",
"join",
"medicine",
"as",
"t2",
"on",
"t1",
".",
"medicine_id",
"=",
"t2",
".",
"id",
"join",
"enzyme",
"as",
"t3",
"on",
"t1",
".",
"enzyme_id",
"=",
"t3",
".",
"id",
"where",
"t3",
".",
"name",
"=",
"value",
"and",
"t2",
".",
"name",
"=",
"value"
]
| [
"What-all",
"is",
"the",
"type",
"of",
"the",
"enzyme",
"interaction",
"named",
"'ALA",
"synthase'",
"and",
"the",
"medicine",
"named",
"'Aripiprazole'?"
]
|
medicine_enzyme_interaction | SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1 | What-all is the most common interaction type between enzymes and medicine? And how many is it? | [
"SELECT",
"interaction_type",
",",
"count",
"(",
"*",
")",
"FROM",
"medicine_enzyme_interaction",
"GROUP",
"BY",
"interaction_type",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"interaction_type",
",",
"count",
"(",
"*",
")",
"from",
"medicine_enzyme_interaction",
"group",
"by",
"interaction_type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"most",
"common",
"interaction",
"type",
"between",
"enzymes",
"and",
"medicine?",
"And",
"how",
"many",
"is",
"it?"
]
|
medicine_enzyme_interaction | SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1 | What-all are the most common types of interactions between enzymes and medicine, and how many types are there? | [
"SELECT",
"interaction_type",
",",
"count",
"(",
"*",
")",
"FROM",
"medicine_enzyme_interaction",
"GROUP",
"BY",
"interaction_type",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"interaction_type",
",",
"count",
"(",
"*",
")",
"from",
"medicine_enzyme_interaction",
"group",
"by",
"interaction_type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
]
| [
"What-all",
"are",
"the",
"most",
"common",
"types",
"of",
"interactions",
"between",
"enzymes",
"and",
"medicine,",
"and",
"how",
"many",
"types",
"are",
"there?"
]
|
medicine_enzyme_interaction | SELECT count(*) FROM medicine WHERE FDA_approved = 'No' | It is the FDA approval status ' No ' that how many medicines have ? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"medicine",
"WHERE",
"FDA_approved",
"=",
"'No",
"'"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"medicine",
"where",
"fda_approved",
"=",
"value"
]
| [
"It",
"is",
"the",
"FDA",
"approval",
"status",
"'",
"No",
"'",
"that",
"how",
"many",
"medicines",
"have",
"?"
]
|
medicine_enzyme_interaction | SELECT count(*) FROM medicine WHERE FDA_approved = 'No' | How many medicines ain't approved by the FDA? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"medicine",
"WHERE",
"FDA_approved",
"=",
"'No",
"'"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"medicine",
"where",
"fda_approved",
"=",
"value"
]
| [
"How",
"many",
"medicines",
"ain't",
"approved",
"by",
"the",
"FDA?"
]
|
medicine_enzyme_interaction | SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); | How many enzymes do ain't no interactions? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"enzyme",
"WHERE",
"id",
"NOT",
"IN",
"(",
"SELECT",
"enzyme_id",
"FROM",
"medicine_enzyme_interaction",
")",
";"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"enzyme",
"where",
"id",
"not",
"in",
"(",
"select",
"enzyme_id",
"from",
"medicine_enzyme_interaction",
")"
]
| [
"How",
"many",
"enzymes",
"do",
"ain't",
"no",
"interactions?"
]
|
medicine_enzyme_interaction | SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); | What-all is the count of enzymes without any interactions? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"enzyme",
"WHERE",
"id",
"NOT",
"IN",
"(",
"SELECT",
"enzyme_id",
"FROM",
"medicine_enzyme_interaction",
")",
";"
]
| [
"select",
"count",
"(",
"*",
")",
"from",
"enzyme",
"where",
"id",
"not",
"in",
"(",
"select",
"enzyme_id",
"from",
"medicine_enzyme_interaction",
")"
]
| [
"What-all",
"is",
"the",
"count",
"of",
"enzymes",
"without",
"any",
"interactions?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3 | What-all is the imight would and trade name of the medicines might can interact with at least 3 enzyme? | [
"SELECT",
"T1.id",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"3"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
]
| [
"What-all",
"is",
"the",
"imight",
"would",
"and",
"trade",
"name",
"of",
"the",
"medicines",
"might",
"can",
"interact",
"with",
"at",
"least",
"3",
"enzyme?"
]
|
medicine_enzyme_interaction | SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3 | What-all are the ids and trade names of the can interact at least 3 enzymes medicine? | [
"SELECT",
"T1.id",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"3"
]
| [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"ids",
"and",
"trade",
"names",
"of",
"the",
"can",
"interact",
"at",
"least",
"3",
"enzymes",
"medicine?"
]
|
medicine_enzyme_interaction | SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' | What-all are the distinct name, location and products of the has any 'inhibitor' interaction enzymes? | [
"SELECT",
"DISTINCT",
"T1.name",
",",
"T1.location",
",",
"T1.product",
"FROM",
"enzyme",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.enzyme_id",
"=",
"T1.id",
"WHERE",
"T2.interaction_type",
"=",
"'inhibitor",
"'"
]
| [
"select",
"distinct",
"t1",
".",
"name",
",",
"t1",
".",
"location",
",",
"t1",
".",
"product",
"from",
"enzyme",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"enzyme_id",
"=",
"t1",
".",
"id",
"where",
"t2",
".",
"interaction_type",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"distinct",
"name,",
"location",
"and",
"products",
"of",
"the",
"has",
"any",
"'inhibitor'",
"interaction",
"enzymes?"
]
|
medicine_enzyme_interaction | SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' | What-all are the different names, locations, and products of the enzymes that are capable inhibitor interactions? | [
"SELECT",
"DISTINCT",
"T1.name",
",",
"T1.location",
",",
"T1.product",
"FROM",
"enzyme",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.enzyme_id",
"=",
"T1.id",
"WHERE",
"T2.interaction_type",
"=",
"'inhibitor",
"'"
]
| [
"select",
"distinct",
"t1",
".",
"name",
",",
"t1",
".",
"location",
",",
"t1",
".",
"product",
"from",
"enzyme",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"enzyme_id",
"=",
"t1",
".",
"id",
"where",
"t2",
".",
"interaction_type",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"different",
"names,",
"locations,",
"and",
"products",
"of",
"the",
"enzymes",
"that",
"are",
"capable",
"inhibitor",
"interactions?"
]
|
medicine_enzyme_interaction | SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | List the medicine name and trade name might can both interact as 'inhibitor' and 'activitor' with enzymes. | [
"SELECT",
"T1.name",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"WHERE",
"interaction_type",
"=",
"'inhibitor",
"'",
"INTERSECT",
"SELECT",
"T1.name",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"WHERE",
"interaction_type",
"=",
"'activitor",
"'"
]
| [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"where",
"interaction_type",
"=",
"value",
"intersect",
"select",
"t1",
".",
"name",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"where",
"interaction_type",
"=",
"value"
]
| [
"List",
"the",
"medicine",
"name",
"and",
"trade",
"name",
"might",
"can",
"both",
"interact",
"as",
"'inhibitor'",
"and",
"'activitor'",
"with",
"enzymes."
]
|
medicine_enzyme_interaction | SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | What-all are the medicines and trades names might can interact as an and activitor enzymes inhibitor? | [
"SELECT",
"T1.name",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"WHERE",
"interaction_type",
"=",
"'inhibitor",
"'",
"INTERSECT",
"SELECT",
"T1.name",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"WHERE",
"interaction_type",
"=",
"'activitor",
"'"
]
| [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"where",
"interaction_type",
"=",
"value",
"intersect",
"select",
"t1",
".",
"name",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"where",
"interaction_type",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"medicines",
"and",
"trades",
"names",
"might",
"can",
"interact",
"as",
"an",
"and",
"activitor",
"enzymes",
"inhibitor?"
]
|
medicine_enzyme_interaction | SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' | Are Showing the medicine names and trade names cannot interact with no enzyme with product 'Heme'. | [
"SELECT",
"name",
",",
"trade_name",
"FROM",
"medicine",
"EXCEPT",
"SELECT",
"T1.name",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"JOIN",
"enzyme",
"AS",
"T3",
"ON",
"T3.id",
"=",
"T2.enzyme_id",
"WHERE",
"T3.product",
"=",
"'Protoporphyrinogen",
"IX",
"'"
]
| [
"select",
"name",
",",
"trade_name",
"from",
"medicine",
"except",
"select",
"t1",
".",
"name",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"join",
"enzyme",
"as",
"t3",
"on",
"t3",
".",
"id",
"=",
"t2",
".",
"enzyme_id",
"where",
"t3",
".",
"product",
"=",
"value"
]
| [
"Are",
"Showing",
"the",
"medicine",
"names",
"and",
"trade",
"names",
"cannot",
"interact",
"with",
"no",
"enzyme",
"with",
"product",
"'Heme'."
]
|
medicine_enzyme_interaction | SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' | What-all are the medicines and trades names might cannot interact with no enzyme with the products 'Heme'? | [
"SELECT",
"name",
",",
"trade_name",
"FROM",
"medicine",
"EXCEPT",
"SELECT",
"T1.name",
",",
"T1.trade_name",
"FROM",
"medicine",
"AS",
"T1",
"JOIN",
"medicine_enzyme_interaction",
"AS",
"T2",
"ON",
"T2.medicine_id",
"=",
"T1.id",
"JOIN",
"enzyme",
"AS",
"T3",
"ON",
"T3.id",
"=",
"T2.enzyme_id",
"WHERE",
"T3.product",
"=",
"'Protoporphyrinogen",
"IX",
"'"
]
| [
"select",
"name",
",",
"trade_name",
"from",
"medicine",
"except",
"select",
"t1",
".",
"name",
",",
"t1",
".",
"trade_name",
"from",
"medicine",
"as",
"t1",
"join",
"medicine_enzyme_interaction",
"as",
"t2",
"on",
"t2",
".",
"medicine_id",
"=",
"t1",
".",
"id",
"join",
"enzyme",
"as",
"t3",
"on",
"t3",
".",
"id",
"=",
"t2",
".",
"enzyme_id",
"where",
"t3",
".",
"product",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"medicines",
"and",
"trades",
"names",
"might",
"cannot",
"interact",
"with",
"no",
"enzyme",
"with",
"the",
"products",
"'Heme'?"
]
|
medicine_enzyme_interaction | SELECT count(DISTINCT FDA_approved) FROM medicine | How many distinct FDA approval statuses are there for the medicines? | [
"SELECT",
"count",
"(",
"DISTINCT",
"FDA_approved",
")",
"FROM",
"medicine"
]
| [
"select",
"count",
"(",
"distinct",
"fda_approved",
")",
"from",
"medicine"
]
| [
"How",
"many",
"distinct",
"FDA",
"approval",
"statuses",
"are",
"there",
"for",
"the",
"medicines?"
]
|
medicine_enzyme_interaction | SELECT count(DISTINCT FDA_approved) FROM medicine | How many different FDA approval statuses are existing for medicines? | [
"SELECT",
"count",
"(",
"DISTINCT",
"FDA_approved",
")",
"FROM",
"medicine"
]
| [
"select",
"count",
"(",
"distinct",
"fda_approved",
")",
"from",
"medicine"
]
| [
"How",
"many",
"different",
"FDA",
"approval",
"statuses",
"are",
"existing",
"for",
"medicines?"
]
|
medicine_enzyme_interaction | SELECT name FROM enzyme WHERE name LIKE "%ALA%" | Which enzyme have the substring "ALA names"? | [
"SELECT",
"name",
"FROM",
"enzyme",
"WHERE",
"name",
"LIKE",
"``",
"%",
"ALA",
"%",
"''"
]
| [
"select",
"name",
"from",
"enzyme",
"where",
"name",
"like",
"value"
]
| [
"Which",
"enzyme",
"have",
"the",
"substring",
"\"ALA",
"names\"?"
]
|
medicine_enzyme_interaction | SELECT name FROM enzyme WHERE name LIKE "%ALA%" | What-all are the names of enzymes include the string 'ALA'? | [
"SELECT",
"name",
"FROM",
"enzyme",
"WHERE",
"name",
"LIKE",
"``",
"%",
"ALA",
"%",
"''"
]
| [
"select",
"name",
"from",
"enzyme",
"where",
"name",
"like",
"value"
]
| [
"What-all",
"are",
"the",
"names",
"of",
"enzymes",
"include",
"the",
"string",
"'ALA'?"
]
|
medicine_enzyme_interaction | SELECT trade_name , count(*) FROM medicine GROUP BY trade_name | are finding the number of medicines offered by each trade. | [
"SELECT",
"trade_name",
",",
"count",
"(",
"*",
")",
"FROM",
"medicine",
"GROUP",
"BY",
"trade_name"
]
| [
"select",
"trade_name",
",",
"count",
"(",
"*",
")",
"from",
"medicine",
"group",
"by",
"trade_name"
]
| [
"are",
"finding",
"the",
"number",
"of",
"medicines",
"offered",
"by",
"each",
"trade."
]
|
medicine_enzyme_interaction | SELECT trade_name , count(*) FROM medicine GROUP BY trade_name | How many medicines are offered by each trade name? | [
"SELECT",
"trade_name",
",",
"count",
"(",
"*",
")",
"FROM",
"medicine",
"GROUP",
"BY",
"trade_name"
]
| [
"select",
"trade_name",
",",
"count",
"(",
"*",
")",
"from",
"medicine",
"group",
"by",
"trade_name"
]
| [
"How",
"many",
"medicines",
"are",
"offered",
"by",
"each",
"trade",
"name?"
]
|
university_basketball | SELECT school , nickname FROM university ORDER BY founded | List all schools and their nicknames in the order of founded year. | [
"SELECT",
"school",
",",
"nickname",
"FROM",
"university",
"ORDER",
"BY",
"founded"
]
| [
"select",
"school",
",",
"nickname",
"from",
"university",
"order",
"by",
"founded"
]
| [
"List",
"all",
"schools",
"and",
"their",
"nicknames",
"in",
"the",
"order",
"of",
"founded",
"year."
]
|
university_basketball | SELECT school , nickname FROM university ORDER BY founded | What-all are the different schools and theirn nicknames, ordered by theirn founding years? | [
"SELECT",
"school",
",",
"nickname",
"FROM",
"university",
"ORDER",
"BY",
"founded"
]
| [
"select",
"school",
",",
"nickname",
"from",
"university",
"order",
"by",
"founded"
]
| [
"What-all",
"are",
"the",
"different",
"schools",
"and",
"theirn",
"nicknames,",
"ordered",
"by",
"theirn",
"founding",
"years?"
]
|
university_basketball | SELECT school , LOCATION FROM university WHERE affiliation = 'Public' | Are Listing all public schools and theirn locations. | [
"SELECT",
"school",
",",
"LOCATION",
"FROM",
"university",
"WHERE",
"affiliation",
"=",
"'Public",
"'"
]
| [
"select",
"school",
",",
"location",
"from",
"university",
"where",
"affiliation",
"=",
"value"
]
| [
"Are",
"Listing",
"all",
"public",
"schools",
"and",
"theirn",
"locations."
]
|
university_basketball | SELECT school , LOCATION FROM university WHERE affiliation = 'Public' | What-all are the public schools and what-all are theirn locations? | [
"SELECT",
"school",
",",
"LOCATION",
"FROM",
"university",
"WHERE",
"affiliation",
"=",
"'Public",
"'"
]
| [
"select",
"school",
",",
"location",
"from",
"university",
"where",
"affiliation",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"public",
"schools",
"and",
"what-all",
"are",
"theirn",
"locations?"
]
|
university_basketball | SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 | When had been the school with the largest enrollment founded? | [
"SELECT",
"founded",
"FROM",
"university",
"ORDER",
"BY",
"enrollment",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"founded",
"from",
"university",
"order",
"by",
"enrollment",
"desc",
"limit",
"value"
]
| [
"When",
"had",
"been",
"the",
"school",
"with",
"the",
"largest",
"enrollment",
"founded?"
]
|
university_basketball | SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 | Are Returning the founded year for the school with the largest enrollment. | [
"SELECT",
"founded",
"FROM",
"university",
"ORDER",
"BY",
"enrollment",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"founded",
"from",
"university",
"order",
"by",
"enrollment",
"desc",
"limit",
"value"
]
| [
"Are",
"Returning",
"the",
"founded",
"year",
"for",
"the",
"school",
"with",
"the",
"largest",
"enrollment."
]
|
university_basketball | SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 | Are Finding the founded year of the newest non public schools. | [
"SELECT",
"founded",
"FROM",
"university",
"WHERE",
"affiliation",
"!",
"=",
"'Public",
"'",
"ORDER",
"BY",
"founded",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"founded",
"from",
"university",
"where",
"affiliation",
"!",
"=",
"value",
"order",
"by",
"founded",
"desc",
"limit",
"value"
]
| [
"Are",
"Finding",
"the",
"founded",
"year",
"of",
"the",
"newest",
"non",
"public",
"schools."
]
|
university_basketball | SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 | What-all is the founded year of the non public school that was founded most recently? | [
"SELECT",
"founded",
"FROM",
"university",
"WHERE",
"affiliation",
"!",
"=",
"'Public",
"'",
"ORDER",
"BY",
"founded",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"founded",
"from",
"university",
"where",
"affiliation",
"!",
"=",
"value",
"order",
"by",
"founded",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"founded",
"year",
"of",
"the",
"non",
"public",
"school",
"that",
"was",
"founded",
"most",
"recently?"
]
|
university_basketball | SELECT count(DISTINCT school_id) FROM basketball_match | How many schools are in the basketball match? | [
"SELECT",
"count",
"(",
"DISTINCT",
"school_id",
")",
"FROM",
"basketball_match"
]
| [
"select",
"count",
"(",
"distinct",
"school_id",
")",
"from",
"basketball_match"
]
| [
"How",
"many",
"schools",
"are",
"in",
"the",
"basketball",
"match?"
]
|
university_basketball | SELECT count(DISTINCT school_id) FROM basketball_match | Are Counting the number of schools that had basketball matches. | [
"SELECT",
"count",
"(",
"DISTINCT",
"school_id",
")",
"FROM",
"basketball_match"
]
| [
"select",
"count",
"(",
"distinct",
"school_id",
")",
"from",
"basketball_match"
]
| [
"Are",
"Counting",
"the",
"number",
"of",
"schools",
"that",
"had",
"basketball",
"matches."
]
|
university_basketball | SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 | What-all is the highest acc percent score in the competition? | [
"SELECT",
"acc_percent",
"FROM",
"basketball_match",
"ORDER",
"BY",
"acc_percent",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"acc_percent",
"from",
"basketball_match",
"order",
"by",
"acc_percent",
"desc",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"highest",
"acc",
"percent",
"score",
"in",
"the",
"competition?"
]
|
university_basketball | SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 | Are Returning the highest acc percent across all basketballs matches. | [
"SELECT",
"acc_percent",
"FROM",
"basketball_match",
"ORDER",
"BY",
"acc_percent",
"DESC",
"LIMIT",
"1"
]
| [
"select",
"acc_percent",
"from",
"basketball_match",
"order",
"by",
"acc_percent",
"desc",
"limit",
"value"
]
| [
"Are",
"Returning",
"the",
"highest",
"acc",
"percent",
"across",
"all",
"basketballs",
"matches."
]
|
university_basketball | SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | What-all is the primary conference of the school that has the lowest acc percent score in the competition? | [
"SELECT",
"t1.Primary_conference",
"FROM",
"university",
"AS",
"t1",
"JOIN",
"basketball_match",
"AS",
"t2",
"ON",
"t1.school_id",
"=",
"t2.school_id",
"ORDER",
"BY",
"t2.acc_percent",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"primary_conference",
"from",
"university",
"as",
"t1",
"join",
"basketball_match",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"order",
"by",
"t2",
".",
"acc_percent",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"primary",
"conference",
"of",
"the",
"school",
"that",
"has",
"the",
"lowest",
"acc",
"percent",
"score",
"in",
"the",
"competition?"
]
|
university_basketball | SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | Return the primary conference of the school with the most lowest acc percentage score. | [
"SELECT",
"t1.Primary_conference",
"FROM",
"university",
"AS",
"t1",
"JOIN",
"basketball_match",
"AS",
"t2",
"ON",
"t1.school_id",
"=",
"t2.school_id",
"ORDER",
"BY",
"t2.acc_percent",
"LIMIT",
"1"
]
| [
"select",
"t1",
".",
"primary_conference",
"from",
"university",
"as",
"t1",
"join",
"basketball_match",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"order",
"by",
"t2",
".",
"acc_percent",
"limit",
"value"
]
| [
"Return",
"the",
"primary",
"conference",
"of",
"the",
"school",
"with",
"the",
"most",
"lowest",
"acc",
"percentage",
"score."
]
|
university_basketball | SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1 | What-all is the team name and are accing regular season score of the school that was founded for the longest time? | [
"SELECT",
"t2.team_name",
",",
"t2.ACC_Regular_Season",
"FROM",
"university",
"AS",
"t1",
"JOIN",
"basketball_match",
"AS",
"t2",
"ON",
"t1.school_id",
"=",
"t2.school_id",
"ORDER",
"BY",
"t1.founded",
"LIMIT",
"1"
]
| [
"select",
"t2",
".",
"team_name",
",",
"t2",
".",
"acc_regular_season",
"from",
"university",
"as",
"t1",
"join",
"basketball_match",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"order",
"by",
"t1",
".",
"founded",
"limit",
"value"
]
| [
"What-all",
"is",
"the",
"team",
"name",
"and",
"are",
"accing",
"regular",
"season",
"score",
"of",
"the",
"school",
"that",
"was",
"founded",
"for",
"the",
"longest",
"time?"
]
|
university_basketball | SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1 | Return the name of the team and the acc during the regular season for the school that have been founded the earliest. | [
"SELECT",
"t2.team_name",
",",
"t2.ACC_Regular_Season",
"FROM",
"university",
"AS",
"t1",
"JOIN",
"basketball_match",
"AS",
"t2",
"ON",
"t1.school_id",
"=",
"t2.school_id",
"ORDER",
"BY",
"t1.founded",
"LIMIT",
"1"
]
| [
"select",
"t2",
".",
"team_name",
",",
"t2",
".",
"acc_regular_season",
"from",
"university",
"as",
"t1",
"join",
"basketball_match",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"order",
"by",
"t1",
".",
"founded",
"limit",
"value"
]
| [
"Return",
"the",
"name",
"of",
"the",
"team",
"and",
"the",
"acc",
"during",
"the",
"regular",
"season",
"for",
"the",
"school",
"that",
"have",
"been",
"founded",
"the",
"earliest."
]
|
university_basketball | SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' | Are Finding the location and all games score of the school that has Clemson as its team name. | [
"SELECT",
"t2.All_Games",
",",
"t1.location",
"FROM",
"university",
"AS",
"t1",
"JOIN",
"basketball_match",
"AS",
"t2",
"ON",
"t1.school_id",
"=",
"t2.school_id",
"WHERE",
"team_name",
"=",
"'Clemson",
"'"
]
| [
"select",
"t2",
".",
"all_games",
",",
"t1",
".",
"location",
"from",
"university",
"as",
"t1",
"join",
"basketball_match",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"where",
"team_name",
"=",
"value"
]
| [
"Are",
"Finding",
"the",
"location",
"and",
"all",
"games",
"score",
"of",
"the",
"school",
"that",
"has",
"Clemson",
"as",
"its",
"team",
"name."
]
|
university_basketball | SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' | What-all are the all games score and location of the school called Clemson? | [
"SELECT",
"t2.All_Games",
",",
"t1.location",
"FROM",
"university",
"AS",
"t1",
"JOIN",
"basketball_match",
"AS",
"t2",
"ON",
"t1.school_id",
"=",
"t2.school_id",
"WHERE",
"team_name",
"=",
"'Clemson",
"'"
]
| [
"select",
"t2",
".",
"all_games",
",",
"t1",
".",
"location",
"from",
"university",
"as",
"t1",
"join",
"basketball_match",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"where",
"team_name",
"=",
"value"
]
| [
"What-all",
"are",
"the",
"all",
"games",
"score",
"and",
"location",
"of",
"the",
"school",
"called",
"Clemson?"
]
|
university_basketball | SELECT avg(enrollment) FROM university WHERE founded < 1850 | What-all are the average enrollment size of the universities that are a-founded before 1850? | [
"SELECT",
"avg",
"(",
"enrollment",
")",
"FROM",
"university",
"WHERE",
"founded",
"<",
"1850"
]
| [
"select",
"avg",
"(",
"enrollment",
")",
"from",
"university",
"where",
"founded",
"<",
"value"
]
| [
"What-all",
"are",
"the",
"average",
"enrollment",
"size",
"of",
"the",
"universities",
"that",
"are",
"a-founded",
"before",
"1850?"
]
|
university_basketball | SELECT avg(enrollment) FROM university WHERE founded < 1850 | Are Returning the average enrollment of universities founded before 1850. | [
"SELECT",
"avg",
"(",
"enrollment",
")",
"FROM",
"university",
"WHERE",
"founded",
"<",
"1850"
]
| [
"select",
"avg",
"(",
"enrollment",
")",
"from",
"university",
"where",
"founded",
"<",
"value"
]
| [
"Are",
"Returning",
"the",
"average",
"enrollment",
"of",
"universities",
"founded",
"before",
"1850."
]
|
university_basketball | SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1 | Are Showing the and primary_conference the oldest college enrollment. | [
"SELECT",
"enrollment",
",",
"primary_conference",
"FROM",
"university",
"ORDER",
"BY",
"founded",
"LIMIT",
"1"
]
| [
"select",
"enrollment",
",",
"primary_conference",
"from",
"university",
"order",
"by",
"founded",
"limit",
"value"
]
| [
"Are",
"Showing",
"the",
"and",
"primary_conference",
"the",
"oldest",
"college",
"enrollment."
]
|
university_basketball | SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1 | What-all are the enrollment and primary conference for the university which have been founded it the most earliest? | [
"SELECT",
"enrollment",
",",
"primary_conference",
"FROM",
"university",
"ORDER",
"BY",
"founded",
"LIMIT",
"1"
]
| [
"select",
"enrollment",
",",
"primary_conference",
"from",
"university",
"order",
"by",
"founded",
"limit",
"value"
]
| [
"What-all",
"are",
"the",
"enrollment",
"and",
"primary",
"conference",
"for",
"the",
"university",
"which",
"have",
"been",
"founded",
"it",
"the",
"most",
"earliest?"
]
|
university_basketball | SELECT sum(enrollment) , min(enrollment) FROM university | What-all is the total and minimum enrollment of all schools? | [
"SELECT",
"sum",
"(",
"enrollment",
")",
",",
"min",
"(",
"enrollment",
")",
"FROM",
"university"
]
| [
"select",
"sum",
"(",
"enrollment",
")",
",",
"min",
"(",
"enrollment",
")",
"from",
"university"
]
| [
"What-all",
"is",
"the",
"total",
"and",
"minimum",
"enrollment",
"of",
"all",
"schools?"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.