| [ | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT count(*) FROM ASSESSMENT_NOTES", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ASSESSMENT_NOTES" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "assessment_notes" | |
| ], | |
| "question": "合計でいくつの評価ノートがありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT date_of_notes FROM Assessment_Notes", | |
| "query_toks": [ | |
| "SELECT", | |
| "date_of_notes", | |
| "FROM", | |
| "Assessment_Notes" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "date_of_notes", | |
| "from", | |
| "assessment_notes" | |
| ], | |
| "question": "評価ノートの日付は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT count(*) FROM ADDRESSES WHERE zip_postcode = \"197\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ADDRESSES", | |
| "WHERE", | |
| "zip_postcode", | |
| "=", | |
| "``", | |
| "197", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "addresses", | |
| "where", | |
| "zip_postcode", | |
| "=", | |
| "value" | |
| ], | |
| "question": "郵便番号「197」の住所はいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"197\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT count(DISTINCT incident_type_code) FROM Behavior_Incident", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "incident_type_code", | |
| ")", | |
| "FROM", | |
| "Behavior_Incident" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "incident_type_code", | |
| ")", | |
| "from", | |
| "behavior_incident" | |
| ], | |
| "question": "異なるインシデントタイプコードはいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 42, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT DISTINCT detention_type_code FROM Detention", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "detention_type_code", | |
| "FROM", | |
| "Detention" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "detention_type_code", | |
| "from", | |
| "detention" | |
| ], | |
| "question": "拘留タイプコードをすべて返します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 8 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT date_incident_start , date_incident_end FROM Behavior_Incident WHERE incident_type_code = \"NOISE\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "date_incident_start", | |
| ",", | |
| "date_incident_end", | |
| "FROM", | |
| "Behavior_Incident", | |
| "WHERE", | |
| "incident_type_code", | |
| "=", | |
| "``", | |
| "NOISE", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "date_incident_start", | |
| ",", | |
| "date_incident_end", | |
| "from", | |
| "behavior_incident", | |
| "where", | |
| "incident_type_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "インシデントタイプコード「NOISE」のインシデントの開始日と終了日はいつですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 44, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 45, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 42, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NOISE\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT detention_summary FROM Detention", | |
| "query_toks": [ | |
| "SELECT", | |
| "detention_summary", | |
| "FROM", | |
| "Detention" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "detention_summary", | |
| "from", | |
| "detention" | |
| ], | |
| "question": "すべての拘留の概要を返します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 8 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 54, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT cell_mobile_number , email_address FROM STUDENTS", | |
| "query_toks": [ | |
| "SELECT", | |
| "cell_mobile_number", | |
| ",", | |
| "email_address", | |
| "FROM", | |
| "STUDENTS" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cell_mobile_number", | |
| ",", | |
| "email_address", | |
| "from", | |
| "students" | |
| ], | |
| "question": "すべての学生の携帯電話番号とメールアドレスを返送してください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT email_address FROM Students WHERE first_name = \"Emma\" AND last_name = \"Rohan\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "email_address", | |
| "FROM", | |
| "Students", | |
| "WHERE", | |
| "first_name", | |
| "=", | |
| "``", | |
| "Emma", | |
| "''", | |
| "AND", | |
| "last_name", | |
| "=", | |
| "``", | |
| "Rohan", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "email_address", | |
| "from", | |
| "students", | |
| "where", | |
| "first_name", | |
| "=", | |
| "value", | |
| "and", | |
| "last_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "名が「Emma」、姓が「Rohan」の生徒のメールアドレスは何ですか。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Emma\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rohan\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT count(DISTINCT student_id) FROM Students_in_Detention", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "student_id", | |
| ")", | |
| "FROM", | |
| "Students_in_Detention" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "student_id", | |
| ")", | |
| "from", | |
| "students_in_detention" | |
| ], | |
| "question": "何人の異なる学生が拘留されていますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT gender FROM TEACHERS WHERE last_name = \"Medhurst\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "gender", | |
| "FROM", | |
| "TEACHERS", | |
| "WHERE", | |
| "last_name", | |
| "=", | |
| "``", | |
| "Medhurst", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "gender", | |
| "from", | |
| "teachers", | |
| "where", | |
| "last_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "苗字が「VIOLENCE」の先生の性別は?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Medhurst\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = \"VIOLENCE\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "incident_type_description", | |
| "FROM", | |
| "Ref_Incident_Type", | |
| "WHERE", | |
| "incident_type_code", | |
| "=", | |
| "``", | |
| "VIOLENCE", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "incident_type_description", | |
| "from", | |
| "ref_incident_type", | |
| "where", | |
| "incident_type_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "コード「VIOLENCE」のインシデントタイプのインシデントタイプの説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"VIOLENCE\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| "FROM", | |
| "Student_Addresses" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| "from", | |
| "student_addresses" | |
| ], | |
| "question": "すべての学生の住所の最大および最小の月額賃貸料を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 9 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "first_name", | |
| "FROM", | |
| "Teachers", | |
| "WHERE", | |
| "email_address", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "man", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "first_name", | |
| "from", | |
| "teachers", | |
| "where", | |
| "email_address", | |
| "like", | |
| "value" | |
| ], | |
| "question": "メールアドレスに「man」という単語が含まれている教師の名を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 33, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%man%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "Assessment_Notes", | |
| "ORDER", | |
| "BY", | |
| "date_of_notes", | |
| "ASC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "assessment_notes", | |
| "order", | |
| "by", | |
| "date_of_notes", | |
| "asc" | |
| ], | |
| "question": "日付の昇順に評価ノートに関するすべての情報をリストします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT city FROM Addresses ORDER BY city", | |
| "query_toks": [ | |
| "SELECT", | |
| "city", | |
| "FROM", | |
| "Addresses", | |
| "ORDER", | |
| "BY", | |
| "city" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "city", | |
| "from", | |
| "addresses", | |
| "order", | |
| "by", | |
| "city" | |
| ], | |
| "question": "住所のすべての都市をアルファベット順にリストします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT first_name , last_name FROM Teachers ORDER BY last_name", | |
| "query_toks": [ | |
| "SELECT", | |
| "first_name", | |
| ",", | |
| "last_name", | |
| "FROM", | |
| "Teachers", | |
| "ORDER", | |
| "BY", | |
| "last_name" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "first_name", | |
| ",", | |
| "last_name", | |
| "from", | |
| "teachers", | |
| "order", | |
| "by", | |
| "last_name" | |
| ], | |
| "question": "教師の名前と苗字を、名前のアルファベット順に検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "Student_Addresses", | |
| "ORDER", | |
| "BY", | |
| "monthly_rental", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "student_addresses", | |
| "order", | |
| "by", | |
| "monthly_rental", | |
| "desc" | |
| ], | |
| "question": "学生の住所に関するすべての情報を検索し、月額賃貸料の降順で並べ替えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 9 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.student_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.student_id", | |
| ",", | |
| "T2.first_name", | |
| "FROM", | |
| "Assessment_Notes", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.student_id", | |
| "=", | |
| "T2.student_id", | |
| "GROUP", | |
| "BY", | |
| "T1.student_id", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "student_id", | |
| ",", | |
| "t2", | |
| ".", | |
| "first_name", | |
| "from", | |
| "assessment_notes", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "student_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "評価ノートの数が最も多い学生のIDと名を見つけますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.teacher_id", | |
| ",", | |
| "T2.first_name", | |
| "FROM", | |
| "Assessment_Notes", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.teacher_id", | |
| "=", | |
| "T2.teacher_id", | |
| "GROUP", | |
| "BY", | |
| "T1.teacher_id", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| ",", | |
| "t2", | |
| ".", | |
| "first_name", | |
| "from", | |
| "assessment_notes", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "teacher_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "評価ノートの数が最も多い3人の教師のIDと名を見つけますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 3, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.student_id", | |
| ",", | |
| "T2.last_name", | |
| "FROM", | |
| "Behavior_Incident", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.student_id", | |
| "=", | |
| "T2.student_id", | |
| "GROUP", | |
| "BY", | |
| "T1.student_id", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "student_id", | |
| ",", | |
| "t2", | |
| ".", | |
| "last_name", | |
| "from", | |
| "behavior_incident", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "student_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "行動事故が最も多い生徒のIDと名前を見つけますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 43, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 43, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 43, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.teacher_id , T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.teacher_id", | |
| ",", | |
| "T2.last_name", | |
| "FROM", | |
| "Detention", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.teacher_id", | |
| "=", | |
| "T2.teacher_id", | |
| "WHERE", | |
| "T1.detention_type_code", | |
| "=", | |
| "``", | |
| "AFTER", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "T1.teacher_id", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| ",", | |
| "t2", | |
| ".", | |
| "last_name", | |
| "from", | |
| "detention", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "teacher_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "detention_type_code", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "拘留タイプコード「AFTER」で最も多くに拘留されている教師のIDと苗字を見つけますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 8 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AFTER\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.student_id", | |
| ",", | |
| "T2.first_name", | |
| "FROM", | |
| "Student_Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.student_id", | |
| "=", | |
| "T2.student_id", | |
| "GROUP", | |
| "BY", | |
| "T1.student_id", | |
| "ORDER", | |
| "BY", | |
| "AVG", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "student_id", | |
| ",", | |
| "t2", | |
| ".", | |
| "first_name", | |
| "from", | |
| "student_addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "student_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "order", | |
| "by", | |
| "avg", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "住所の平均月額賃貸料が最も高い学生のIDと名は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 9 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 56, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 56, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 56, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 5, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.address_id", | |
| ",", | |
| "T1.city", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student_Addresses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "GROUP", | |
| "BY", | |
| "T2.address_id", | |
| "ORDER", | |
| "BY", | |
| "AVG", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "address_id", | |
| ",", | |
| "t1", | |
| ".", | |
| "city", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "student_addresses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "order", | |
| "by", | |
| "avg", | |
| "(", | |
| "monthly_rental", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "平均月額賃貸料が最も高い学生の住所のIDと都市を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 9 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 5, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.incident_type_code", | |
| ",", | |
| "T2.incident_type_description", | |
| "FROM", | |
| "Behavior_Incident", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_Incident_Type", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.incident_type_code", | |
| "=", | |
| "T2.incident_type_code", | |
| "GROUP", | |
| "BY", | |
| "T1.incident_type_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "incident_type_code", | |
| ",", | |
| "t2", | |
| ".", | |
| "incident_type_description", | |
| "from", | |
| "behavior_incident", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_incident_type", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "incident_type_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "incident_type_code", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "incident_type_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "最も頻繁な行動インシデントタイプのコードと説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 42, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 42, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 42, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.detention_type_code", | |
| ",", | |
| "T2.detention_type_description", | |
| "FROM", | |
| "Detention", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_Detention_Type", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.detention_type_code", | |
| "=", | |
| "T2.detention_type_code", | |
| "GROUP", | |
| "BY", | |
| "T1.detention_type_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "detention_type_code", | |
| ",", | |
| "t2", | |
| ".", | |
| "detention_type_description", | |
| "from", | |
| "detention", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_detention_type", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "detention_type_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "detention_type_code", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "detention_type_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "最も頻度の低い拘留タイプのコードと説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 8 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = \"Fanny\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.date_of_notes", | |
| "FROM", | |
| "Assessment_Notes", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.student_id", | |
| "=", | |
| "T2.student_id", | |
| "WHERE", | |
| "T2.first_name", | |
| "=", | |
| "``", | |
| "Fanny", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "date_of_notes", | |
| "from", | |
| "assessment_notes", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "student_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "first_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Fanny」という名の学生の評価「no」トの日付を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Fanny\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.text_of_notes", | |
| "FROM", | |
| "Assessment_Notes", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.teacher_id", | |
| "=", | |
| "T2.teacher_id", | |
| "WHERE", | |
| "T2.last_name", | |
| "=", | |
| "``", | |
| "Schuster", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "text_of_notes", | |
| "from", | |
| "assessment_notes", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "teacher_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "last_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "家系の名前が「Schuster」の教師向けの評価ノートのテキストを検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Schuster\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = \"Fahey\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.date_incident_start", | |
| ",", | |
| "date_incident_end", | |
| "FROM", | |
| "Behavior_Incident", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.student_id", | |
| "=", | |
| "T2.student_id", | |
| "WHERE", | |
| "T2.last_name", | |
| "=", | |
| "``", | |
| "Fahey", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "date_incident_start", | |
| ",", | |
| "date_incident_end", | |
| "from", | |
| "behavior_incident", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "student_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "last_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "家系の名前が「Fahey」の生徒の行動インシデントの開始日と終了日を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 43, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 44, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 45, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Fahey\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.datetime_detention_start , datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schultz\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.datetime_detention_start", | |
| ",", | |
| "datetime_detention_end", | |
| "FROM", | |
| "Detention", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.teacher_id", | |
| "=", | |
| "T2.teacher_id", | |
| "WHERE", | |
| "T2.last_name", | |
| "=", | |
| "``", | |
| "Schultz", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "datetime_detention_start", | |
| ",", | |
| "datetime_detention_end", | |
| "from", | |
| "detention", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "teacher_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "last_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "苗字が「Schultz」の教師の拘留の開始日と終了日を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 8 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 52, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 53, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Schultz\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T2.address_id , T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.address_id", | |
| ",", | |
| "T1.zip_postcode", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student_Addresses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "ORDER", | |
| "BY", | |
| "monthly_rental", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "address_id", | |
| ",", | |
| "t1", | |
| ".", | |
| "zip_postcode", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "student_addresses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "order", | |
| "by", | |
| "monthly_rental", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "月額賃貸料が最も高い住所のIDと郵便番号は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 9 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.cell_mobile_number", | |
| "FROM", | |
| "Student_Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.student_id", | |
| "=", | |
| "T2.student_id", | |
| "ORDER", | |
| "BY", | |
| "T1.monthly_rental", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "cell_mobile_number", | |
| "from", | |
| "student_addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "student_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "student_id", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "monthly_rental", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "月々の家賃が一番安い住所の学生の携帯電話番号は?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 9 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 56, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Texas\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.monthly_rental", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student_Addresses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "WHERE", | |
| "T1.state_province_county", | |
| "=", | |
| "``", | |
| "Texas", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "monthly_rental", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "student_addresses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "state_province_county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Texas」州の学生の住所の毎月の賃貸料はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 9 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Texas\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Wisconsin\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.first_name", | |
| ",", | |
| "T2.last_name", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "WHERE", | |
| "T1.state_province_county", | |
| "=", | |
| "``", | |
| "Wisconsin", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "first_name", | |
| ",", | |
| "t2", | |
| ".", | |
| "last_name", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "state_province_county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Wisconsin」州の住所を持つ学生の名前と苗字は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Wisconsin\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.line_1 , avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.line_1", | |
| ",", | |
| "avg", | |
| "(", | |
| "T2.monthly_rental", | |
| ")", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student_Addresses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "GROUP", | |
| "BY", | |
| "T2.address_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "line_1", | |
| ",", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "monthly_rental", | |
| ")", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "student_addresses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "address_id" | |
| ], | |
| "question": "すべての学生の住所の1行目と平均月額賃貸料はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 9 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = \"Lyla\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.zip_postcode", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "WHERE", | |
| "T2.first_name", | |
| "=", | |
| "``", | |
| "Lyla", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "zip_postcode", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "first_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Lyla」という名の先生が住んでいる住所の郵便番号は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Lyla\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.email_address", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "WHERE", | |
| "T1.zip_postcode", | |
| "=", | |
| "``", | |
| "918", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "email_address", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "zip_postcode", | |
| "=", | |
| "value" | |
| ], | |
| "question": "住所が郵便番号「918」の教師のメールアドレスは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 33, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"918\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident )", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "STUDENTS", | |
| "WHERE", | |
| "student_id", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "student_id", | |
| "FROM", | |
| "Behavior_Incident", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "students", | |
| "where", | |
| "student_id", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "student_id", | |
| "from", | |
| "behavior_incident", | |
| ")" | |
| ], | |
| "question": "何人の生徒が行動事件に関与していませんか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 43, | |
| 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": "behavior_monitoring", | |
| "query": "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "last_name", | |
| "FROM", | |
| "Teachers", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.last_name", | |
| "FROM", | |
| "Teachers", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Detention", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.teacher_id", | |
| "=", | |
| "T2.teacher_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "last_name", | |
| "from", | |
| "teachers", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "last_name", | |
| "from", | |
| "teachers", | |
| "as", | |
| "t1", | |
| "join", | |
| "detention", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "teacher_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "teacher_id" | |
| ], | |
| "question": "拘禁に関与していない教師の名前を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 8 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "behavior_monitoring", | |
| "query": "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.line_1", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Students", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.line_1", | |
| "FROM", | |
| "Addresses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Teachers", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.address_id", | |
| "=", | |
| "T2.address_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "line_1", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "students", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "line_1", | |
| "from", | |
| "addresses", | |
| "as", | |
| "t1", | |
| "join", | |
| "teachers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "address_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "address_id" | |
| ], | |
| "question": "一部の生徒と一部の教師が共有するアドレスの1行目は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |