db_id
stringlengths 4
31
| 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
⌀ |
---|---|---|---|---|---|
manufactory_1
|
SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)
|
Find the name of companies whose revenue is greater than the average revenue of all companies.
|
[
"SELECT",
"name",
"FROM",
"manufacturers",
"WHERE",
"revenue",
">",
"(",
"SELECT",
"avg",
"(",
"revenue",
")",
"FROM",
"manufacturers",
")"
] |
[
"select",
"name",
"from",
"manufacturers",
"where",
"revenue",
">",
"(",
"select",
"avg",
"(",
"revenue",
")",
"from",
"manufacturers",
")"
] |
[
"Find",
"the",
"name",
"of",
"companies",
"whose",
"revenue",
"is",
"greater",
"than",
"the",
"average",
"revenue",
"of",
"all",
"companies",
"."
] |
manufactory_1
|
SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)
|
What are the names of manufacturers with revenue greater than the average of all revenues?
|
[
"SELECT",
"name",
"FROM",
"manufacturers",
"WHERE",
"revenue",
">",
"(",
"SELECT",
"avg",
"(",
"revenue",
")",
"FROM",
"manufacturers",
")"
] |
[
"select",
"name",
"from",
"manufacturers",
"where",
"revenue",
">",
"(",
"select",
"avg",
"(",
"revenue",
")",
"from",
"manufacturers",
")"
] |
[
"What",
"are",
"the",
"names",
"of",
"manufacturers",
"with",
"revenue",
"greater",
"than",
"the",
"average",
"of",
"all",
"revenues",
"?"
] |
manufactory_1
|
SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')
|
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
|
[
"SELECT",
"name",
"FROM",
"manufacturers",
"WHERE",
"revenue",
"<",
"(",
"SELECT",
"min",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Austin",
"'",
")"
] |
[
"select",
"name",
"from",
"manufacturers",
"where",
"revenue",
"<",
"(",
"select",
"min",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
")"
] |
[
"Find",
"the",
"name",
"of",
"companies",
"whose",
"revenue",
"is",
"smaller",
"than",
"the",
"revenue",
"of",
"all",
"companies",
"based",
"in",
"Austin",
"."
] |
manufactory_1
|
SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')
|
What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?
|
[
"SELECT",
"name",
"FROM",
"manufacturers",
"WHERE",
"revenue",
"<",
"(",
"SELECT",
"min",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Austin",
"'",
")"
] |
[
"select",
"name",
"from",
"manufacturers",
"where",
"revenue",
"<",
"(",
"select",
"min",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
")"
] |
[
"What",
"are",
"the",
"names",
"of",
"companies",
"with",
"revenue",
"less",
"than",
"the",
"lowest",
"revenue",
"of",
"any",
"manufacturer",
"in",
"Austin",
"?"
] |
manufactory_1
|
SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')
|
Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
|
[
"SELECT",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"revenue",
">",
"(",
"SELECT",
"min",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Austin",
"'",
")"
] |
[
"select",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"revenue",
">",
"(",
"select",
"min",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
")"
] |
[
"Find",
"the",
"total",
"revenue",
"of",
"companies",
"whose",
"revenue",
"is",
"larger",
"than",
"the",
"revenue",
"of",
"some",
"companies",
"based",
"in",
"Austin",
"."
] |
manufactory_1
|
SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')
|
What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?
|
[
"SELECT",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"revenue",
">",
"(",
"SELECT",
"min",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Austin",
"'",
")"
] |
[
"select",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"revenue",
">",
"(",
"select",
"min",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
")"
] |
[
"What",
"is",
"the",
"total",
"revenue",
"of",
"companies",
"with",
"revenue",
"greater",
"than",
"the",
"lowest",
"revenue",
"of",
"any",
"manufacturer",
"in",
"Austin",
"?"
] |
manufactory_1
|
SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder
|
Find the total revenue of companies of each founder.
|
[
"SELECT",
"sum",
"(",
"revenue",
")",
",",
"founder",
"FROM",
"manufacturers",
"GROUP",
"BY",
"founder"
] |
[
"select",
"sum",
"(",
"revenue",
")",
",",
"founder",
"from",
"manufacturers",
"group",
"by",
"founder"
] |
[
"Find",
"the",
"total",
"revenue",
"of",
"companies",
"of",
"each",
"founder",
"."
] |
manufactory_1
|
SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder
|
What is the total revenue of companies started by founder?
|
[
"SELECT",
"sum",
"(",
"revenue",
")",
",",
"founder",
"FROM",
"manufacturers",
"GROUP",
"BY",
"founder"
] |
[
"select",
"sum",
"(",
"revenue",
")",
",",
"founder",
"from",
"manufacturers",
"group",
"by",
"founder"
] |
[
"What",
"is",
"the",
"total",
"revenue",
"of",
"companies",
"started",
"by",
"founder",
"?"
] |
manufactory_1
|
SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter
|
Find the name and revenue of the company that earns the highest revenue in each city.
|
[
"SELECT",
"name",
",",
"max",
"(",
"revenue",
")",
",",
"Headquarter",
"FROM",
"manufacturers",
"GROUP",
"BY",
"Headquarter"
] |
[
"select",
"name",
",",
"max",
"(",
"revenue",
")",
",",
"headquarter",
"from",
"manufacturers",
"group",
"by",
"headquarter"
] |
[
"Find",
"the",
"name",
"and",
"revenue",
"of",
"the",
"company",
"that",
"earns",
"the",
"highest",
"revenue",
"in",
"each",
"city",
"."
] |
manufactory_1
|
SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter
|
What are the names and revenues of the companies with the highest revenues in each headquarter city?
|
[
"SELECT",
"name",
",",
"max",
"(",
"revenue",
")",
",",
"Headquarter",
"FROM",
"manufacturers",
"GROUP",
"BY",
"Headquarter"
] |
[
"select",
"name",
",",
"max",
"(",
"revenue",
")",
",",
"headquarter",
"from",
"manufacturers",
"group",
"by",
"headquarter"
] |
[
"What",
"are",
"the",
"names",
"and",
"revenues",
"of",
"the",
"companies",
"with",
"the",
"highest",
"revenues",
"in",
"each",
"headquarter",
"city",
"?"
] |
manufactory_1
|
SELECT sum(revenue) , name FROM manufacturers GROUP BY name
|
Find the total revenue for each manufacturer.
|
[
"SELECT",
"sum",
"(",
"revenue",
")",
",",
"name",
"FROM",
"manufacturers",
"GROUP",
"BY",
"name"
] |
[
"select",
"sum",
"(",
"revenue",
")",
",",
"name",
"from",
"manufacturers",
"group",
"by",
"name"
] |
[
"Find",
"the",
"total",
"revenue",
"for",
"each",
"manufacturer",
"."
] |
manufactory_1
|
SELECT sum(revenue) , name FROM manufacturers GROUP BY name
|
What is the total revenue of each manufacturer?
|
[
"SELECT",
"sum",
"(",
"revenue",
")",
",",
"name",
"FROM",
"manufacturers",
"GROUP",
"BY",
"name"
] |
[
"select",
"sum",
"(",
"revenue",
")",
",",
"name",
"from",
"manufacturers",
"group",
"by",
"name"
] |
[
"What",
"is",
"the",
"total",
"revenue",
"of",
"each",
"manufacturer",
"?"
] |
manufactory_1
|
SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
|
Find the average prices of all products from each manufacture, and list each company's name.
|
[
"SELECT",
"avg",
"(",
"T1.price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"avg",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"Find",
"the",
"average",
"prices",
"of",
"all",
"products",
"from",
"each",
"manufacture",
",",
"and",
"list",
"each",
"company",
"'s",
"name",
"."
] |
manufactory_1
|
SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
|
What are the average prices of products for each manufacturer?
|
[
"SELECT",
"avg",
"(",
"T1.price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"avg",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"What",
"are",
"the",
"average",
"prices",
"of",
"products",
"for",
"each",
"manufacturer",
"?"
] |
manufactory_1
|
SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter
|
Find the number of different products that are produced by companies at different headquarter cities.
|
[
"SELECT",
"count",
"(",
"DISTINCT",
"T1.name",
")",
",",
"T2.Headquarter",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.Headquarter"
] |
[
"select",
"count",
"(",
"distinct",
"t1",
".",
"name",
")",
",",
"t2",
".",
"headquarter",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"headquarter"
] |
[
"Find",
"the",
"number",
"of",
"different",
"products",
"that",
"are",
"produced",
"by",
"companies",
"at",
"different",
"headquarter",
"cities",
"."
] |
manufactory_1
|
SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter
|
How many different products are produced in each headquarter city?
|
[
"SELECT",
"count",
"(",
"DISTINCT",
"T1.name",
")",
",",
"T2.Headquarter",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.Headquarter"
] |
[
"select",
"count",
"(",
"distinct",
"t1",
".",
"name",
")",
",",
"t2",
".",
"headquarter",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"headquarter"
] |
[
"How",
"many",
"different",
"products",
"are",
"produced",
"in",
"each",
"headquarter",
"city",
"?"
] |
manufactory_1
|
SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')
|
Find number of products which Sony does not make.
|
[
"SELECT",
"count",
"(",
"DISTINCT",
"name",
")",
"FROM",
"products",
"WHERE",
"name",
"NOT",
"IN",
"(",
"SELECT",
"T1.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"WHERE",
"T2.name",
"=",
"'Sony",
"'",
")"
] |
[
"select",
"count",
"(",
"distinct",
"name",
")",
"from",
"products",
"where",
"name",
"not",
"in",
"(",
"select",
"t1",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t2",
".",
"name",
"=",
"value",
")"
] |
[
"Find",
"number",
"of",
"products",
"which",
"Sony",
"does",
"not",
"make",
"."
] |
manufactory_1
|
SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')
|
How many products are not made by Sony?
|
[
"SELECT",
"count",
"(",
"DISTINCT",
"name",
")",
"FROM",
"products",
"WHERE",
"name",
"NOT",
"IN",
"(",
"SELECT",
"T1.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"WHERE",
"T2.name",
"=",
"'Sony",
"'",
")"
] |
[
"select",
"count",
"(",
"distinct",
"name",
")",
"from",
"products",
"where",
"name",
"not",
"in",
"(",
"select",
"t1",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t2",
".",
"name",
"=",
"value",
")"
] |
[
"How",
"many",
"products",
"are",
"not",
"made",
"by",
"Sony",
"?"
] |
manufactory_1
|
SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'
|
Find the name of companies that do not make DVD drive.
|
[
"SELECT",
"name",
"FROM",
"manufacturers",
"EXCEPT",
"SELECT",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"WHERE",
"T1.name",
"=",
"'DVD",
"drive",
"'"
] |
[
"select",
"name",
"from",
"manufacturers",
"except",
"select",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t1",
".",
"name",
"=",
"value"
] |
[
"Find",
"the",
"name",
"of",
"companies",
"that",
"do",
"not",
"make",
"DVD",
"drive",
"."
] |
manufactory_1
|
SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'
|
What are the names of companies that do not make DVD drives?
|
[
"SELECT",
"name",
"FROM",
"manufacturers",
"EXCEPT",
"SELECT",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"WHERE",
"T1.name",
"=",
"'DVD",
"drive",
"'"
] |
[
"select",
"name",
"from",
"manufacturers",
"except",
"select",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t1",
".",
"name",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"companies",
"that",
"do",
"not",
"make",
"DVD",
"drives",
"?"
] |
manufactory_1
|
SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
|
Find the number of products for each manufacturer, showing the name of each company.
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"Find",
"the",
"number",
"of",
"products",
"for",
"each",
"manufacturer",
",",
"showing",
"the",
"name",
"of",
"each",
"company",
"."
] |
manufactory_1
|
SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
|
How many products are there for each manufacturer?
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"manufacturers",
"AS",
"T2",
"ON",
"T1.Manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"How",
"many",
"products",
"are",
"there",
"for",
"each",
"manufacturer",
"?"
] |
manufactory_1
|
SELECT Name FROM Products
|
Select the names of all the products in the store.
|
[
"SELECT",
"Name",
"FROM",
"Products"
] |
[
"select",
"name",
"from",
"products"
] |
[
"Select",
"the",
"names",
"of",
"all",
"the",
"products",
"in",
"the",
"store",
"."
] |
manufactory_1
|
SELECT Name FROM Products
|
What are the names of all products?
|
[
"SELECT",
"Name",
"FROM",
"Products"
] |
[
"select",
"name",
"from",
"products"
] |
[
"What",
"are",
"the",
"names",
"of",
"all",
"products",
"?"
] |
manufactory_1
|
SELECT name , price FROM products
|
Select the names and the prices of all the products in the store.
|
[
"SELECT",
"name",
",",
"price",
"FROM",
"products"
] |
[
"select",
"name",
",",
"price",
"from",
"products"
] |
[
"Select",
"the",
"names",
"and",
"the",
"prices",
"of",
"all",
"the",
"products",
"in",
"the",
"store",
"."
] |
manufactory_1
|
SELECT name , price FROM products
|
What are the names and prices of all products in the store?
|
[
"SELECT",
"name",
",",
"price",
"FROM",
"products"
] |
[
"select",
"name",
",",
"price",
"from",
"products"
] |
[
"What",
"are",
"the",
"names",
"and",
"prices",
"of",
"all",
"products",
"in",
"the",
"store",
"?"
] |
manufactory_1
|
SELECT name FROM products WHERE price <= 200
|
Select the name of the products with a price less than or equal to $200.
|
[
"SELECT",
"name",
"FROM",
"products",
"WHERE",
"price",
"<",
"=",
"200"
] |
[
"select",
"name",
"from",
"products",
"where",
"price",
"<",
"=",
"value"
] |
[
"Select",
"the",
"name",
"of",
"the",
"products",
"with",
"a",
"price",
"less",
"than",
"or",
"equal",
"to",
"$",
"200",
"."
] |
manufactory_1
|
SELECT name FROM products WHERE price <= 200
|
What are the names of products with price at most 200?
|
[
"SELECT",
"name",
"FROM",
"products",
"WHERE",
"price",
"<",
"=",
"200"
] |
[
"select",
"name",
"from",
"products",
"where",
"price",
"<",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"products",
"with",
"price",
"at",
"most",
"200",
"?"
] |
manufactory_1
|
SELECT * FROM products WHERE price BETWEEN 60 AND 120
|
Find all information of all the products with a price between $60 and $120.
|
[
"SELECT",
"*",
"FROM",
"products",
"WHERE",
"price",
"BETWEEN",
"60",
"AND",
"120"
] |
[
"select",
"*",
"from",
"products",
"where",
"price",
"between",
"value",
"and",
"value"
] |
[
"Find",
"all",
"information",
"of",
"all",
"the",
"products",
"with",
"a",
"price",
"between",
"$",
"60",
"and",
"$",
"120",
"."
] |
manufactory_1
|
SELECT * FROM products WHERE price BETWEEN 60 AND 120
|
What is all the information of all the products that have a price between 60 and 120?
|
[
"SELECT",
"*",
"FROM",
"products",
"WHERE",
"price",
"BETWEEN",
"60",
"AND",
"120"
] |
[
"select",
"*",
"from",
"products",
"where",
"price",
"between",
"value",
"and",
"value"
] |
[
"What",
"is",
"all",
"the",
"information",
"of",
"all",
"the",
"products",
"that",
"have",
"a",
"price",
"between",
"60",
"and",
"120",
"?"
] |
manufactory_1
|
SELECT avg(price) FROM products
|
Compute the average price of all the products.
|
[
"SELECT",
"avg",
"(",
"price",
")",
"FROM",
"products"
] |
[
"select",
"avg",
"(",
"price",
")",
"from",
"products"
] |
[
"Compute",
"the",
"average",
"price",
"of",
"all",
"the",
"products",
"."
] |
manufactory_1
|
SELECT avg(price) FROM products
|
What is the average price across all products?
|
[
"SELECT",
"avg",
"(",
"price",
")",
"FROM",
"products"
] |
[
"select",
"avg",
"(",
"price",
")",
"from",
"products"
] |
[
"What",
"is",
"the",
"average",
"price",
"across",
"all",
"products",
"?"
] |
manufactory_1
|
SELECT avg(price) FROM products WHERE Manufacturer = 2
|
Compute the average price of all products with manufacturer code equal to 2.
|
[
"SELECT",
"avg",
"(",
"price",
")",
"FROM",
"products",
"WHERE",
"Manufacturer",
"=",
"2"
] |
[
"select",
"avg",
"(",
"price",
")",
"from",
"products",
"where",
"manufacturer",
"=",
"value"
] |
[
"Compute",
"the",
"average",
"price",
"of",
"all",
"products",
"with",
"manufacturer",
"code",
"equal",
"to",
"2",
"."
] |
manufactory_1
|
SELECT avg(price) FROM products WHERE Manufacturer = 2
|
What is the average price of products with manufacturer codes equal to 2?
|
[
"SELECT",
"avg",
"(",
"price",
")",
"FROM",
"products",
"WHERE",
"Manufacturer",
"=",
"2"
] |
[
"select",
"avg",
"(",
"price",
")",
"from",
"products",
"where",
"manufacturer",
"=",
"value"
] |
[
"What",
"is",
"the",
"average",
"price",
"of",
"products",
"with",
"manufacturer",
"codes",
"equal",
"to",
"2",
"?"
] |
manufactory_1
|
SELECT count(*) FROM products WHERE price >= 180
|
Compute the number of products with a price larger than or equal to $180.
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"products",
"WHERE",
"price",
">",
"=",
"180"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"products",
"where",
"price",
">",
"=",
"value"
] |
[
"Compute",
"the",
"number",
"of",
"products",
"with",
"a",
"price",
"larger",
"than",
"or",
"equal",
"to",
"$",
"180",
"."
] |
manufactory_1
|
SELECT count(*) FROM products WHERE price >= 180
|
How many products have prices of at least 180?
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"products",
"WHERE",
"price",
">",
"=",
"180"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"products",
"where",
"price",
">",
"=",
"value"
] |
[
"How",
"many",
"products",
"have",
"prices",
"of",
"at",
"least",
"180",
"?"
] |
manufactory_1
|
SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC
|
Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).
|
[
"SELECT",
"name",
",",
"price",
"FROM",
"products",
"WHERE",
"price",
">",
"=",
"180",
"ORDER",
"BY",
"price",
"DESC",
",",
"name",
"ASC"
] |
[
"select",
"name",
",",
"price",
"from",
"products",
"where",
"price",
">",
"=",
"value",
"order",
"by",
"price",
"desc",
",",
"name",
"asc"
] |
[
"Select",
"the",
"name",
"and",
"price",
"of",
"all",
"products",
"with",
"a",
"price",
"larger",
"than",
"or",
"equal",
"to",
"$",
"180",
",",
"and",
"sort",
"first",
"by",
"price",
"(",
"in",
"descending",
"order",
")",
",",
"and",
"then",
"by",
"name",
"(",
"in",
"ascending",
"order",
")",
"."
] |
manufactory_1
|
SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC
|
What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?
|
[
"SELECT",
"name",
",",
"price",
"FROM",
"products",
"WHERE",
"price",
">",
"=",
"180",
"ORDER",
"BY",
"price",
"DESC",
",",
"name",
"ASC"
] |
[
"select",
"name",
",",
"price",
"from",
"products",
"where",
"price",
">",
"=",
"value",
"order",
"by",
"price",
"desc",
",",
"name",
"asc"
] |
[
"What",
"are",
"the",
"names",
"and",
"prices",
"of",
"products",
"that",
"cost",
"at",
"least",
"180",
",",
"sorted",
"by",
"price",
"decreasing",
"and",
"name",
"ascending",
"?"
] |
manufactory_1
|
SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code
|
Select all the data from the products and each product's manufacturer.
|
[
"SELECT",
"*",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code"
] |
[
"select",
"*",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code"
] |
[
"Select",
"all",
"the",
"data",
"from",
"the",
"products",
"and",
"each",
"product",
"'s",
"manufacturer",
"."
] |
manufactory_1
|
SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code
|
What is all the product data, as well as each product's manufacturer?
|
[
"SELECT",
"*",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code"
] |
[
"select",
"*",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code"
] |
[
"What",
"is",
"all",
"the",
"product",
"data",
",",
"as",
"well",
"as",
"each",
"product",
"'s",
"manufacturer",
"?"
] |
manufactory_1
|
SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer
|
Select the average price of each manufacturer's products, showing only the manufacturer's code.
|
[
"SELECT",
"AVG",
"(",
"Price",
")",
",",
"Manufacturer",
"FROM",
"Products",
"GROUP",
"BY",
"Manufacturer"
] |
[
"select",
"avg",
"(",
"price",
")",
",",
"manufacturer",
"from",
"products",
"group",
"by",
"manufacturer"
] |
[
"Select",
"the",
"average",
"price",
"of",
"each",
"manufacturer",
"'s",
"products",
",",
"showing",
"only",
"the",
"manufacturer",
"'s",
"code",
"."
] |
manufactory_1
|
SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer
|
What are the average prices of products, grouped by manufacturer code?
|
[
"SELECT",
"AVG",
"(",
"Price",
")",
",",
"Manufacturer",
"FROM",
"Products",
"GROUP",
"BY",
"Manufacturer"
] |
[
"select",
"avg",
"(",
"price",
")",
",",
"manufacturer",
"from",
"products",
"group",
"by",
"manufacturer"
] |
[
"What",
"are",
"the",
"average",
"prices",
"of",
"products",
",",
"grouped",
"by",
"manufacturer",
"code",
"?"
] |
manufactory_1
|
SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
|
Select the average price of each manufacturer's products, showing the manufacturer's name.
|
[
"SELECT",
"avg",
"(",
"T1.Price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"avg",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"Select",
"the",
"average",
"price",
"of",
"each",
"manufacturer",
"'s",
"products",
",",
"showing",
"the",
"manufacturer",
"'s",
"name",
"."
] |
manufactory_1
|
SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
|
What are the average prices of products, grouped by manufacturer name?
|
[
"SELECT",
"avg",
"(",
"T1.Price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"avg",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"What",
"are",
"the",
"average",
"prices",
"of",
"products",
",",
"grouped",
"by",
"manufacturer",
"name",
"?"
] |
manufactory_1
|
SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150
|
Select the names of manufacturer whose products have an average price higher than or equal to $150.
|
[
"SELECT",
"avg",
"(",
"T1.Price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name",
"HAVING",
"avg",
"(",
"T1.price",
")",
">",
"=",
"150"
] |
[
"select",
"avg",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name",
"having",
"avg",
"(",
"t1",
".",
"price",
")",
">",
"=",
"value"
] |
[
"Select",
"the",
"names",
"of",
"manufacturer",
"whose",
"products",
"have",
"an",
"average",
"price",
"higher",
"than",
"or",
"equal",
"to",
"$",
"150",
"."
] |
manufactory_1
|
SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150
|
What are the names and average prices of products for manufacturers whose products cost on average 150 or more?
|
[
"SELECT",
"avg",
"(",
"T1.Price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name",
"HAVING",
"avg",
"(",
"T1.price",
")",
">",
"=",
"150"
] |
[
"select",
"avg",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name",
"having",
"avg",
"(",
"t1",
".",
"price",
")",
">",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"and",
"average",
"prices",
"of",
"products",
"for",
"manufacturers",
"whose",
"products",
"cost",
"on",
"average",
"150",
"or",
"more",
"?"
] |
manufactory_1
|
SELECT name , price FROM Products ORDER BY price ASC LIMIT 1
|
Select the name and price of the cheapest product.
|
[
"SELECT",
"name",
",",
"price",
"FROM",
"Products",
"ORDER",
"BY",
"price",
"ASC",
"LIMIT",
"1"
] |
[
"select",
"name",
",",
"price",
"from",
"products",
"order",
"by",
"price",
"asc",
"limit",
"value"
] |
[
"Select",
"the",
"name",
"and",
"price",
"of",
"the",
"cheapest",
"product",
"."
] |
manufactory_1
|
SELECT name , price FROM Products ORDER BY price ASC LIMIT 1
|
What is the name and price of the cheapest product?
|
[
"SELECT",
"name",
",",
"price",
"FROM",
"Products",
"ORDER",
"BY",
"price",
"ASC",
"LIMIT",
"1"
] |
[
"select",
"name",
",",
"price",
"from",
"products",
"order",
"by",
"price",
"asc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"name",
"and",
"price",
"of",
"the",
"cheapest",
"product",
"?"
] |
manufactory_1
|
SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
|
Select the name of each manufacturer along with the name and price of its most expensive product.
|
[
"SELECT",
"T1.Name",
",",
"max",
"(",
"T1.Price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"t1",
".",
"name",
",",
"max",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"Select",
"the",
"name",
"of",
"each",
"manufacturer",
"along",
"with",
"the",
"name",
"and",
"price",
"of",
"its",
"most",
"expensive",
"product",
"."
] |
manufactory_1
|
SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
|
For each manufacturer name, what are the names and prices of their most expensive product?
|
[
"SELECT",
"T1.Name",
",",
"max",
"(",
"T1.Price",
")",
",",
"T2.name",
"FROM",
"products",
"AS",
"T1",
"JOIN",
"Manufacturers",
"AS",
"T2",
"ON",
"T1.manufacturer",
"=",
"T2.code",
"GROUP",
"BY",
"T2.name"
] |
[
"select",
"t1",
".",
"name",
",",
"max",
"(",
"t1",
".",
"price",
")",
",",
"t2",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"group",
"by",
"t2",
".",
"name"
] |
[
"For",
"each",
"manufacturer",
"name",
",",
"what",
"are",
"the",
"names",
"and",
"prices",
"of",
"their",
"most",
"expensive",
"product",
"?"
] |
manufactory_1
|
SELECT code , name , min(price) FROM products GROUP BY name
|
Select the code of the product that is cheapest in each product category.
|
[
"SELECT",
"code",
",",
"name",
",",
"min",
"(",
"price",
")",
"FROM",
"products",
"GROUP",
"BY",
"name"
] |
[
"select",
"code",
",",
"name",
",",
"min",
"(",
"price",
")",
"from",
"products",
"group",
"by",
"name"
] |
[
"Select",
"the",
"code",
"of",
"the",
"product",
"that",
"is",
"cheapest",
"in",
"each",
"product",
"category",
"."
] |
manufactory_1
|
SELECT code , name , min(price) FROM products GROUP BY name
|
What are the codes and names of the cheapest products in each category?
|
[
"SELECT",
"code",
",",
"name",
",",
"min",
"(",
"price",
")",
"FROM",
"products",
"GROUP",
"BY",
"name"
] |
[
"select",
"code",
",",
"name",
",",
"min",
"(",
"price",
")",
"from",
"products",
"group",
"by",
"name"
] |
[
"What",
"are",
"the",
"codes",
"and",
"names",
"of",
"the",
"cheapest",
"products",
"in",
"each",
"category",
"?"
] |
tracking_software_problems
|
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
|
What is the id of the problem log that is created most recently?
|
[
"SELECT",
"problem_log_id",
"FROM",
"problem_log",
"ORDER",
"BY",
"log_entry_date",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"problem_log_id",
"from",
"problem_log",
"order",
"by",
"log_entry_date",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"id",
"of",
"the",
"problem",
"log",
"that",
"is",
"created",
"most",
"recently",
"?"
] |
tracking_software_problems
|
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
|
Which problem log was created most recently? Give me the log id.
|
[
"SELECT",
"problem_log_id",
"FROM",
"problem_log",
"ORDER",
"BY",
"log_entry_date",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"problem_log_id",
"from",
"problem_log",
"order",
"by",
"log_entry_date",
"desc",
"limit",
"value"
] |
[
"Which",
"problem",
"log",
"was",
"created",
"most",
"recently",
"?",
"Give",
"me",
"the",
"log",
"id",
"."
] |
tracking_software_problems
|
SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
|
What is the oldest log id and its corresponding problem id?
|
[
"SELECT",
"problem_log_id",
",",
"problem_id",
"FROM",
"problem_log",
"ORDER",
"BY",
"log_entry_date",
"LIMIT",
"1"
] |
[
"select",
"problem_log_id",
",",
"problem_id",
"from",
"problem_log",
"order",
"by",
"log_entry_date",
"limit",
"value"
] |
[
"What",
"is",
"the",
"oldest",
"log",
"id",
"and",
"its",
"corresponding",
"problem",
"id",
"?"
] |
tracking_software_problems
|
SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
|
Find the oldest log id and its corresponding problem id.
|
[
"SELECT",
"problem_log_id",
",",
"problem_id",
"FROM",
"problem_log",
"ORDER",
"BY",
"log_entry_date",
"LIMIT",
"1"
] |
[
"select",
"problem_log_id",
",",
"problem_id",
"from",
"problem_log",
"order",
"by",
"log_entry_date",
"limit",
"value"
] |
[
"Find",
"the",
"oldest",
"log",
"id",
"and",
"its",
"corresponding",
"problem",
"id",
"."
] |
tracking_software_problems
|
SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10
|
Find all the ids and dates of the logs for the problem whose id is 10.
|
[
"SELECT",
"problem_log_id",
",",
"log_entry_date",
"FROM",
"problem_log",
"WHERE",
"problem_id",
"=",
"10"
] |
[
"select",
"problem_log_id",
",",
"log_entry_date",
"from",
"problem_log",
"where",
"problem_id",
"=",
"value"
] |
[
"Find",
"all",
"the",
"ids",
"and",
"dates",
"of",
"the",
"logs",
"for",
"the",
"problem",
"whose",
"id",
"is",
"10",
"."
] |
tracking_software_problems
|
SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10
|
For the problem with id 10, return the ids and dates of its problem logs.
|
[
"SELECT",
"problem_log_id",
",",
"log_entry_date",
"FROM",
"problem_log",
"WHERE",
"problem_id",
"=",
"10"
] |
[
"select",
"problem_log_id",
",",
"log_entry_date",
"from",
"problem_log",
"where",
"problem_id",
"=",
"value"
] |
[
"For",
"the",
"problem",
"with",
"id",
"10",
",",
"return",
"the",
"ids",
"and",
"dates",
"of",
"its",
"problem",
"logs",
"."
] |
tracking_software_problems
|
SELECT problem_log_id , log_entry_description FROM problem_log
|
List all the log ids and their descriptions from the problem logs.
|
[
"SELECT",
"problem_log_id",
",",
"log_entry_description",
"FROM",
"problem_log"
] |
[
"select",
"problem_log_id",
",",
"log_entry_description",
"from",
"problem_log"
] |
[
"List",
"all",
"the",
"log",
"ids",
"and",
"their",
"descriptions",
"from",
"the",
"problem",
"logs",
"."
] |
tracking_software_problems
|
SELECT problem_log_id , log_entry_description FROM problem_log
|
What are the log id and entry description of each problem?
|
[
"SELECT",
"problem_log_id",
",",
"log_entry_description",
"FROM",
"problem_log"
] |
[
"select",
"problem_log_id",
",",
"log_entry_description",
"from",
"problem_log"
] |
[
"What",
"are",
"the",
"log",
"id",
"and",
"entry",
"description",
"of",
"each",
"problem",
"?"
] |
tracking_software_problems
|
SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
|
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
|
[
"SELECT",
"DISTINCT",
"staff_first_name",
",",
"staff_last_name",
"FROM",
"staff",
"AS",
"T1",
"JOIN",
"problem_log",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.assigned_to_staff_id",
"WHERE",
"T2.problem_id",
"=",
"1"
] |
[
"select",
"distinct",
"staff_first_name",
",",
"staff_last_name",
"from",
"staff",
"as",
"t1",
"join",
"problem_log",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"assigned_to_staff_id",
"where",
"t2",
".",
"problem_id",
"=",
"value"
] |
[
"List",
"the",
"first",
"and",
"last",
"names",
"of",
"all",
"distinct",
"staff",
"members",
"who",
"are",
"assigned",
"to",
"the",
"problem",
"whose",
"id",
"is",
"1",
"."
] |
tracking_software_problems
|
SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
|
Which staff members are assigned to the problem with id 1? Give me their first and last names.
|
[
"SELECT",
"DISTINCT",
"staff_first_name",
",",
"staff_last_name",
"FROM",
"staff",
"AS",
"T1",
"JOIN",
"problem_log",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.assigned_to_staff_id",
"WHERE",
"T2.problem_id",
"=",
"1"
] |
[
"select",
"distinct",
"staff_first_name",
",",
"staff_last_name",
"from",
"staff",
"as",
"t1",
"join",
"problem_log",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"assigned_to_staff_id",
"where",
"t2",
".",
"problem_id",
"=",
"value"
] |
[
"Which",
"staff",
"members",
"are",
"assigned",
"to",
"the",
"problem",
"with",
"id",
"1",
"?",
"Give",
"me",
"their",
"first",
"and",
"last",
"names",
"."
] |
tracking_software_problems
|
SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
|
List the problem id and log id which are assigned to the staff named Rylan Homenick.
|
[
"SELECT",
"DISTINCT",
"T2.problem_id",
",",
"T2.problem_log_id",
"FROM",
"staff",
"AS",
"T1",
"JOIN",
"problem_log",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.assigned_to_staff_id",
"WHERE",
"T1.staff_first_name",
"=",
"``",
"Rylan",
"''",
"AND",
"T1.staff_last_name",
"=",
"``",
"Homenick",
"''"
] |
[
"select",
"distinct",
"t2",
".",
"problem_id",
",",
"t2",
".",
"problem_log_id",
"from",
"staff",
"as",
"t1",
"join",
"problem_log",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"assigned_to_staff_id",
"where",
"t1",
".",
"staff_first_name",
"=",
"value",
"and",
"t1",
".",
"staff_last_name",
"=",
"value"
] |
[
"List",
"the",
"problem",
"id",
"and",
"log",
"id",
"which",
"are",
"assigned",
"to",
"the",
"staff",
"named",
"Rylan",
"Homenick",
"."
] |
tracking_software_problems
|
SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
|
Which problem id and log id are assigned to the staff named Rylan Homenick?
|
[
"SELECT",
"DISTINCT",
"T2.problem_id",
",",
"T2.problem_log_id",
"FROM",
"staff",
"AS",
"T1",
"JOIN",
"problem_log",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.assigned_to_staff_id",
"WHERE",
"T1.staff_first_name",
"=",
"``",
"Rylan",
"''",
"AND",
"T1.staff_last_name",
"=",
"``",
"Homenick",
"''"
] |
[
"select",
"distinct",
"t2",
".",
"problem_id",
",",
"t2",
".",
"problem_log_id",
"from",
"staff",
"as",
"t1",
"join",
"problem_log",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"assigned_to_staff_id",
"where",
"t1",
".",
"staff_first_name",
"=",
"value",
"and",
"t1",
".",
"staff_last_name",
"=",
"value"
] |
[
"Which",
"problem",
"id",
"and",
"log",
"id",
"are",
"assigned",
"to",
"the",
"staff",
"named",
"Rylan",
"Homenick",
"?"
] |
tracking_software_problems
|
SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem"
|
How many problems are there for product voluptatem?
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"product",
"AS",
"T1",
"JOIN",
"problems",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"WHERE",
"T1.product_name",
"=",
"``",
"voluptatem",
"''"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"product",
"as",
"t1",
"join",
"problems",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"where",
"t1",
".",
"product_name",
"=",
"value"
] |
[
"How",
"many",
"problems",
"are",
"there",
"for",
"product",
"voluptatem",
"?"
] |
tracking_software_problems
|
SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem"
|
How many problems did the product called "voluptatem" have in record?
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"product",
"AS",
"T1",
"JOIN",
"problems",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"WHERE",
"T1.product_name",
"=",
"``",
"voluptatem",
"''"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"product",
"as",
"t1",
"join",
"problems",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"where",
"t1",
".",
"product_name",
"=",
"value"
] |
[
"How",
"many",
"problems",
"did",
"the",
"product",
"called",
"``",
"voluptatem",
"''",
"have",
"in",
"record",
"?"
] |
tracking_software_problems
|
SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1
|
How many problems does the product with the most problems have? List the number of the problems and product name.
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.product_name",
"FROM",
"product",
"AS",
"T1",
"JOIN",
"problems",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"GROUP",
"BY",
"T1.product_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"product_name",
"from",
"product",
"as",
"t1",
"join",
"problems",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t1",
".",
"product_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"How",
"many",
"problems",
"does",
"the",
"product",
"with",
"the",
"most",
"problems",
"have",
"?",
"List",
"the",
"number",
"of",
"the",
"problems",
"and",
"product",
"name",
"."
] |
tracking_software_problems
|
SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1
|
Which product has the most problems? Give me the number of problems and the product name.
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.product_name",
"FROM",
"product",
"AS",
"T1",
"JOIN",
"problems",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"GROUP",
"BY",
"T1.product_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"product_name",
"from",
"product",
"as",
"t1",
"join",
"problems",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t1",
".",
"product_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"Which",
"product",
"has",
"the",
"most",
"problems",
"?",
"Give",
"me",
"the",
"number",
"of",
"problems",
"and",
"the",
"product",
"name",
"."
] |
tracking_software_problems
|
SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"
|
Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.
|
[
"SELECT",
"T1.problem_description",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Christop",
"''"
] |
[
"select",
"t1",
".",
"problem_description",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value"
] |
[
"Give",
"me",
"a",
"list",
"of",
"descriptions",
"of",
"the",
"problems",
"that",
"are",
"reported",
"by",
"the",
"staff",
"whose",
"first",
"name",
"is",
"Christop",
"."
] |
tracking_software_problems
|
SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"
|
Which problems are reported by the staff with first name "Christop"? Show the descriptions of the problems.
|
[
"SELECT",
"T1.problem_description",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Christop",
"''"
] |
[
"select",
"t1",
".",
"problem_description",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value"
] |
[
"Which",
"problems",
"are",
"reported",
"by",
"the",
"staff",
"with",
"first",
"name",
"``",
"Christop",
"''",
"?",
"Show",
"the",
"descriptions",
"of",
"the",
"problems",
"."
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
|
Find the ids of the problems that are reported by the staff whose last name is Bosco.
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_last_name",
"=",
"``",
"Bosco",
"''"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_last_name",
"=",
"value"
] |
[
"Find",
"the",
"ids",
"of",
"the",
"problems",
"that",
"are",
"reported",
"by",
"the",
"staff",
"whose",
"last",
"name",
"is",
"Bosco",
"."
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
|
Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems.
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_last_name",
"=",
"``",
"Bosco",
"''"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_last_name",
"=",
"value"
] |
[
"Which",
"problems",
"are",
"reported",
"by",
"the",
"staff",
"with",
"last",
"name",
"``",
"Bosco",
"''",
"?",
"Show",
"the",
"ids",
"of",
"the",
"problems",
"."
] |
tracking_software_problems
|
SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26"
|
What are the ids of the problems which are reported after 1978-06-26?
|
[
"SELECT",
"problem_id",
"FROM",
"problems",
"WHERE",
"date_problem_reported",
">",
"``",
"1978-06-26",
"''"
] |
[
"select",
"problem_id",
"from",
"problems",
"where",
"date_problem_reported",
">",
"value"
] |
[
"What",
"are",
"the",
"ids",
"of",
"the",
"problems",
"which",
"are",
"reported",
"after",
"1978-06-26",
"?"
] |
tracking_software_problems
|
SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26"
|
Find the ids of the problems reported after 1978-06-26.
|
[
"SELECT",
"problem_id",
"FROM",
"problems",
"WHERE",
"date_problem_reported",
">",
"``",
"1978-06-26",
"''"
] |
[
"select",
"problem_id",
"from",
"problems",
"where",
"date_problem_reported",
">",
"value"
] |
[
"Find",
"the",
"ids",
"of",
"the",
"problems",
"reported",
"after",
"1978-06-26",
"."
] |
tracking_software_problems
|
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
|
What are the ids of the problems which are reported before 1978-06-26?
|
[
"SELECT",
"problem_id",
"FROM",
"problems",
"WHERE",
"date_problem_reported",
"<",
"``",
"1978-06-26",
"''"
] |
[
"select",
"problem_id",
"from",
"problems",
"where",
"date_problem_reported",
"<",
"value"
] |
[
"What",
"are",
"the",
"ids",
"of",
"the",
"problems",
"which",
"are",
"reported",
"before",
"1978-06-26",
"?"
] |
tracking_software_problems
|
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
|
Which problems are reported before 1978-06-26? Give me the ids of the problems.
|
[
"SELECT",
"problem_id",
"FROM",
"problems",
"WHERE",
"date_problem_reported",
"<",
"``",
"1978-06-26",
"''"
] |
[
"select",
"problem_id",
"from",
"problems",
"where",
"date_problem_reported",
"<",
"value"
] |
[
"Which",
"problems",
"are",
"reported",
"before",
"1978-06-26",
"?",
"Give",
"me",
"the",
"ids",
"of",
"the",
"problems",
"."
] |
tracking_software_problems
|
SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
|
For each product which has problems, what are the number of problems and the product id?
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T2.product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"GROUP",
"BY",
"T2.product_id"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t2",
".",
"product_id"
] |
[
"For",
"each",
"product",
"which",
"has",
"problems",
",",
"what",
"are",
"the",
"number",
"of",
"problems",
"and",
"the",
"product",
"id",
"?"
] |
tracking_software_problems
|
SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
|
For each product with some problems, list the count of problems and the product id.
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T2.product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"GROUP",
"BY",
"T2.product_id"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t2",
".",
"product_id"
] |
[
"For",
"each",
"product",
"with",
"some",
"problems",
",",
"list",
"the",
"count",
"of",
"problems",
"and",
"the",
"product",
"id",
"."
] |
tracking_software_problems
|
SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
|
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T2.product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"WHERE",
"T1.date_problem_reported",
">",
"``",
"1986-11-13",
"''",
"GROUP",
"BY",
"T2.product_id"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"where",
"t1",
".",
"date_problem_reported",
">",
"value",
"group",
"by",
"t2",
".",
"product_id"
] |
[
"For",
"each",
"product",
"that",
"has",
"problems",
",",
"find",
"the",
"number",
"of",
"problems",
"reported",
"after",
"1986-11-13",
"and",
"the",
"product",
"id",
"?"
] |
tracking_software_problems
|
SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
|
What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.
|
[
"SELECT",
"count",
"(",
"*",
")",
",",
"T2.product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"WHERE",
"T1.date_problem_reported",
">",
"``",
"1986-11-13",
"''",
"GROUP",
"BY",
"T2.product_id"
] |
[
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"where",
"t1",
".",
"date_problem_reported",
">",
"value",
"group",
"by",
"t2",
".",
"product_id"
] |
[
"What",
"are",
"the",
"products",
"that",
"have",
"problems",
"reported",
"after",
"1986-11-13",
"?",
"Give",
"me",
"the",
"product",
"id",
"and",
"the",
"count",
"of",
"problems",
"reported",
"after",
"1986-11-13",
"."
] |
tracking_software_problems
|
SELECT DISTINCT product_name FROM product ORDER BY product_name
|
List the names of all the distinct product names in alphabetical order?
|
[
"SELECT",
"DISTINCT",
"product_name",
"FROM",
"product",
"ORDER",
"BY",
"product_name"
] |
[
"select",
"distinct",
"product_name",
"from",
"product",
"order",
"by",
"product_name"
] |
[
"List",
"the",
"names",
"of",
"all",
"the",
"distinct",
"product",
"names",
"in",
"alphabetical",
"order",
"?"
] |
tracking_software_problems
|
SELECT DISTINCT product_name FROM product ORDER BY product_name
|
Sort all the distinct product names in alphabetical order.
|
[
"SELECT",
"DISTINCT",
"product_name",
"FROM",
"product",
"ORDER",
"BY",
"product_name"
] |
[
"select",
"distinct",
"product_name",
"from",
"product",
"order",
"by",
"product_name"
] |
[
"Sort",
"all",
"the",
"distinct",
"product",
"names",
"in",
"alphabetical",
"order",
"."
] |
tracking_software_problems
|
SELECT DISTINCT product_name FROM product ORDER BY product_id
|
List all the distinct product names ordered by product id?
|
[
"SELECT",
"DISTINCT",
"product_name",
"FROM",
"product",
"ORDER",
"BY",
"product_id"
] |
[
"select",
"distinct",
"product_name",
"from",
"product",
"order",
"by",
"product_id"
] |
[
"List",
"all",
"the",
"distinct",
"product",
"names",
"ordered",
"by",
"product",
"id",
"?"
] |
tracking_software_problems
|
SELECT DISTINCT product_name FROM product ORDER BY product_id
|
What is the list of distinct product names sorted by product id?
|
[
"SELECT",
"DISTINCT",
"product_name",
"FROM",
"product",
"ORDER",
"BY",
"product_id"
] |
[
"select",
"distinct",
"product_name",
"from",
"product",
"order",
"by",
"product_id"
] |
[
"What",
"is",
"the",
"list",
"of",
"distinct",
"product",
"names",
"sorted",
"by",
"product",
"id",
"?"
] |
tracking_software_problems
|
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
|
What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
|
[
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Dameon",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Frami",
"''",
"UNION",
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Jolie",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Weber",
"''"
] |
[
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value",
"union",
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value"
] |
[
"What",
"are",
"the",
"id",
"of",
"problems",
"reported",
"by",
"the",
"staff",
"named",
"Dameon",
"Frami",
"or",
"Jolie",
"Weber",
"?"
] |
tracking_software_problems
|
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
|
Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.
|
[
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Dameon",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Frami",
"''",
"UNION",
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Jolie",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Weber",
"''"
] |
[
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value",
"union",
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value"
] |
[
"Which",
"problems",
"were",
"reported",
"by",
"the",
"staff",
"named",
"Dameon",
"Frami",
"or",
"Jolie",
"Weber",
"?",
"Give",
"me",
"the",
"ids",
"of",
"the",
"problems",
"."
] |
tracking_software_problems
|
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
|
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
|
[
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Christop",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Berge",
"''",
"INTERSECT",
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.closure_authorised_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Ashley",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Medhurst",
"''"
] |
[
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value",
"intersect",
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"closure_authorised_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value"
] |
[
"What",
"are",
"the",
"product",
"ids",
"for",
"the",
"problems",
"reported",
"by",
"Christop",
"Berge",
"with",
"closure",
"authorised",
"by",
"Ashley",
"Medhurst",
"?"
] |
tracking_software_problems
|
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
|
For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.
|
[
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Christop",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Berge",
"''",
"INTERSECT",
"SELECT",
"product_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.closure_authorised_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"T2.staff_first_name",
"=",
"``",
"Ashley",
"''",
"AND",
"T2.staff_last_name",
"=",
"``",
"Medhurst",
"''"
] |
[
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value",
"intersect",
"select",
"product_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"closure_authorised_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"t2",
".",
"staff_first_name",
"=",
"value",
"and",
"t2",
".",
"staff_last_name",
"=",
"value"
] |
[
"For",
"which",
"product",
"was",
"there",
"a",
"problem",
"reported",
"by",
"Christop",
"Berge",
",",
"with",
"closure",
"authorised",
"by",
"Ashley",
"Medhurst",
"?",
"Return",
"the",
"product",
"ids",
"."
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte" )
|
What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"date_problem_reported",
"<",
"(",
"SELECT",
"min",
"(",
"date_problem_reported",
")",
"FROM",
"problems",
"AS",
"T3",
"JOIN",
"staff",
"AS",
"T4",
"ON",
"T3.reported_by_staff_id",
"=",
"T4.staff_id",
"WHERE",
"T4.staff_first_name",
"=",
"``",
"Lysanne",
"''",
"AND",
"T4.staff_last_name",
"=",
"``",
"Turcotte",
"''",
")"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"date_problem_reported",
"<",
"(",
"select",
"min",
"(",
"date_problem_reported",
")",
"from",
"problems",
"as",
"t3",
"join",
"staff",
"as",
"t4",
"on",
"t3",
".",
"reported_by_staff_id",
"=",
"t4",
".",
"staff_id",
"where",
"t4",
".",
"staff_first_name",
"=",
"value",
"and",
"t4",
".",
"staff_last_name",
"=",
"value",
")"
] |
[
"What",
"are",
"the",
"ids",
"of",
"the",
"problems",
"reported",
"before",
"the",
"date",
"of",
"any",
"problem",
"reported",
"by",
"Lysanne",
"Turcotte",
"?"
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte" )
|
Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"date_problem_reported",
"<",
"(",
"SELECT",
"min",
"(",
"date_problem_reported",
")",
"FROM",
"problems",
"AS",
"T3",
"JOIN",
"staff",
"AS",
"T4",
"ON",
"T3.reported_by_staff_id",
"=",
"T4.staff_id",
"WHERE",
"T4.staff_first_name",
"=",
"``",
"Lysanne",
"''",
"AND",
"T4.staff_last_name",
"=",
"``",
"Turcotte",
"''",
")"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"date_problem_reported",
"<",
"(",
"select",
"min",
"(",
"date_problem_reported",
")",
"from",
"problems",
"as",
"t3",
"join",
"staff",
"as",
"t4",
"on",
"t3",
".",
"reported_by_staff_id",
"=",
"t4",
".",
"staff_id",
"where",
"t4",
".",
"staff_first_name",
"=",
"value",
"and",
"t4",
".",
"staff_last_name",
"=",
"value",
")"
] |
[
"Which",
"problems",
"were",
"reported",
"before",
"the",
"date",
"of",
"any",
"problem",
"reported",
"by",
"the",
"staff",
"Lysanne",
"Turcotte",
"?",
"Give",
"me",
"the",
"ids",
"of",
"the",
"problems",
"."
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick" )
|
What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"date_problem_reported",
">",
"(",
"SELECT",
"max",
"(",
"date_problem_reported",
")",
"FROM",
"problems",
"AS",
"T3",
"JOIN",
"staff",
"AS",
"T4",
"ON",
"T3.reported_by_staff_id",
"=",
"T4.staff_id",
"WHERE",
"T4.staff_first_name",
"=",
"``",
"Rylan",
"''",
"AND",
"T4.staff_last_name",
"=",
"``",
"Homenick",
"''",
")"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"date_problem_reported",
">",
"(",
"select",
"max",
"(",
"date_problem_reported",
")",
"from",
"problems",
"as",
"t3",
"join",
"staff",
"as",
"t4",
"on",
"t3",
".",
"reported_by_staff_id",
"=",
"t4",
".",
"staff_id",
"where",
"t4",
".",
"staff_first_name",
"=",
"value",
"and",
"t4",
".",
"staff_last_name",
"=",
"value",
")"
] |
[
"What",
"are",
"the",
"ids",
"of",
"the",
"problems",
"reported",
"after",
"the",
"date",
"of",
"any",
"problems",
"reported",
"by",
"Rylan",
"Homenick",
"?"
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick" )
|
Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"staff",
"AS",
"T2",
"ON",
"T1.reported_by_staff_id",
"=",
"T2.staff_id",
"WHERE",
"date_problem_reported",
">",
"(",
"SELECT",
"max",
"(",
"date_problem_reported",
")",
"FROM",
"problems",
"AS",
"T3",
"JOIN",
"staff",
"AS",
"T4",
"ON",
"T3.reported_by_staff_id",
"=",
"T4.staff_id",
"WHERE",
"T4.staff_first_name",
"=",
"``",
"Rylan",
"''",
"AND",
"T4.staff_last_name",
"=",
"``",
"Homenick",
"''",
")"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"staff",
"as",
"t2",
"on",
"t1",
".",
"reported_by_staff_id",
"=",
"t2",
".",
"staff_id",
"where",
"date_problem_reported",
">",
"(",
"select",
"max",
"(",
"date_problem_reported",
")",
"from",
"problems",
"as",
"t3",
"join",
"staff",
"as",
"t4",
"on",
"t3",
".",
"reported_by_staff_id",
"=",
"t4",
".",
"staff_id",
"where",
"t4",
".",
"staff_first_name",
"=",
"value",
"and",
"t4",
".",
"staff_last_name",
"=",
"value",
")"
] |
[
"Find",
"the",
"ids",
"of",
"the",
"problems",
"reported",
"after",
"the",
"date",
"of",
"any",
"problems",
"reported",
"by",
"the",
"staff",
"Rylan",
"Homenick",
"."
] |
tracking_software_problems
|
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3
|
Find the top 3 products which have the largest number of problems?
|
[
"SELECT",
"T2.product_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"GROUP",
"BY",
"T2.product_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"3"
] |
[
"select",
"t2",
".",
"product_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t2",
".",
"product_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"Find",
"the",
"top",
"3",
"products",
"which",
"have",
"the",
"largest",
"number",
"of",
"problems",
"?"
] |
tracking_software_problems
|
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3
|
What are the three products that have the most problems?s
|
[
"SELECT",
"T2.product_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"GROUP",
"BY",
"T2.product_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"3"
] |
[
"select",
"t2",
".",
"product_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t2",
".",
"product_name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"What",
"are",
"the",
"three",
"products",
"that",
"have",
"the",
"most",
"problems",
"?",
"s"
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
|
List the ids of the problems from the product "voluptatem" that are reported after 1995?
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"WHERE",
"T2.product_name",
"=",
"``",
"voluptatem",
"''",
"AND",
"T1.date_problem_reported",
">",
"``",
"1995",
"''"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"where",
"t2",
".",
"product_name",
"=",
"value",
"and",
"t1",
".",
"date_problem_reported",
">",
"value"
] |
[
"List",
"the",
"ids",
"of",
"the",
"problems",
"from",
"the",
"product",
"``",
"voluptatem",
"''",
"that",
"are",
"reported",
"after",
"1995",
"?"
] |
tracking_software_problems
|
SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
|
What are the ids of the problems that are from the product "voluptatem" and are reported after 1995?
|
[
"SELECT",
"T1.problem_id",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"WHERE",
"T2.product_name",
"=",
"``",
"voluptatem",
"''",
"AND",
"T1.date_problem_reported",
">",
"``",
"1995",
"''"
] |
[
"select",
"t1",
".",
"problem_id",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"where",
"t2",
".",
"product_name",
"=",
"value",
"and",
"t1",
".",
"date_problem_reported",
">",
"value"
] |
[
"What",
"are",
"the",
"ids",
"of",
"the",
"problems",
"that",
"are",
"from",
"the",
"product",
"``",
"voluptatem",
"''",
"and",
"are",
"reported",
"after",
"1995",
"?"
] |
tracking_software_problems
|
SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
|
Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?
|
[
"SELECT",
"T3.staff_first_name",
",",
"T3.staff_last_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T2.product_name",
"=",
"``",
"rem",
"''",
"EXCEPT",
"SELECT",
"T3.staff_first_name",
",",
"T3.staff_last_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T2.product_name",
"=",
"``",
"aut",
"''"
] |
[
"select",
"t3",
".",
"staff_first_name",
",",
"t3",
".",
"staff_last_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t2",
".",
"product_name",
"=",
"value",
"except",
"select",
"t3",
".",
"staff_first_name",
",",
"t3",
".",
"staff_last_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t2",
".",
"product_name",
"=",
"value"
] |
[
"Find",
"the",
"first",
"and",
"last",
"name",
"of",
"the",
"staff",
"members",
"who",
"reported",
"problems",
"from",
"the",
"product",
"``",
"rem",
"''",
"but",
"not",
"``",
"aut",
"''",
"?"
] |
tracking_software_problems
|
SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
|
Which staff members who reported problems from the product "rem" but not "aut"? Give me their first and last names.
|
[
"SELECT",
"T3.staff_first_name",
",",
"T3.staff_last_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T2.product_name",
"=",
"``",
"rem",
"''",
"EXCEPT",
"SELECT",
"T3.staff_first_name",
",",
"T3.staff_last_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T2.product_name",
"=",
"``",
"aut",
"''"
] |
[
"select",
"t3",
".",
"staff_first_name",
",",
"t3",
".",
"staff_last_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t2",
".",
"product_name",
"=",
"value",
"except",
"select",
"t3",
".",
"staff_first_name",
",",
"t3",
".",
"staff_last_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t2",
".",
"product_name",
"=",
"value"
] |
[
"Which",
"staff",
"members",
"who",
"reported",
"problems",
"from",
"the",
"product",
"``",
"rem",
"''",
"but",
"not",
"``",
"aut",
"''",
"?",
"Give",
"me",
"their",
"first",
"and",
"last",
"names",
"."
] |
tracking_software_problems
|
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin"
|
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
|
[
"SELECT",
"T2.product_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T3.staff_first_name",
"=",
"``",
"Lacey",
"''",
"AND",
"T3.staff_last_name",
"=",
"``",
"Bosco",
"''",
"INTERSECT",
"SELECT",
"T2.product_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T3.staff_first_name",
"=",
"``",
"Kenton",
"''",
"AND",
"T3.staff_last_name",
"=",
"``",
"Champlin",
"''"
] |
[
"select",
"t2",
".",
"product_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t3",
".",
"staff_first_name",
"=",
"value",
"and",
"t3",
".",
"staff_last_name",
"=",
"value",
"intersect",
"select",
"t2",
".",
"product_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t3",
".",
"staff_first_name",
"=",
"value",
"and",
"t3",
".",
"staff_last_name",
"=",
"value"
] |
[
"Find",
"the",
"products",
"which",
"have",
"problems",
"reported",
"by",
"both",
"Lacey",
"Bosco",
"and",
"Kenton",
"Champlin",
"?"
] |
tracking_software_problems
|
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin"
|
Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?
|
[
"SELECT",
"T2.product_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T3.staff_first_name",
"=",
"``",
"Lacey",
"''",
"AND",
"T3.staff_last_name",
"=",
"``",
"Bosco",
"''",
"INTERSECT",
"SELECT",
"T2.product_name",
"FROM",
"problems",
"AS",
"T1",
"JOIN",
"product",
"AS",
"T2",
"JOIN",
"staff",
"AS",
"T3",
"ON",
"T1.product_id",
"=",
"T2.product_id",
"AND",
"T1.reported_by_staff_id",
"=",
"T3.staff_id",
"WHERE",
"T3.staff_first_name",
"=",
"``",
"Kenton",
"''",
"AND",
"T3.staff_last_name",
"=",
"``",
"Champlin",
"''"
] |
[
"select",
"t2",
".",
"product_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t3",
".",
"staff_first_name",
"=",
"value",
"and",
"t3",
".",
"staff_last_name",
"=",
"value",
"intersect",
"select",
"t2",
".",
"product_name",
"from",
"problems",
"as",
"t1",
"join",
"product",
"as",
"t2",
"join",
"staff",
"as",
"t3",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"and",
"t1",
".",
"reported_by_staff_id",
"=",
"t3",
".",
"staff_id",
"where",
"t3",
".",
"staff_first_name",
"=",
"value",
"and",
"t3",
".",
"staff_last_name",
"=",
"value"
] |
[
"Which",
"products",
"have",
"problems",
"reported",
"by",
"both",
"the",
"staff",
"named",
"Lacey",
"Bosco",
"and",
"the",
"staff",
"named",
"Kenton",
"Champlin",
"?"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.