dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergy) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergy",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergy",
")",
"from",
"allergy_type"
],
"question": "Wie viele Allergien gibt es?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
1,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergy) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergy",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergy",
")",
"from",
"allergy_type"
],
"question": "Wie viele Allergieeinträge gibt es?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
1,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergytype) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergytype",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergytype",
")",
"from",
"allergy_type"
],
"question": "Wie viele verschiedene Allergietypen gibt es?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
2,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergytype) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergytype",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergytype",
")",
"from",
"allergy_type"
],
"question": "Wie viele verschiedene Allergien gibt es?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
2,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"DISTINCT",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"distinct",
"allergytype",
"from",
"allergy_type"
],
"question": "Alle Allergietypen anzeigen.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"DISTINCT",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"distinct",
"allergytype",
"from",
"allergy_type"
],
"question": "Was sind die verschiedenen Allergietypen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergy , allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"allergy",
",",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"allergytype",
"from",
"allergy_type"
],
"question": "Zeigen Sie alle Allergien und ihre Arten.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergy , allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"allergy",
",",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"allergytype",
"from",
"allergy_type"
],
"question": "Was sind die Allergien und ihre Arten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"",
"query_toks": [
"SELECT",
"DISTINCT",
"allergy",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"allergy",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "Zeigen Sie alle Allergien mit Typ \"food\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"",
"query_toks": [
"SELECT",
"DISTINCT",
"allergy",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"allergy",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "Was sind all die verschiedenen \"food\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"WHERE",
"allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"where",
"allergy",
"=",
"value"
],
"question": "Was ist die Art der Allergie Katze?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"WHERE",
"allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"where",
"allergy",
"=",
"value"
],
"question": "Was ist der Allergietyp einer \"cat allergy\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"animal",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "Wie viele Allergien haben Typ \"animal\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"animal",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "Wie viele \"animal type allergies\" gibt es?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype",
"query_toks": [
"SELECT",
"allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype"
],
"query_toks_no_value": [
"select",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"group",
"by",
"allergytype"
],
"question": "Zeigen Sie alle Allergietypen und die Anzahl der Allergien in jedem Typ an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype",
"query_toks": [
"SELECT",
"allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype"
],
"query_toks_no_value": [
"select",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"group",
"by",
"allergytype"
],
"question": "Was sind die Allergietypen und wie viele Allergien entsprechen jeder?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Welcher Allergietyp hat die meisten Allergien?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Welcher Allergietyp ist am häufigsten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "Welcher Allergietyp hat die geringste Anzahl an Allergien?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "Welcher Allergietyp ist am seltensten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student"
],
"question": "Wie viele Studenten sind dort?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student"
],
"question": "Wie viele Studenten gibt es insgesamt?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname FROM Student",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student"
],
"question": "Vor- und Nachnamen für alle Studenten anzeigen.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname FROM Student",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student"
],
"question": "Wie lauten die vollständigen Namen aller Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT advisor) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"advisor",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"advisor",
")",
"from",
"student"
],
"question": "Wie viele verschiedene Berater sind aufgeführt?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
11,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT advisor) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"advisor",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"advisor",
")",
"from",
"student"
],
"question": "Wie viele Berater gibt es?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
11,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT Major FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"Major",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"major",
"from",
"student"
],
"question": "Zeige alle Hauptfächer.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT Major FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"Major",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"major",
"from",
"student"
],
"question": "Was sind die verschiedenen Hauptfächer?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT city_code FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"city_code",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"city_code",
"from",
"student"
],
"question": "Zeigen Sie alle Städte, in denen Studenten leben.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT city_code FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"city_code",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"city_code",
"from",
"student"
],
"question": "In welchen Städten leben Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
",",
"Age",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'F",
"'"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
",",
"age",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "Vorname, Nachname, Alter für alle Studentinnen anzeigen. Ihr Geschlecht ist \"F\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
",",
"Age",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'F",
"'"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
",",
"age",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "Wie lauten die vollständigen Namen und das Alter aller Studentinnen, deren Geschlecht \"F\" ist?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE Sex = 'M'",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'M",
"'"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "Zeigen Sie die Studenten-IDs für alle männlichen Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE Sex = 'M'",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'M",
"'"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "Was sind die Studenten-IDs für alle männlichen Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age = 18",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
"=",
"18"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
"=",
"value"
],
"question": "Wie viele Studenten sind 18 Jahre alt?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age = 18",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
"=",
"18"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
"=",
"value"
],
"question": "Wie viele Studenten sind 18 Jahre alt?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age > 20",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
">",
"20"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
">",
"value"
],
"question": "Zeigen Sie alle Studenten-IDs an, die älter als 20 Jahre sind.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
20.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age > 20",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
">",
"20"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
">",
"value"
],
"question": "Was sind die Studenten-IDs für Studenten über 20 Jahre?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
20.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code FROM Student WHERE LName = \"Kim\"",
"query_toks": [
"SELECT",
"city_code",
"FROM",
"Student",
"WHERE",
"LName",
"=",
"``",
"Kim",
"''"
],
"query_toks_no_value": [
"select",
"city_code",
"from",
"student",
"where",
"lname",
"=",
"value"
],
"question": "In welcher Stadt lebt der Student mit dem Nachnamen \"Kim\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
"\"Kim\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code FROM Student WHERE LName = \"Kim\"",
"query_toks": [
"SELECT",
"city_code",
"FROM",
"Student",
"WHERE",
"LName",
"=",
"``",
"Kim",
"''"
],
"query_toks_no_value": [
"select",
"city_code",
"from",
"student",
"where",
"lname",
"=",
"value"
],
"question": "Geben Sie die Stadt an, in der der Student lebt, dessen Familienname \"Kim\" ist.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
"\"Kim\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Advisor FROM Student WHERE StuID = 1004",
"query_toks": [
"SELECT",
"Advisor",
"FROM",
"Student",
"WHERE",
"StuID",
"=",
"1004"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"where",
"stuid",
"=",
"value"
],
"question": "Wer ist der Berater eines Studenten mit ID 1004?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
1004.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Advisor FROM Student WHERE StuID = 1004",
"query_toks": [
"SELECT",
"Advisor",
"FROM",
"Student",
"WHERE",
"StuID",
"=",
"1004"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"where",
"stuid",
"=",
"value"
],
"question": "Wer berät den Studenten 1004?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
1004.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"city_code",
"=",
"``",
"HKG",
"''",
"OR",
"city_code",
"=",
"``",
"CHI",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"city_code",
"=",
"value",
"or",
"city_code",
"=",
"value"
],
"question": "Wie viele Studenten leben in \"HKG\" oder \"CHI\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"HKG\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"CHI\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"city_code",
"=",
"``",
"HKG",
"''",
"OR",
"city_code",
"=",
"``",
"CHI",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"city_code",
"=",
"value",
"or",
"city_code",
"=",
"value"
],
"question": "Geben Sie die Anzahl der Studenten an, die entweder in \"HKG\" oder \"CHI\" leben.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"HKG\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"CHI\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT min(age) , avg(age) , max(age) FROM Student",
"query_toks": [
"SELECT",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"from",
"student"
],
"question": "Zeigen Sie das Mindest-, Durchschnitts- und Höchstalter aller Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
false
],
null
]
],
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
1,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT min(age) , avg(age) , max(age) FROM Student",
"query_toks": [
"SELECT",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"from",
"student"
],
"question": "Was ist das Mindest-, Durchschnitts- und Höchstalter aller Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
false
],
null
]
],
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
1,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)",
"query_toks": [
"SELECT",
"LName",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"min",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"lname",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"min",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "Wie lautet der Nachname des jüngsten Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)",
"query_toks": [
"SELECT",
"LName",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"min",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"lname",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"min",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "Geben Sie den Nachnamen des jüngsten Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"max",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"max",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "Zeigen Sie die Studenten-ID des ältesten Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"max",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"max",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "Welcher Studenten-ID entspricht dem ältesten Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major , count(*) FROM Student GROUP BY major",
"query_toks": [
"SELECT",
"major",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"major"
],
"query_toks_no_value": [
"select",
"major",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"major"
],
"question": "Zeigen Sie alle Hauptfächer und die entsprechende Anzahl von Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major , count(*) FROM Student GROUP BY major",
"query_toks": [
"SELECT",
"major",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"major"
],
"query_toks_no_value": [
"select",
"major",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"major"
],
"question": "Wie viele Studenten gibt es für jedes Hauptfach?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"major",
"FROM",
"Student",
"GROUP",
"BY",
"major",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"major",
"from",
"student",
"group",
"by",
"major",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Welches Hauptfach hat die meisten Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"major",
"FROM",
"Student",
"GROUP",
"BY",
"major",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"major",
"from",
"student",
"group",
"by",
"major",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Was ist das größte Hauptfach?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT age , count(*) FROM Student GROUP BY age",
"query_toks": [
"SELECT",
"age",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"age"
],
"query_toks_no_value": [
"select",
"age",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"age"
],
"question": "Zeigen Sie alle Altersgruppen und die entsprechende Anzahl von Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
8,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT age , count(*) FROM Student GROUP BY age",
"query_toks": [
"SELECT",
"age",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"age"
],
"query_toks_no_value": [
"select",
"age",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"age"
],
"question": "Wie alt ist jeder Student und wie viele Studenten sind in jedem Alter?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
8,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) , sex FROM Student GROUP BY sex",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
",",
"sex",
"FROM",
"Student",
"GROUP",
"BY",
"sex"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
",",
"sex",
"from",
"student",
"group",
"by",
"sex"
],
"question": "Zeigen Sie das Durchschnittsalter für männliche und weibliche Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
9,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) , sex FROM Student GROUP BY sex",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
",",
"sex",
"FROM",
"Student",
"GROUP",
"BY",
"sex"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
",",
"sex",
"from",
"student",
"group",
"by",
"sex"
],
"question": "Was ist das Durchschnittsalter für männliche und weibliche Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
9,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code , count(*) FROM Student GROUP BY city_code",
"query_toks": [
"SELECT",
"city_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"city_code"
],
"query_toks_no_value": [
"select",
"city_code",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"city_code"
],
"question": "Alle Städte und die entsprechende Anzahl von Studenten anzeigen.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
12,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code , count(*) FROM Student GROUP BY city_code",
"query_toks": [
"SELECT",
"city_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"city_code"
],
"query_toks_no_value": [
"select",
"city_code",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"city_code"
],
"question": "Wie viele Studenten leben in jeder Stadt?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
12,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor , count(*) FROM Student GROUP BY advisor",
"query_toks": [
"SELECT",
"advisor",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"advisor"
],
"query_toks_no_value": [
"select",
"advisor",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"advisor"
],
"question": "Zeigen Sie alle Berater und die entsprechende Anzahl von Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor , count(*) FROM Student GROUP BY advisor",
"query_toks": [
"SELECT",
"advisor",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"advisor"
],
"query_toks_no_value": [
"select",
"advisor",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"advisor"
],
"question": "Wie viele Studenten hat jeder Berater?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"advisor",
"FROM",
"Student",
"GROUP",
"BY",
"advisor",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"group",
"by",
"advisor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Welcher Berater hat die meisten Studenten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"advisor",
"FROM",
"Student",
"GROUP",
"BY",
"advisor",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"group",
"by",
"advisor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Geben Sie den Berater mit den meisten Schülern.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value"
],
"question": "Wie viele Schüler haben \"cat allergies\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value"
],
"question": "Wie viele Schüler sind von \"cat allergies\" betroffen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"StuID",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"has_allergy",
"group",
"by",
"stuid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "Zeigen Sie alle Studenten-IDs mit mindestens zwei Allergien an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"StuID",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"has_allergy",
"group",
"by",
"stuid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "Was sind die IDs von Studenten, die mehr als eine Allergie haben?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"has_allergy"
],
"question": "Was sind die IDs von Studenten, die keine Allergien haben?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"has_allergy"
],
"question": "Welche Studenten sind von Allergien nicht betroffen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"has_allergy",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.sex",
"=",
"``",
"F",
"''",
"AND",
"T1.allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T1.allergy",
"=",
"``",
"Eggs",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"sex",
"=",
"value",
"and",
"t1",
".",
"allergy",
"=",
"value",
"or",
"t1",
".",
"allergy",
"=",
"value"
],
"question": "Wie viele Studentinnen haben \"milk\"- oder \"egg\"- Allergien?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Eggs\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"has_allergy",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.sex",
"=",
"``",
"F",
"''",
"AND",
"T1.allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T1.allergy",
"=",
"``",
"Eggs",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"sex",
"=",
"value",
"and",
"t1",
".",
"allergy",
"=",
"value",
"or",
"t1",
".",
"allergy",
"=",
"value"
],
"question": "Wie viele Studentinnen sind allergisch gegen \"milk\" oder \"eggs\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Eggs\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value"
],
"question": "Wie viele Studenten haben eine \"food\"-Allergie?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value"
],
"question": "Wie viele Studenten sind von \"food\"-Allergien betroffen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"Allergy",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergy",
"from",
"has_allergy",
"group",
"by",
"allergy",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Welche Allergie hat die meisten Studenten betroffen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"Allergy",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergy",
"from",
"has_allergy",
"group",
"by",
"allergy",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Welche Allergie ist am häufigsten?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy",
"query_toks": [
"SELECT",
"Allergy",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"group",
"by",
"allergy"
],
"question": "Zeigen Sie alle Allergien mit der Anzahl der betroffenen Studenten.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy",
"query_toks": [
"SELECT",
"Allergy",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"group",
"by",
"allergy"
],
"question": "Wie viele Studenten haben jeweils unterschiedliche Allergien?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype",
"query_toks": [
"SELECT",
"T2.allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"GROUP",
"BY",
"T2.allergytype"
],
"query_toks_no_value": [
"select",
"t2",
".",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"group",
"by",
"t2",
".",
"allergytype"
],
"question": "Zeigen Sie alle Allergietypen mit der Anzahl der betroffenen Studenten an.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype",
"query_toks": [
"SELECT",
"T2.allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"GROUP",
"BY",
"T2.allergytype"
],
"query_toks_no_value": [
"select",
"t2",
".",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"group",
"by",
"t2",
".",
"allergytype"
],
"question": "Wie viele Studenten sind von jedem Allergietyp betroffen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"lname",
",",
"age",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"lname",
",",
"age",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "Finden Sie den Nachnamen und das Alter des Studenten, der sowohl gegen \"milk\" als auch gegen \"cat\" allergisch ist.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"lname",
",",
"age",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"lname",
",",
"age",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "Was sind die Nachnamen und das Alter der Studenten, die gegen \"milk\" und \"cat\" allergisch sind?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy",
"query_toks": [
"SELECT",
"T1.Allergy",
",",
"T1.AllergyType",
"FROM",
"Allergy_type",
"AS",
"T1",
"JOIN",
"Has_allergy",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"JOIN",
"Student",
"AS",
"T3",
"ON",
"T3.StuID",
"=",
"T2.StuID",
"WHERE",
"T3.Fname",
"=",
"``",
"Lisa",
"''",
"ORDER",
"BY",
"T1.Allergy"
],
"query_toks_no_value": [
"select",
"t1",
".",
"allergy",
",",
"t1",
".",
"allergytype",
"from",
"allergy_type",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"join",
"student",
"as",
"t3",
"on",
"t3",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t3",
".",
"fname",
"=",
"value",
"order",
"by",
"t1",
".",
"allergy"
],
"question": "Was sind die Allergien und ihre Arten, die die Studentin mit Vornamen \"Lisa\" hat? Und bestellen Sie das Ergebnis mit Namen von Allergien.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
4,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Lisa\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
1,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy",
"query_toks": [
"SELECT",
"T1.Allergy",
",",
"T1.AllergyType",
"FROM",
"Allergy_type",
"AS",
"T1",
"JOIN",
"Has_allergy",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"JOIN",
"Student",
"AS",
"T3",
"ON",
"T3.StuID",
"=",
"T2.StuID",
"WHERE",
"T3.Fname",
"=",
"``",
"Lisa",
"''",
"ORDER",
"BY",
"T1.Allergy"
],
"query_toks_no_value": [
"select",
"t1",
".",
"allergy",
",",
"t1",
".",
"allergytype",
"from",
"allergy_type",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"join",
"student",
"as",
"t3",
"on",
"t3",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t3",
".",
"fname",
"=",
"value",
"order",
"by",
"t1",
".",
"allergy"
],
"question": "Welche Allergien hat das Mädchen namens \"Lisa\" ? Und welche Arten von ihnen? Ordnen Sie das Ergebnis nach Allergikernamen.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
4,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Lisa\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
1,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"fname",
",",
"sex",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"sex",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"except",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "Finden Sie den Vornamen und das Geschlecht des Studenten, der eine Allergie gegen \"milk\" hat, aber keine \"cat\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"fname",
",",
"sex",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"sex",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"except",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "Was sind der Vorname und das Geschlecht der Studenten, die eine Allergie gegen \"milk\" haben, sich aber mit \"cats\" abfinden können?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"INTERSECT",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"intersect",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Finden Sie das Durchschnittsalter der Studenten, die Allergien gegen \"food\" und \"animal\" Typen haben.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"INTERSECT",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"intersect",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Wie alt sind die Studenten mit Allergien gegen \"food\" und \"animal\"-Typen im Durchschnitt?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"fname",
",",
"lname",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Listen Sie den Vor- und Nachnamen der Studenten auf, die keine Allergie von \"food\"-Typen haben.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"fname",
",",
"lname",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Wie lautet der vollständige Name jedes Srtudenten, der gegen keine \"food\" allergisch ist?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"``",
"M",
"''",
"AND",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"sex",
"=",
"value",
"and",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Finden Sie die Anzahl der männlichen Studenten (Geschlecht ist \"M\"), die an einer Allergie vom \"food\"-Typ leiden.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
],
"and",
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"``",
"M",
"''",
"AND",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"sex",
"=",
"value",
"and",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Wie viele männliche Studenten (Geschlecht ist \"M\") sind allergisch gegen irgendeine Art von \"food\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
],
"and",
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.fname",
",",
"T1.city_code",
"FROM",
"Student",
"AS",
"T1",
"JOIN",
"Has_Allergy",
"AS",
"T2",
"ON",
"T1.stuid",
"=",
"T2.stuid",
"WHERE",
"T2.Allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T2.Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"city_code",
"from",
"student",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"allergy",
"=",
"value",
"or",
"t2",
".",
"allergy",
"=",
"value"
],
"question": "Finden Sie die verschiedenen Vornamen und Städte der Studenten, die eine Allergie gegen \"milk\" oder \"cat\" haben.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.fname",
",",
"T1.city_code",
"FROM",
"Student",
"AS",
"T1",
"JOIN",
"Has_Allergy",
"AS",
"T2",
"ON",
"T1.stuid",
"=",
"T2.stuid",
"WHERE",
"T2.Allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T2.Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"city_code",
"from",
"student",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"allergy",
"=",
"value",
"or",
"t2",
".",
"allergy",
"=",
"value"
],
"question": "Was sind die unterschiedlichen Vornamen und Städte der Studenten, die entweder gegen \"milk\" oder gegen \"cat\" allergisch sind?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
">",
"18",
"AND",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"OR",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
">",
"value",
"and",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"or",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Finden Sie die Anzahl der Studenten, die älter als 18 Jahre sind und weder gegen \"food\" noch gegen \"animal\" allergisch sind.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
],
"and",
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
">",
"18",
"AND",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"OR",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
">",
"value",
"and",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"or",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "Wie viele Studenten sind über 18 Jahre alt und haben keine Allergie gegen \"food\"- oder \"animal\"-Typ?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
],
"and",
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")",
"query_toks": [
"SELECT",
"fname",
",",
"major",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Soy",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"major",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "Finden Sie den Vornamen und das Hauptfach der Studenten, die nicht auf \"Soy\" stehen.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Soy\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")",
"query_toks": [
"SELECT",
"fname",
",",
"major",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Soy",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"major",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "Was sind der Vorname und das Hauptfach der Studenten, die \"Soy\" konsumieren können?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Soy\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
]