db_id stringclasses 140
values | query stringlengths 18 577 | question stringlengths 16 224 | query_toks listlengths 4 90 | query_toks_no_value listlengths 4 125 | question_toks listlengths 4 44 | question_toks_masked listlengths 4 44 | query_toks_masked listlengths 4 125 |
|---|---|---|---|---|---|---|---|
candidate_poll | SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 | Find the id of the candidate who got the lowest oppose rate. | [
"SELECT",
"Candidate_ID",
"FROM",
"candidate",
"ORDER",
"BY",
"oppose_rate",
"LIMIT",
"1"
] | [
"select",
"candidate_id",
"from",
"candidate",
"order",
"by",
"oppose_rate",
"limit",
"value"
] | [
"Find",
"the",
"id",
"of",
"the",
"candidate",
"who",
"got",
"the",
"lowest",
"oppose",
"rate",
"."
] | [
"Find",
"the",
"id",
"of",
"the",
"<mask>",
"who",
"got",
"the",
"lowest",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"limit",
"<unk>"
] |
candidate_poll | SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 | What is the id of the candidate with the lowest oppose rate? | [
"SELECT",
"Candidate_ID",
"FROM",
"candidate",
"ORDER",
"BY",
"oppose_rate",
"LIMIT",
"1"
] | [
"select",
"candidate_id",
"from",
"candidate",
"order",
"by",
"oppose_rate",
"limit",
"value"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"candidate",
"with",
"the",
"lowest",
"oppose",
"rate",
"?"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"<mask>",
"with",
"the",
"lowest",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"limit",
"<unk>"
] |
candidate_poll | SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate | Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate. | [
"SELECT",
"Support_rate",
",",
"Consider_rate",
",",
"Oppose_rate",
"FROM",
"candidate",
"ORDER",
"BY",
"unsure_rate"
] | [
"select",
"support_rate",
",",
"consider_rate",
",",
"oppose_rate",
"from",
"candidate",
"order",
"by",
"unsure_rate"
] | [
"Please",
"list",
"support",
",",
"consider",
",",
"and",
"oppose",
"rates",
"for",
"each",
"candidate",
"in",
"ascending",
"order",
"by",
"unsure",
"rate",
"."
] | [
"Please",
"list",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"in",
"ascending",
"order",
"by",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
candidate_poll | SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate | What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate? | [
"SELECT",
"Support_rate",
",",
"Consider_rate",
",",
"Oppose_rate",
"FROM",
"candidate",
"ORDER",
"BY",
"unsure_rate"
] | [
"select",
"support_rate",
",",
"consider_rate",
",",
"oppose_rate",
"from",
"candidate",
"order",
"by",
"unsure_rate"
] | [
"What",
"are",
"the",
"support",
",",
"consider",
",",
"and",
"oppose",
"rates",
"of",
"each",
"candidate",
",",
"ordered",
"ascending",
"by",
"their",
"unsure",
"rate",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"of",
"each",
"<mask>",
",",
"ordered",
"ascending",
"by",
"their",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
candidate_poll | SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 | which poll source does the highest oppose rate come from? | [
"SELECT",
"poll_source",
"FROM",
"candidate",
"ORDER",
"BY",
"oppose_rate",
"DESC",
"LIMIT",
"1"
] | [
"select",
"poll_source",
"from",
"candidate",
"order",
"by",
"oppose_rate",
"desc",
"limit",
"value"
] | [
"which",
"poll",
"source",
"does",
"the",
"highest",
"oppose",
"rate",
"come",
"from",
"?"
] | [
"which",
"<mask>",
"<mask>",
"does",
"the",
"highest",
"<mask>",
"<mask>",
"come",
"from",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
candidate_poll | SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 | Return the poll source corresponding to the candidate who has the oppose rate. | [
"SELECT",
"poll_source",
"FROM",
"candidate",
"ORDER",
"BY",
"oppose_rate",
"DESC",
"LIMIT",
"1"
] | [
"select",
"poll_source",
"from",
"candidate",
"order",
"by",
"oppose_rate",
"desc",
"limit",
"value"
] | [
"Return",
"the",
"poll",
"source",
"corresponding",
"to",
"the",
"candidate",
"who",
"has",
"the",
"oppose",
"rate",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"corresponding",
"to",
"the",
"<mask>",
"who",
"has",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
candidate_poll | SELECT name FROM people ORDER BY date_of_birth | List all people names in the order of their date of birth from old to young. | [
"SELECT",
"name",
"FROM",
"people",
"ORDER",
"BY",
"date_of_birth"
] | [
"select",
"name",
"from",
"people",
"order",
"by",
"date_of_birth"
] | [
"List",
"all",
"people",
"names",
"in",
"the",
"order",
"of",
"their",
"date",
"of",
"birth",
"from",
"old",
"to",
"young",
"."
] | [
"List",
"all",
"<mask>",
"<mask>",
"in",
"the",
"order",
"of",
"their",
"<mask>",
"of",
"<mask>",
"from",
"old",
"to",
"young",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
candidate_poll | SELECT name FROM people ORDER BY date_of_birth | What are the names of all people, ordered by their date of birth? | [
"SELECT",
"name",
"FROM",
"people",
"ORDER",
"BY",
"date_of_birth"
] | [
"select",
"name",
"from",
"people",
"order",
"by",
"date_of_birth"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"people",
",",
"ordered",
"by",
"their",
"date",
"of",
"birth",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
",",
"ordered",
"by",
"their",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
candidate_poll | SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M' | Find the average height and weight for all males (sex is M). | [
"SELECT",
"avg",
"(",
"height",
")",
",",
"avg",
"(",
"weight",
")",
"FROM",
"people",
"WHERE",
"sex",
"=",
"'M",
"'"
] | [
"select",
"avg",
"(",
"height",
")",
",",
"avg",
"(",
"weight",
")",
"from",
"people",
"where",
"sex",
"=",
"value"
] | [
"Find",
"the",
"average",
"height",
"and",
"weight",
"for",
"all",
"males",
"(",
"sex",
"is",
"M",
")",
"."
] | [
"Find",
"the",
"average",
"<mask>",
"and",
"<mask>",
"for",
"all",
"males",
"(",
"<mask>",
"is",
"M",
")",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
candidate_poll | SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M' | What are the average height and weight across males (sex is M)? | [
"SELECT",
"avg",
"(",
"height",
")",
",",
"avg",
"(",
"weight",
")",
"FROM",
"people",
"WHERE",
"sex",
"=",
"'M",
"'"
] | [
"select",
"avg",
"(",
"height",
")",
",",
"avg",
"(",
"weight",
")",
"from",
"people",
"where",
"sex",
"=",
"value"
] | [
"What",
"are",
"the",
"average",
"height",
"and",
"weight",
"across",
"males",
"(",
"sex",
"is",
"M",
")",
"?"
] | [
"What",
"are",
"the",
"average",
"<mask>",
"and",
"<mask>",
"across",
"males",
"(",
"<mask>",
"is",
"M",
")",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
candidate_poll | SELECT name FROM people WHERE height > 200 OR height < 190 | find the names of people who are taller than 200 or lower than 190. | [
"SELECT",
"name",
"FROM",
"people",
"WHERE",
"height",
">",
"200",
"OR",
"height",
"<",
"190"
] | [
"select",
"name",
"from",
"people",
"where",
"height",
">",
"value",
"or",
"height",
"<",
"value"
] | [
"find",
"the",
"names",
"of",
"people",
"who",
"are",
"taller",
"than",
"200",
"or",
"lower",
"than",
"190",
"."
] | [
"find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"are",
"taller",
"than",
"<unk>",
"or",
"lower",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"or",
"<mask>",
"<",
"<unk>"
] |
candidate_poll | SELECT name FROM people WHERE height > 200 OR height < 190 | What are the names of people who have a height greater than 200 or less than 190? | [
"SELECT",
"name",
"FROM",
"people",
"WHERE",
"height",
">",
"200",
"OR",
"height",
"<",
"190"
] | [
"select",
"name",
"from",
"people",
"where",
"height",
">",
"value",
"or",
"height",
"<",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"people",
"who",
"have",
"a",
"height",
"greater",
"than",
"200",
"or",
"less",
"than",
"190",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"a",
"<mask>",
"greater",
"than",
"<unk>",
"or",
"less",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"or",
"<mask>",
"<",
"<unk>"
] |
candidate_poll | SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex | Find the average and minimum weight for each gender. | [
"SELECT",
"avg",
"(",
"weight",
")",
",",
"min",
"(",
"weight",
")",
",",
"sex",
"FROM",
"people",
"GROUP",
"BY",
"sex"
] | [
"select",
"avg",
"(",
"weight",
")",
",",
"min",
"(",
"weight",
")",
",",
"sex",
"from",
"people",
"group",
"by",
"sex"
] | [
"Find",
"the",
"average",
"and",
"minimum",
"weight",
"for",
"each",
"gender",
"."
] | [
"Find",
"the",
"average",
"and",
"minimum",
"<mask>",
"for",
"each",
"gender",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
candidate_poll | SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex | What are the average and minimum weights for people of each sex? | [
"SELECT",
"avg",
"(",
"weight",
")",
",",
"min",
"(",
"weight",
")",
",",
"sex",
"FROM",
"people",
"GROUP",
"BY",
"sex"
] | [
"select",
"avg",
"(",
"weight",
")",
",",
"min",
"(",
"weight",
")",
",",
"sex",
"from",
"people",
"group",
"by",
"sex"
] | [
"What",
"are",
"the",
"average",
"and",
"minimum",
"weights",
"for",
"people",
"of",
"each",
"sex",
"?"
] | [
"What",
"are",
"the",
"average",
"and",
"minimum",
"<mask>",
"for",
"<mask>",
"of",
"each",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
candidate_poll | SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1 | Find the name and gender of the candidate who got the highest support rate. | [
"SELECT",
"t1.name",
",",
"t1.sex",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"ORDER",
"BY",
"t2.support_rate",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"sex",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t2",
".",
"support_rate",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"name",
"and",
"gender",
"of",
"the",
"candidate",
"who",
"got",
"the",
"highest",
"support",
"rate",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"gender",
"of",
"the",
"<mask>",
"who",
"got",
"the",
"highest",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<u... |
candidate_poll | SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1 | What is the name and sex of the candidate with the highest support rate? | [
"SELECT",
"t1.name",
",",
"t1.sex",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"ORDER",
"BY",
"t2.support_rate",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"sex",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t2",
".",
"support_rate",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"and",
"sex",
"of",
"the",
"candidate",
"with",
"the",
"highest",
"support",
"rate",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"highest",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<u... |
candidate_poll | SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex | Find the name of the candidates whose oppose percentage is the lowest for each sex. | [
"SELECT",
"t1.name",
",",
"t1.sex",
",",
"min",
"(",
"oppose_rate",
")",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"GROUP",
"BY",
"t1.sex"
] | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"sex",
",",
"min",
"(",
"oppose_rate",
")",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"group",
"by",
"t1",
".",
"sex"
] | [
"Find",
"the",
"name",
"of",
"the",
"candidates",
"whose",
"oppose",
"percentage",
"is",
"the",
"lowest",
"for",
"each",
"sex",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"percentage",
"is",
"the",
"lowest",
"for",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
"... |
candidate_poll | SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex | For each sex, what is the name and sex of the candidate with the oppose rate for their sex? | [
"SELECT",
"t1.name",
",",
"t1.sex",
",",
"min",
"(",
"oppose_rate",
")",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"GROUP",
"BY",
"t1.sex"
] | [
"select",
"t1",
".",
"name",
",",
"t1",
".",
"sex",
",",
"min",
"(",
"oppose_rate",
")",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"group",
"by",
"t1",
".",
"sex"
] | [
"For",
"each",
"sex",
",",
"what",
"is",
"the",
"name",
"and",
"sex",
"of",
"the",
"candidate",
"with",
"the",
"oppose",
"rate",
"for",
"their",
"sex",
"?"
] | [
"For",
"each",
"<mask>",
",",
"what",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"<mask>",
"<mask>",
"for",
"their",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
"... |
candidate_poll | SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1 | which gender got the highest average uncertain ratio. | [
"SELECT",
"t1.sex",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"GROUP",
"BY",
"t1.sex",
"ORDER",
"BY",
"avg",
"(",
"t2.unsure_rate",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"sex",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"group",
"by",
"t1",
".",
"sex",
"order",
"by",
"avg",
"(",
"t2",
".",
"unsure_rate",
")",
"desc",
... | [
"which",
"gender",
"got",
"the",
"highest",
"average",
"uncertain",
"ratio",
"."
] | [
"which",
"gender",
"got",
"the",
"highest",
"average",
"uncertain",
"ratio",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"avg",
"(",
"<mask>",
".",
"<mask>"... |
candidate_poll | SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1 | What is the sex of the candidate who had the highest unsure rate? | [
"SELECT",
"t1.sex",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"GROUP",
"BY",
"t1.sex",
"ORDER",
"BY",
"avg",
"(",
"t2.unsure_rate",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"sex",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"group",
"by",
"t1",
".",
"sex",
"order",
"by",
"avg",
"(",
"t2",
".",
"unsure_rate",
")",
"desc",
... | [
"What",
"is",
"the",
"sex",
"of",
"the",
"candidate",
"who",
"had",
"the",
"highest",
"unsure",
"rate",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"had",
"the",
"highest",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"avg",
"(",
"<mask>",
".",
"<mask>"... |
candidate_poll | SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate) | what are the names of people who did not participate in the candidate election. | [
"SELECT",
"name",
"FROM",
"people",
"WHERE",
"people_id",
"NOT",
"IN",
"(",
"SELECT",
"people_id",
"FROM",
"candidate",
")"
] | [
"select",
"name",
"from",
"people",
"where",
"people_id",
"not",
"in",
"(",
"select",
"people_id",
"from",
"candidate",
")"
] | [
"what",
"are",
"the",
"names",
"of",
"people",
"who",
"did",
"not",
"participate",
"in",
"the",
"candidate",
"election",
"."
] | [
"what",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"did",
"not",
"participate",
"in",
"the",
"<mask>",
"election",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
candidate_poll | SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate) | Give the names of people who did not participate in the candidate election. | [
"SELECT",
"name",
"FROM",
"people",
"WHERE",
"people_id",
"NOT",
"IN",
"(",
"SELECT",
"people_id",
"FROM",
"candidate",
")"
] | [
"select",
"name",
"from",
"people",
"where",
"people_id",
"not",
"in",
"(",
"select",
"people_id",
"from",
"candidate",
")"
] | [
"Give",
"the",
"names",
"of",
"people",
"who",
"did",
"not",
"participate",
"in",
"the",
"candidate",
"election",
"."
] | [
"Give",
"the",
"<mask>",
"of",
"<mask>",
"who",
"did",
"not",
"participate",
"in",
"the",
"<mask>",
"election",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
candidate_poll | SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate | Find the names of the candidates whose support percentage is lower than their oppose rate. | [
"SELECT",
"t1.name",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"WHERE",
"t2.support_rate",
"<",
"t2.oppose_rate"
] | [
"select",
"t1",
".",
"name",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t2",
".",
"support_rate",
"<",
"t2",
".",
"oppose_rate"
] | [
"Find",
"the",
"names",
"of",
"the",
"candidates",
"whose",
"support",
"percentage",
"is",
"lower",
"than",
"their",
"oppose",
"rate",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"percentage",
"is",
"lower",
"than",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<mask>",
".",
"<mask>"
] |
candidate_poll | SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate | What are the names of candidates who have a lower support rate than oppose rate? | [
"SELECT",
"t1.name",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"WHERE",
"t2.support_rate",
"<",
"t2.oppose_rate"
] | [
"select",
"t1",
".",
"name",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t2",
".",
"support_rate",
"<",
"t2",
".",
"oppose_rate"
] | [
"What",
"are",
"the",
"names",
"of",
"candidates",
"who",
"have",
"a",
"lower",
"support",
"rate",
"than",
"oppose",
"rate",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"a",
"lower",
"<mask>",
"<mask>",
"than",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<mask>",
".",
"<mask>"
] |
candidate_poll | SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex | how many people are there whose weight is higher than 85 for each gender? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"sex",
"FROM",
"people",
"WHERE",
"weight",
">",
"85",
"GROUP",
"BY",
"sex"
] | [
"select",
"count",
"(",
"*",
")",
",",
"sex",
"from",
"people",
"where",
"weight",
">",
"value",
"group",
"by",
"sex"
] | [
"how",
"many",
"people",
"are",
"there",
"whose",
"weight",
"is",
"higher",
"than",
"85",
"for",
"each",
"gender",
"?"
] | [
"how",
"many",
"<mask>",
"are",
"there",
"whose",
"<mask>",
"is",
"higher",
"than",
"<unk>",
"for",
"each",
"gender",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"group",
"by",
"<mask>"
] |
candidate_poll | SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex | Count the number of people of each sex who have a weight higher than 85. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"sex",
"FROM",
"people",
"WHERE",
"weight",
">",
"85",
"GROUP",
"BY",
"sex"
] | [
"select",
"count",
"(",
"*",
")",
",",
"sex",
"from",
"people",
"where",
"weight",
">",
"value",
"group",
"by",
"sex"
] | [
"Count",
"the",
"number",
"of",
"people",
"of",
"each",
"sex",
"who",
"have",
"a",
"weight",
"higher",
"than",
"85",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"of",
"each",
"<mask>",
"who",
"have",
"a",
"<mask>",
"higher",
"than",
"<unk>",
"."
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"group",
"by",
"<mask>"
] |
candidate_poll | SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate | find the highest support percentage, lowest consider rate and oppose rate of all candidates. | [
"SELECT",
"max",
"(",
"support_rate",
")",
",",
"min",
"(",
"consider_rate",
")",
",",
"min",
"(",
"oppose_rate",
")",
"FROM",
"candidate"
] | [
"select",
"max",
"(",
"support_rate",
")",
",",
"min",
"(",
"consider_rate",
")",
",",
"min",
"(",
"oppose_rate",
")",
"from",
"candidate"
] | [
"find",
"the",
"highest",
"support",
"percentage",
",",
"lowest",
"consider",
"rate",
"and",
"oppose",
"rate",
"of",
"all",
"candidates",
"."
] | [
"find",
"the",
"highest",
"<mask>",
"percentage",
",",
"lowest",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
candidate_poll | SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate | Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates? | [
"SELECT",
"max",
"(",
"support_rate",
")",
",",
"min",
"(",
"consider_rate",
")",
",",
"min",
"(",
"oppose_rate",
")",
"FROM",
"candidate"
] | [
"select",
"max",
"(",
"support_rate",
")",
",",
"min",
"(",
"consider_rate",
")",
",",
"min",
"(",
"oppose_rate",
")",
"from",
"candidate"
] | [
"Return",
"the",
"maximum",
"support",
"rate",
",",
"minimum",
"consider",
"rate",
",",
"and",
"minimum",
"oppose",
"rate",
"across",
"all",
"candidates",
"?"
] | [
"Return",
"the",
"maximum",
"<mask>",
"<mask>",
",",
"minimum",
"<mask>",
"<mask>",
",",
"and",
"minimum",
"<mask>",
"<mask>",
"across",
"all",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
candidate_poll | SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name | list all female (sex is F) candidate names in the alphabetical order. | [
"SELECT",
"t1.name",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"WHERE",
"t1.sex",
"=",
"'F",
"'",
"ORDER",
"BY",
"t1.name"
] | [
"select",
"t1",
".",
"name",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t1",
".",
"sex",
"=",
"value",
"order",
"by",
"t1",
".",
"name"
] | [
"list",
"all",
"female",
"(",
"sex",
"is",
"F",
")",
"candidate",
"names",
"in",
"the",
"alphabetical",
"order",
"."
] | [
"list",
"all",
"female",
"(",
"<mask>",
"is",
"F",
")",
"<mask>",
"<mask>",
"in",
"the",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>"
] |
candidate_poll | SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name | What are the names of all female candidates in alphabetical order (sex is F)? | [
"SELECT",
"t1.name",
"FROM",
"people",
"AS",
"t1",
"JOIN",
"candidate",
"AS",
"t2",
"ON",
"t1.people_id",
"=",
"t2.people_id",
"WHERE",
"t1.sex",
"=",
"'F",
"'",
"ORDER",
"BY",
"t1.name"
] | [
"select",
"t1",
".",
"name",
"from",
"people",
"as",
"t1",
"join",
"candidate",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t1",
".",
"sex",
"=",
"value",
"order",
"by",
"t1",
".",
"name"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"female",
"candidates",
"in",
"alphabetical",
"order",
"(",
"sex",
"is",
"F",
")",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"female",
"<mask>",
"in",
"alphabetical",
"order",
"(",
"<mask>",
"is",
"F",
")",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>"
] |
candidate_poll | SELECT name FROM people WHERE height < (SELECT avg(height) FROM people) | find the name of people whose height is lower than the average. | [
"SELECT",
"name",
"FROM",
"people",
"WHERE",
"height",
"<",
"(",
"SELECT",
"avg",
"(",
"height",
")",
"FROM",
"people",
")"
] | [
"select",
"name",
"from",
"people",
"where",
"height",
"<",
"(",
"select",
"avg",
"(",
"height",
")",
"from",
"people",
")"
] | [
"find",
"the",
"name",
"of",
"people",
"whose",
"height",
"is",
"lower",
"than",
"the",
"average",
"."
] | [
"find",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"lower",
"than",
"the",
"average",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
candidate_poll | SELECT name FROM people WHERE height < (SELECT avg(height) FROM people) | What are the names of people who are shorter than average? | [
"SELECT",
"name",
"FROM",
"people",
"WHERE",
"height",
"<",
"(",
"SELECT",
"avg",
"(",
"height",
")",
"FROM",
"people",
")"
] | [
"select",
"name",
"from",
"people",
"where",
"height",
"<",
"(",
"select",
"avg",
"(",
"height",
")",
"from",
"people",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"people",
"who",
"are",
"shorter",
"than",
"average",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"are",
"shorter",
"than",
"average",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
candidate_poll | SELECT * FROM people | List all info about all people. | [
"SELECT",
"*",
"FROM",
"people"
] | [
"select",
"*",
"from",
"people"
] | [
"List",
"all",
"info",
"about",
"all",
"people",
"."
] | [
"List",
"all",
"info",
"about",
"all",
"<mask>",
"."
] | [
"select",
"*",
"from",
"<mask>"
] |
candidate_poll | SELECT * FROM people | What is all the information about all people? | [
"SELECT",
"*",
"FROM",
"people"
] | [
"select",
"*",
"from",
"people"
] | [
"What",
"is",
"all",
"the",
"information",
"about",
"all",
"people",
"?"
] | [
"What",
"is",
"all",
"the",
"information",
"about",
"all",
"<mask>",
"?"
] | [
"select",
"*",
"from",
"<mask>"
] |
movie_1 | SELECT title FROM Movie WHERE director = 'Steven Spielberg' | Find the titles of all movies directed by steven spielberg. | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"director",
"=",
"'Steven",
"Spielberg",
"'"
] | [
"select",
"title",
"from",
"movie",
"where",
"director",
"=",
"value"
] | [
"Find",
"the",
"titles",
"of",
"all",
"movies",
"directed",
"by",
"steven",
"spielberg",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"directed",
"by",
"steven",
"spielberg",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT title FROM Movie WHERE director = 'Steven Spielberg' | What are the names of all movies directed by Steven Spielberg? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"director",
"=",
"'Steven",
"Spielberg",
"'"
] | [
"select",
"title",
"from",
"movie",
"where",
"director",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"movies",
"directed",
"by",
"Steven",
"Spielberg",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"directed",
"by",
"Steven",
"Spielberg",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 | What is the name of the movie produced after 2000 and directed by James Cameron? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"director",
"=",
"'James",
"Cameron",
"'",
"AND",
"YEAR",
">",
"2000"
] | [
"select",
"title",
"from",
"movie",
"where",
"director",
"=",
"value",
"and",
"year",
">",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"movie",
"produced",
"after",
"2000",
"and",
"directed",
"by",
"James",
"Cameron",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"produced",
"after",
"<unk>",
"and",
"directed",
"by",
"James",
"Cameron",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
">",
"<unk>"
] |
movie_1 | SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 | What are the titles of all movies that James Cameron directed after 2000? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"director",
"=",
"'James",
"Cameron",
"'",
"AND",
"YEAR",
">",
"2000"
] | [
"select",
"title",
"from",
"movie",
"where",
"director",
"=",
"value",
"and",
"year",
">",
"value"
] | [
"What",
"are",
"the",
"titles",
"of",
"all",
"movies",
"that",
"James",
"Cameron",
"directed",
"after",
"2000",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"James",
"Cameron",
"directed",
"after",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
">",
"<unk>"
] |
movie_1 | SELECT count(*) FROM Movie WHERE YEAR < 2000 | How many movies were made before 2000? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Movie",
"WHERE",
"YEAR",
"<",
"2000"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"movie",
"where",
"year",
"<",
"value"
] | [
"How",
"many",
"movies",
"were",
"made",
"before",
"2000",
"?"
] | [
"How",
"many",
"<mask>",
"were",
"made",
"before",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
movie_1 | SELECT count(*) FROM Movie WHERE YEAR < 2000 | How many movies were made before 2000? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Movie",
"WHERE",
"YEAR",
"<",
"2000"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"movie",
"where",
"year",
"<",
"value"
] | [
"How",
"many",
"movies",
"were",
"made",
"before",
"2000",
"?"
] | [
"How",
"many",
"<mask>",
"were",
"made",
"before",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
movie_1 | SELECT director FROM Movie WHERE title = 'Avatar' | Who is the director of movie Avatar? | [
"SELECT",
"director",
"FROM",
"Movie",
"WHERE",
"title",
"=",
"'Avatar",
"'"
] | [
"select",
"director",
"from",
"movie",
"where",
"title",
"=",
"value"
] | [
"Who",
"is",
"the",
"director",
"of",
"movie",
"Avatar",
"?"
] | [
"Who",
"is",
"the",
"<mask>",
"of",
"<mask>",
"Avatar",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT director FROM Movie WHERE title = 'Avatar' | Who directed Avatar? | [
"SELECT",
"director",
"FROM",
"Movie",
"WHERE",
"title",
"=",
"'Avatar",
"'"
] | [
"select",
"director",
"from",
"movie",
"where",
"title",
"=",
"value"
] | [
"Who",
"directed",
"Avatar",
"?"
] | [
"Who",
"directed",
"Avatar",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT count(*) FROM Reviewer | How many reviewers listed? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Reviewer"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"reviewer"
] | [
"How",
"many",
"reviewers",
"listed",
"?"
] | [
"How",
"many",
"<mask>",
"listed",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
movie_1 | SELECT count(*) FROM Reviewer | How many reviewers are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Reviewer"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"reviewer"
] | [
"How",
"many",
"reviewers",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
movie_1 | SELECT rID FROM Reviewer WHERE name LIKE "%Mike%" | What is the id of the reviewer whose name has substring “Mike”? | [
"SELECT",
"rID",
"FROM",
"Reviewer",
"WHERE",
"name",
"LIKE",
"``",
"%",
"Mike",
"%",
"''"
] | [
"select",
"rid",
"from",
"reviewer",
"where",
"name",
"like",
"value"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"reviewer",
"whose",
"name",
"has",
"substring",
"“Mike”",
"?"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"has",
"substring",
"“Mike”",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
movie_1 | SELECT rID FROM Reviewer WHERE name LIKE "%Mike%" | What is the id of the reviewer whose name includes the word "Mike"? | [
"SELECT",
"rID",
"FROM",
"Reviewer",
"WHERE",
"name",
"LIKE",
"``",
"%",
"Mike",
"%",
"''"
] | [
"select",
"rid",
"from",
"reviewer",
"where",
"name",
"like",
"value"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"reviewer",
"whose",
"name",
"includes",
"the",
"word",
"``",
"Mike",
"''",
"?"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"includes",
"the",
"word",
"``",
"Mike",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
movie_1 | SELECT rID FROM Reviewer WHERE name = "Daniel Lewis" | What is the reviewer id of Daniel Lewis? | [
"SELECT",
"rID",
"FROM",
"Reviewer",
"WHERE",
"name",
"=",
"``",
"Daniel",
"Lewis",
"''"
] | [
"select",
"rid",
"from",
"reviewer",
"where",
"name",
"=",
"value"
] | [
"What",
"is",
"the",
"reviewer",
"id",
"of",
"Daniel",
"Lewis",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"id",
"of",
"Daniel",
"Lewis",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT rID FROM Reviewer WHERE name = "Daniel Lewis" | What is the id of the reviewer named Daniel Lewis? | [
"SELECT",
"rID",
"FROM",
"Reviewer",
"WHERE",
"name",
"=",
"``",
"Daniel",
"Lewis",
"''"
] | [
"select",
"rid",
"from",
"reviewer",
"where",
"name",
"=",
"value"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"reviewer",
"named",
"Daniel",
"Lewis",
"?"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"<mask>",
"<mask>",
"Daniel",
"Lewis",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT count(*) FROM Rating WHERE stars > 3 | What is the total number of ratings that has more than 3 stars? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Rating",
"WHERE",
"stars",
">",
"3"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"rating",
"where",
"stars",
">",
"value"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"ratings",
"that",
"has",
"more",
"than",
"3",
"stars",
"?"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"<mask>",
"that",
"has",
"more",
"than",
"<unk>",
"stars",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
movie_1 | SELECT count(*) FROM Rating WHERE stars > 3 | How many movie ratings have more than 3 stars? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Rating",
"WHERE",
"stars",
">",
"3"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"rating",
"where",
"stars",
">",
"value"
] | [
"How",
"many",
"movie",
"ratings",
"have",
"more",
"than",
"3",
"stars",
"?"
] | [
"How",
"many",
"<mask>",
"<mask>",
"have",
"more",
"than",
"<unk>",
"stars",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
movie_1 | SELECT max(stars) , min(stars) FROM Rating | What is the lowest and highest rating star? | [
"SELECT",
"max",
"(",
"stars",
")",
",",
"min",
"(",
"stars",
")",
"FROM",
"Rating"
] | [
"select",
"max",
"(",
"stars",
")",
",",
"min",
"(",
"stars",
")",
"from",
"rating"
] | [
"What",
"is",
"the",
"lowest",
"and",
"highest",
"rating",
"star",
"?"
] | [
"What",
"is",
"the",
"lowest",
"and",
"highest",
"<mask>",
"star",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
movie_1 | SELECT max(stars) , min(stars) FROM Rating | What is the maximum and mininum number of stars a rating can receive? | [
"SELECT",
"max",
"(",
"stars",
")",
",",
"min",
"(",
"stars",
")",
"FROM",
"Rating"
] | [
"select",
"max",
"(",
"stars",
")",
",",
"min",
"(",
"stars",
")",
"from",
"rating"
] | [
"What",
"is",
"the",
"maximum",
"and",
"mininum",
"number",
"of",
"stars",
"a",
"rating",
"can",
"receive",
"?"
] | [
"What",
"is",
"the",
"maximum",
"and",
"mininum",
"number",
"of",
"stars",
"a",
"<mask>",
"can",
"receive",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
movie_1 | SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year | Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year. | [
"SELECT",
"DISTINCT",
"YEAR",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.stars",
">",
"=",
"4",
"ORDER",
"BY",
"T1.year"
] | [
"select",
"distinct",
"year",
"from",
"movie",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"stars",
">",
"=",
"value",
"order",
"by",
"t1",
".",
"year"
] | [
"Find",
"all",
"years",
"that",
"have",
"a",
"movie",
"that",
"received",
"a",
"rating",
"of",
"4",
"or",
"5",
",",
"and",
"sort",
"them",
"in",
"increasing",
"order",
"of",
"year",
"."
] | [
"Find",
"all",
"<mask>",
"that",
"have",
"a",
"<mask>",
"that",
"received",
"a",
"<mask>",
"of",
"<unk>",
"or",
"<unk>",
",",
"and",
"sort",
"them",
"in",
"increasing",
"order",
"of",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>"
] |
movie_1 | SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year | In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently? | [
"SELECT",
"DISTINCT",
"YEAR",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.stars",
">",
"=",
"4",
"ORDER",
"BY",
"T1.year"
] | [
"select",
"distinct",
"year",
"from",
"movie",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"stars",
">",
"=",
"value",
"order",
"by",
"t1",
".",
"year"
] | [
"In",
"what",
"years",
"did",
"a",
"movie",
"receive",
"a",
"4",
"or",
"5",
"star",
"rating",
",",
"and",
"list",
"the",
"years",
"from",
"oldest",
"to",
"most",
"recently",
"?"
] | [
"In",
"what",
"<mask>",
"did",
"a",
"<mask>",
"receive",
"a",
"<unk>",
"or",
"<unk>",
"star",
"<mask>",
",",
"and",
"list",
"the",
"<mask>",
"from",
"oldest",
"to",
"most",
"recently",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>"
] |
movie_1 | SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5 | What are the names of directors who directed movies with 5 star rating? Also return the title of these movies. | [
"SELECT",
"T1.director",
",",
"T1.title",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.stars",
"=",
"5"
] | [
"select",
"t1",
".",
"director",
",",
"t1",
".",
"title",
"from",
"movie",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"stars",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"directors",
"who",
"directed",
"movies",
"with",
"5",
"star",
"rating",
"?",
"Also",
"return",
"the",
"title",
"of",
"these",
"movies",
"."
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"directed",
"<mask>",
"with",
"<unk>",
"star",
"<mask>",
"?",
"Also",
"return",
"the",
"<mask>",
"of",
"these",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5 | What are the names of the directors who created a movie with a 5 star rating, and what was the name of those movies? | [
"SELECT",
"T1.director",
",",
"T1.title",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.stars",
"=",
"5"
] | [
"select",
"t1",
".",
"director",
",",
"t1",
".",
"title",
"from",
"movie",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"stars",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"directors",
"who",
"created",
"a",
"movie",
"with",
"a",
"5",
"star",
"rating",
",",
"and",
"what",
"was",
"the",
"name",
"of",
"those",
"movies",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"created",
"a",
"<mask>",
"with",
"a",
"<unk>",
"star",
"<mask>",
",",
"and",
"what",
"was",
"the",
"<mask>",
"of",
"those",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name | What is the average rating star for each reviewer? | [
"SELECT",
"T2.name",
",",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Reviewer",
"AS",
"T2",
"ON",
"T1.rID",
"=",
"T2.rID",
"GROUP",
"BY",
"T2.name"
] | [
"select",
"t2",
".",
"name",
",",
"avg",
"(",
"t1",
".",
"stars",
")",
"from",
"rating",
"as",
"t1",
"join",
"reviewer",
"as",
"t2",
"on",
"t1",
".",
"rid",
"=",
"t2",
".",
"rid",
"group",
"by",
"t2",
".",
"name"
] | [
"What",
"is",
"the",
"average",
"rating",
"star",
"for",
"each",
"reviewer",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"star",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
movie_1 | SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name | What is the average number of stars that each reviewer awards for a movie? | [
"SELECT",
"T2.name",
",",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Reviewer",
"AS",
"T2",
"ON",
"T1.rID",
"=",
"T2.rID",
"GROUP",
"BY",
"T2.name"
] | [
"select",
"t2",
".",
"name",
",",
"avg",
"(",
"t1",
".",
"stars",
")",
"from",
"rating",
"as",
"t1",
"join",
"reviewer",
"as",
"t2",
"on",
"t1",
".",
"rid",
"=",
"t2",
".",
"rid",
"group",
"by",
"t2",
".",
"name"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"stars",
"that",
"each",
"reviewer",
"awards",
"for",
"a",
"movie",
"?"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"stars",
"that",
"each",
"<mask>",
"awards",
"for",
"a",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
movie_1 | SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating) | Find the titles of all movies that have no ratings. | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"mID",
"NOT",
"IN",
"(",
"SELECT",
"mID",
"FROM",
"Rating",
")"
] | [
"select",
"title",
"from",
"movie",
"where",
"mid",
"not",
"in",
"(",
"select",
"mid",
"from",
"rating",
")"
] | [
"Find",
"the",
"titles",
"of",
"all",
"movies",
"that",
"have",
"no",
"ratings",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"no",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
movie_1 | SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating) | What are the titles of all movies that have not been rated? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"mID",
"NOT",
"IN",
"(",
"SELECT",
"mID",
"FROM",
"Rating",
")"
] | [
"select",
"title",
"from",
"movie",
"where",
"mid",
"not",
"in",
"(",
"select",
"mid",
"from",
"rating",
")"
] | [
"What",
"are",
"the",
"titles",
"of",
"all",
"movies",
"that",
"have",
"not",
"been",
"rated",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"not",
"been",
"rated",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
movie_1 | SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = "null" | Find the names of all reviewers who have ratings with a NULL value for the date. | [
"SELECT",
"DISTINCT",
"name",
"FROM",
"Reviewer",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.rID",
"=",
"T2.rID",
"WHERE",
"ratingDate",
"=",
"``",
"null",
"''"
] | [
"select",
"distinct",
"name",
"from",
"reviewer",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"rid",
"=",
"t2",
".",
"rid",
"where",
"ratingdate",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"all",
"reviewers",
"who",
"have",
"ratings",
"with",
"a",
"NULL",
"value",
"for",
"the",
"date",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"who",
"have",
"<mask>",
"with",
"a",
"NULL",
"value",
"for",
"the",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = "null" | What are the different names of all reviewers whose ratings do not have a date field? | [
"SELECT",
"DISTINCT",
"name",
"FROM",
"Reviewer",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.rID",
"=",
"T2.rID",
"WHERE",
"ratingDate",
"=",
"``",
"null",
"''"
] | [
"select",
"distinct",
"name",
"from",
"reviewer",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"rid",
"=",
"t2",
".",
"rid",
"where",
"ratingdate",
"=",
"value"
] | [
"What",
"are",
"the",
"different",
"names",
"of",
"all",
"reviewers",
"whose",
"ratings",
"do",
"not",
"have",
"a",
"date",
"field",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"of",
"all",
"<mask>",
"whose",
"<mask>",
"do",
"not",
"have",
"a",
"<mask>",
"field",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
movie_1 | SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie) | What is the average rating stars and title for the oldest movie? | [
"SELECT",
"avg",
"(",
"T1.stars",
")",
",",
"T2.title",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.year",
"=",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"Movie",
")"
] | [
"select",
"avg",
"(",
"t1",
".",
"stars",
")",
",",
"t2",
".",
"title",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"year",
"=",
"(",
"select",
"min",
"(",
"year"... | [
"What",
"is",
"the",
"average",
"rating",
"stars",
"and",
"title",
"for",
"the",
"oldest",
"movie",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"stars",
"and",
"<mask>",
"for",
"the",
"oldest",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"(... |
movie_1 | SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie) | For the oldest movie listed, what is its average rating and title? | [
"SELECT",
"avg",
"(",
"T1.stars",
")",
",",
"T2.title",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.year",
"=",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"Movie",
")"
] | [
"select",
"avg",
"(",
"t1",
".",
"stars",
")",
",",
"t2",
".",
"title",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"year",
"=",
"(",
"select",
"min",
"(",
"year"... | [
"For",
"the",
"oldest",
"movie",
"listed",
",",
"what",
"is",
"its",
"average",
"rating",
"and",
"title",
"?"
] | [
"For",
"the",
"oldest",
"<mask>",
"listed",
",",
"what",
"is",
"its",
"average",
"<mask>",
"and",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"(... |
movie_1 | SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie) | What is the name of the most recent movie? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"YEAR",
"=",
"(",
"SELECT",
"max",
"(",
"YEAR",
")",
"FROM",
"Movie",
")"
] | [
"select",
"title",
"from",
"movie",
"where",
"year",
"=",
"(",
"select",
"max",
"(",
"year",
")",
"from",
"movie",
")"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"most",
"recent",
"movie",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"most",
"recent",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
movie_1 | SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie) | What is the title of the newest movie? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"YEAR",
"=",
"(",
"SELECT",
"max",
"(",
"YEAR",
")",
"FROM",
"Movie",
")"
] | [
"select",
"title",
"from",
"movie",
"where",
"year",
"=",
"(",
"select",
"max",
"(",
"year",
")",
"from",
"movie",
")"
] | [
"What",
"is",
"the",
"title",
"of",
"the",
"newest",
"movie",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"newest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
movie_1 | SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie) | What is the maximum stars and year for the most recent movie? | [
"SELECT",
"max",
"(",
"T1.stars",
")",
",",
"T2.year",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.year",
"=",
"(",
"SELECT",
"max",
"(",
"YEAR",
")",
"FROM",
"Movie",
")"
] | [
"select",
"max",
"(",
"t1",
".",
"stars",
")",
",",
"t2",
".",
"year",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"year",
"=",
"(",
"select",
"max",
"(",
"year",... | [
"What",
"is",
"the",
"maximum",
"stars",
"and",
"year",
"for",
"the",
"most",
"recent",
"movie",
"?"
] | [
"What",
"is",
"the",
"maximum",
"stars",
"and",
"<mask>",
"for",
"the",
"most",
"recent",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"(... |
movie_1 | SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie) | What is highest rating for the most recent movie and when was it released? | [
"SELECT",
"max",
"(",
"T1.stars",
")",
",",
"T2.year",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T2.year",
"=",
"(",
"SELECT",
"max",
"(",
"YEAR",
")",
"FROM",
"Movie",
")"
] | [
"select",
"max",
"(",
"t1",
".",
"stars",
")",
",",
"t2",
".",
"year",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t2",
".",
"year",
"=",
"(",
"select",
"max",
"(",
"year",... | [
"What",
"is",
"highest",
"rating",
"for",
"the",
"most",
"recent",
"movie",
"and",
"when",
"was",
"it",
"released",
"?"
] | [
"What",
"is",
"highest",
"<mask>",
"for",
"the",
"most",
"recent",
"<mask>",
"and",
"when",
"was",
"it",
"released",
"?"
] | [
"select",
"max",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"(... |
movie_1 | SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = "Steven Spielberg") | What is the names of movies whose created year is after all movies directed by Steven Spielberg? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"YEAR",
">",
"(",
"SELECT",
"max",
"(",
"YEAR",
")",
"FROM",
"Movie",
"WHERE",
"director",
"=",
"``",
"Steven",
"Spielberg",
"''",
")"
] | [
"select",
"title",
"from",
"movie",
"where",
"year",
">",
"(",
"select",
"max",
"(",
"year",
")",
"from",
"movie",
"where",
"director",
"=",
"value",
")"
] | [
"What",
"is",
"the",
"names",
"of",
"movies",
"whose",
"created",
"year",
"is",
"after",
"all",
"movies",
"directed",
"by",
"Steven",
"Spielberg",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"created",
"<mask>",
"is",
"after",
"all",
"<mask>",
"directed",
"by",
"Steven",
"Spielberg",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
movie_1 | SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = "Steven Spielberg") | What are the names of all movies that were created after the most recent Steven Spielberg film? | [
"SELECT",
"title",
"FROM",
"Movie",
"WHERE",
"YEAR",
">",
"(",
"SELECT",
"max",
"(",
"YEAR",
")",
"FROM",
"Movie",
"WHERE",
"director",
"=",
"``",
"Steven",
"Spielberg",
"''",
")"
] | [
"select",
"title",
"from",
"movie",
"where",
"year",
">",
"(",
"select",
"max",
"(",
"year",
")",
"from",
"movie",
"where",
"director",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"movies",
"that",
"were",
"created",
"after",
"the",
"most",
"recent",
"Steven",
"Spielberg",
"film",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"were",
"created",
"after",
"the",
"most",
"recent",
"Steven",
"Spielberg",
"film",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
movie_1 | SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron") | What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron? | [
"SELECT",
"T2.title",
",",
"T2.director",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T1.stars",
">",
"(",
"SELECT",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",... | [
"select",
"t2",
".",
"title",
",",
"t2",
".",
"director",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t1",
".",
"stars",
">",
"(",
"select",
"avg",
"(",
"t1",
".",
"stars",
... | [
"What",
"are",
"the",
"titles",
"and",
"directors",
"of",
"the",
"movies",
"whose",
"star",
"is",
"greater",
"than",
"the",
"average",
"stars",
"of",
"the",
"movies",
"directed",
"by",
"James",
"Cameron",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"star",
"is",
"greater",
"than",
"the",
"average",
"stars",
"of",
"the",
"<mask>",
"directed",
"by",
"James",
"Cameron",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"(",
"select",
"avg",... |
movie_1 | SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron") | What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating? | [
"SELECT",
"T2.title",
",",
"T2.director",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"WHERE",
"T1.stars",
">",
"(",
"SELECT",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",... | [
"select",
"t2",
".",
"title",
",",
"t2",
".",
"director",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"where",
"t1",
".",
"stars",
">",
"(",
"select",
"avg",
"(",
"t1",
".",
"stars",
... | [
"What",
"are",
"the",
"titles",
"and",
"directors",
"of",
"all",
"movies",
"that",
"have",
"a",
"rating",
"higher",
"than",
"the",
"average",
"James",
"Cameron",
"film",
"rating",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"a",
"<mask>",
"higher",
"than",
"the",
"average",
"James",
"Cameron",
"film",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"(",
"select",
"avg",... |
movie_1 | SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars | Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars. | [
"SELECT",
"T3.name",
",",
"T2.title",
",",
"T1.stars",
",",
"T1.ratingDate",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"ORDER",
"BY",
"T3.name",
... | [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"title",
",",
"t1",
".",
"stars",
",",
"t1",
".",
"ratingdate",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",... | [
"Return",
"reviewer",
"name",
",",
"movie",
"title",
",",
"stars",
",",
"and",
"ratingDate",
".",
"And",
"sort",
"the",
"data",
"first",
"by",
"reviewer",
"name",
",",
"then",
"by",
"movie",
"title",
",",
"and",
"lastly",
"by",
"number",
"of",
"stars",
... | [
"Return",
"<mask>",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"stars",
",",
"and",
"ratingDate",
".",
"And",
"sort",
"the",
"data",
"first",
"by",
"<mask>",
"<mask>",
",",
"then",
"by",
"<mask>",
"<mask>",
",",
"and",
"lastly",
"by",
"number",
"of",
"stars... | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
... |
movie_1 | SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars | What is the reviewer name, film title, movie rating, and rating date for every movie ordered by reviewer name, movie title, then finally rating? | [
"SELECT",
"T3.name",
",",
"T2.title",
",",
"T1.stars",
",",
"T1.ratingDate",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"ORDER",
"BY",
"T3.name",
... | [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"title",
",",
"t1",
".",
"stars",
",",
"t1",
".",
"ratingdate",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",... | [
"What",
"is",
"the",
"reviewer",
"name",
",",
"film",
"title",
",",
"movie",
"rating",
",",
"and",
"rating",
"date",
"for",
"every",
"movie",
"ordered",
"by",
"reviewer",
"name",
",",
"movie",
"title",
",",
"then",
"finally",
"rating",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
",",
"film",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"every",
"<mask>",
"ordered",
"by",
"<mask>",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"then",
"finally",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
... |
movie_1 | SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3 | Find the names of all reviewers who have contributed three or more ratings. | [
"SELECT",
"T2.name",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Reviewer",
"AS",
"T2",
"ON",
"T1.rID",
"=",
"T2.rID",
"GROUP",
"BY",
"T1.rID",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"3"
] | [
"select",
"t2",
".",
"name",
"from",
"rating",
"as",
"t1",
"join",
"reviewer",
"as",
"t2",
"on",
"t1",
".",
"rid",
"=",
"t2",
".",
"rid",
"group",
"by",
"t1",
".",
"rid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"all",
"reviewers",
"who",
"have",
"contributed",
"three",
"or",
"more",
"ratings",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"who",
"have",
"contributed",
"three",
"or",
"more",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
movie_1 | SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3 | What are the names of all reviewers that have rated 3 or more movies? | [
"SELECT",
"T2.name",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Reviewer",
"AS",
"T2",
"ON",
"T1.rID",
"=",
"T2.rID",
"GROUP",
"BY",
"T1.rID",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"3"
] | [
"select",
"t2",
".",
"name",
"from",
"rating",
"as",
"t1",
"join",
"reviewer",
"as",
"t2",
"on",
"t1",
".",
"rid",
"=",
"t2",
".",
"rid",
"group",
"by",
"t1",
".",
"rid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"reviewers",
"that",
"have",
"rated",
"3",
"or",
"more",
"movies",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"rated",
"<unk>",
"or",
"more",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<un... |
movie_1 | SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind' | Find the names of all reviewers who rated Gone with the Wind. | [
"SELECT",
"DISTINCT",
"T3.name",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T2.title",
"=",
"'Gone",
"with",
"the",
"Wind",
"'"
] | [
"select",
"distinct",
"t3",
".",
"name",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
"rid",
"=",
"t3",
".",
"rid",
"where",
"t2",
".",
... | [
"Find",
"the",
"names",
"of",
"all",
"reviewers",
"who",
"rated",
"Gone",
"with",
"the",
"Wind",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"who",
"rated",
"Gone",
"with",
"the",
"Wind",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
... |
movie_1 | SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind' | What are the names of all the different reviewers who rates Gone with the Wind? | [
"SELECT",
"DISTINCT",
"T3.name",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T2.title",
"=",
"'Gone",
"with",
"the",
"Wind",
"'"
] | [
"select",
"distinct",
"t3",
".",
"name",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
"rid",
"=",
"t3",
".",
"rid",
"where",
"t2",
".",
... | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"different",
"reviewers",
"who",
"rates",
"Gone",
"with",
"the",
"Wind",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"the",
"different",
"<mask>",
"who",
"rates",
"Gone",
"with",
"the",
"Wind",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
... |
movie_1 | SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' | Find the names of all directors whose movies are rated by Sarah Martinez. | [
"SELECT",
"DISTINCT",
"T2.director",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T3.name",
"=",
"'Sarah",
"Martinez",
"'"
] | [
"select",
"distinct",
"t2",
".",
"director",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
"rid",
"=",
"t3",
".",
"rid",
"where",
"t3",
"... | [
"Find",
"the",
"names",
"of",
"all",
"directors",
"whose",
"movies",
"are",
"rated",
"by",
"Sarah",
"Martinez",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"whose",
"<mask>",
"are",
"rated",
"by",
"Sarah",
"Martinez",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
... |
movie_1 | SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' | What are the names of all directors whose movies have been reviewed by Sarah Martinez? | [
"SELECT",
"DISTINCT",
"T2.director",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T3.name",
"=",
"'Sarah",
"Martinez",
"'"
] | [
"select",
"distinct",
"t2",
".",
"director",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
"rid",
"=",
"t3",
".",
"rid",
"where",
"t3",
"... | [
"What",
"are",
"the",
"names",
"of",
"all",
"directors",
"whose",
"movies",
"have",
"been",
"reviewed",
"by",
"Sarah",
"Martinez",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"whose",
"<mask>",
"have",
"been",
"reviewed",
"by",
"Sarah",
"Martinez",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
... |
movie_1 | SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name | For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars. | [
"SELECT",
"DISTINCT",
"T3.name",
",",
"T2.title",
",",
"T1.stars",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T2.director",
"=",
"T3.nam... | [
"select",
"distinct",
"t3",
".",
"name",
",",
"t2",
".",
"title",
",",
"t1",
".",
"stars",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
... | [
"For",
"any",
"rating",
"where",
"the",
"name",
"of",
"reviewer",
"is",
"the",
"same",
"as",
"the",
"director",
"of",
"the",
"movie",
",",
"return",
"the",
"reviewer",
"name",
",",
"movie",
"title",
",",
"and",
"number",
"of",
"stars",
"."
] | [
"For",
"any",
"<mask>",
"where",
"the",
"<mask>",
"of",
"<mask>",
"is",
"the",
"same",
"as",
"the",
"<mask>",
"of",
"the",
"<mask>",
",",
"return",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"and",
"number",
"of",
"stars",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
... |
movie_1 | SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name | What are the different reviewer names, movie titles, and stars for every rating where the reviewer had the same name as the director? | [
"SELECT",
"DISTINCT",
"T3.name",
",",
"T2.title",
",",
"T1.stars",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T2.director",
"=",
"T3.nam... | [
"select",
"distinct",
"t3",
".",
"name",
",",
"t2",
".",
"title",
",",
"t1",
".",
"stars",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
... | [
"What",
"are",
"the",
"different",
"reviewer",
"names",
",",
"movie",
"titles",
",",
"and",
"stars",
"for",
"every",
"rating",
"where",
"the",
"reviewer",
"had",
"the",
"same",
"name",
"as",
"the",
"director",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"and",
"stars",
"for",
"every",
"<mask>",
"where",
"the",
"<mask>",
"had",
"the",
"same",
"<mask>",
"as",
"the",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
... |
movie_1 | SELECT name FROM Reviewer UNION SELECT title FROM Movie | Return all reviewer names and movie names together in a single list. | [
"SELECT",
"name",
"FROM",
"Reviewer",
"UNION",
"SELECT",
"title",
"FROM",
"Movie"
] | [
"select",
"name",
"from",
"reviewer",
"union",
"select",
"title",
"from",
"movie"
] | [
"Return",
"all",
"reviewer",
"names",
"and",
"movie",
"names",
"together",
"in",
"a",
"single",
"list",
"."
] | [
"Return",
"all",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"together",
"in",
"a",
"single",
"list",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"union",
"select",
"<mask>",
"from",
"<mask>"
] |
movie_1 | SELECT name FROM Reviewer UNION SELECT title FROM Movie | What are the names of all the reviewers and movie names? | [
"SELECT",
"name",
"FROM",
"Reviewer",
"UNION",
"SELECT",
"title",
"FROM",
"Movie"
] | [
"select",
"name",
"from",
"reviewer",
"union",
"select",
"title",
"from",
"movie"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"reviewers",
"and",
"movie",
"names",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"union",
"select",
"<mask>",
"from",
"<mask>"
] |
movie_1 | SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' | Find the titles of all movies not reviewed by Chris Jackson. | [
"SELECT",
"DISTINCT",
"title",
"FROM",
"Movie",
"EXCEPT",
"SELECT",
"T2.title",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T3.name",
"="... | [
"select",
"distinct",
"title",
"from",
"movie",
"except",
"select",
"t2",
".",
"title",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
"rid",
... | [
"Find",
"the",
"titles",
"of",
"all",
"movies",
"not",
"reviewed",
"by",
"Chris",
"Jackson",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"not",
"reviewed",
"by",
"Chris",
"Jackson",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
... |
movie_1 | SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' | What are the titles of all movies that were not reviewed by Chris Jackson? | [
"SELECT",
"DISTINCT",
"title",
"FROM",
"Movie",
"EXCEPT",
"SELECT",
"T2.title",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"JOIN",
"Reviewer",
"AS",
"T3",
"ON",
"T1.rID",
"=",
"T3.rID",
"WHERE",
"T3.name",
"="... | [
"select",
"distinct",
"title",
"from",
"movie",
"except",
"select",
"t2",
".",
"title",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"join",
"reviewer",
"as",
"t3",
"on",
"t1",
".",
"rid",
... | [
"What",
"are",
"the",
"titles",
"of",
"all",
"movies",
"that",
"were",
"not",
"reviewed",
"by",
"Chris",
"Jackson",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"were",
"not",
"reviewed",
"by",
"Chris",
"Jackson",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
... |
movie_1 | SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title | For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title. | [
"SELECT",
"T1.title",
",",
"T1.director",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.director",
"=",
"T2.director",
"WHERE",
"T1.title",
"!",
"=",
"T2.title",
"ORDER",
"BY",
"T1.director",
",",
"T1.title"
] | [
"select",
"t1",
".",
"title",
",",
"t1",
".",
"director",
"from",
"movie",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"director",
"=",
"t2",
".",
"director",
"where",
"t1",
".",
"title",
"!",
"=",
"t2",
".",
"title",
"order",
"by",
... | [
"For",
"all",
"directors",
"who",
"directed",
"more",
"than",
"one",
"movie",
",",
"return",
"the",
"titles",
"of",
"all",
"movies",
"directed",
"by",
"them",
",",
"along",
"with",
"the",
"director",
"name",
".",
"Sort",
"by",
"director",
"name",
",",
"t... | [
"For",
"all",
"<mask>",
"who",
"directed",
"more",
"than",
"one",
"<mask>",
",",
"return",
"the",
"<mask>",
"of",
"all",
"<mask>",
"directed",
"by",
"them",
",",
"along",
"with",
"the",
"<mask>",
"<mask>",
".",
"Sort",
"by",
"<mask>",
"<mask>",
",",
"the... | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"!",
"=",
"<mask>",
".",
... |
movie_1 | SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title | For all directors who have directed more than one movie, what movies have they directed and what are their names? | [
"SELECT",
"T1.title",
",",
"T1.director",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.director",
"=",
"T2.director",
"WHERE",
"T1.title",
"!",
"=",
"T2.title",
"ORDER",
"BY",
"T1.director",
",",
"T1.title"
] | [
"select",
"t1",
".",
"title",
",",
"t1",
".",
"director",
"from",
"movie",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"director",
"=",
"t2",
".",
"director",
"where",
"t1",
".",
"title",
"!",
"=",
"t2",
".",
"title",
"order",
"by",
... | [
"For",
"all",
"directors",
"who",
"have",
"directed",
"more",
"than",
"one",
"movie",
",",
"what",
"movies",
"have",
"they",
"directed",
"and",
"what",
"are",
"their",
"names",
"?"
] | [
"For",
"all",
"<mask>",
"who",
"have",
"directed",
"more",
"than",
"one",
"<mask>",
",",
"what",
"<mask>",
"have",
"they",
"directed",
"and",
"what",
"are",
"their",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"!",
"=",
"<mask>",
".",
... |
movie_1 | SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title | For directors who had more than one movie, return the titles and produced years of all movies directed by them. | [
"SELECT",
"T1.title",
",",
"T1.year",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.director",
"=",
"T2.director",
"WHERE",
"T1.title",
"!",
"=",
"T2.title"
] | [
"select",
"t1",
".",
"title",
",",
"t1",
".",
"year",
"from",
"movie",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"director",
"=",
"t2",
".",
"director",
"where",
"t1",
".",
"title",
"!",
"=",
"t2",
".",
"title"
] | [
"For",
"directors",
"who",
"had",
"more",
"than",
"one",
"movie",
",",
"return",
"the",
"titles",
"and",
"produced",
"years",
"of",
"all",
"movies",
"directed",
"by",
"them",
"."
] | [
"For",
"<mask>",
"who",
"had",
"more",
"than",
"one",
"<mask>",
",",
"return",
"the",
"<mask>",
"and",
"produced",
"<mask>",
"of",
"all",
"<mask>",
"directed",
"by",
"them",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"!",
"=",
"<mask>",
".",
... |
movie_1 | SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title | For each director who directed more than one movie, what are the titles and dates of release for all those movies? | [
"SELECT",
"T1.title",
",",
"T1.year",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.director",
"=",
"T2.director",
"WHERE",
"T1.title",
"!",
"=",
"T2.title"
] | [
"select",
"t1",
".",
"title",
",",
"t1",
".",
"year",
"from",
"movie",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"director",
"=",
"t2",
".",
"director",
"where",
"t1",
".",
"title",
"!",
"=",
"t2",
".",
"title"
] | [
"For",
"each",
"director",
"who",
"directed",
"more",
"than",
"one",
"movie",
",",
"what",
"are",
"the",
"titles",
"and",
"dates",
"of",
"release",
"for",
"all",
"those",
"movies",
"?"
] | [
"For",
"each",
"<mask>",
"who",
"directed",
"more",
"than",
"one",
"<mask>",
",",
"what",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"release",
"for",
"all",
"those",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"!",
"=",
"<mask>",
".",
... |
movie_1 | SELECT director FROM Movie GROUP BY director HAVING count(*) = 1 | What are the names of the directors who made exactly one movie? | [
"SELECT",
"director",
"FROM",
"Movie",
"GROUP",
"BY",
"director",
"HAVING",
"count",
"(",
"*",
")",
"=",
"1"
] | [
"select",
"director",
"from",
"movie",
"group",
"by",
"director",
"having",
"count",
"(",
"*",
")",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"directors",
"who",
"made",
"exactly",
"one",
"movie",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"made",
"exactly",
"one",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
"=",
"<unk>"
] |
movie_1 | SELECT director FROM Movie GROUP BY director HAVING count(*) = 1 | What are the names of all directors who made one movie? | [
"SELECT",
"director",
"FROM",
"Movie",
"GROUP",
"BY",
"director",
"HAVING",
"count",
"(",
"*",
")",
"=",
"1"
] | [
"select",
"director",
"from",
"movie",
"group",
"by",
"director",
"having",
"count",
"(",
"*",
")",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"directors",
"who",
"made",
"one",
"movie",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"who",
"made",
"one",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
"=",
"<unk>"
] |
movie_1 | SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*) = 1 | What are the names of the directors who made exactly one movie excluding director NULL? | [
"SELECT",
"director",
"FROM",
"Movie",
"WHERE",
"director",
"!",
"=",
"``",
"null",
"''",
"GROUP",
"BY",
"director",
"HAVING",
"count",
"(",
"*",
")",
"=",
"1"
] | [
"select",
"director",
"from",
"movie",
"where",
"director",
"!",
"=",
"value",
"group",
"by",
"director",
"having",
"count",
"(",
"*",
")",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"directors",
"who",
"made",
"exactly",
"one",
"movie",
"excluding",
"director",
"NULL",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"made",
"exactly",
"one",
"<mask>",
"excluding",
"<mask>",
"NULL",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
"=",
"<unk>"
] |
movie_1 | SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*) = 1 | What are the names of all directors who have made one movie except for the director named NULL? | [
"SELECT",
"director",
"FROM",
"Movie",
"WHERE",
"director",
"!",
"=",
"``",
"null",
"''",
"GROUP",
"BY",
"director",
"HAVING",
"count",
"(",
"*",
")",
"=",
"1"
] | [
"select",
"director",
"from",
"movie",
"where",
"director",
"!",
"=",
"value",
"group",
"by",
"director",
"having",
"count",
"(",
"*",
")",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"directors",
"who",
"have",
"made",
"one",
"movie",
"except",
"for",
"the",
"director",
"named",
"NULL",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"who",
"have",
"made",
"one",
"<mask>",
"except",
"for",
"the",
"<mask>",
"<mask>",
"NULL",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
"=",
"<unk>"
] |
movie_1 | SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director | How many movie reviews does each director get? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.director",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"GROUP",
"BY",
"T1.director"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"director",
"from",
"movie",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"group",
"by",
"t1",
".",
"director"
] | [
"How",
"many",
"movie",
"reviews",
"does",
"each",
"director",
"get",
"?"
] | [
"How",
"many",
"<mask>",
"reviews",
"does",
"each",
"<mask>",
"get",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
movie_1 | SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director | For each director, how many reviews have they received? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.director",
"FROM",
"Movie",
"AS",
"T1",
"JOIN",
"Rating",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"GROUP",
"BY",
"T1.director"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"director",
"from",
"movie",
"as",
"t1",
"join",
"rating",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"group",
"by",
"t1",
".",
"director"
] | [
"For",
"each",
"director",
",",
"how",
"many",
"reviews",
"have",
"they",
"received",
"?"
] | [
"For",
"each",
"<mask>",
",",
"how",
"many",
"reviews",
"have",
"they",
"received",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
movie_1 | SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1 | Find the movies with the highest average rating. Return the movie titles and average rating. | [
"SELECT",
"T2.title",
",",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"GROUP",
"BY",
"T1.mID",
"ORDER",
"BY",
"avg",
"(",
"T1.stars",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"title",
",",
"avg",
"(",
"t1",
".",
"stars",
")",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"group",
"by",
"t1",
".",
"mid",
"order",
"by",
"avg",
"(",
"t1",
... | [
"Find",
"the",
"movies",
"with",
"the",
"highest",
"average",
"rating",
".",
"Return",
"the",
"movie",
"titles",
"and",
"average",
"rating",
"."
] | [
"Find",
"the",
"<mask>",
"with",
"the",
"highest",
"average",
"<mask>",
".",
"Return",
"the",
"<mask>",
"<mask>",
"and",
"average",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"... |
movie_1 | SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1 | What are the movie titles with the highest average rating and what are those ratings? | [
"SELECT",
"T2.title",
",",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"GROUP",
"BY",
"T1.mID",
"ORDER",
"BY",
"avg",
"(",
"T1.stars",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"title",
",",
"avg",
"(",
"t1",
".",
"stars",
")",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"group",
"by",
"t1",
".",
"mid",
"order",
"by",
"avg",
"(",
"t1",
... | [
"What",
"are",
"the",
"movie",
"titles",
"with",
"the",
"highest",
"average",
"rating",
"and",
"what",
"are",
"those",
"ratings",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"with",
"the",
"highest",
"average",
"<mask>",
"and",
"what",
"are",
"those",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"... |
movie_1 | SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1 | What are the movie titles and average rating of the movies with the lowest average rating? | [
"SELECT",
"T2.title",
",",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"GROUP",
"BY",
"T1.mID",
"ORDER",
"BY",
"avg",
"(",
"T1.stars",
")",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"title",
",",
"avg",
"(",
"t1",
".",
"stars",
")",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"group",
"by",
"t1",
".",
"mid",
"order",
"by",
"avg",
"(",
"t1",
... | [
"What",
"are",
"the",
"movie",
"titles",
"and",
"average",
"rating",
"of",
"the",
"movies",
"with",
"the",
"lowest",
"average",
"rating",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"average",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"lowest",
"average",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"... |
movie_1 | SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1 | What are the titles and average ratings for all movies that have the lowest average rating? | [
"SELECT",
"T2.title",
",",
"avg",
"(",
"T1.stars",
")",
"FROM",
"Rating",
"AS",
"T1",
"JOIN",
"Movie",
"AS",
"T2",
"ON",
"T1.mID",
"=",
"T2.mID",
"GROUP",
"BY",
"T1.mID",
"ORDER",
"BY",
"avg",
"(",
"T1.stars",
")",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"title",
",",
"avg",
"(",
"t1",
".",
"stars",
")",
"from",
"rating",
"as",
"t1",
"join",
"movie",
"as",
"t2",
"on",
"t1",
".",
"mid",
"=",
"t2",
".",
"mid",
"group",
"by",
"t1",
".",
"mid",
"order",
"by",
"avg",
"(",
"t1",
... | [
"What",
"are",
"the",
"titles",
"and",
"average",
"ratings",
"for",
"all",
"movies",
"that",
"have",
"the",
"lowest",
"average",
"rating",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"average",
"<mask>",
"for",
"all",
"<mask>",
"that",
"have",
"the",
"lowest",
"average",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.