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 |
|---|---|---|---|---|---|---|---|
election | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal" | Which committees have delegates from both democratic party and liberal party? | [
"SELECT",
"T1.Committee",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T2.Party",
"=",
"``",
"Democratic",
"''",
"INTERSECT",
"SELECT",
"T1.Committee",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"par... | [
"select",
"t1",
".",
"committee",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t2",
".",
"party",
"=",
"value",
"intersect",
"select",
"t1",
".",
"committee",
"from",
"elec... | [
"Which",
"committees",
"have",
"delegates",
"from",
"both",
"democratic",
"party",
"and",
"liberal",
"party",
"?"
] | [
"Which",
"<mask>",
"have",
"<mask>",
"from",
"both",
"democratic",
"<mask>",
"and",
"liberal",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
election | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal" | Find the committees that have delegates both from from the democratic party and the liberal party. | [
"SELECT",
"T1.Committee",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"party",
"AS",
"T2",
"ON",
"T1.Party",
"=",
"T2.Party_ID",
"WHERE",
"T2.Party",
"=",
"``",
"Democratic",
"''",
"INTERSECT",
"SELECT",
"T1.Committee",
"FROM",
"election",
"AS",
"T1",
"JOIN",
"par... | [
"select",
"t1",
".",
"committee",
"from",
"election",
"as",
"t1",
"join",
"party",
"as",
"t2",
"on",
"t1",
".",
"party",
"=",
"t2",
".",
"party_id",
"where",
"t2",
".",
"party",
"=",
"value",
"intersect",
"select",
"t1",
".",
"committee",
"from",
"elec... | [
"Find",
"the",
"committees",
"that",
"have",
"delegates",
"both",
"from",
"from",
"the",
"democratic",
"party",
"and",
"the",
"liberal",
"party",
"."
] | [
"Find",
"the",
"<mask>",
"that",
"have",
"<mask>",
"both",
"from",
"from",
"the",
"democratic",
"<mask>",
"and",
"the",
"liberal",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
news_report | SELECT count(*) FROM journalist | How many journalists are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"journalist"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"journalist"
] | [
"How",
"many",
"journalists",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
news_report | SELECT Name FROM journalist ORDER BY Years_working ASC | List the names of journalists in ascending order of years working. | [
"SELECT",
"Name",
"FROM",
"journalist",
"ORDER",
"BY",
"Years_working",
"ASC"
] | [
"select",
"name",
"from",
"journalist",
"order",
"by",
"years_working",
"asc"
] | [
"List",
"the",
"names",
"of",
"journalists",
"in",
"ascending",
"order",
"of",
"years",
"working",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"ascending",
"order",
"of",
"years",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc"
] |
news_report | SELECT Nationality , Age FROM journalist | What are the nationalities and ages of journalists? | [
"SELECT",
"Nationality",
",",
"Age",
"FROM",
"journalist"
] | [
"select",
"nationality",
",",
"age",
"from",
"journalist"
] | [
"What",
"are",
"the",
"nationalities",
"and",
"ages",
"of",
"journalists",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
news_report | SELECT Name FROM journalist WHERE Nationality = "England" OR Nationality = "Wales" | Show the names of journalists from "England" or "Wales". | [
"SELECT",
"Name",
"FROM",
"journalist",
"WHERE",
"Nationality",
"=",
"``",
"England",
"''",
"OR",
"Nationality",
"=",
"``",
"Wales",
"''"
] | [
"select",
"name",
"from",
"journalist",
"where",
"nationality",
"=",
"value",
"or",
"nationality",
"=",
"value"
] | [
"Show",
"the",
"names",
"of",
"journalists",
"from",
"``",
"England",
"''",
"or",
"``",
"Wales",
"''",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"from",
"``",
"England",
"''",
"or",
"``",
"Wales",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
news_report | SELECT avg(Years_working) FROM journalist | What is the average number of years spent working as a journalist? | [
"SELECT",
"avg",
"(",
"Years_working",
")",
"FROM",
"journalist"
] | [
"select",
"avg",
"(",
"years_working",
")",
"from",
"journalist"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"years",
"spent",
"working",
"as",
"a",
"journalist",
"?"
] | [
"What",
"is",
"the",
"average",
"number",
"of",
"years",
"spent",
"<mask>",
"as",
"a",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
news_report | SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1 | What is the nationality of the journalist with the largest number of years working? | [
"SELECT",
"Nationality",
"FROM",
"journalist",
"ORDER",
"BY",
"Years_working",
"DESC",
"LIMIT",
"1"
] | [
"select",
"nationality",
"from",
"journalist",
"order",
"by",
"years_working",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"nationality",
"of",
"the",
"journalist",
"with",
"the",
"largest",
"number",
"of",
"years",
"working",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"largest",
"number",
"of",
"years",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
news_report | SELECT Nationality , COUNT(*) FROM journalist GROUP BY Nationality | Show the different nationalities and the number of journalists of each nationality. | [
"SELECT",
"Nationality",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"journalist",
"GROUP",
"BY",
"Nationality"
] | [
"select",
"nationality",
",",
"count",
"(",
"*",
")",
"from",
"journalist",
"group",
"by",
"nationality"
] | [
"Show",
"the",
"different",
"nationalities",
"and",
"the",
"number",
"of",
"journalists",
"of",
"each",
"nationality",
"."
] | [
"Show",
"the",
"different",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"of",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
news_report | SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common nationality for journalists. | [
"SELECT",
"Nationality",
"FROM",
"journalist",
"GROUP",
"BY",
"Nationality",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"nationality",
"from",
"journalist",
"group",
"by",
"nationality",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"most",
"common",
"nationality",
"for",
"journalists",
"."
] | [
"Show",
"the",
"most",
"common",
"<mask>",
"for",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
news_report | SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3 | Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working. | [
"SELECT",
"Nationality",
"FROM",
"journalist",
"WHERE",
"Years_working",
">",
"10",
"INTERSECT",
"SELECT",
"Nationality",
"FROM",
"journalist",
"WHERE",
"Years_working",
"<",
"3"
] | [
"select",
"nationality",
"from",
"journalist",
"where",
"years_working",
">",
"value",
"intersect",
"select",
"nationality",
"from",
"journalist",
"where",
"years_working",
"<",
"value"
] | [
"Show",
"the",
"nations",
"that",
"have",
"both",
"journalists",
"with",
"more",
"than",
"10",
"years",
"of",
"working",
"and",
"journalists",
"with",
"less",
"than",
"3",
"years",
"of",
"working",
"."
] | [
"Show",
"the",
"nations",
"that",
"have",
"both",
"<mask>",
"with",
"more",
"than",
"<unk>",
"years",
"of",
"<mask>",
"and",
"<mask>",
"with",
"less",
"than",
"<unk>",
"years",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
news_report | SELECT Date , Name , venue FROM event ORDER BY Event_Attendance DESC | Show the dates, places, and names of events in descending order of the attendance. | [
"SELECT",
"Date",
",",
"Name",
",",
"venue",
"FROM",
"event",
"ORDER",
"BY",
"Event_Attendance",
"DESC"
] | [
"select",
"date",
",",
"name",
",",
"venue",
"from",
"event",
"order",
"by",
"event_attendance",
"desc"
] | [
"Show",
"the",
"dates",
",",
"places",
",",
"and",
"names",
"of",
"events",
"in",
"descending",
"order",
"of",
"the",
"attendance",
"."
] | [
"Show",
"the",
"<mask>",
",",
"places",
",",
"and",
"<mask>",
"of",
"<mask>",
"in",
"descending",
"order",
"of",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
news_report | SELECT T3.Name , T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID | Show the names of journalists and the dates of the events they reported. | [
"SELECT",
"T3.Name",
",",
"T2.Date",
"FROM",
"news_report",
"AS",
"T1",
"JOIN",
"event",
"AS",
"T2",
"ON",
"T1.Event_ID",
"=",
"T2.Event_ID",
"JOIN",
"journalist",
"AS",
"T3",
"ON",
"T1.journalist_ID",
"=",
"T3.journalist_ID"
] | [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"date",
"from",
"news_report",
"as",
"t1",
"join",
"event",
"as",
"t2",
"on",
"t1",
".",
"event_id",
"=",
"t2",
".",
"event_id",
"join",
"journalist",
"as",
"t3",
"on",
"t1",
".",
"journalist_id",
"=",
"t3... | [
"Show",
"the",
"names",
"of",
"journalists",
"and",
"the",
"dates",
"of",
"the",
"events",
"they",
"reported",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"<mask>",
"of",
"the",
"<mask>",
"they",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
news_report | SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC | Show the names of journalists and the names of the events they reported in ascending order | [
"SELECT",
"T3.Name",
",",
"T2.Name",
"FROM",
"news_report",
"AS",
"T1",
"JOIN",
"event",
"AS",
"T2",
"ON",
"T1.Event_ID",
"=",
"T2.Event_ID",
"JOIN",
"journalist",
"AS",
"T3",
"ON",
"T1.journalist_ID",
"=",
"T3.journalist_ID",
"ORDER",
"BY",
"T2.Event_Attendance",... | [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"name",
"from",
"news_report",
"as",
"t1",
"join",
"event",
"as",
"t2",
"on",
"t1",
".",
"event_id",
"=",
"t2",
".",
"event_id",
"join",
"journalist",
"as",
"t3",
"on",
"t1",
".",
"journalist_id",
"=",
"t3... | [
"Show",
"the",
"names",
"of",
"journalists",
"and",
"the",
"names",
"of",
"the",
"events",
"they",
"reported",
"in",
"ascending",
"order"
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"<mask>",
"of",
"the",
"<mask>",
"they",
"<mask>",
"in",
"ascending",
"order"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
news_report | SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name | Show the names of journalists and the number of events they reported. | [
"SELECT",
"T3.Name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"news_report",
"AS",
"T1",
"JOIN",
"event",
"AS",
"T2",
"ON",
"T1.Event_ID",
"=",
"T2.Event_ID",
"JOIN",
"journalist",
"AS",
"T3",
"ON",
"T1.journalist_ID",
"=",
"T3.journalist_ID",
"GROUP",
"BY",
"T3... | [
"select",
"t3",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"news_report",
"as",
"t1",
"join",
"event",
"as",
"t2",
"on",
"t1",
".",
"event_id",
"=",
"t2",
".",
"event_id",
"join",
"journalist",
"as",
"t3",
"on",
"t1",
".",
"journalist_id",
"="... | [
"Show",
"the",
"names",
"of",
"journalists",
"and",
"the",
"number",
"of",
"events",
"they",
"reported",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"they",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
news_report | SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1 | Show the names of journalists that have reported more than one event. | [
"SELECT",
"T3.Name",
"FROM",
"news_report",
"AS",
"T1",
"JOIN",
"event",
"AS",
"T2",
"ON",
"T1.Event_ID",
"=",
"T2.Event_ID",
"JOIN",
"journalist",
"AS",
"T3",
"ON",
"T1.journalist_ID",
"=",
"T3.journalist_ID",
"GROUP",
"BY",
"T3.Name",
"HAVING",
"COUNT",
"(",
... | [
"select",
"t3",
".",
"name",
"from",
"news_report",
"as",
"t1",
"join",
"event",
"as",
"t2",
"on",
"t1",
".",
"event_id",
"=",
"t2",
".",
"event_id",
"join",
"journalist",
"as",
"t3",
"on",
"t1",
".",
"journalist_id",
"=",
"t3",
".",
"journalist_id",
"... | [
"Show",
"the",
"names",
"of",
"journalists",
"that",
"have",
"reported",
"more",
"than",
"one",
"event",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"<mask>",
"more",
"than",
"one",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
news_report | SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report) | List the names of journalists who have not reported any event. | [
"SELECT",
"Name",
"FROM",
"journalist",
"WHERE",
"journalist_ID",
"NOT",
"IN",
"(",
"SELECT",
"journalist_ID",
"FROM",
"news_report",
")"
] | [
"select",
"name",
"from",
"journalist",
"where",
"journalist_id",
"not",
"in",
"(",
"select",
"journalist_id",
"from",
"news_report",
")"
] | [
"List",
"the",
"names",
"of",
"journalists",
"who",
"have",
"not",
"reported",
"any",
"event",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"not",
"<mask>",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
news_report | SELECT avg(Event_Attendance) , max(Event_Attendance) FROM event | what are the average and maximum attendances of all events? | [
"SELECT",
"avg",
"(",
"Event_Attendance",
")",
",",
"max",
"(",
"Event_Attendance",
")",
"FROM",
"event"
] | [
"select",
"avg",
"(",
"event_attendance",
")",
",",
"max",
"(",
"event_attendance",
")",
"from",
"event"
] | [
"what",
"are",
"the",
"average",
"and",
"maximum",
"attendances",
"of",
"all",
"events",
"?"
] | [
"what",
"are",
"the",
"average",
"and",
"maximum",
"<mask>",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
news_report | SELECT avg(t1.age) , avg(Years_working) , t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type | Find the average age and experience working length of journalists working on different role type. | [
"SELECT",
"avg",
"(",
"t1.age",
")",
",",
"avg",
"(",
"Years_working",
")",
",",
"t2.work_type",
"FROM",
"journalist",
"AS",
"t1",
"JOIN",
"news_report",
"AS",
"t2",
"ON",
"t1.journalist_id",
"=",
"t2.journalist_id",
"GROUP",
"BY",
"t2.work_type"
] | [
"select",
"avg",
"(",
"t1",
".",
"age",
")",
",",
"avg",
"(",
"years_working",
")",
",",
"t2",
".",
"work_type",
"from",
"journalist",
"as",
"t1",
"join",
"news_report",
"as",
"t2",
"on",
"t1",
".",
"journalist_id",
"=",
"t2",
".",
"journalist_id",
"gr... | [
"Find",
"the",
"average",
"age",
"and",
"experience",
"working",
"length",
"of",
"journalists",
"working",
"on",
"different",
"role",
"type",
"."
] | [
"Find",
"the",
"average",
"<mask>",
"and",
"experience",
"<mask>",
"length",
"of",
"<mask>",
"<mask>",
"on",
"different",
"role",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
... |
news_report | SELECT venue , name FROM event ORDER BY Event_Attendance DESC LIMIT 2 | List the event venues and names that have the top 2 most number of people attended. | [
"SELECT",
"venue",
",",
"name",
"FROM",
"event",
"ORDER",
"BY",
"Event_Attendance",
"DESC",
"LIMIT",
"2"
] | [
"select",
"venue",
",",
"name",
"from",
"event",
"order",
"by",
"event_attendance",
"desc",
"limit",
"value"
] | [
"List",
"the",
"event",
"venues",
"and",
"names",
"that",
"have",
"the",
"top",
"2",
"most",
"number",
"of",
"people",
"attended",
"."
] | [
"List",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"that",
"have",
"the",
"top",
"<unk>",
"most",
"number",
"of",
"people",
"attended",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
restaurant_1 | SELECT ResName FROM Restaurant; | Show me all the restaurants. | [
"SELECT",
"ResName",
"FROM",
"Restaurant",
";"
] | [
"select",
"resname",
"from",
"restaurant"
] | [
"Show",
"me",
"all",
"the",
"restaurants",
"."
] | [
"Show",
"me",
"all",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
restaurant_1 | SELECT Address FROM Restaurant WHERE ResName = "Subway"; | What is the address of the restaurant Subway? | [
"SELECT",
"Address",
"FROM",
"Restaurant",
"WHERE",
"ResName",
"=",
"``",
"Subway",
"''",
";"
] | [
"select",
"address",
"from",
"restaurant",
"where",
"resname",
"=",
"value"
] | [
"What",
"is",
"the",
"address",
"of",
"the",
"restaurant",
"Subway",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"Subway",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT Rating FROM Restaurant WHERE ResName = "Subway"; | What is the rating of the restaurant Subway? | [
"SELECT",
"Rating",
"FROM",
"Restaurant",
"WHERE",
"ResName",
"=",
"``",
"Subway",
"''",
";"
] | [
"select",
"rating",
"from",
"restaurant",
"where",
"resname",
"=",
"value"
] | [
"What",
"is",
"the",
"rating",
"of",
"the",
"restaurant",
"Subway",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"Subway",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT ResTypeName FROM Restaurant_Type; | List all restaurant types. | [
"SELECT",
"ResTypeName",
"FROM",
"Restaurant_Type",
";"
] | [
"select",
"restypename",
"from",
"restaurant_type"
] | [
"List",
"all",
"restaurant",
"types",
"."
] | [
"List",
"all",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
restaurant_1 | SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = "Sandwich"; | What is the description of the restaurant type Sandwich? | [
"SELECT",
"ResTypeDescription",
"FROM",
"Restaurant_Type",
"WHERE",
"ResTypeName",
"=",
"``",
"Sandwich",
"''",
";"
] | [
"select",
"restypedescription",
"from",
"restaurant_type",
"where",
"restypename",
"=",
"value"
] | [
"What",
"is",
"the",
"description",
"of",
"the",
"restaurant",
"type",
"Sandwich",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"Sandwich",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1; | Which restaurants have highest rating? List the restaurant name and its rating. | [
"SELECT",
"ResName",
",",
"Rating",
"FROM",
"Restaurant",
"ORDER",
"BY",
"Rating",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"resname",
",",
"rating",
"from",
"restaurant",
"order",
"by",
"rating",
"desc",
"limit",
"value"
] | [
"Which",
"restaurants",
"have",
"highest",
"rating",
"?",
"List",
"the",
"restaurant",
"name",
"and",
"its",
"rating",
"."
] | [
"Which",
"<mask>",
"have",
"highest",
"<mask>",
"?",
"List",
"the",
"<mask>",
"<mask>",
"and",
"its",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
restaurant_1 | SELECT Age FROM Student WHERE Fname = "Linda" AND Lname = "Smith"; | What is the age of student Linda Smith? | [
"SELECT",
"Age",
"FROM",
"Student",
"WHERE",
"Fname",
"=",
"``",
"Linda",
"''",
"AND",
"Lname",
"=",
"``",
"Smith",
"''",
";"
] | [
"select",
"age",
"from",
"student",
"where",
"fname",
"=",
"value",
"and",
"lname",
"=",
"value"
] | [
"What",
"is",
"the",
"age",
"of",
"student",
"Linda",
"Smith",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"Linda",
"Smith",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith"; | What is the gender of the student Linda Smith? | [
"SELECT",
"Sex",
"FROM",
"Student",
"WHERE",
"Fname",
"=",
"``",
"Linda",
"''",
"AND",
"Lname",
"=",
"``",
"Smith",
"''",
";"
] | [
"select",
"sex",
"from",
"student",
"where",
"fname",
"=",
"value",
"and",
"lname",
"=",
"value"
] | [
"What",
"is",
"the",
"gender",
"of",
"the",
"student",
"Linda",
"Smith",
"?"
] | [
"What",
"is",
"the",
"gender",
"of",
"the",
"<mask>",
"Linda",
"Smith",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT Fname , Lname FROM Student WHERE Major = 600; | List all students' first names and last names who majored in 600. | [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student",
"WHERE",
"Major",
"=",
"600",
";"
] | [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"major",
"=",
"value"
] | [
"List",
"all",
"students",
"'",
"first",
"names",
"and",
"last",
"names",
"who",
"majored",
"in",
"600",
"."
] | [
"List",
"all",
"<mask>",
"'",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"who",
"majored",
"in",
"<unk>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith"; | Which city does student Linda Smith live in? | [
"SELECT",
"city_code",
"FROM",
"Student",
"WHERE",
"Fname",
"=",
"``",
"Linda",
"''",
"AND",
"Lname",
"=",
"``",
"Smith",
"''",
";"
] | [
"select",
"city_code",
"from",
"student",
"where",
"fname",
"=",
"value",
"and",
"lname",
"=",
"value"
] | [
"Which",
"city",
"does",
"student",
"Linda",
"Smith",
"live",
"in",
"?"
] | [
"Which",
"<mask>",
"does",
"<mask>",
"Linda",
"Smith",
"live",
"in",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT count(*) FROM Student WHERE Advisor = 1121; | Advisor 1121 has how many students? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"Advisor",
"=",
"1121",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"advisor",
"=",
"value"
] | [
"Advisor",
"1121",
"has",
"how",
"many",
"students",
"?"
] | [
"Advisor",
"<unk>",
"has",
"how",
"many",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT Advisor , count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1; | Which Advisor has most of students? List advisor and the number of students. | [
"SELECT",
"Advisor",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"Advisor",
"ORDER",
"BY",
"count",
"(",
"Advisor",
")",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"advisor",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"advisor",
"order",
"by",
"count",
"(",
"advisor",
")",
"desc",
"limit",
"value"
] | [
"Which",
"Advisor",
"has",
"most",
"of",
"students",
"?",
"List",
"advisor",
"and",
"the",
"number",
"of",
"students",
"."
] | [
"Which",
"Advisor",
"has",
"most",
"of",
"<mask>",
"?",
"List",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"<mask>",
")",
"desc",
"limit",
"<unk>"
] |
restaurant_1 | SELECT Major , count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1; | Which major has least number of students? List the major and the number of students. | [
"SELECT",
"Major",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"Major",
"ORDER",
"BY",
"count",
"(",
"Major",
")",
"ASC",
"LIMIT",
"1",
";"
] | [
"select",
"major",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"major",
"order",
"by",
"count",
"(",
"major",
")",
"asc",
"limit",
"value"
] | [
"Which",
"major",
"has",
"least",
"number",
"of",
"students",
"?",
"List",
"the",
"major",
"and",
"the",
"number",
"of",
"students",
"."
] | [
"Which",
"<mask>",
"has",
"least",
"number",
"of",
"<mask>",
"?",
"List",
"the",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"<mask>",
")",
"asc",
"limit",
"<unk>"
] |
restaurant_1 | SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30; | Which major has between 2 and 30 number of students? List major and the number of students. | [
"SELECT",
"Major",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"Major",
"HAVING",
"count",
"(",
"Major",
")",
"BETWEEN",
"2",
"AND",
"30",
";"
] | [
"select",
"major",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"major",
"having",
"count",
"(",
"major",
")",
"between",
"value",
"and",
"value"
] | [
"Which",
"major",
"has",
"between",
"2",
"and",
"30",
"number",
"of",
"students",
"?",
"List",
"major",
"and",
"the",
"number",
"of",
"students",
"."
] | [
"Which",
"<mask>",
"has",
"between",
"<unk>",
"and",
"<unk>",
"number",
"of",
"<mask>",
"?",
"List",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"<mask>",
")",
"between",
"<unk>",
"and",
"<unk>"
] |
restaurant_1 | SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major = 600; | Which student's age is older than 18 and is majoring in 600? List each student's first and last name. | [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student",
"WHERE",
"Age",
">",
"18",
"AND",
"Major",
"=",
"600",
";"
] | [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"age",
">",
"value",
"and",
"major",
"=",
"value"
] | [
"Which",
"student",
"'s",
"age",
"is",
"older",
"than",
"18",
"and",
"is",
"majoring",
"in",
"600",
"?",
"List",
"each",
"student",
"'s",
"first",
"and",
"last",
"name",
"."
] | [
"Which",
"<mask>",
"'s",
"<mask>",
"is",
"older",
"than",
"<unk>",
"and",
"is",
"<mask>",
"in",
"<unk>",
"?",
"List",
"each",
"<mask>",
"'s",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major != 600 AND Sex = 'F'; | List all female students age is older than 18 who is not majoring in 600. List students' first name and last name. | [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student",
"WHERE",
"Age",
">",
"18",
"AND",
"Major",
"!",
"=",
"600",
"AND",
"Sex",
"=",
"'F",
"'",
";"
] | [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"age",
">",
"value",
"and",
"major",
"!",
"=",
"value",
"and",
"sex",
"=",
"value"
] | [
"List",
"all",
"female",
"students",
"age",
"is",
"older",
"than",
"18",
"who",
"is",
"not",
"majoring",
"in",
"600",
".",
"List",
"students",
"'",
"first",
"name",
"and",
"last",
"name",
"."
] | [
"List",
"all",
"female",
"<mask>",
"<mask>",
"is",
"older",
"than",
"<unk>",
"who",
"is",
"not",
"<mask>",
"in",
"<unk>",
".",
"List",
"<mask>",
"'",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"and",
"<mask>",
"!",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' | How many restaurant is the Sandwich type restaurant? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Restaurant",
"JOIN",
"Type_Of_Restaurant",
"ON",
"Restaurant.ResID",
"=",
"Type_Of_Restaurant.ResID",
"JOIN",
"Restaurant_Type",
"ON",
"Type_Of_Restaurant.ResTypeID",
"=",
"Restaurant_Type.ResTypeID",
"GROUP",
"BY",
"Type_Of_Restau... | [
"select",
"count",
"(",
"*",
")",
"from",
"restaurant",
"join",
"type_of_restaurant",
"on",
"restaurant.resid",
"=",
"type_of_restaurant.resid",
"join",
"restaurant_type",
"on",
"type_of_restaurant.restypeid",
"=",
"restaurant_type.restypeid",
"group",
"by",
"type_of_restau... | [
"How",
"many",
"restaurant",
"is",
"the",
"Sandwich",
"type",
"restaurant",
"?"
] | [
"How",
"many",
"<mask>",
"is",
"the",
"Sandwich",
"<mask>",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith"; | How long does student Linda Smith spend on the restaurant in total? | [
"SELECT",
"sum",
"(",
"Spent",
")",
"FROM",
"Student",
"JOIN",
"Visits_Restaurant",
"ON",
"Student.StuID",
"=",
"Visits_Restaurant.StuID",
"WHERE",
"Student.Fname",
"=",
"``",
"Linda",
"''",
"AND",
"Student.Lname",
"=",
"``",
"Smith",
"''",
";"
] | [
"select",
"sum",
"(",
"spent",
")",
"from",
"student",
"join",
"visits_restaurant",
"on",
"student.stuid",
"=",
"visits_restaurant.stuid",
"where",
"student.fname",
"=",
"value",
"and",
"student.lname",
"=",
"value"
] | [
"How",
"long",
"does",
"student",
"Linda",
"Smith",
"spend",
"on",
"the",
"restaurant",
"in",
"total",
"?"
] | [
"How",
"long",
"does",
"<mask>",
"Linda",
"Smith",
"spend",
"on",
"the",
"<mask>",
"in",
"total",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway"; | How many times has the student Linda Smith visited Subway? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"JOIN",
"Visits_Restaurant",
"ON",
"Student.StuID",
"=",
"Visits_Restaurant.StuID",
"JOIN",
"Restaurant",
"ON",
"Visits_Restaurant.ResID",
"=",
"Restaurant.ResID",
"WHERE",
"Student.Fname",
"=",
"``",
"Linda",
"''",... | [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"join",
"visits_restaurant",
"on",
"student.stuid",
"=",
"visits_restaurant.stuid",
"join",
"restaurant",
"on",
"visits_restaurant.resid",
"=",
"restaurant.resid",
"where",
"student.fname",
"=",
"value",
"and",
"stu... | [
"How",
"many",
"times",
"has",
"the",
"student",
"Linda",
"Smith",
"visited",
"Subway",
"?"
] | [
"How",
"many",
"<mask>",
"has",
"the",
"<mask>",
"Linda",
"Smith",
"visited",
"Subway",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway"; | When did Linda Smith visit Subway? | [
"SELECT",
"TIME",
"FROM",
"Student",
"JOIN",
"Visits_Restaurant",
"ON",
"Student.StuID",
"=",
"Visits_Restaurant.StuID",
"JOIN",
"Restaurant",
"ON",
"Visits_Restaurant.ResID",
"=",
"Restaurant.ResID",
"WHERE",
"Student.Fname",
"=",
"``",
"Linda",
"''",
"AND",
"Student.L... | [
"select",
"time",
"from",
"student",
"join",
"visits_restaurant",
"on",
"student.stuid",
"=",
"visits_restaurant.stuid",
"join",
"restaurant",
"on",
"visits_restaurant.resid",
"=",
"restaurant.resid",
"where",
"student.fname",
"=",
"value",
"and",
"student.lname",
"=",
... | [
"When",
"did",
"Linda",
"Smith",
"visit",
"Subway",
"?"
] | [
"When",
"did",
"Linda",
"Smith",
"visit",
"Subway",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
restaurant_1 | SELECT Restaurant.ResName , sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1; | At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total. | [
"SELECT",
"Restaurant.ResName",
",",
"sum",
"(",
"Visits_Restaurant.Spent",
")",
"FROM",
"Visits_Restaurant",
"JOIN",
"Restaurant",
"ON",
"Visits_Restaurant.ResID",
"=",
"Restaurant.ResID",
"GROUP",
"BY",
"Restaurant.ResID",
"ORDER",
"BY",
"sum",
"(",
"Visits_Restaurant.S... | [
"select",
"restaurant.resname",
",",
"sum",
"(",
"visits_restaurant.spent",
")",
"from",
"visits_restaurant",
"join",
"restaurant",
"on",
"visits_restaurant.resid",
"=",
"restaurant.resid",
"group",
"by",
"restaurant.resid",
"order",
"by",
"sum",
"(",
"visits_restaurant.s... | [
"At",
"which",
"restaurant",
"did",
"the",
"students",
"spend",
"the",
"least",
"amount",
"of",
"time",
"?",
"List",
"restaurant",
"and",
"the",
"time",
"students",
"spent",
"on",
"in",
"total",
"."
] | [
"At",
"which",
"<mask>",
"did",
"the",
"<mask>",
"spend",
"the",
"least",
"amount",
"of",
"<mask>",
"?",
"List",
"<mask>",
"and",
"the",
"<mask>",
"<mask>",
"spent",
"on",
"in",
"total",
"."
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"sum",
"(",
"<mask>",
")",
"asc",
"limit",
"<unk>"
] |
restaurant_1 | SELECT Student.Fname , Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY count(*) DESC LIMIT 1; | Which student visited restaurant most often? List student's first name and last name. | [
"SELECT",
"Student.Fname",
",",
"Student.Lname",
"FROM",
"Student",
"JOIN",
"Visits_Restaurant",
"ON",
"Student.StuID",
"=",
"Visits_Restaurant.StuID",
"GROUP",
"BY",
"Student.StuID",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"student.fname",
",",
"student.lname",
"from",
"student",
"join",
"visits_restaurant",
"on",
"student.stuid",
"=",
"visits_restaurant.stuid",
"group",
"by",
"student.stuid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"student",
"visited",
"restaurant",
"most",
"often",
"?",
"List",
"student",
"'s",
"first",
"name",
"and",
"last",
"name",
"."
] | [
"Which",
"<mask>",
"visited",
"<mask>",
"most",
"often",
"?",
"List",
"<mask>",
"'s",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"join",
"<mask>",
"on",
"<mask>",
"=",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
customer_deliveries | SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success' | Find the ids of orders whose status is 'Success'. | [
"SELECT",
"actual_order_id",
"FROM",
"actual_orders",
"WHERE",
"order_status_code",
"=",
"'Success",
"'"
] | [
"select",
"actual_order_id",
"from",
"actual_orders",
"where",
"order_status_code",
"=",
"value"
] | [
"Find",
"the",
"ids",
"of",
"orders",
"whose",
"status",
"is",
"'Success",
"'",
"."
] | [
"Find",
"the",
"ids",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"'Success",
"'",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customer_deliveries | SELECT t1.product_name , t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1 | Find the name and price of the product that has been ordered the greatest number of times. | [
"SELECT",
"t1.product_name",
",",
"t1.product_price",
"FROM",
"products",
"AS",
"t1",
"JOIN",
"regular_order_products",
"AS",
"t2",
"ON",
"t1.product_id",
"=",
"t2.product_id",
"GROUP",
"BY",
"t2.product_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",... | [
"select",
"t1",
".",
"product_name",
",",
"t1",
".",
"product_price",
"from",
"products",
"as",
"t1",
"join",
"regular_order_products",
"as",
"t2",
"on",
"t1",
".",
"product_id",
"=",
"t2",
".",
"product_id",
"group",
"by",
"t2",
".",
"product_id",
"order",
... | [
"Find",
"the",
"name",
"and",
"price",
"of",
"the",
"product",
"that",
"has",
"been",
"ordered",
"the",
"greatest",
"number",
"of",
"times",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"been",
"<mask>",
"the",
"greatest",
"<mask>",
"of",
"times",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"coun... |
customer_deliveries | SELECT count(*) FROM customers | Find the number of customers in total. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"customers"
] | [
"Find",
"the",
"number",
"of",
"customers",
"in",
"total",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"in",
"total",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
customer_deliveries | SELECT count(DISTINCT payment_method) FROM customers | How many different payment methods are there? | [
"SELECT",
"count",
"(",
"DISTINCT",
"payment_method",
")",
"FROM",
"customers"
] | [
"select",
"count",
"(",
"distinct",
"payment_method",
")",
"from",
"customers"
] | [
"How",
"many",
"different",
"payment",
"methods",
"are",
"there",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
customer_deliveries | SELECT truck_details FROM trucks ORDER BY truck_licence_number | Show the details of all trucks in the order of their license number. | [
"SELECT",
"truck_details",
"FROM",
"trucks",
"ORDER",
"BY",
"truck_licence_number"
] | [
"select",
"truck_details",
"from",
"trucks",
"order",
"by",
"truck_licence_number"
] | [
"Show",
"the",
"details",
"of",
"all",
"trucks",
"in",
"the",
"order",
"of",
"their",
"license",
"number",
"."
] | [
"Show",
"the",
"details",
"of",
"all",
"<mask>",
"in",
"the",
"<mask>",
"of",
"their",
"license",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
customer_deliveries | SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1 | Find the name of the most expensive product. | [
"SELECT",
"product_name",
"FROM",
"products",
"ORDER",
"BY",
"product_price",
"DESC",
"LIMIT",
"1"
] | [
"select",
"product_name",
"from",
"products",
"order",
"by",
"product_price",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"name",
"of",
"the",
"most",
"expensive",
"product",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"most",
"expensive",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
customer_deliveries | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' | Find the names of customers who are not living in the state of California. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"EXCEPT",
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
... | [
"select",
"customer_name",
"from",
"customers",
"except",
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
... | [
"Find",
"the",
"names",
"of",
"customers",
"who",
"are",
"not",
"living",
"in",
"the",
"state",
"of",
"California",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"are",
"not",
"living",
"in",
"the",
"<mask>",
"of",
"California",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<ma... |
customer_deliveries | SELECT customer_email , customer_name FROM customers WHERE payment_method = 'Visa' | List the names and emails of customers who payed by Visa card. | [
"SELECT",
"customer_email",
",",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"=",
"'Visa",
"'"
] | [
"select",
"customer_email",
",",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"=",
"value"
] | [
"List",
"the",
"names",
"and",
"emails",
"of",
"customers",
"who",
"payed",
"by",
"Visa",
"card",
"."
] | [
"List",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"who",
"payed",
"by",
"Visa",
"card",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customer_deliveries | SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' | Find the names and phone numbers of customers living in California state. | [
"SELECT",
"t1.customer_name",
",",
"t1.customer_phone",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"... | [
"select",
"t1",
".",
"customer_name",
",",
"t1",
".",
"customer_phone",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
"... | [
"Find",
"the",
"names",
"and",
"phone",
"numbers",
"of",
"customers",
"living",
"in",
"California",
"state",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"<mask>",
"living",
"in",
"California",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
customer_deliveries | SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM Employees) | Find the states which do not have any employee in their record. | [
"SELECT",
"state_province_county",
"FROM",
"addresses",
"WHERE",
"address_id",
"NOT",
"IN",
"(",
"SELECT",
"employee_address_id",
"FROM",
"Employees",
")"
] | [
"select",
"state_province_county",
"from",
"addresses",
"where",
"address_id",
"not",
"in",
"(",
"select",
"employee_address_id",
"from",
"employees",
")"
] | [
"Find",
"the",
"states",
"which",
"do",
"not",
"have",
"any",
"employee",
"in",
"their",
"record",
"."
] | [
"Find",
"the",
"<mask>",
"which",
"do",
"not",
"have",
"any",
"<mask>",
"in",
"their",
"record",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
customer_deliveries | SELECT customer_name , customer_phone , customer_email FROM Customers ORDER BY date_became_customer | List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers. | [
"SELECT",
"customer_name",
",",
"customer_phone",
",",
"customer_email",
"FROM",
"Customers",
"ORDER",
"BY",
"date_became_customer"
] | [
"select",
"customer_name",
",",
"customer_phone",
",",
"customer_email",
"from",
"customers",
"order",
"by",
"date_became_customer"
] | [
"List",
"the",
"names",
",",
"phone",
"numbers",
",",
"and",
"emails",
"of",
"all",
"customers",
"sorted",
"by",
"their",
"dates",
"of",
"becoming",
"customers",
"."
] | [
"List",
"the",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"and",
"<mask>",
"of",
"all",
"<mask>",
"sorted",
"by",
"their",
"<mask>",
"of",
"becoming",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
customer_deliveries | SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5 | Find the name of the first 5 customers. | [
"SELECT",
"customer_name",
"FROM",
"Customers",
"ORDER",
"BY",
"date_became_customer",
"LIMIT",
"5"
] | [
"select",
"customer_name",
"from",
"customers",
"order",
"by",
"date_became_customer",
"limit",
"value"
] | [
"Find",
"the",
"name",
"of",
"the",
"first",
"5",
"customers",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"first",
"<unk>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"limit",
"<unk>"
] |
customer_deliveries | SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 | Find the payment method that is used most frequently. | [
"SELECT",
"payment_method",
"FROM",
"Customers",
"GROUP",
"BY",
"payment_method",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"payment_method",
"from",
"customers",
"group",
"by",
"payment_method",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"payment",
"method",
"that",
"is",
"used",
"most",
"frequently",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"that",
"is",
"used",
"most",
"frequently",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
customer_deliveries | SELECT route_name FROM Delivery_Routes ORDER BY route_name | List the names of all routes in alphabetic order. | [
"SELECT",
"route_name",
"FROM",
"Delivery_Routes",
"ORDER",
"BY",
"route_name"
] | [
"select",
"route_name",
"from",
"delivery_routes",
"order",
"by",
"route_name"
] | [
"List",
"the",
"names",
"of",
"all",
"routes",
"in",
"alphabetic",
"order",
"."
] | [
"List",
"the",
"<mask>",
"of",
"all",
"<mask>",
"in",
"alphabetic",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
customer_deliveries | SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1 | Find the name of route that has the highest number of deliveries. | [
"SELECT",
"t1.route_name",
"FROM",
"Delivery_Routes",
"AS",
"t1",
"JOIN",
"Delivery_Route_Locations",
"AS",
"t2",
"ON",
"t1.route_id",
"=",
"t2.route_id",
"GROUP",
"BY",
"t1.route_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"route_name",
"from",
"delivery_routes",
"as",
"t1",
"join",
"delivery_route_locations",
"as",
"t2",
"on",
"t1",
".",
"route_id",
"=",
"t2",
".",
"route_id",
"group",
"by",
"t1",
".",
"route_id",
"order",
"by",
"count",
"(",
"*",
")",
... | [
"Find",
"the",
"name",
"of",
"route",
"that",
"has",
"the",
"highest",
"number",
"of",
"deliveries",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"that",
"has",
"the",
"highest",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
customer_deliveries | SELECT t2.state_province_county , count(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county | List the state names and the number of customers living in each state. | [
"SELECT",
"t2.state_province_county",
",",
"count",
"(",
"*",
")",
"FROM",
"customer_addresses",
"AS",
"t1",
"JOIN",
"addresses",
"AS",
"t2",
"ON",
"t1.address_id",
"=",
"t2.address_id",
"GROUP",
"BY",
"t2.state_province_county"
] | [
"select",
"t2",
".",
"state_province_county",
",",
"count",
"(",
"*",
")",
"from",
"customer_addresses",
"as",
"t1",
"join",
"addresses",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"group",
"by",
"t2",
".",
"state_province_count... | [
"List",
"the",
"state",
"names",
"and",
"the",
"number",
"of",
"customers",
"living",
"in",
"each",
"state",
"."
] | [
"List",
"the",
"<mask>",
"<mask>",
"and",
"the",
"<mask>",
"of",
"<mask>",
"living",
"in",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
icfp_1 | SELECT count(*) FROM authors | How many authors are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"authors"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"authors"
] | [
"How",
"many",
"authors",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
icfp_1 | SELECT count(*) FROM authors | Count the number of authors. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"authors"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"authors"
] | [
"Count",
"the",
"number",
"of",
"authors",
"."
] | [
"<mask>",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
icfp_1 | SELECT count(*) FROM inst | How many institutions are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"inst"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"inst"
] | [
"How",
"many",
"institutions",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
icfp_1 | SELECT count(*) FROM inst | Count the number of institutions. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"inst"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"inst"
] | [
"Count",
"the",
"number",
"of",
"institutions",
"."
] | [
"<mask>",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
icfp_1 | SELECT count(*) FROM papers | How many papers are published in total? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"papers"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"papers"
] | [
"How",
"many",
"papers",
"are",
"published",
"in",
"total",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"published",
"in",
"total",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
icfp_1 | SELECT count(*) FROM papers | Count the number of total papers. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"papers"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"papers"
] | [
"Count",
"the",
"number",
"of",
"total",
"papers",
"."
] | [
"<mask>",
"the",
"number",
"of",
"total",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons" | What are the titles of papers published by "Jeremy Gibbons"? | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Jeremy",
"''",
"AND",
"t1.lname"... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"What",
"are",
"the",
"titles",
"of",
"papers",
"published",
"by",
"``",
"Jeremy",
"Gibbons",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"published",
"by",
"``",
"Jeremy",
"Gibbons",
"''",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons" | Find the titles of all the papers written by "Jeremy Gibbons" | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Jeremy",
"''",
"AND",
"t1.lname"... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Find",
"the",
"titles",
"of",
"all",
"the",
"papers",
"written",
"by",
"``",
"Jeremy",
"Gibbons",
"''"
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"written",
"by",
"``",
"Jeremy",
"Gibbons",
"''"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon" | Find all the papers published by "Aaron Turon". | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Aaron",
"''",
"AND",
"t1.lname",... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Find",
"all",
"the",
"papers",
"published",
"by",
"``",
"Aaron",
"Turon",
"''",
"."
] | [
"Find",
"all",
"the",
"<mask>",
"published",
"by",
"``",
"Aaron",
"Turon",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon" | Find the titles of all the papers written by "Aaron Turon". | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Aaron",
"''",
"AND",
"t1.lname",... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Find",
"the",
"titles",
"of",
"all",
"the",
"papers",
"written",
"by",
"``",
"Aaron",
"Turon",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"written",
"by",
"``",
"Aaron",
"Turon",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori" | How many papers have "Atsushi Ohori" published? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Atsushi",
"''",
... | [
"select",
"count",
"(",
"*",
")",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t... | [
"How",
"many",
"papers",
"have",
"``",
"Atsushi",
"Ohori",
"''",
"published",
"?"
] | [
"How",
"many",
"<mask>",
"have",
"``",
"Atsushi",
"Ohori",
"''",
"published",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<ma... |
icfp_1 | SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori" | How many papers are "Atsushi Ohori" the author of? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Atsushi",
"''",
... | [
"select",
"count",
"(",
"*",
")",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t... | [
"How",
"many",
"papers",
"are",
"``",
"Atsushi",
"Ohori",
"''",
"the",
"author",
"of",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"``",
"Atsushi",
"Ohori",
"''",
"the",
"<mask>",
"of",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<ma... |
icfp_1 | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume" | What is the name of the institution that "Matthias Blume" belongs to? | [
"SELECT",
"DISTINCT",
"t3.name",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t1.fname",
"=",
"``",
"Matthias",
"''",
"AND",
... | [
"select",
"distinct",
"t3",
".",
"name",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",
... | [
"What",
"is",
"the",
"name",
"of",
"the",
"institution",
"that",
"``",
"Matthias",
"Blume",
"''",
"belongs",
"to",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"``",
"Matthias",
"Blume",
"''",
"belongs",
"to",
"?"
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume" | Which institution is the author "Matthias Blume" belong to? Give me the name of the institution. | [
"SELECT",
"DISTINCT",
"t3.name",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t1.fname",
"=",
"``",
"Matthias",
"''",
"AND",
... | [
"select",
"distinct",
"t3",
".",
"name",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",
... | [
"Which",
"institution",
"is",
"the",
"author",
"``",
"Matthias",
"Blume",
"''",
"belong",
"to",
"?",
"Give",
"me",
"the",
"name",
"of",
"the",
"institution",
"."
] | [
"Which",
"<mask>",
"is",
"the",
"<mask>",
"``",
"Matthias",
"Blume",
"''",
"belong",
"to",
"?",
"Give",
"me",
"the",
"<mask>",
"of",
"the",
"<mask>",
"."
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno" | Which institution does "Katsuhiro Ueno" belong to? | [
"SELECT",
"DISTINCT",
"t3.name",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t1.fname",
"=",
"``",
"Katsuhiro",
"''",
"AND",
... | [
"select",
"distinct",
"t3",
".",
"name",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",
... | [
"Which",
"institution",
"does",
"``",
"Katsuhiro",
"Ueno",
"''",
"belong",
"to",
"?"
] | [
"Which",
"<mask>",
"does",
"``",
"Katsuhiro",
"Ueno",
"''",
"belong",
"to",
"?"
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno" | What is the name of the institution the author "Katsuhiro Ueno" belongs to? | [
"SELECT",
"DISTINCT",
"t3.name",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t1.fname",
"=",
"``",
"Katsuhiro",
"''",
"AND",
... | [
"select",
"distinct",
"t3",
".",
"name",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",
... | [
"What",
"is",
"the",
"name",
"of",
"the",
"institution",
"the",
"author",
"``",
"Katsuhiro",
"Ueno",
"''",
"belongs",
"to",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"the",
"<mask>",
"``",
"Katsuhiro",
"Ueno",
"''",
"belongs",
"to",
"?"
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford" | Who belong to the institution "University of Oxford"? Show the first names and last names. | [
"SELECT",
"DISTINCT",
"t1.fname",
",",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Universi... | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3... | [
"Who",
"belong",
"to",
"the",
"institution",
"``",
"University",
"of",
"Oxford",
"''",
"?",
"Show",
"the",
"first",
"names",
"and",
"last",
"names",
"."
] | [
"Who",
"belong",
"to",
"the",
"<mask>",
"``",
"University",
"of",
"Oxford",
"''",
"?",
"Show",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
... |
icfp_1 | SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford" | Find the first names and last names of the authors whose institution affiliation is "University of Oxford". | [
"SELECT",
"DISTINCT",
"t1.fname",
",",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Universi... | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3... | [
"Find",
"the",
"first",
"names",
"and",
"last",
"names",
"of",
"the",
"authors",
"whose",
"institution",
"affiliation",
"is",
"``",
"University",
"of",
"Oxford",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"affiliation",
"is",
"``",
"University",
"of",
"Oxford",
"''",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
... |
icfp_1 | SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | Which authors belong to the institution "Google"? Show the first names and last names. | [
"SELECT",
"DISTINCT",
"t1.fname",
",",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Google",... | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3... | [
"Which",
"authors",
"belong",
"to",
"the",
"institution",
"``",
"Google",
"''",
"?",
"Show",
"the",
"first",
"names",
"and",
"last",
"names",
"."
] | [
"Which",
"<mask>",
"belong",
"to",
"the",
"<mask>",
"``",
"Google",
"''",
"?",
"Show",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
... |
icfp_1 | SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | Find the first names and last names of the authors whose institution affiliation is "Google". | [
"SELECT",
"DISTINCT",
"t1.fname",
",",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Google",... | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3... | [
"Find",
"the",
"first",
"names",
"and",
"last",
"names",
"of",
"the",
"authors",
"whose",
"institution",
"affiliation",
"is",
"``",
"Google",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"affiliation",
"is",
"``",
"Google",
"''",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
... |
icfp_1 | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound" | What are the last names of the author of the paper titled "Binders Unbound"? | [
"SELECT",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t3.title",
"=",
"``",
"Binders",
"Unbound",
"''"
] | [
"select",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t3",
... | [
"What",
"are",
"the",
"last",
"names",
"of",
"the",
"author",
"of",
"the",
"paper",
"titled",
"``",
"Binders",
"Unbound",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"``",
"Binders",
"Unbound",
"''",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound" | Who is the author of the paper titled "Binders Unbound"? Give me the last name. | [
"SELECT",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t3.title",
"=",
"``",
"Binders",
"Unbound",
"''"
] | [
"select",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t3",
... | [
"Who",
"is",
"the",
"author",
"of",
"the",
"paper",
"titled",
"``",
"Binders",
"Unbound",
"''",
"?",
"Give",
"me",
"the",
"last",
"name",
"."
] | [
"Who",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"``",
"Binders",
"Unbound",
"''",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless" | Find the first and last name of the author(s) who wrote the paper "Nameless, Painless". | [
"SELECT",
"t1.fname",
",",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t3.title",
"=",
"``",
"Nameless",
",",... | [
"select",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
... | [
"Find",
"the",
"first",
"and",
"last",
"name",
"of",
"the",
"author",
"(",
"s",
")",
"who",
"wrote",
"the",
"paper",
"``",
"Nameless",
",",
"Painless",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"(",
"s",
")",
"who",
"wrote",
"the",
"<mask>",
"``",
"Nameless",
",",
"Painless",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless" | What are the first and last name of the author who published the paper titled "Nameless, Painless"? | [
"SELECT",
"t1.fname",
",",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t3.title",
"=",
"``",
"Nameless",
",",... | [
"select",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
... | [
"What",
"are",
"the",
"first",
"and",
"last",
"name",
"of",
"the",
"author",
"who",
"published",
"the",
"paper",
"titled",
"``",
"Nameless",
",",
"Painless",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"published",
"the",
"<mask>",
"<mask>",
"``",
"Nameless",
",",
"Painless",
"''",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University" | What are the papers published under the institution "Indiana University"? | [
"SELECT",
"DISTINCT",
"t1.title",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Indiana",
"University",
... | [
"select",
"distinct",
"t1",
".",
"title",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",... | [
"What",
"are",
"the",
"papers",
"published",
"under",
"the",
"institution",
"``",
"Indiana",
"University",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"published",
"under",
"the",
"<mask>",
"``",
"Indiana",
"University",
"''",
"?"
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University" | List the titles of the papers whose authors are from the institution "Indiana University". | [
"SELECT",
"DISTINCT",
"t1.title",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Indiana",
"University",
... | [
"select",
"distinct",
"t1",
".",
"title",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",... | [
"List",
"the",
"titles",
"of",
"the",
"papers",
"whose",
"authors",
"are",
"from",
"the",
"institution",
"``",
"Indiana",
"University",
"''",
"."
] | [
"List",
"the",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"are",
"from",
"the",
"<mask>",
"``",
"Indiana",
"University",
"''",
"."
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | Find all the papers published by the institution "Google". | [
"SELECT",
"DISTINCT",
"t1.title",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Google",
"''"
] | [
"select",
"distinct",
"t1",
".",
"title",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",... | [
"Find",
"all",
"the",
"papers",
"published",
"by",
"the",
"institution",
"``",
"Google",
"''",
"."
] | [
"Find",
"all",
"the",
"<mask>",
"published",
"by",
"the",
"<mask>",
"``",
"Google",
"''",
"."
] | [
"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>",
... |
icfp_1 | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | Which papers were written by authors from the institution "Google"? | [
"SELECT",
"DISTINCT",
"t1.title",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Google",
"''"
] | [
"select",
"distinct",
"t1",
".",
"title",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".",
"instid",
"where",... | [
"Which",
"papers",
"were",
"written",
"by",
"authors",
"from",
"the",
"institution",
"``",
"Google",
"''",
"?"
] | [
"Which",
"<mask>",
"were",
"written",
"by",
"<mask>",
"from",
"the",
"<mask>",
"``",
"Google",
"''",
"?"
] | [
"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>",
... |
icfp_1 | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University" | How many papers are published by the institution "Tokohu University"? | [
"SELECT",
"count",
"(",
"DISTINCT",
"t1.title",
")",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Tok... | [
"select",
"count",
"(",
"distinct",
"t1",
".",
"title",
")",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".... | [
"How",
"many",
"papers",
"are",
"published",
"by",
"the",
"institution",
"``",
"Tokohu",
"University",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"published",
"by",
"the",
"<mask>",
"``",
"Tokohu",
"University",
"''",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
icfp_1 | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University" | Find the number of papers published by authors from the institution "Tokohu University". | [
"SELECT",
"count",
"(",
"DISTINCT",
"t1.title",
")",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Tok... | [
"select",
"count",
"(",
"distinct",
"t1",
".",
"title",
")",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".... | [
"Find",
"the",
"number",
"of",
"papers",
"published",
"by",
"authors",
"from",
"the",
"institution",
"``",
"Tokohu",
"University",
"''",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"published",
"by",
"<mask>",
"from",
"the",
"<mask>",
"``",
"Tokohu",
"University",
"''",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
icfp_1 | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Pennsylvania" | Find the number of papers published by the institution "University of Pennsylvania". | [
"SELECT",
"count",
"(",
"DISTINCT",
"t1.title",
")",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Uni... | [
"select",
"count",
"(",
"distinct",
"t1",
".",
"title",
")",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".... | [
"Find",
"the",
"number",
"of",
"papers",
"published",
"by",
"the",
"institution",
"``",
"University",
"of",
"Pennsylvania",
"''",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"published",
"by",
"the",
"<mask>",
"``",
"University",
"of",
"Pennsylvania",
"''",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
icfp_1 | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Pennsylvania" | How many papers are written by authors from the institution "University of Pennsylvania"? | [
"SELECT",
"count",
"(",
"DISTINCT",
"t1.title",
")",
"FROM",
"papers",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.paperid",
"=",
"t2.paperid",
"JOIN",
"inst",
"AS",
"t3",
"ON",
"t2.instid",
"=",
"t3.instid",
"WHERE",
"t3.name",
"=",
"``",
"Uni... | [
"select",
"count",
"(",
"distinct",
"t1",
".",
"title",
")",
"from",
"papers",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"paperid",
"=",
"t2",
".",
"paperid",
"join",
"inst",
"as",
"t3",
"on",
"t2",
".",
"instid",
"=",
"t3",
".... | [
"How",
"many",
"papers",
"are",
"written",
"by",
"authors",
"from",
"the",
"institution",
"``",
"University",
"of",
"Pennsylvania",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"written",
"by",
"<mask>",
"from",
"the",
"<mask>",
"``",
"University",
"of",
"Pennsylvania",
"''",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<ma... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers" | Find the papers which have "Olin Shivers" as an author. | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Olin",
"''",
"AND",
"t1.lname",
... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Find",
"the",
"papers",
"which",
"have",
"``",
"Olin",
"Shivers",
"''",
"as",
"an",
"author",
"."
] | [
"Find",
"the",
"<mask>",
"which",
"have",
"``",
"Olin",
"Shivers",
"''",
"as",
"an",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers" | Which papers did the author "Olin Shivers" write? Give me the paper titles. | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Olin",
"''",
"AND",
"t1.lname",
... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Which",
"papers",
"did",
"the",
"author",
"``",
"Olin",
"Shivers",
"''",
"write",
"?",
"Give",
"me",
"the",
"paper",
"titles",
"."
] | [
"Which",
"<mask>",
"did",
"the",
"<mask>",
"``",
"Olin",
"Shivers",
"''",
"write",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich" | Which papers have "Stephanie Weirich" as an author? | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Stephanie",
"''",
"AND",
"t1.lna... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Which",
"papers",
"have",
"``",
"Stephanie",
"Weirich",
"''",
"as",
"an",
"author",
"?"
] | [
"Which",
"<mask>",
"have",
"``",
"Stephanie",
"Weirich",
"''",
"as",
"an",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich" | Find the titles of the papers the author "Stephanie Weirich" wrote. | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"WHERE",
"t1.fname",
"=",
"``",
"Stephanie",
"''",
"AND",
"t1.lna... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"where",
"t1",
... | [
"Find",
"the",
"titles",
"of",
"the",
"papers",
"the",
"author",
"``",
"Stephanie",
"Weirich",
"''",
"wrote",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"the",
"<mask>",
"``",
"Stephanie",
"Weirich",
"''",
"wrote",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "USA" AND t2.authorder = 2 AND t1.lname = "Turon" | Which paper is published in an institution in "USA" and have "Turon" as its second author? | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"JOIN",
"inst",
"AS",
"t4",
"ON",
"t2.instid",
"=",
"t4.instid",
... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"join",
"inst",
... | [
"Which",
"paper",
"is",
"published",
"in",
"an",
"institution",
"in",
"``",
"USA",
"''",
"and",
"have",
"``",
"Turon",
"''",
"as",
"its",
"second",
"author",
"?"
] | [
"Which",
"<mask>",
"is",
"published",
"in",
"an",
"<mask>",
"in",
"``",
"USA",
"''",
"and",
"have",
"``",
"Turon",
"''",
"as",
"its",
"second",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "USA" AND t2.authorder = 2 AND t1.lname = "Turon" | Find papers whose second author has last name "Turon" and is affiliated with an institution in the country "USA". | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"JOIN",
"inst",
"AS",
"t4",
"ON",
"t2.instid",
"=",
"t4.instid",
... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"join",
"inst",
... | [
"Find",
"papers",
"whose",
"second",
"author",
"has",
"last",
"name",
"``",
"Turon",
"''",
"and",
"is",
"affiliated",
"with",
"an",
"institution",
"in",
"the",
"country",
"``",
"USA",
"''",
"."
] | [
"Find",
"<mask>",
"whose",
"second",
"<mask>",
"has",
"<mask>",
"<mask>",
"``",
"Turon",
"''",
"and",
"is",
"affiliated",
"with",
"an",
"<mask>",
"in",
"the",
"<mask>",
"``",
"USA",
"''",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori" | Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"? | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"JOIN",
"inst",
"AS",
"t4",
"ON",
"t2.instid",
"=",
"t4.instid",
... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"join",
"inst",
... | [
"Find",
"the",
"titles",
"of",
"papers",
"whose",
"first",
"author",
"is",
"affiliated",
"with",
"an",
"institution",
"in",
"the",
"country",
"``",
"Japan",
"''",
"and",
"has",
"last",
"name",
"``",
"Ohori",
"''",
"?"
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"affiliated",
"with",
"an",
"<mask>",
"in",
"the",
"<mask>",
"``",
"Japan",
"''",
"and",
"has",
"<mask>",
"<mask>",
"``",
"Ohori",
"''",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori" | Which papers' first author is affiliated with an institution in the country "Japan" and has last name "Ohori"? Give me the titles of the papers. | [
"SELECT",
"t3.title",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"JOIN",
"inst",
"AS",
"t4",
"ON",
"t2.instid",
"=",
"t4.instid",
... | [
"select",
"t3",
".",
"title",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"join",
"inst",
... | [
"Which",
"papers",
"'",
"first",
"author",
"is",
"affiliated",
"with",
"an",
"institution",
"in",
"the",
"country",
"``",
"Japan",
"''",
"and",
"has",
"last",
"name",
"``",
"Ohori",
"''",
"?",
"Give",
"me",
"the",
"titles",
"of",
"the",
"papers",
"."
] | [
"Which",
"<mask>",
"'",
"<mask>",
"<mask>",
"is",
"affiliated",
"with",
"an",
"<mask>",
"in",
"the",
"<mask>",
"``",
"Japan",
"''",
"and",
"has",
"<mask>",
"<mask>",
"``",
"Ohori",
"''",
"?",
"Give",
"me",
"the",
"<mask>",
"of",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1 | What is the last name of the author that has published the most papers? | [
"SELECT",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"GROUP",
"BY",
"t1.fname",
",",
"t1.lname",
"ORDER",
"BY",
"count... | [
"select",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"group",
"by",
... | [
"What",
"is",
"the",
"last",
"name",
"of",
"the",
"author",
"that",
"has",
"published",
"the",
"most",
"papers",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"published",
"the",
"most",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
icfp_1 | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1 | Which author has written the most papers? Find his or her last name. | [
"SELECT",
"t1.lname",
"FROM",
"authors",
"AS",
"t1",
"JOIN",
"authorship",
"AS",
"t2",
"ON",
"t1.authid",
"=",
"t2.authid",
"JOIN",
"papers",
"AS",
"t3",
"ON",
"t2.paperid",
"=",
"t3.paperid",
"GROUP",
"BY",
"t1.fname",
",",
"t1.lname",
"ORDER",
"BY",
"count... | [
"select",
"t1",
".",
"lname",
"from",
"authors",
"as",
"t1",
"join",
"authorship",
"as",
"t2",
"on",
"t1",
".",
"authid",
"=",
"t2",
".",
"authid",
"join",
"papers",
"as",
"t3",
"on",
"t2",
".",
"paperid",
"=",
"t3",
".",
"paperid",
"group",
"by",
... | [
"Which",
"author",
"has",
"written",
"the",
"most",
"papers",
"?",
"Find",
"his",
"or",
"her",
"last",
"name",
"."
] | [
"Which",
"<mask>",
"has",
"written",
"the",
"most",
"<mask>",
"?",
"Find",
"his",
"or",
"her",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.