{"index": 0, "beams": [{"question": "How many singers do we have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM singer", "inferred_code_readable": "", "score": -4.053109869062155e-06}]} {"index": 1, "beams": [{"question": "What is the total number of singers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM singer", "inferred_code_readable": "", "score": -2.384184078607632e-06}]} {"index": 2, "beams": [{"question": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, singer.Country, singer.Age FROM singer ORDER BY singer.Age Desc", "inferred_code_readable": "", "score": -0.00012111119384172753}]} {"index": 3, "beams": [{"question": "What are the names, countries, and ages for every singer in descending order of age?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, singer.Country, singer.Age FROM singer ORDER BY singer.Age Desc", "inferred_code_readable": "", "score": -0.0002671180006927898}]} {"index": 4, "beams": [{"question": "What is the average, minimum, and maximum age of all singers from France?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Unitedn\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(singer.Age), Min(singer.Age), Max(singer.Age) FROM singer WHERE singer.Country = \"Unitedn\"", "inferred_code_readable": "", "score": -0.6121350603980247}]} {"index": 5, "beams": [{"question": "What is the average, minimum, and maximum age for all French singers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Unitedn\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(singer.Age), Min(singer.Age), Max(singer.Age) FROM singer WHERE singer.Country = \"Unitedn\"", "inferred_code_readable": "", "score": -2.2456538700790887}]} {"index": 6, "beams": [{"question": "Show the name and the release year of the song by the youngest singer.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Song_Name, singer.Song_release_year FROM singer ORDER BY singer.Age Asc LIMIT 1", "inferred_code_readable": "", "score": -3.874274771931141e-05}]} {"index": 7, "beams": [{"question": "What are the names and release years for all the songs of the youngest singer?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Song_Name, singer.Song_release_year FROM singer ORDER BY singer.Age Asc LIMIT 1", "inferred_code_readable": "", "score": -1.4781919830397783e-05}]} {"index": 8, "beams": [{"question": "What are all distinct countries where singers above age 20 are from?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 20))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT singer.Country FROM singer WHERE singer.Age > 20", "inferred_code_readable": "", "score": -0.007699588214180153}]} {"index": 9, "beams": [{"question": "What are the different countries with singers above age 20?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 20))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT singer.Country FROM singer WHERE singer.Age > 20", "inferred_code_readable": "", "score": -0.017762746965409804}]} {"index": 10, "beams": [{"question": "Show all countries and the number of singers in each country.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Country, Count(*) FROM singer GROUP BY singer.Country", "inferred_code_readable": "", "score": -4.41074179491352e-06}]} {"index": 11, "beams": [{"question": "How many singers are from each country?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Country, Count(*) FROM singer GROUP BY singer.Country", "inferred_code_readable": "", "score": -2.121911794006337e-05}]} {"index": 12, "beams": [{"question": "List all song names by singers above the average age.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Song_Name FROM singer WHERE singer.Age > (SELECT Avg(singer.Age) FROM singer)", "inferred_code_readable": "", "score": -5.006788327932554e-06}]} {"index": 13, "beams": [{"question": "What are all the song names by singers who are older than average?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Song_Name FROM singer WHERE singer.Age > (SELECT Avg(singer.Age) FROM singer)", "inferred_code_readable": "", "score": -4.5299515321062245e-06}]} {"index": 14, "beams": [{"question": "Show location and name for all stadiums with a capacity between 5000 and 10000.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4000))) (val-val2 (Number (object-f 5000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Location, stadium.Name FROM stadium WHERE stadium.Capacity BETWEEN 4000 AND 5000", "inferred_code_readable": "", "score": -0.010130372766198548}]} {"index": 15, "beams": [{"question": "What are the locations and names of all stations with capacity between 5000 and 10000?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4000))) (val-val2 (Number (object-f 5000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Location, stadium.Name FROM stadium WHERE stadium.Capacity BETWEEN 4000 AND 5000", "inferred_code_readable": "", "score": -0.18441225360638214}]} {"index": 16, "beams": [{"question": "What is the maximum capacity and the average of all stadiums ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(stadium.Capacity), Avg(stadium.Average) FROM stadium", "inferred_code_readable": "", "score": -0.00011181309604069156}]} {"index": 17, "beams": [{"question": "What is the average and maximum capacities for all stadiums ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(stadium.Capacity), Max(stadium.Average) FROM stadium", "inferred_code_readable": "", "score": -0.06240481475652615}]} {"index": 18, "beams": [{"question": "What is the name and capacity for the stadium with highest average attendance?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium ORDER BY stadium.Average Desc LIMIT 1", "inferred_code_readable": "", "score": -0.07935823988994173}]} {"index": 19, "beams": [{"question": "What is the name and capacity for the stadium with the highest average attendance?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium ORDER BY stadium.Average Desc LIMIT 1", "inferred_code_readable": "", "score": -0.2109272179201085}]} {"index": 20, "beams": [{"question": "How many concerts are there in year 2014 or 2015?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2015))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM concert WHERE concert.Year = 2014 OR concert.Year = 2015", "inferred_code_readable": "", "score": -0.05240316517385679}]} {"index": 21, "beams": [{"question": "How many concerts occurred in 2014 or 2015?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2015))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM concert WHERE concert.Year = 2014 OR concert.Year = 2015", "inferred_code_readable": "", "score": -0.03611793967420596}]} {"index": 22, "beams": [{"question": "Show the stadium name and the number of concerts in each stadium.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, Count(*) FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID GROUP BY concert.Stadium_ID", "inferred_code_readable": "", "score": -1.5372531413566222}]} {"index": 23, "beams": [{"question": "For each stadium, how many concerts play there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT concert.Stadium_ID, Count(*) FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID GROUP BY concert.Stadium_ID", "inferred_code_readable": "", "score": -0.1222864899692766}]} {"index": 24, "beams": [{"question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID WHERE concert.Year >= 2014 GROUP BY concert.Stadium_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.021525330004607213}]} {"index": 25, "beams": [{"question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 300))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID WHERE concert.Year > 300 GROUP BY concert.Stadium_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.66355644519534}]} {"index": 26, "beams": [{"question": "Which year has most number of concerts?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT concert.Year FROM concert GROUP BY concert.Year ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -5.245095039185799e-05}]} {"index": 27, "beams": [{"question": "What is the year that had the most concerts?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT concert.Year FROM concert GROUP BY concert.Year ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -2.2411170327529817e-05}]} {"index": 28, "beams": [{"question": "Show the stadium names without any concert.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name FROM stadium WHERE stadium.Stadium_ID NOT IN (SELECT concert.Stadium_ID FROM concert)", "inferred_code_readable": "", "score": -1.8119790574644412e-05}]} {"index": 29, "beams": [{"question": "What are the names of the stadiums without any concerts?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name FROM stadium WHERE stadium.Stadium_ID NOT IN (SELECT concert.Stadium_ID FROM concert)", "inferred_code_readable": "", "score": -1.5258772933179898e-05}]} {"index": 30, "beams": [{"question": "Show countries where a singer above age 40 and a singer below 30 are from.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 40))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 30))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Country FROM singer WHERE singer.Age > 40 INTERSECT SELECT singer.Country FROM singer WHERE singer.Age < 30", "inferred_code_readable": "", "score": -0.007550610359793097}]} {"index": 31, "beams": [{"question": "Show names for all stadiums except for stadiums having a concert in year 2014.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT stadium.Name FROM stadium EXCEPT SELECT stadium.Name FROM concert JOIN stadium ON concert.Stadium_ID = stadium.Stadium_ID WHERE concert.Year = 2014", "inferred_code_readable": "", "score": -1.4470751566047113}]} {"index": 32, "beams": [{"question": "What are the names of all stadiums that did not have a concert in 2014?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT stadium.Name FROM stadium EXCEPT SELECT stadium.Name FROM concert JOIN stadium ON concert.Stadium_ID = stadium.Stadium_ID WHERE concert.Year = 2014", "inferred_code_readable": "", "score": -0.039555901579099384}]} {"index": 33, "beams": [{"question": "Show the name and theme for all concerts and the number of singers in each concert.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT concert.concert_Name, concert.Theme, Count(*) FROM concert JOIN singer_in_concert ON concert.concert_ID = singer_in_concert.concert_ID GROUP BY singer_in_concert.concert_ID", "inferred_code_readable": "", "score": -0.005742262769892648}]} {"index": 34, "beams": [{"question": "What are the names , themes , and number of singers for every concert ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT concert.concert_Name, concert.Theme, Count(*) FROM concert JOIN singer_in_concert ON concert.concert_ID = singer_in_concert.concert_ID GROUP BY singer_in_concert.concert_ID", "inferred_code_readable": "", "score": -0.009571806368938951}]} {"index": 35, "beams": [{"question": "List singer names and number of concerts for each singer.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, Count(*) FROM singer JOIN singer_in_concert ON singer.Singer_ID = singer_in_concert.Singer_ID GROUP BY singer_in_concert.Singer_ID", "inferred_code_readable": "", "score": -0.06969184666575501}]} {"index": 36, "beams": [{"question": "What are the names of the singers and number of concerts for each person?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, Count(*) FROM singer JOIN singer_in_concert ON singer.Singer_ID = singer_in_concert.Singer_ID GROUP BY singer_in_concert.Singer_ID", "inferred_code_readable": "", "score": -0.0017479211258830674}]} {"index": 37, "beams": [{"question": "List all singer names in concerts in year 2014.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer JOIN concert JOIN singer_in_concert ON singer.Singer_ID = singer_in_concert.Singer_ID AND singer_in_concert.concert_ID = concert.concert_ID WHERE concert.Year = 2014", "inferred_code_readable": "", "score": -0.019942712745454116}]} {"index": 38, "beams": [{"question": "What are the names of the singers who performed in a concert in 2014?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT singer.Name FROM singer JOIN concert JOIN singer_in_concert ON singer.Singer_ID = singer_in_concert.Singer_ID AND singer_in_concert.concert_ID = concert.concert_ID WHERE concert.Year = 2014", "inferred_code_readable": "", "score": -0.1245141479903964}]} {"index": 39, "beams": [{"question": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%He%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, singer.Country FROM singer WHERE singer.Song_Name LIKE \"%He%\"", "inferred_code_readable": "", "score": -0.6533296443112704}]} {"index": 40, "beams": [{"question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%He%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, singer.Country FROM singer WHERE singer.Song_Name LIKE \"%He%\"", "inferred_code_readable": "", "score": -0.38282200226385044}]} {"index": 41, "beams": [{"question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, stadium.Location FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID WHERE concert.Year = 2014 INTERSECT SELECT stadium.Name, stadium.Location FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID WHERE concert.Year = 4", "inferred_code_readable": "", "score": -1.0869943989841246}]} {"index": 42, "beams": [{"question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2014))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT stadium.Name, stadium.Location FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID WHERE concert.Year = 2014 INTERSECT SELECT stadium.Name, stadium.Location FROM stadium JOIN concert ON concert.Stadium_ID = stadium.Stadium_ID WHERE concert.Year = 4", "inferred_code_readable": "", "score": -3.574411369625871}]} {"index": 43, "beams": [{"question": "Find the number of concerts happened in the stadium with the highest capacity .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID ORDER BY stadium.Capacity Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0009777042053187301}]} {"index": 44, "beams": [{"question": "What are the number of concerts that occurred in the stadium with the largest capacity ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM stadium JOIN concert ON stadium.Stadium_ID = concert.Stadium_ID ORDER BY stadium.Capacity Desc LIMIT 1", "inferred_code_readable": "", "score": -0.00432130764456673}]} {"index": 45, "beams": [{"question": "Find the number of pets whose weight is heavier than 10.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Pets WHERE Pets.weight > 10", "inferred_code_readable": "", "score": -2.0503915109770787e-05}]} {"index": 46, "beams": [{"question": "How many pets have a greater weight than 10?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Pets WHERE Pets.weight > 10", "inferred_code_readable": "", "score": -2.861006764476315e-05}]} {"index": 47, "beams": [{"question": "Find the weight of the youngest dog.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"male\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.weight FROM Pets WHERE Pets.PetType = \"male\"", "inferred_code_readable": "", "score": -0.35887608899012946}]} {"index": 48, "beams": [{"question": "How much does the youngest dog weigh?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.weight FROM Pets WHERE Pets.PetType = (SELECT Min(Pets.PetType) FROM Pets)", "inferred_code_readable": "", "score": -0.6616788951141359}]} {"index": 49, "beams": [{"question": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(Pets.weight), Pets.PetType FROM Pets GROUP BY Pets.PetType", "inferred_code_readable": "", "score": -0.38178437640836194}]} {"index": 50, "beams": [{"question": "List the maximum weight and type for each type of pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(Pets.weight), Max(Pets.weight), Pets.PetType FROM Pets GROUP BY Pets.PetType", "inferred_code_readable": "", "score": -0.7379261420561605}]} {"index": 51, "beams": [{"question": "Find number of pets owned by students who are older than 20.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 20))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Student.Age > 20", "inferred_code_readable": "", "score": -1.1409387997468414}]} {"index": 52, "beams": [{"question": "How many pets are owned by students that have an age greater than 20?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 20))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Student.Age > 20", "inferred_code_readable": "", "score": -0.31419147100115197}]} {"index": 53, "beams": [{"question": "Find the number of dog pets that are raised by female students (with sex F).", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Student.Sex = \"F\" AND Pets.PetType = \"F\"", "inferred_code_readable": "", "score": -0.003925231581845878}]} {"index": 54, "beams": [{"question": "How many dog pets are raised by female students?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Student.Sex = \"F\" AND Pets.PetType = \"F\"", "inferred_code_readable": "", "score": -0.7988341579039613}]} {"index": 55, "beams": [{"question": "Find the number of distinct type of pets.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Pets.PetType) FROM Pets", "inferred_code_readable": "", "score": -2.3960838866798895e-05}]} {"index": 56, "beams": [{"question": "How many different types of pet are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Pets.PetType) FROM Pets", "inferred_code_readable": "", "score": -1.8000474888424378e-05}]} {"index": 57, "beams": [{"question": "Find the first name of students who have cat or dog pet.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Milk\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Milk\" OR Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.47168346380917114}]} {"index": 58, "beams": [{"question": "What are the first names of every student who has a cat or dog as a pet?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Milk\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Milk\" OR Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.6410121432829499}]} {"index": 59, "beams": [{"question": "Find the first name of students who have both cat and dog pets .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Milk\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Milk\" INTERSECT SELECT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.5699962361962463}]} {"index": 60, "beams": [{"question": "What are the students' first names who have both cats and dogs as pets?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Milk\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Milk\" INTERSECT SELECT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.420741345449855}]} {"index": 61, "beams": [{"question": "Find the major and age of students who do not have a cat pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.Major, Student.Age FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Cat\")", "inferred_code_readable": "", "score": -0.5671574997950373}]} {"index": 62, "beams": [{"question": "What major is every student who does not own a cat as a pet, and also how old are they?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Milk\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.Major, Student.Age FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Milk\")", "inferred_code_readable": "", "score": -1.0098007526736765}]} {"index": 63, "beams": [{"question": "Find the id of students who do not have a cat pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Student.StuID FROM Student EXCEPT SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.12780689338492124}]} {"index": 64, "beams": [{"question": "What are the ids of the students who do not own cats as pets?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Student.StuID FROM Student EXCEPT SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.005907991726274986}]} {"index": 65, "beams": [{"question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Milk\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Student.Fname, Student.Age FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Milk\" EXCEPT SELECT Student.Fname, Student.Age FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID WHERE Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.7329521751717749}]} {"index": 66, "beams": [{"question": "What is the first name of every student who has a dog but does not have a cat?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"mid\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cat\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"mid\" EXCEPT SELECT Student.Fname FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.PetType = \"Cat\"", "inferred_code_readable": "", "score": -0.17630161033668657}]} {"index": 67, "beams": [{"question": "Find the type and weight of the youngest pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.PetType, Pets.weight FROM Pets ORDER BY Pets.pet_age Asc LIMIT 1", "inferred_code_readable": "", "score": -7.1525532092664434e-06}]} {"index": 68, "beams": [{"question": "What type of pet is the youngest animal, and how much does it weigh?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.PetType, Pets.weight FROM Pets ORDER BY Pets.pet_age Asc LIMIT 1", "inferred_code_readable": "", "score": -1.1563284729732004e-05}]} {"index": 69, "beams": [{"question": "Find the id and weight of all pets whose age is older than 1.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.PetID, Pets.weight FROM Pets WHERE Pets.pet_age > 1", "inferred_code_readable": "", "score": -9.417517929932728e-06}]} {"index": 70, "beams": [{"question": "What is the id and weight of every pet who is older than 1?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.PetID, Pets.weight FROM Pets WHERE Pets.pet_age > 1", "inferred_code_readable": "", "score": -1.1444073614086392e-05}]} {"index": 71, "beams": [{"question": "Find the average and maximum age for each type of pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Pets.PetType), Max(Pets.pet_age), Pets.PetType FROM Pets GROUP BY Pets.PetType", "inferred_code_readable": "", "score": -0.07800213182792248}]} {"index": 72, "beams": [{"question": "What is the average and maximum age for each pet type?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Pets.PetType), Max(Pets.pet_age), Pets.PetType FROM Pets GROUP BY Pets.PetType", "inferred_code_readable": "", "score": -0.03543170745828661}]} {"index": 73, "beams": [{"question": "Find the average weight for each pet type.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.PetType, Avg(Pets.weight) FROM Pets GROUP BY Pets.PetType", "inferred_code_readable": "", "score": -0.010827935462621952}]} {"index": 74, "beams": [{"question": "What is the average weight for each type of pet?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Pets.PetType, Avg(Pets.weight) FROM Pets GROUP BY Pets.PetType", "inferred_code_readable": "", "score": -2.2888096772533117e-05}]} {"index": 75, "beams": [{"question": "Find the first name and age of students who have a pet.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Student.Fname, Student.Age FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID", "inferred_code_readable": "", "score": -0.010124416415060011}]} {"index": 76, "beams": [{"question": "What are the different first names and ages of the students who do have pets?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Student.Fname, Student.Age FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID", "inferred_code_readable": "", "score": -3.695487443167167e-06}]} {"index": 77, "beams": [{"question": "Find the id of the pet owned by student whose last name is \u2018Smith\u2019.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Smith\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Has_Pet.PetID FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID WHERE Student.LName = \"Smith\"", "inferred_code_readable": "", "score": -1.0926402887084308}]} {"index": 78, "beams": [{"question": "What is the id of the pet owned by the student whose last name is 'Smith'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Smith\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Has_Pet.PetID FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Student.LName = \"Smith\"", "inferred_code_readable": "", "score": -0.842346191679141}]} {"index": 79, "beams": [{"question": "Find the number of pets for each student who has any pet and student id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), Has_Pet.StuID FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID GROUP BY Has_Pet.StuID", "inferred_code_readable": "", "score": -0.6734692943039278}]} {"index": 80, "beams": [{"question": "For students who have pets , how many pets does each student have ? list their ids instead of names .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.StuID, Count(*) FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID GROUP BY Student.StuID", "inferred_code_readable": "", "score": -0.015801837927497786}]} {"index": 81, "beams": [{"question": "Find the first name and gender of student who have more than one pet.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.Fname, Student.Sex FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID GROUP BY Has_Pet.StuID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.37136843788274376}]} {"index": 82, "beams": [{"question": "What is the first name and gender of the all the students who have more than one pet?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.Fname, Student.Sex FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID GROUP BY Has_Pet.StuID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.1081537299707307}]} {"index": 83, "beams": [{"question": "Find the last name of the student who has a cat that is age 3.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"P\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.LName FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.pet_age = 3 AND Pets.PetType = \"P\"", "inferred_code_readable": "", "score": -0.9133486682492133}]} {"index": 84, "beams": [{"question": "What is the last name of the student who has a cat that is 3 years old?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"P\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student.LName FROM Student JOIN Has_Pet ON Student.StuID = Has_Pet.StuID JOIN Pets ON Has_Pet.PetID = Pets.PetID WHERE Pets.pet_age = 3 AND Pets.PetType = \"P\"", "inferred_code_readable": "", "score": -0.7520156630072137}]} {"index": 85, "beams": [{"question": "Find the average age of students who do not have any pet .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Student.Age) FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet)", "inferred_code_readable": "", "score": -0.000173556918241502}]} {"index": 86, "beams": [{"question": "What is the average age for all students who do not own any pets ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Student.Age) FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet)", "inferred_code_readable": "", "score": -0.00011920437622592317}]} {"index": 87, "beams": [{"question": "How many continents are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM continents", "inferred_code_readable": "", "score": -4.88752157110639e-05}]} {"index": 88, "beams": [{"question": "What is the number of continents?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM continents", "inferred_code_readable": "", "score": -0.00047601853655265813}]} {"index": 89, "beams": [{"question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT continents.ContId, continents.Continent, Count(*) FROM continents JOIN countries ON continents.ContId = countries.Continent GROUP BY continents.ContId", "inferred_code_readable": "", "score": -0.00013899542373252416}]} {"index": 90, "beams": [{"question": "For each continent, list its id, name, and how many countries it has?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT continents.Continent, countries.CountryName, Count(*) FROM continents JOIN countries ON continents.ContId = countries.Continent GROUP BY continents.Continent", "inferred_code_readable": "", "score": -0.47741334015918824}]} {"index": 91, "beams": [{"question": "How many countries are listed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries", "inferred_code_readable": "", "score": -3.099439588538644e-06}]} {"index": 92, "beams": [{"question": "How many countries exist?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries", "inferred_code_readable": "", "score": -4.649156430502899e-06}]} {"index": 93, "beams": [{"question": "How many models does each car maker produce? List maker full name, id and the number.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.FullName, car_makers.Maker, Count(*) FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id", "inferred_code_readable": "", "score": -0.20051962698238412}]} {"index": 94, "beams": [{"question": "What is the full name of each car maker, along with its id and how many models it produces?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.FullName, car_makers.Maker, Count(*) FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id", "inferred_code_readable": "", "score": -0.3479387700520036}]} {"index": 95, "beams": [{"question": "Which model of the car has the minimum horsepower?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_names.Model FROM car_names JOIN cars_data ON car_names.MakeId = cars_data.Id ORDER BY cars_data.Horsepower Asc LIMIT 1", "inferred_code_readable": "", "score": -0.2116497943322173}]} {"index": 96, "beams": [{"question": "What is the model of the car with the smallest amount of horsepower?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id ORDER BY cars_data.Horsepower Asc LIMIT 1", "inferred_code_readable": "", "score": -0.2920610678329396}]} {"index": 97, "beams": [{"question": "Find the model of the car whose weight is below the average weight.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Weight < (SELECT Avg(cars_data.Weight) FROM cars_data)", "inferred_code_readable": "", "score": -0.22248443206187574}]} {"index": 98, "beams": [{"question": "What is the model for the car with a weight smaller than the average?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Weight < (SELECT Avg(cars_data.Weight) FROM cars_data)", "inferred_code_readable": "", "score": -0.27166496848033006}]} {"index": 99, "beams": [{"question": "Find the name of the makers that produced some cars in the year of 1970?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 70))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Maker FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Year = 70", "inferred_code_readable": "", "score": -1.1594627485019444}]} {"index": 100, "beams": [{"question": "What is the name of the different car makers who produced a car in 1970?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 70))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT car_makers.Maker FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Year = 70", "inferred_code_readable": "", "score": -0.3423475434345846}]} {"index": 101, "beams": [{"question": "Find the make and production time of the cars that were produced in the earliest year?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_names.Make, cars_data.Year FROM car_names JOIN cars_data ON car_names.MakeId = cars_data.Id ORDER BY cars_data.Year Asc LIMIT 1", "inferred_code_readable": "", "score": -0.10083267920350636}]} {"index": 102, "beams": [{"question": "What is the maker of the carr produced in the earliest year and what year was it?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Maker, cars_data.Year FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id ORDER BY cars_data.Year Asc LIMIT 1", "inferred_code_readable": "", "score": -0.13739555273493664}]} {"index": 103, "beams": [{"question": "Which distinct car models are the produced after 1980?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1990))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT model_list.Model FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Year > 1990", "inferred_code_readable": "", "score": -0.3098671658602612}]} {"index": 104, "beams": [{"question": "What are the different models for the cards produced after 1980?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT model_list.Model FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Year > 8", "inferred_code_readable": "", "score": -0.9235042084409457}]} {"index": 105, "beams": [{"question": "How many car makers are there in each continents? List the continent name and the count.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT continents.Continent, Count(*) FROM continents JOIN countries ON continents.ContId = countries.Continent GROUP BY continents.Continent", "inferred_code_readable": "", "score": -0.08540920073207303}]} {"index": 106, "beams": [{"question": "What is the name of each continent and how many car makers are there in each one?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT continents.Continent, Count(*) FROM continents JOIN countries ON continents.ContId = countries.Continent GROUP BY continents.Continent", "inferred_code_readable": "", "score": -0.4394213403301279}]} {"index": 107, "beams": [{"question": "Which of the countries has the most car makers? List the country name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country GROUP BY countries.CountryName ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -2.0623158604848868e-05}]} {"index": 108, "beams": [{"question": "What is the name of the country with the most car makers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country GROUP BY countries.CountryName ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -2.396099572621324e-05}]} {"index": 109, "beams": [{"question": "How many car models are produced by each maker ? Only list the count and the maker full name .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), car_makers.FullName FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id", "inferred_code_readable": "", "score": -0.2811510857050479}]} {"index": 110, "beams": [{"question": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), car_makers.Maker, car_makers.FullName FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id", "inferred_code_readable": "", "score": -0.19686747204958266}]} {"index": 111, "beams": [{"question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"cumchornetsportsport\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Accelerate FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE car_names.Make = \"cumchornetsportsport\"", "inferred_code_readable": "", "score": -1.3551933101854203}]} {"index": 112, "beams": [{"question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"cumchornetsport((\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Accelerate FROM car_names JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE car_names.Make = \"cumchornetsport((\"", "inferred_code_readable": "", "score": -2.642881231841706}]} {"index": 113, "beams": [{"question": "How many car makers are there in france?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Texas\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country WHERE countries.CountryName = \"Texas\"", "inferred_code_readable": "", "score": -1.9859623512828861}]} {"index": 114, "beams": [{"question": "What is the number of makers of care in France?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"I\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country WHERE countries.CountryName = \"I\"", "inferred_code_readable": "", "score": -1.1162695843417367}]} {"index": 115, "beams": [{"question": "How many car models are produced in the usa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM continents JOIN countries ON continents.ContId = countries.Continent WHERE countries.CountryName = \"United\"", "inferred_code_readable": "", "score": -0.221495078209216}]} {"index": 116, "beams": [{"question": "What is the count of the car models produced in the United States?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedStates\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries WHERE countries.CountryName = \"UnitedStates\"", "inferred_code_readable": "", "score": -0.007174253889971283}]} {"index": 117, "beams": [{"question": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.MPG) FROM cars_data WHERE cars_data.Cylinders = 4", "inferred_code_readable": "", "score": -0.00010180302378159922}]} {"index": 118, "beams": [{"question": "What is the average miles per gallon of all the cards with 4 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.MPG) FROM cars_data WHERE cars_data.Cylinders = 4", "inferred_code_readable": "", "score": -0.00015770808096959854}]} {"index": 119, "beams": [{"question": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (String (string-s \"A\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Min(cars_data.Weight) FROM cars_data WHERE cars_data.Cylinders = 8 AND cars_data.Year = \"A\"", "inferred_code_readable": "", "score": -1.7803848733797167}]} {"index": 120, "beams": [{"question": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Min(cars_data.Weight) FROM cars_data WHERE cars_data.Cylinders = 8 AND cars_data.Year = 8", "inferred_code_readable": "", "score": -1.758544473874636}]} {"index": 121, "beams": [{"question": "What are all the makers and models?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Maker, model_list.Model FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker", "inferred_code_readable": "", "score": -0.8691836289092478}]} {"index": 122, "beams": [{"question": "What are the makers and models?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Maker, model_list.Model FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker", "inferred_code_readable": "", "score": -0.00024865765279713514}]} {"index": 123, "beams": [{"question": "What are the countries having at least one car maker? List name and id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName, countries.CountryId FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country", "inferred_code_readable": "", "score": -0.12253274547981619}]} {"index": 124, "beams": [{"question": "What are the names and ids of all countries with at least one car maker?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName, countries.CountryId FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country", "inferred_code_readable": "", "score": -0.15179534884740065}]} {"index": 125, "beams": [{"question": "What is the number of the cars with horsepower more than 150?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (Number (object-f 150))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Horsepower > 150", "inferred_code_readable": "", "score": -0.2775740921474181}]} {"index": 126, "beams": [{"question": "What is the number of cars with a horsepower greater than 150?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (Number (object-f 150))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Horsepower > 150", "inferred_code_readable": "", "score": -0.10565470903937069}]} {"index": 127, "beams": [{"question": "What is the average weight of cars each year?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.Weight), cars_data.Year FROM cars_data GROUP BY cars_data.Year", "inferred_code_readable": "", "score": -2.169589033229613e-05}]} {"index": 128, "beams": [{"question": "What is the average weight and year for each year?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.Weight), cars_data.Year FROM cars_data GROUP BY cars_data.Year", "inferred_code_readable": "", "score": -0.5626972168623396}]} {"index": 129, "beams": [{"question": "Which countries in europe have at least 3 car manufacturers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName FROM continents JOIN countries ON continents.ContId = countries.Continent JOIN car_makers ON countries.CountryId = car_makers.Country WHERE continents.Continent = \"USA\" GROUP BY countries.CountryId HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.7652576685054768}]} {"index": 130, "beams": [{"question": "What are the names of all European countries with at least 3 manufacturers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Uniteds\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName FROM continents JOIN countries ON continents.ContId = countries.Continent JOIN car_makers ON countries.CountryId = car_makers.Country WHERE continents.Continent = \"Uniteds\" GROUP BY countries.CountryId HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.8261922242530844}]} {"index": 131, "beams": [{"question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(cars_data.Horsepower), car_makers.Maker FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Cylinders = 3", "inferred_code_readable": "", "score": -0.029640583535169185}]} {"index": 132, "beams": [{"question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(cars_data.Horsepower), car_makers.Maker FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Cylinders = 3", "inferred_code_readable": "", "score": -0.07351187872904319}]} {"index": 133, "beams": [{"question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 17) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id GROUP BY cars_data.Id ORDER BY Sum(cars_data.MPG) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.44791743250340943}]} {"index": 134, "beams": [{"question": "What is the car model with the highest mpg ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_names.Model FROM car_names JOIN cars_data ON car_names.MakeId = cars_data.Id ORDER BY cars_data.MPG Desc LIMIT 1", "inferred_code_readable": "", "score": -0.46508865057332116}]} {"index": 135, "beams": [{"question": "What is the average horsepower of the cars before 1980?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1980))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.Horsepower) FROM cars_data WHERE cars_data.Year < 1980", "inferred_code_readable": "", "score": -1.062440394949192}]} {"index": 136, "beams": [{"question": "What is the average horsepower for all cars produced before 1980 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1990))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.Horsepower) FROM cars_data WHERE cars_data.Year < 1990", "inferred_code_readable": "", "score": -0.6196365952197525}]} {"index": 137, "beams": [{"question": "What is the average edispl of the cars of model volvo?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4)) (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond-right (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (String (string-s \"PVvo\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.Edispl) FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE car_names.Model = \"PVvo\"", "inferred_code_readable": "", "score": -1.89073897843123}]} {"index": 138, "beams": [{"question": "What is the average edispl for all volvos?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Tvos\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(cars_data.Edispl) FROM car_names JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE car_names.Make = \"Tvos\"", "inferred_code_readable": "", "score": -1.1251660885524544}]} {"index": 139, "beams": [{"question": "What is the maximum accelerate for different number of cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(cars_data.Accelerate), cars_data.Cylinders FROM cars_data GROUP BY cars_data.Cylinders", "inferred_code_readable": "", "score": -0.0003807169514189468}]} {"index": 140, "beams": [{"question": "What is the maximum accelerate for all the different cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(cars_data.Accelerate), cars_data.Cylinders FROM cars_data GROUP BY cars_data.Cylinders", "inferred_code_readable": "", "score": -0.003000003162433984}]} {"index": 141, "beams": [{"question": "Which model has the most version(make) of cars?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 4))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_names.Make FROM model_list JOIN car_names ON model_list.Model = car_names.Model GROUP BY car_names.Model ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -1.18572533973461}]} {"index": 142, "beams": [{"question": "What model has the most different versions?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list GROUP BY model_list.Model ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -6.771031860353105e-05}]} {"index": 143, "beams": [{"question": "How many cars have more than 4 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Cylinders > 4", "inferred_code_readable": "", "score": -0.00012099212770522172}]} {"index": 144, "beams": [{"question": "What is the number of cars with more than 4 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Cylinders > 4", "inferred_code_readable": "", "score": -0.00013028882711552114}]} {"index": 145, "beams": [{"question": "how many cars were produced in 1980?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 80))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Year = 80", "inferred_code_readable": "", "score": -0.5127512098073694}]} {"index": 146, "beams": [{"question": "In 1980, how many cars were made?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 80))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Year = 80", "inferred_code_readable": "", "score": -0.3972153655763222}]} {"index": 147, "beams": [{"question": "How many car models were produced by the maker with full name American Motor Company?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AmericanMotorCompany\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker WHERE car_makers.FullName = \"AmericanMotorCompany\"", "inferred_code_readable": "", "score": -0.5707585025951758}]} {"index": 148, "beams": [{"question": "What is the number of car models created by the car maker American Motor Company?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AmericanMotorCompany\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker WHERE car_makers.FullName = \"AmericanMotorCompany\"", "inferred_code_readable": "", "score": -0.7047983438597925}]} {"index": 149, "beams": [{"question": "Which makers designed more than 3 car models? List full name and the id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.FullName, car_makers.Id FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.48110511079507745}]} {"index": 150, "beams": [{"question": "What are the names and ids of all makers with more than 3 models?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Maker, car_makers.Id FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.0011980233524013784}]} {"index": 151, "beams": [{"question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (cond-right (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5000))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT model_list.Model FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker WHERE car_makers.FullName > 3000 OR car_makers.FullName > 5000", "inferred_code_readable": "", "score": -0.9734986105413199}]} {"index": 152, "beams": [{"question": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (cond-right (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5000))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT model_list.Model FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker WHERE car_makers.FullName > 3000 OR car_makers.FullName > 5000", "inferred_code_readable": "", "score": -1.1435858591522106}]} {"index": 153, "beams": [{"question": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))) (val-val2 (Number (object-f 5000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Year FROM cars_data WHERE cars_data.Weight BETWEEN 3000 AND 5000", "inferred_code_readable": "", "score": -0.0394679193763281}]} {"index": 154, "beams": [{"question": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Year FROM cars_data WHERE cars_data.Weight < 4000 INTERSECT SELECT cars_data.Year FROM cars_data WHERE cars_data.Weight > 3000", "inferred_code_readable": "", "score": -0.5012406211368301}]} {"index": 155, "beams": [{"question": "What is the horsepower of the car with the largest accelerate?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Horsepower FROM cars_data ORDER BY cars_data.Accelerate Desc LIMIT 1", "inferred_code_readable": "", "score": -1.9550252844169336e-05}]} {"index": 156, "beams": [{"question": "What is the horsepower of the car with the greatest accelerate?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Horsepower FROM cars_data ORDER BY cars_data.Accelerate Desc LIMIT 1", "inferred_code_readable": "", "score": -1.9311839153601795e-05}]} {"index": 157, "beams": [{"question": "For model volvo, how many cylinders does the car with the least accelerate have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"invo\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Cylinders FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE car_makers.Maker = \"invo\" ORDER BY cars_data.Accelerate Asc LIMIT 1", "inferred_code_readable": "", "score": -4.056772371149265}]} {"index": 158, "beams": [{"question": "For a volvo model, how many cylinders does the version with least accelerate have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"invo\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Cylinders FROM model_list JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE car_names.Make = \"invo\" ORDER BY cars_data.Accelerate Asc LIMIT 1", "inferred_code_readable": "", "score": -2.561646039234752}]} {"index": 159, "beams": [{"question": "How many cars have a larger accelerate than the car with the largest horsepower?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Accelerate > (SELECT Max(cars_data.Accelerate) FROM cars_data)", "inferred_code_readable": "", "score": -0.04120090607686677}]} {"index": 160, "beams": [{"question": "What is the number of cars with a greater accelerate than the one with the most horsepower?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Accelerate > (SELECT Max(cars_data.Accelerate) FROM cars_data)", "inferred_code_readable": "", "score": -0.11918042371453197}]} {"index": 161, "beams": [{"question": "How many countries has more than 2 car makers ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country GROUP BY car_makers.Country HAVING Count(*) > 2", "inferred_code_readable": "", "score": -0.2546544129611519}]} {"index": 162, "beams": [{"question": "What is the number of countries with more than 2 car makers ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country GROUP BY car_makers.Country HAVING Count(*) > 2", "inferred_code_readable": "", "score": -0.6595393860831891}]} {"index": 163, "beams": [{"question": "How many cars has over 6 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Cylinders > 8", "inferred_code_readable": "", "score": -0.6132440566994362}]} {"index": 164, "beams": [{"question": "What is the number of carsw ith over 6 cylinders?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2006))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Cylinders > 2006", "inferred_code_readable": "", "score": -0.4794512987105861}]} {"index": 165, "beams": [{"question": "For the cars with 4 cylinders, which model has the largest horsepower?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Horsepower FROM cars_data WHERE cars_data.Cylinders = 4 ORDER BY cars_data.Horsepower Desc LIMIT 1", "inferred_code_readable": "", "score": -0.28411073086983407}]} {"index": 166, "beams": [{"question": "For all of the 4 cylinder cars, which model has the most horsepower?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT cars_data.Cylinders FROM cars_data WHERE cars_data.Cylinders = 4 ORDER BY cars_data.Horsepower Desc LIMIT 1", "inferred_code_readable": "", "score": -1.474836084597655}]} {"index": 167, "beams": [{"question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 4))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT car_names.MakeId, car_names.Make FROM car_names JOIN cars_data ON car_names.MakeId = cars_data.Id EXCEPT SELECT car_names.MakeId, car_names.Make FROM cars_data JOIN car_names ON cars_data.Id = car_names.MakeId WHERE cars_data.Horsepower > 3", "inferred_code_readable": "", "score": -1.2513411304071127}]} {"index": 168, "beams": [{"question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_names.MakeId, car_makers.FullName FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker JOIN car_names ON model_list.Model = car_names.Model JOIN cars_data ON car_names.MakeId = cars_data.Id WHERE cars_data.Cylinders < 4", "inferred_code_readable": "", "score": -0.8342943196030745}]} {"index": 169, "beams": [{"question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (String (string-s \"in\"))))) (cond-right (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 800))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(cars_data.MPG) FROM cars_data WHERE cars_data.Cylinders = \"in\" OR cars_data.Year < 800", "inferred_code_readable": "", "score": -1.5502421261711419}]} {"index": 170, "beams": [{"question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))) (cond-right (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2008))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(cars_data.MPG) FROM cars_data WHERE cars_data.Cylinders = 8 OR cars_data.Year < 2008", "inferred_code_readable": "", "score": -0.6958012555684121}]} {"index": 171, "beams": [{"question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"SanMotorMotorMotor\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list EXCEPT SELECT model_list.Model FROM model_list JOIN car_makers ON model_list.Maker = car_makers.Id WHERE car_makers.FullName > 3000 AND car_makers.Maker = \"SanMotorMotorMotor\"", "inferred_code_readable": "", "score": -2.2879874311580792}]} {"index": 172, "beams": [{"question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"SanMotorMotorMotor\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"restaurant\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT model_list.Model FROM model_list EXCEPT SELECT model_list.Model FROM model_list JOIN car_makers ON model_list.Maker = car_makers.Id WHERE car_makers.FullName = \"SanMotorMotorMotor\" AND car_makers.Maker = \"restaurant\"", "inferred_code_readable": "", "score": -2.10422827364809}]} {"index": 173, "beams": [{"question": "What are the name of the countries where there is not a single car maker?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName FROM countries WHERE countries.CountryId NOT IN (SELECT car_makers.Country FROM car_makers)", "inferred_code_readable": "", "score": -1.5974022865350435e-05}]} {"index": 174, "beams": [{"question": "What are the names of the countries with no car makers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countries.CountryName FROM countries WHERE countries.CountryId NOT IN (SELECT car_makers.Country FROM car_makers)", "inferred_code_readable": "", "score": -1.6212443895824435e-05}]} {"index": 175, "beams": [{"question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Id, car_makers.Maker FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.4893257502406172}]} {"index": 176, "beams": [{"question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT car_makers.Id, car_makers.Maker FROM car_makers JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY car_makers.Id HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.0027851659664364092}]} {"index": 177, "beams": [{"question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"in\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))", "inferred_code": "SELECT countries.CountryId, countries.CountryName FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country JOIN model_list ON car_makers.Id = model_list.Maker WHERE model_list.Model = \"in\" UNION SELECT countries.CountryId, countries.CountryName FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY countries.CountryId HAVING Count(*) > 3", "inferred_code_readable": "", "score": -2.0169018735756694}]} {"index": 178, "beams": [{"question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))", "inferred_code": "SELECT countries.CountryId, countries.CountryName FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country GROUP BY countries.CountryId HAVING Count(*) > 3 UNION SELECT countries.CountryId, countries.CountryName FROM countries JOIN car_makers ON countries.CountryId = car_makers.Country JOIN model_list ON car_makers.Id = model_list.Maker GROUP BY countries.CountryId HAVING Count(*) > 2", "inferred_code_readable": "", "score": -1.141535422642903}]} {"index": 179, "beams": [{"question": "Which country does Airline \"JetBlue Airways\" belong to?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Walter\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Country FROM airlines WHERE airlines.Airline = \"Walter\"", "inferred_code_readable": "", "score": -1.3303891923231177}]} {"index": 180, "beams": [{"question": "What country is Jetblue Airways affiliated with?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Iron\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Country FROM airlines WHERE airlines.Airline = \"Iron\"", "inferred_code_readable": "", "score": -1.8743236317674672}]} {"index": 181, "beams": [{"question": "What is the abbreviation of Airline \"JetBlue Airways\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"wcBlueAirways\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Abbreviation FROM airlines WHERE airlines.Airline = \"wcBlueAirways\"", "inferred_code_readable": "", "score": -2.788880581652748}]} {"index": 182, "beams": [{"question": "Which abbreviation corresponds to Jetblue Airways?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"IronblueAirwaysAirways\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Abbreviation FROM airlines WHERE airlines.Airline = \"IronblueAirwaysAirways\"", "inferred_code_readable": "", "score": -0.5968604981895425}]} {"index": 183, "beams": [{"question": "List all airline names and their abbreviations in \"USA\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline, airlines.Abbreviation FROM airlines WHERE airlines.Country = \"United\"", "inferred_code_readable": "", "score": -0.008886664639391029}]} {"index": 184, "beams": [{"question": "What are the airline names and abbreviations for airlines in the USA?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline, airlines.Abbreviation FROM airlines WHERE airlines.Country = \"United\"", "inferred_code_readable": "", "score": -0.007483068428804529}]} {"index": 185, "beams": [{"question": "List the airport code and name in the city of Anthony.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ArSmi\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportCode, airports.AirportName FROM airports WHERE airports.City = \"ArSmi\"", "inferred_code_readable": "", "score": -1.4074928542755814}]} {"index": 186, "beams": [{"question": "Give the airport code and airport name corresonding to the city Anthony.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ArSmi\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportCode, airports.AirportName FROM airports WHERE airports.City = \"ArSmi\"", "inferred_code_readable": "", "score": -2.1767578545839683}]} {"index": 187, "beams": [{"question": "How many airlines do we have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines", "inferred_code_readable": "", "score": -4.291529528188676e-06}]} {"index": 188, "beams": [{"question": "What is the total number of airlines?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines", "inferred_code_readable": "", "score": -7.271753432291916e-06}]} {"index": 189, "beams": [{"question": "How many airports do we have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airports", "inferred_code_readable": "", "score": -2.5033942137042686e-06}]} {"index": 190, "beams": [{"question": "Return the number of airports.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airports", "inferred_code_readable": "", "score": -2.503393901065465e-06}]} {"index": 191, "beams": [{"question": "How many flights do we have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM flights", "inferred_code_readable": "", "score": -9.536741600868481e-07}]} {"index": 192, "beams": [{"question": "Return the number of flights.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM flights", "inferred_code_readable": "", "score": -1.5497200607228478e-06}]} {"index": 193, "beams": [{"question": "Which airline has abbreviation 'UAL'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UAL%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines WHERE airlines.Abbreviation = \"UAL%\"", "inferred_code_readable": "", "score": -0.6049263300080696}]} {"index": 194, "beams": [{"question": "Give the airline with abbreviation 'UAL'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UAL%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines WHERE airlines.Abbreviation = \"UAL%\"", "inferred_code_readable": "", "score": -0.10675938889266234}]} {"index": 195, "beams": [{"question": "How many airlines are from USA?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines WHERE airlines.Country = \"USA\"", "inferred_code_readable": "", "score": -0.6758642196634312}]} {"index": 196, "beams": [{"question": "Return the number of airlines in the USA.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines WHERE airlines.Country = \"United\"", "inferred_code_readable": "", "score": -0.2456096950915736}]} {"index": 197, "beams": [{"question": "Which city and country is the Alton airport at?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cuton\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.City, airports.Country FROM airports WHERE airports.AirportName = \"Cuton\"", "inferred_code_readable": "", "score": -0.16174305975375347}]} {"index": 198, "beams": [{"question": "Give the city and country for the Alton airport.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Cuton\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.City, airports.Country FROM airports WHERE airports.AirportName = \"Cuton\"", "inferred_code_readable": "", "score": -0.5018464922772239}]} {"index": 199, "beams": [{"question": "What is the airport name for airport 'AKO'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AKO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportName FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE flights.DestAirport = \"AKO\"", "inferred_code_readable": "", "score": -0.28111726398518755}]} {"index": 200, "beams": [{"question": "Return the name of the airport with code 'AKO'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AKO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.AirportCode = \"AKO\"", "inferred_code_readable": "", "score": -1.0728834922701935e-06}]} {"index": 201, "beams": [{"question": "What are airport names at City 'Aberdeen'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Awarddeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.City = \"Awarddeen\"", "inferred_code_readable": "", "score": -1.2504215515789028}]} {"index": 202, "beams": [{"question": "What are the names of airports in Aberdeen?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Aberdeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.City = \"Aberdeen\"", "inferred_code_readable": "", "score": -0.728899518490536}]} {"index": 203, "beams": [{"question": "How many flights depart from 'APG'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -0.0009723341782716943}]} {"index": 204, "beams": [{"question": "Count the number of flights departing from 'APG'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -0.0014120140894391398}]} {"index": 205, "beams": [{"question": "How many flights have destination ATO?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ATO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM flights WHERE flights.DestAirport = \"ATO\"", "inferred_code_readable": "", "score": -1.2397731730118267e-05}]} {"index": 206, "beams": [{"question": "Count the number of flights into ATO.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ATO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM flights WHERE flights.DestAirport = \"ATO\"", "inferred_code_readable": "", "score": -0.6578840015412339}]} {"index": 207, "beams": [{"question": "How many flights depart from City Aberdeen?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Adeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(flights.FlightNo) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Adeen\"", "inferred_code_readable": "", "score": -0.3245759129718877}]} {"index": 208, "beams": [{"question": "Return the number of flights departing from Aberdeen.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Adeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(flights.FlightNo) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Adeen\"", "inferred_code_readable": "", "score": -0.5298172505489092}]} {"index": 209, "beams": [{"question": "How many flights arriving in Aberdeen city?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alandeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Alandeen\"", "inferred_code_readable": "", "score": -1.2113683934568371}]} {"index": 210, "beams": [{"question": "Return the number of flights arriving in Aberdeen.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Adeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(flights.FlightNo) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Adeen\"", "inferred_code_readable": "", "score": -1.2874707814679454}]} {"index": 211, "beams": [{"question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alicedeen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alice\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Alicedeen\" AND airports.AirportName = \"Alice\"", "inferred_code_readable": "", "score": -1.0669644707884345}]} {"index": 212, "beams": [{"question": "How many flights fly from Aberdeen to Ashley?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alicedeen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Chen\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(flights.FlightNo) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Alicedeen\" AND flights.DestAirport = \"Chen\"", "inferred_code_readable": "", "score": -4.0458216146514445}]} {"index": 213, "beams": [{"question": "How many flights does airline 'JetBlue Airways' have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Bootball\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = \"Bootball\"", "inferred_code_readable": "", "score": -1.738574475497856}]} {"index": 214, "beams": [{"question": "Give the number of Jetblue Airways flights.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Bootball\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = \"Bootball\"", "inferred_code_readable": "", "score": -1.558800418855384}]} {"index": 215, "beams": [{"question": "How many 'United Airlines' flights go to Airport 'ASY'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ASY\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlines\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN airports JOIN flights WHERE airports.AirportName = \"ASY\" AND airlines.Airline = \"UnitedAirlines\"", "inferred_code_readable": "", "score": -0.9089469979304639}]} {"index": 216, "beams": [{"question": "Count the number of United Airlines flights arriving in ASY Airport.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ASY\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlines\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE flights.SourceAirport = \"ASY\" AND airlines.Airline = \"UnitedAirlines\"", "inferred_code_readable": "", "score": -0.40520090360320893}]} {"index": 217, "beams": [{"question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AHD\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlines\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE flights.SourceAirport = \"AHD\" AND airlines.Airline = \"UnitedAirlines\"", "inferred_code_readable": "", "score": -0.4259530785398411}]} {"index": 218, "beams": [{"question": "Return the number of United Airlines flights leaving from AHD Airport.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AHD\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlinesAirlines\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE flights.SourceAirport = \"AHD\" AND airlines.Airline = \"UnitedAirlinesAirlines\"", "inferred_code_readable": "", "score": -1.4932369416361482}]} {"index": 219, "beams": [{"question": "How many United Airlines flights go to City 'Aberdeen'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alandeen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlinesAirlines\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN airports JOIN flights WHERE airports.City = \"Alandeen\" AND airlines.Airline = \"UnitedAirlinesAirlines\"", "inferred_code_readable": "", "score": -1.4751096294947885}]} {"index": 220, "beams": [{"question": "Count the number of United Airlines flights that arrive in Aberdeen.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Adeen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlinesAirlines\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airlines JOIN airports JOIN flights WHERE airports.City = \"Adeen\" AND airlines.Airline = \"UnitedAirlinesAirlines\"", "inferred_code_readable": "", "score": -0.8445940513326917}]} {"index": 221, "beams": [{"question": "Which city has most number of arriving flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.City FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY airports.City ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.04255976892899582}]} {"index": 222, "beams": [{"question": "Which city has the most frequent destination airport?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.City FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY flights.DestAirport ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.03145810562919138}]} {"index": 223, "beams": [{"question": "Which city has most number of departing flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.City FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY airports.City ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.1940948365598203}]} {"index": 224, "beams": [{"question": "Which city is the most frequent source airport?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.City FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY flights.SourceAirport ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0022124406468222446}]} {"index": 225, "beams": [{"question": "What is the code of airport that has the highest number of flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.SourceAirport FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY flights.SourceAirport ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.3731052067335128}]} {"index": 226, "beams": [{"question": "What is the airport code of the airport with the most flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.SourceAirport FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY flights.SourceAirport ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.940052857159877}]} {"index": 227, "beams": [{"question": "What is the code of airport that has fewest number of flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.SourceAirport FROM flights GROUP BY flights.SourceAirport ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.18599643756028428}]} {"index": 228, "beams": [{"question": "Give the code of the airport with the least flights.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.SourceAirport FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport GROUP BY flights.SourceAirport ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.09717721861431272}]} {"index": 229, "beams": [{"question": "Which airline has most number of flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY airlines.Airline ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.010104723721987341}]} {"index": 230, "beams": [{"question": "What airline serves the most flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY airlines.Airline ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0012066599934001943}]} {"index": 231, "beams": [{"question": "Find the abbreviation and country of the airline that has fewest number of flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Abbreviation, airlines.Country FROM airlines JOIN flights GROUP BY flights.Airline ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.29480597360707606}]} {"index": 232, "beams": [{"question": "What is the abbreviation of the airilne has the fewest flights and what country is it in?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Abbreviation, airlines.Country FROM airlines JOIN flights GROUP BY flights.FlightNo ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.47041376236949617}]} {"index": 233, "beams": [{"question": "What are airlines that have some flight departing from airport 'AHD'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AHD\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"AHD\"", "inferred_code_readable": "", "score": -0.018258122518084008}]} {"index": 234, "beams": [{"question": "Which airlines have a flight with source airport AHD?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AHD\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"AHD\"", "inferred_code_readable": "", "score": -0.006178921308141128}]} {"index": 235, "beams": [{"question": "What are airlines that have flights arriving at airport 'AHD'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AHD\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"AHD\"", "inferred_code_readable": "", "score": -0.009365940255086969}]} {"index": 236, "beams": [{"question": "Which airlines have a flight with destination airport AHD?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AHD\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.DestAirport = \"AHD\"", "inferred_code_readable": "", "score": -0.19537580099153473}]} {"index": 237, "beams": [{"question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ArVO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"APG\" INTERSECT SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"ArVO\"", "inferred_code_readable": "", "score": -2.9409639668752874}]} {"index": 238, "beams": [{"question": "Which airlines have departing flights from both APG and CVO airports?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CVO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports JOIN flights WHERE flights.SourceAirport = \"APG\" INTERSECT SELECT airlines.Airline FROM airports JOIN flights ON airports.AirportCode = flights.Airline WHERE flights.SourceAirport = \"CVO\"", "inferred_code_readable": "", "score": -1.5630654070837906}]} {"index": 239, "beams": [{"question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"LondonVO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"LondonVO\" EXCEPT SELECT airlines.Airline FROM airports JOIN flights ON airports.AirportCode = flights.Airline WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -1.748611458152844}]} {"index": 240, "beams": [{"question": "Which airlines have departures from CVO but not from APG airports?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"LondonVO\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"LondonVO\" EXCEPT SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -2.3413486567104655}]} {"index": 241, "beams": [{"question": "Find all airlines that have at least 10 flights.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY flights.Airline HAVING Count(*) >= 10", "inferred_code_readable": "", "score": -0.09676877424695363}]} {"index": 242, "beams": [{"question": "Which airlines have at least 10 flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY flights.Airline HAVING Count(*) >= 10", "inferred_code_readable": "", "score": -0.4760518838535077}]} {"index": 243, "beams": [{"question": "Find all airlines that have fewer than 200 flights.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.FlightNo < 200", "inferred_code_readable": "", "score": -0.23157823729500393}]} {"index": 244, "beams": [{"question": "Which airlines have less than 200 flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.FlightNo < 200", "inferred_code_readable": "", "score": -0.3104499172110522}]} {"index": 245, "beams": [{"question": "What are flight numbers of Airline \"United Airlines\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlines\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM airlines JOIN flights WHERE airlines.Airline = \"UnitedAirlines\"", "inferred_code_readable": "", "score": -0.16611310333010465}]} {"index": 246, "beams": [{"question": "Which flight numbers correspond to United Airlines flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedAirlines\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM airlines JOIN flights WHERE airlines.Airline = \"UnitedAirlines\"", "inferred_code_readable": "", "score": -0.02452453556379197}]} {"index": 247, "beams": [{"question": "What are flight numbers of flights departing from Airport \"APG\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -0.057945690549559004}]} {"index": 248, "beams": [{"question": "Give the flight numbers of flights leaving from APG.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -0.0023658617414028527}]} {"index": 249, "beams": [{"question": "What are flight numbers of flights arriving at Airport \"APG\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -0.08779940278701304}]} {"index": 250, "beams": [{"question": "Give the flight numbers of flights landing at APG.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"APG\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.SourceAirport = \"APG\"", "inferred_code_readable": "", "score": -0.005099585979984056}]} {"index": 251, "beams": [{"question": "What are flight numbers of flights departing from City \"Aberdeen \"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AAdeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"AAdeen\"", "inferred_code_readable": "", "score": -1.2950370607307207}]} {"index": 252, "beams": [{"question": "Give the flight numbers of flights leaving from Aberdeen.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alicedeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Alicedeen\"", "inferred_code_readable": "", "score": -0.7852487783369355}]} {"index": 253, "beams": [{"question": "What are flight numbers of flights arriving at City \"Aberdeen\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AAdeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"AAdeen\"", "inferred_code_readable": "", "score": -1.3312273771682754}]} {"index": 254, "beams": [{"question": "Give the flight numbers of flights arriving in Aberdeen.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AAdeen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"AAdeen\"", "inferred_code_readable": "", "score": -1.6190500490078037}]} {"index": 255, "beams": [{"question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"A4deen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Boblene\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"A4deen\" OR airports.City = \"Boblene\"", "inferred_code_readable": "", "score": -2.019356967299288}]} {"index": 256, "beams": [{"question": "How many flights land in Aberdeen or Abilene?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Adeen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Boblene\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM airports JOIN flights ON airports.AirportCode = flights.SourceAirport WHERE airports.City = \"Adeen\" OR airports.City = \"Boblene\"", "inferred_code_readable": "", "score": -1.2845310959173517}]} {"index": 257, "beams": [{"question": "Find the name of airports which do not have any flight in and out.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"International\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.AirportCode NOT IN (SELECT flights.SourceAirport FROM flights WHERE flights.FlightNo = \"International\")", "inferred_code_readable": "", "score": -1.1243900579647743}]} {"index": 258, "beams": [{"question": "Which airports do not have departing or arriving flights?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.AirportCode NOT IN (SELECT flights.SourceAirport FROM flights)", "inferred_code_readable": "", "score": -0.0003673517977915708}]} {"index": 259, "beams": [{"question": "How many employees are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM employee", "inferred_code_readable": "", "score": -6.7949120250432316e-06}]} {"index": 260, "beams": [{"question": "Count the number of employees", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM employee", "inferred_code_readable": "", "score": -7.5101647496467194e-06}]} {"index": 261, "beams": [{"question": "Sort employee names by their age in ascending order.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee ORDER BY employee.Age Asc", "inferred_code_readable": "", "score": -3.933904423547574e-06}]} {"index": 262, "beams": [{"question": "List the names of employees and sort in ascending order of age.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee ORDER BY employee.Age Asc", "inferred_code_readable": "", "score": -3.5762769812208717e-06}]} {"index": 263, "beams": [{"question": "What is the number of employees from each city?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.City, Count(*) FROM employee GROUP BY employee.City", "inferred_code_readable": "", "score": -0.046940941348374565}]} {"index": 264, "beams": [{"question": "Count the number of employees for each city.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), employee.City FROM employee GROUP BY employee.City", "inferred_code_readable": "", "score": -0.00047529786417044306}]} {"index": 265, "beams": [{"question": "Which cities do more than one employee under age 30 come from?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 30))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 30))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.City FROM employee WHERE employee.Age < 30 GROUP BY employee.City HAVING Count(*) > 30", "inferred_code_readable": "", "score": -0.041246054254841624}]} {"index": 266, "beams": [{"question": "Find the cities that have more than one employee under age 30.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 30))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 30))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.City FROM employee WHERE employee.Age < 30 GROUP BY employee.City HAVING Count(*) > 30", "inferred_code_readable": "", "score": -0.07854066274857985}]} {"index": 267, "beams": [{"question": "Find the number of shops in each location.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Location, Count(*) FROM shop GROUP BY shop.Location", "inferred_code_readable": "", "score": -2.264976131982621e-06}]} {"index": 268, "beams": [{"question": "How many shops are there in each location?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Location, Count(*) FROM shop GROUP BY shop.Location", "inferred_code_readable": "", "score": -2.2649761390880485e-06}]} {"index": 269, "beams": [{"question": "Find the manager name and district of the shop whose number of products is the largest.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Manager_name, shop.District FROM shop GROUP BY shop.Number_products ORDER BY Sum(shop.Number_products) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.9837785512021071}]} {"index": 270, "beams": [{"question": "What are the manager name and district of the shop that sells the largest number of products?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Manager_name, shop.District FROM shop GROUP BY shop.Manager_name ORDER BY Sum(shop.Number_products) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.5226039562149367}]} {"index": 271, "beams": [{"question": "find the minimum and maximum number of products of all stores.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Min(shop.Number_products), Max(shop.Number_products) FROM shop", "inferred_code_readable": "", "score": -0.00012611708845611247}]} {"index": 272, "beams": [{"question": "What are the minimum and maximum number of products across all the shops?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Min(shop.Number_products), Max(shop.Number_products) FROM shop", "inferred_code_readable": "", "score": -6.627889322885494e-05}]} {"index": 273, "beams": [{"question": "Return the name, location and district of all shops in descending order of number of products.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name, shop.Location, shop.District FROM shop ORDER BY shop.Number_products Desc", "inferred_code_readable": "", "score": -2.324573857492851e-05}]} {"index": 274, "beams": [{"question": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name, shop.Location, shop.District FROM shop ORDER BY shop.Number_products Desc", "inferred_code_readable": "", "score": -2.2649704000343718e-05}]} {"index": 275, "beams": [{"question": "Find the names of stores whose number products is more than the average number of products.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Number_products > (SELECT Avg(shop.Number_products) FROM shop)", "inferred_code_readable": "", "score": -5.483624583746405e-06}]} {"index": 276, "beams": [{"question": "Which shops' number products is above the average? Give me the shop names.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Number_products > (SELECT Avg(shop.Number_products) FROM shop)", "inferred_code_readable": "", "score": -4.529951389997677e-06}]} {"index": 277, "beams": [{"question": "find the name of employee who was awarded the most times in the evaluation.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation ON employee.Employee_ID = evaluation.Employee_ID GROUP BY evaluation.Employee_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0013160954613127274}]} {"index": 278, "beams": [{"question": "Which employee received the most awards in evaluations? Give me the employee name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation ON employee.Employee_ID = evaluation.Employee_ID GROUP BY employee.Name ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.24477689524916713}]} {"index": 279, "beams": [{"question": "Find the name of the employee who got the highest one time bonus.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation ON employee.Employee_ID = evaluation.Employee_ID ORDER BY evaluation.Bonus Desc LIMIT 1", "inferred_code_readable": "", "score": -0.143425051039614}]} {"index": 280, "beams": [{"question": "Which employee received the biggest bonus? Give me the employee name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation ON employee.Employee_ID = evaluation.Employee_ID ORDER BY evaluation.Bonus Desc LIMIT 1", "inferred_code_readable": "", "score": -0.00036762480252860996}]} {"index": 281, "beams": [{"question": "Find the names of employees who never won any award in the evaluation.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee WHERE employee.Employee_ID NOT IN (SELECT evaluation.Employee_ID FROM evaluation)", "inferred_code_readable": "", "score": -1.4066680869007087e-05}]} {"index": 282, "beams": [{"question": "What are the names of the employees who never received any evaluation?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT employee.Name FROM employee WHERE employee.Employee_ID NOT IN (SELECT evaluation.Employee_ID FROM evaluation)", "inferred_code_readable": "", "score": -2.181521617217186e-05}]} {"index": 283, "beams": [{"question": "What is the name of the shop that is hiring the largest number of employees?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name FROM shop JOIN hiring ON shop.Shop_ID = hiring.Shop_ID GROUP BY shop.Name ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.004111880794205547}]} {"index": 284, "beams": [{"question": "Which shop has the most employees? Give me the shop name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name FROM shop JOIN hiring ON shop.Shop_ID = hiring.Shop_ID GROUP BY shop.Name ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.009539997259992106}]} {"index": 285, "beams": [{"question": "Find the name of the shops that do not hire any employee.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Shop_ID NOT IN (SELECT hiring.Shop_ID FROM hiring)", "inferred_code_readable": "", "score": -9.298320620132472e-06}]} {"index": 286, "beams": [{"question": "Which shops run with no employees? Find the shop names", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Shop_ID NOT IN (SELECT hiring.Shop_ID FROM hiring)", "inferred_code_readable": "", "score": -1.0371203813974716e-05}]} {"index": 287, "beams": [{"question": "Find the number of employees hired in each shop; show the shop name as well.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name, Count(*) FROM employee JOIN shop JOIN hiring ON employee.Employee_ID = hiring.Employee_ID AND hiring.Shop_ID = shop.Shop_ID GROUP BY shop.Name", "inferred_code_readable": "", "score": -0.0022644734152095225}]} {"index": 288, "beams": [{"question": "For each shop, return the number of employees working there and the name of the shop.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.Name, Count(*) FROM employee JOIN shop JOIN hiring ON employee.Employee_ID = hiring.Employee_ID AND hiring.Shop_ID = shop.Shop_ID GROUP BY shop.Name", "inferred_code_readable": "", "score": -0.0018397991049710072}]} {"index": 289, "beams": [{"question": "What is total bonus given in all evaluations?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(evaluation.Bonus) FROM evaluation", "inferred_code_readable": "", "score": -2.3603283210604786e-05}]} {"index": 290, "beams": [{"question": "Find the total amount of bonus given in all the evaluations.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(evaluation.Bonus) FROM evaluation", "inferred_code_readable": "", "score": -1.2397739347136394e-05}]} {"index": 291, "beams": [{"question": "Give me all the information about hiring.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT * FROM hiring", "inferred_code_readable": "", "score": -7.271757731075468e-06}]} {"index": 292, "beams": [{"question": "What is all the information about hiring?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT * FROM hiring", "inferred_code_readable": "", "score": -9.179101773781895e-06}]} {"index": 293, "beams": [{"question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.District FROM shop WHERE shop.Number_products < 3000 INTERSECT SELECT shop.District FROM shop WHERE shop.Number_products > 10000", "inferred_code_readable": "", "score": -0.006739404485820444}]} {"index": 294, "beams": [{"question": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT shop.District FROM shop WHERE shop.Number_products < 3000 INTERSECT SELECT shop.District FROM shop WHERE shop.Number_products > 10000", "inferred_code_readable": "", "score": -0.023390014584009577}]} {"index": 295, "beams": [{"question": "How many different store locations are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT shop.Location) FROM shop", "inferred_code_readable": "", "score": -6.437298530670432e-06}]} {"index": 296, "beams": [{"question": "Count the number of distinct store locations.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT shop.Location) FROM shop", "inferred_code_readable": "", "score": -1.537797426465204e-05}]} {"index": 297, "beams": [{"question": "How many documents do we have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Documents", "inferred_code_readable": "", "score": -2.3841839293936573e-06}]} {"index": 298, "beams": [{"question": "Count the number of documents.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Documents", "inferred_code_readable": "", "score": -3.576273869043689e-06}]} {"index": 299, "beams": [{"question": "List document IDs, document names, and document descriptions for all documents.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Documents.Document_Description FROM Documents", "inferred_code_readable": "", "score": -4.768370189367488e-06}]} {"index": 300, "beams": [{"question": "What are the ids, names, and descriptions for all documents?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Documents.Document_Description FROM Documents", "inferred_code_readable": "", "score": -4.6491608358678604e-06}]} {"index": 301, "beams": [{"question": "What is the document name and template id for document with description with the letter 'w' in it?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%a%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_Name, Documents.Template_ID FROM Documents WHERE Documents.Document_Description LIKE \"%a%\"", "inferred_code_readable": "", "score": -0.16026614604253098}]} {"index": 302, "beams": [{"question": "Return the names and template ids for documents that contain the letter w in their description.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%a%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_Name, Documents.Template_ID FROM Documents WHERE Documents.Document_Description LIKE \"%a%\"", "inferred_code_readable": "", "score": -0.22055028378080266}]} {"index": 303, "beams": [{"question": "What is the document id, template id and description for document named \"Robbin CV\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NoinCVCVCV\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Template_ID, Documents.Document_Description FROM Documents WHERE Documents.Document_Name = \"NoinCVCVCV\"", "inferred_code_readable": "", "score": -2.438735745811975}]} {"index": 304, "beams": [{"question": "Return the document id, template id, and description for the document with the name Robbin CV.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NoberCVCVCV\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Template_ID, Documents.Document_Description FROM Documents WHERE Documents.Document_Name = \"NoberCVCVCV\"", "inferred_code_readable": "", "score": -2.823450803748237}]} {"index": 305, "beams": [{"question": "How many different templates do all document use?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates", "inferred_code_readable": "", "score": -0.0010451185525184314}]} {"index": 306, "beams": [{"question": "Count the number of different templates used for documents.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates", "inferred_code_readable": "", "score": -0.04887431853509128}]} {"index": 307, "beams": [{"question": "How many documents are using the template with type code 'PPT'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"PPT\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID WHERE Templates.Template_Type_Code = \"PPT\"", "inferred_code_readable": "", "score": -0.00024091094309852679}]} {"index": 308, "beams": [{"question": "Count the number of documents that use the PPT template type.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"PPT\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID WHERE Templates.Template_Type_Code = \"PPT\"", "inferred_code_readable": "", "score": -0.00039717139335238016}]} {"index": 309, "beams": [{"question": "Show all template ids and number of documents using each template.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Template_ID, Count(*) FROM Documents GROUP BY Documents.Template_ID", "inferred_code_readable": "", "score": -5.60283319117616e-06}]} {"index": 310, "beams": [{"question": "What are all different template ids used for documents, and how many times were each of them used?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Template_ID, Count(*) FROM Documents GROUP BY Documents.Template_ID", "inferred_code_readable": "", "score": -1.1086443741703533e-05}]} {"index": 311, "beams": [{"question": "What is the id and type code for the template used by the most documents?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID, Templates.Template_Type_Code FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID GROUP BY Documents.Template_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.3419689073170744}]} {"index": 312, "beams": [{"question": "Return the id and type code of the template that is used for the greatest number of documents.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID, Templates.Template_Type_Code FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID GROUP BY Templates.Template_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.7789704197372345}]} {"index": 313, "beams": [{"question": "Show ids for all templates that are used by more than one document.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Template_ID FROM Documents GROUP BY Documents.Template_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.00020478932054146526}]} {"index": 314, "beams": [{"question": "What are the template ids of any templates used in more than a single document?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Template_ID FROM Documents GROUP BY Documents.Template_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.0008058209890151602}]} {"index": 315, "beams": [{"question": "Show ids for all templates not used by any document.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID FROM Templates EXCEPT SELECT Documents.Template_ID FROM Documents", "inferred_code_readable": "", "score": -2.2649761177717664e-06}]} {"index": 316, "beams": [{"question": "What are the ids for templates that are not used in any documents?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID FROM Templates EXCEPT SELECT Documents.Template_ID FROM Documents", "inferred_code_readable": "", "score": -2.5033945689756365e-06}]} {"index": 317, "beams": [{"question": "How many templates do we have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates", "inferred_code_readable": "", "score": -2.980230583204957e-06}]} {"index": 318, "beams": [{"question": "Count the number of templates.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates", "inferred_code_readable": "", "score": -3.3378573931486244e-06}]} {"index": 319, "beams": [{"question": "Show template ids, version numbers, and template type codes for all templates.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID, Templates.Version_Number, Templates.Template_Type_Code FROM Templates", "inferred_code_readable": "", "score": -1.5258730641676266e-05}]} {"index": 320, "beams": [{"question": "What are the ids, version numbers, and type codes for each template?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID, Templates.Version_Number, Templates.Template_Type_Code FROM Templates", "inferred_code_readable": "", "score": -9.05989539745633e-06}]} {"index": 321, "beams": [{"question": "Show all distinct template type codes for all templates.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Templates.Template_Type_Code FROM Templates", "inferred_code_readable": "", "score": -6.568274253737627e-05}]} {"index": 322, "beams": [{"question": "What are the different template type codes?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types", "inferred_code_readable": "", "score": -0.0009890703433157455}]} {"index": 323, "beams": [{"question": "What are the ids of templates with template type code PP or PPT?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"PPT\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID FROM Templates WHERE Templates.Template_Type_Code = \"F\" OR Templates.Template_Type_Code = \"PPT\"", "inferred_code_readable": "", "score": -1.4126232801649152}]} {"index": 324, "beams": [{"question": "Return the ids of templates that have the code PP or PPT.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"PPT\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID FROM Templates WHERE Templates.Template_Type_Code = \"F\" OR Templates.Template_Type_Code = \"PPT\"", "inferred_code_readable": "", "score": -1.102556921520602}]} {"index": 325, "beams": [{"question": "How many templates have template type code CV?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CV\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates WHERE Templates.Template_Type_Code = \"CV\"", "inferred_code_readable": "", "score": -0.00037544494232832903}]} {"index": 326, "beams": [{"question": "Count the number of templates of the type CV.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CV\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Templates WHERE Templates.Template_Type_Code = \"CV\"", "inferred_code_readable": "", "score": -0.00048592046307760484}]} {"index": 327, "beams": [{"question": "What is the version number and template type code for the template with version number later than 5?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Version_Number, Templates.Template_Type_Code FROM Templates WHERE Templates.Version_Number > 5", "inferred_code_readable": "", "score": -0.6050756565571547}]} {"index": 328, "beams": [{"question": "Return the version numbers and template type codes of templates with a version number greater than 5.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code, Templates.Template_Type_Code FROM Templates WHERE Templates.Version_Number > 5", "inferred_code_readable": "", "score": -0.013890939737862595}]} {"index": 329, "beams": [{"question": "Show all template type codes and number of templates for each.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "inferred_code_readable": "", "score": -1.1563276622439389e-05}]} {"index": 330, "beams": [{"question": "What are the different template type codes, and how many templates correspond to each?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "inferred_code_readable": "", "score": -2.4676153330460693e-05}]} {"index": 331, "beams": [{"question": "Which template type code has most number of templates?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -3.707387432427822e-05}]} {"index": 332, "beams": [{"question": "Return the type code of the template type that the most templates belong to.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0001472156263702118}]} {"index": 333, "beams": [{"question": "Show all template type codes with less than three templates.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code HAVING Count(*) < 3", "inferred_code_readable": "", "score": -9.536585122305041e-05}]} {"index": 334, "beams": [{"question": "What are the codes of template types that have fewer than 3 templates?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code HAVING Count(*) < 3", "inferred_code_readable": "", "score": -0.0003062110299438814}]} {"index": 335, "beams": [{"question": "What the smallest version number and its template type code?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Version_Number, Templates.Template_Type_Code FROM Templates", "inferred_code_readable": "", "score": -0.0009289708595829893}]} {"index": 336, "beams": [{"question": "Return the lowest version number, along with its corresponding template type code.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Version_Number, Templates.Template_Type_Code FROM Templates ORDER BY Templates.Version_Number Asc LIMIT 1", "inferred_code_readable": "", "score": -0.1659868036121921}]} {"index": 337, "beams": [{"question": "What is the template type code of the template used by document with the name \"Data base\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gras\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID WHERE Documents.Document_Name = \"Gras\"", "inferred_code_readable": "", "score": -2.2857728004269973}]} {"index": 338, "beams": [{"question": "Return the template type code of the template that is used by a document named Data base.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Paperbase\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID WHERE Documents.Document_Name = \"Paperbase\"", "inferred_code_readable": "", "score": -1.477232505004423}]} {"index": 339, "beams": [{"question": "Show all document names using templates with template type code BK.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"BK\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_Name FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID WHERE Templates.Template_Type_Code = \"BK\"", "inferred_code_readable": "", "score": -0.0011550757316527438}]} {"index": 340, "beams": [{"question": "What are the names of documents that use templates with the code BK?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"BK\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_Name FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID WHERE Templates.Template_Type_Code = \"BK\"", "inferred_code_readable": "", "score": -0.0030656792211161132}]} {"index": 341, "beams": [{"question": "Show all template type codes and the number of documents using each type.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID GROUP BY Templates.Template_Type_Code", "inferred_code_readable": "", "score": -0.20754894045850847}]} {"index": 342, "beams": [{"question": "What are the different template type codes, and how many documents use each type?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "inferred_code_readable": "", "score": -0.052465127653647414}]} {"index": 343, "beams": [{"question": "Which template type code is used by most number of documents?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates JOIN Documents ON Templates.Template_ID = Documents.Template_ID GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.22600543305306786}]} {"index": 344, "beams": [{"question": "Return the code of the template type that is most commonly used in documents.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.001817715459566216}]} {"index": 345, "beams": [{"question": "Show all template type codes that are not used by any document.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types EXCEPT SELECT Templates.Template_Type_Code FROM Templates", "inferred_code_readable": "", "score": -9.059894125584833e-06}]} {"index": 346, "beams": [{"question": "What are the codes of template types that are not used for any document?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types EXCEPT SELECT Templates.Template_Type_Code FROM Templates", "inferred_code_readable": "", "score": -1.8119765890389772e-05}]} {"index": 347, "beams": [{"question": "Show all template type codes and descriptions.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code, Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types", "inferred_code_readable": "", "score": -1.9073482491194227e-06}]} {"index": 348, "beams": [{"question": "What are the type codes and descriptions for all template types?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code, Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types", "inferred_code_readable": "", "score": -1.4305112898682637e-06}]} {"index": 349, "beams": [{"question": "What is the template type descriptions for template type code \"AD\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CV\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Code = \"CV\"", "inferred_code_readable": "", "score": -0.6531656384461826}]} {"index": 350, "beams": [{"question": "Return the template type description of the template type with the code AD.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (String (string-s \"BK\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Code = \"BK\"", "inferred_code_readable": "", "score": -0.6356050968168603}]} {"index": 351, "beams": [{"question": "What is the template type code for template type description \"Book\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Paper\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Description = \"Paper\"", "inferred_code_readable": "", "score": -0.24828848242730572}]} {"index": 352, "beams": [{"question": "Return the type code of the template type with the description \"Book\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Paper\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Description = \"Paper\"", "inferred_code_readable": "", "score": -0.4208492934702477}]} {"index": 353, "beams": [{"question": "What are the distinct template type descriptions for the templates ever used by any document?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types JOIN Templates ON Ref_Template_Types.Template_Type_Code = Templates.Template_Type_Code", "inferred_code_readable": "", "score": -0.033060945849108236}]} {"index": 354, "beams": [{"question": "Return the different descriptions for templates that have been used in a document.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types JOIN Templates ON Ref_Template_Types.Template_Type_Code = Templates.Template_Type_Code JOIN Documents ON Templates.Template_ID = Documents.Template_ID", "inferred_code_readable": "", "score": -0.004620952485140606}]} {"index": 355, "beams": [{"question": "What are the template ids with template type description \"Presentation\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Graphition\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID FROM Ref_Template_Types JOIN Templates ON Ref_Template_Types.Template_Type_Code = Templates.Template_Type_Code WHERE Ref_Template_Types.Template_Type_Description = \"Graphition\"", "inferred_code_readable": "", "score": -1.328220466438978}]} {"index": 356, "beams": [{"question": "Return the ids corresponding to templates with the description 'Presentation'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Honotion\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Templates.Template_ID FROM Ref_Template_Types JOIN Templates ON Ref_Template_Types.Template_Type_Code = Templates.Template_Type_Code WHERE Ref_Template_Types.Template_Type_Description = \"Honotion\"", "inferred_code_readable": "", "score": -2.51049339770136}]} {"index": 357, "beams": [{"question": "How many paragraphs in total?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Paragraphs", "inferred_code_readable": "", "score": -1.907348114116303e-06}]} {"index": 358, "beams": [{"question": "Count the number of paragraphs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Paragraphs", "inferred_code_readable": "", "score": -4.17231909466409e-06}]} {"index": 359, "beams": [{"question": "How many paragraphs for the document with name 'Summer Show'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NYShowShow\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Documents.Document_Name = \"NYShowShow\"", "inferred_code_readable": "", "score": -0.47693068556505125}]} {"index": 360, "beams": [{"question": "Count the number of paragraphs in the document named 'Summer Show'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NYShowShow\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Documents.Document_Name = \"NYShowShow\"", "inferred_code_readable": "", "score": -0.8892010924429812}]} {"index": 361, "beams": [{"question": "Show paragraph details for paragraph with text 'Korea ' .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Go\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Other_Details FROM Paragraphs WHERE Paragraphs.Paragraph_Text = \"Go\"", "inferred_code_readable": "", "score": -0.4697849899162776}]} {"index": 362, "beams": [{"question": "What are the details for the paragraph that includes the text 'Korea ' ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%Ke%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Other_Details FROM Paragraphs WHERE Paragraphs.Paragraph_Text LIKE \"%Ke%\"", "inferred_code_readable": "", "score": -0.10916746292878798}]} {"index": 363, "beams": [{"question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"DemototoNYto\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Paragraph_ID, Paragraphs.Paragraph_Text FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Documents.Document_Name = \"DemototoNYto\"", "inferred_code_readable": "", "score": -0.8909096365956231}]} {"index": 364, "beams": [{"question": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Boottoto\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Paragraph_ID, Paragraphs.Paragraph_Text FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Documents.Document_Name = \"Boottoto\"", "inferred_code_readable": "", "score": -1.9283689815802916}]} {"index": 365, "beams": [{"question": "Show all paragraph texts for the document \"Customer reviews\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alareviewsreviewsreviews\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Paragraph_Text FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Documents.Document_Name = \"Alareviewsreviewsreviews\"", "inferred_code_readable": "", "score": -1.8425347782121477}]} {"index": 366, "beams": [{"question": "What are the paragraph texts for the document with the name 'Customer reviews'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gotareviewsreviews\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Paragraph_Text FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Documents.Document_Name = \"Gotareviewsreviews\"", "inferred_code_readable": "", "score": -3.1658264733807258}]} {"index": 367, "beams": [{"question": "Show all document ids and the number of paragraphs in each document. Order by document id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID, Count(*) FROM Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Asc", "inferred_code_readable": "", "score": -2.7418071212537143e-05}]} {"index": 368, "beams": [{"question": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID, Count(*) FROM Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Asc", "inferred_code_readable": "", "score": -5.7935317911983475e-05}]} {"index": 369, "beams": [{"question": "Show all document ids, names and the number of paragraphs in each document.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Count(*) FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID GROUP BY Documents.Document_ID", "inferred_code_readable": "", "score": -0.00011300633091337886}]} {"index": 370, "beams": [{"question": "What are the ids and names of each document, as well as the number of paragraphs in each?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Count(*) FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID GROUP BY Documents.Document_ID", "inferred_code_readable": "", "score": -0.00035459417133409943}]} {"index": 371, "beams": [{"question": "List all document ids with at least two paragraphs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -2.6106753907129132e-05}]} {"index": 372, "beams": [{"question": "What are the ids of documents that have 2 or more paragraphs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -2.1576826185309983e-05}]} {"index": 373, "beams": [{"question": "What is the document id and name with greatest number of paragraphs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID GROUP BY Documents.Document_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -5.710086218613242e-05}]} {"index": 374, "beams": [{"question": "Return the id and name of the document with the most paragraphs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID GROUP BY Documents.Document_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -5.4358995832615165e-05}]} {"index": 375, "beams": [{"question": "What is the document id with least number of paragraphs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.0007161637751025296}]} {"index": 376, "beams": [{"question": "Return the id of the document with the fewest paragraphs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.03571469697618568}]} {"index": 377, "beams": [{"question": "What is the document id with 1 to 2 paragraphs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))) (val-val2 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) BETWEEN 1 AND 2", "inferred_code_readable": "", "score": -0.001428998926400027}]} {"index": 378, "beams": [{"question": "Give the ids of documents that have between one and two paragraphs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))) (val-val2 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) BETWEEN 1 AND 2", "inferred_code_readable": "", "score": -0.6609716828826251}]} {"index": 379, "beams": [{"question": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Italy\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ps\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs WHERE Paragraphs.Paragraph_Text = \"Italy\" INTERSECT SELECT Paragraphs.Document_ID FROM Paragraphs WHERE Paragraphs.Paragraph_Text = \"Ps\"", "inferred_code_readable": "", "score": -3.712938265407331}]} {"index": 380, "beams": [{"question": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Italy\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Night\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Documents.Document_ID FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Paragraphs.Paragraph_Text = \"Italy\" INTERSECT SELECT Documents.Document_ID FROM Documents JOIN Paragraphs ON Documents.Document_ID = Paragraphs.Document_ID WHERE Paragraphs.Paragraph_Text = \"Night\"", "inferred_code_readable": "", "score": -3.5574227627529638}]} {"index": 381, "beams": [{"question": "How many teachers are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM teacher", "inferred_code_readable": "", "score": -1.311301893736072e-06}]} {"index": 382, "beams": [{"question": "What is the total count of teachers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM teacher", "inferred_code_readable": "", "score": -1.5497203378345148e-06}]} {"index": 383, "beams": [{"question": "List the names of teachers in ascending order of age.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher ORDER BY teacher.Age Asc", "inferred_code_readable": "", "score": -1.9073482704357048e-06}]} {"index": 384, "beams": [{"question": "What are the names of the teachers ordered by ascending age?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher ORDER BY teacher.Age Asc", "inferred_code_readable": "", "score": -2.7418122456879246e-06}]} {"index": 385, "beams": [{"question": "What are the age and hometown of teachers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Age, teacher.Hometown FROM teacher", "inferred_code_readable": "", "score": -2.3841847678340855e-06}]} {"index": 386, "beams": [{"question": "What is the age and hometown of every teacher?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Age, teacher.Hometown FROM teacher", "inferred_code_readable": "", "score": -2.9325119214718143e-05}]} {"index": 387, "beams": [{"question": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TonyLeverLeverDistrictDistrict\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Hometown != \"TonyLeverLeverDistrictDistrict\"", "inferred_code_readable": "", "score": -2.0049000177060066}]} {"index": 388, "beams": [{"question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AberLeverLeverUrbanDistrictDistrict\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Hometown != \"AberLeverLeverUrbanDistrictDistrict\"", "inferred_code_readable": "", "score": -1.656572165749445}]} {"index": 389, "beams": [{"question": "Show the name of teachers aged either 32 or 33?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 32))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 32))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Age = 32 OR teacher.Age = 32", "inferred_code_readable": "", "score": -1.6898128311277034}]} {"index": 390, "beams": [{"question": "What are the names of the teachers who are aged either 32 or 33?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 32))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 32))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Age = 32 OR teacher.Age = 32", "inferred_code_readable": "", "score": -1.5210755455506586}]} {"index": 391, "beams": [{"question": "What is the hometown of the youngest teacher?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown FROM teacher ORDER BY teacher.Age Asc LIMIT 1", "inferred_code_readable": "", "score": -4.291532299305345e-06}]} {"index": 392, "beams": [{"question": "Where is the youngest teacher from?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown FROM teacher ORDER BY teacher.Age Asc LIMIT 1", "inferred_code_readable": "", "score": -6.794923635311534e-06}]} {"index": 393, "beams": [{"question": "Show different hometown of teachers and the number of teachers from each hometown.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown, Count(*) FROM teacher GROUP BY teacher.Hometown", "inferred_code_readable": "", "score": -2.5033943558128158e-06}]} {"index": 394, "beams": [{"question": "For each hometown, how many teachers are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown, Count(*) FROM teacher GROUP BY teacher.Hometown", "inferred_code_readable": "", "score": -2.7418124872724547e-06}]} {"index": 395, "beams": [{"question": "List the most common hometown of teachers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -7.724496148853177e-05}]} {"index": 396, "beams": [{"question": "What is the most commmon hometowns for teachers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -6.484823495611636e-05}]} {"index": 397, "beams": [{"question": "Show the hometowns shared by at least two teachers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -2.360337815332514e-05}]} {"index": 398, "beams": [{"question": "What are the towns from which at least two teachers come from?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -2.765639512603002e-05}]} {"index": 399, "beams": [{"question": "Show names of teachers and the courses they are arranged to teach.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name, course.Course FROM course JOIN teacher JOIN course_arrange ON course.Course_ID = course_arrange.Course_ID AND course_arrange.Teacher_ID = teacher.Teacher_ID", "inferred_code_readable": "", "score": -1.0490412051922249e-05}]} {"index": 400, "beams": [{"question": "What is the name of each teacher and what course they teach?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name, course.Course FROM course JOIN teacher JOIN course_arrange ON course.Course_ID = course_arrange.Course_ID AND course_arrange.Teacher_ID = teacher.Teacher_ID", "inferred_code_readable": "", "score": -1.764295782180625e-05}]} {"index": 401, "beams": [{"question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name, course.Course FROM course JOIN teacher JOIN course_arrange ON course.Course_ID = course_arrange.Course_ID AND course_arrange.Teacher_ID = teacher.Teacher_ID ORDER BY teacher.Name Asc", "inferred_code_readable": "", "score": -0.0004590357973128789}]} {"index": 402, "beams": [{"question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name, course.Course FROM course JOIN teacher JOIN course_arrange ON course.Course_ID = course_arrange.Course_ID AND course_arrange.Teacher_ID = teacher.Teacher_ID ORDER BY teacher.Name Asc", "inferred_code_readable": "", "score": -0.00014924756247580717}]} {"index": 403, "beams": [{"question": "Show the name of the teacher for the math course.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (String (string-s \"\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM course JOIN teacher JOIN course_arrange ON course.Course_ID = course_arrange.Course_ID AND course_arrange.Teacher_ID = teacher.Teacher_ID WHERE course.Course = \"\"", "inferred_code_readable": "", "score": -0.7661679362539147}]} {"index": 404, "beams": [{"question": "What are the names of the people who teach math courses?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (String (string-s \"\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM course JOIN teacher JOIN course_arrange ON course.Course_ID = course_arrange.Course_ID AND course_arrange.Teacher_ID = teacher.Teacher_ID WHERE course.Course = \"\"", "inferred_code_readable": "", "score": -0.813287913774893}]} {"index": 405, "beams": [{"question": "Show names of teachers and the number of courses they teach.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name, Count(*) FROM teacher JOIN course_arrange ON teacher.Teacher_ID = course_arrange.Teacher_ID GROUP BY teacher.Name", "inferred_code_readable": "", "score": -0.08165154000967334}]} {"index": 406, "beams": [{"question": "What are the names of the teachers and how many courses do they teach?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name, Count(*) FROM teacher JOIN course_arrange ON teacher.Teacher_ID = course_arrange.Teacher_ID GROUP BY teacher.Name", "inferred_code_readable": "", "score": -0.10206531217887971}]} {"index": 407, "beams": [{"question": "Show names of teachers that teach at least two courses.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher JOIN course_arrange ON teacher.Teacher_ID = course_arrange.Teacher_ID GROUP BY teacher.Teacher_ID HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.023641316070218465}]} {"index": 408, "beams": [{"question": "What are the names of the teachers who teach at least two courses?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher JOIN course_arrange ON teacher.Teacher_ID = course_arrange.Teacher_ID GROUP BY teacher.Teacher_ID HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.24473947278773522}]} {"index": 409, "beams": [{"question": "List the names of teachers who have not been arranged to teach courses.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Teacher_ID NOT IN (SELECT course_arrange.Teacher_ID FROM course_arrange)", "inferred_code_readable": "", "score": -1.7166106658805802e-05}]} {"index": 410, "beams": [{"question": "What are the names of the teachers whose courses have not been arranged?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Teacher_ID NOT IN (SELECT course_arrange.Teacher_ID FROM course_arrange)", "inferred_code_readable": "", "score": -1.4185887252438079e-05}]} {"index": 411, "beams": [{"question": "How many visitors below age 30 are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (Number (object-f 30))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM visitor WHERE visitor.Age < 30", "inferred_code_readable": "", "score": -3.6239438472307484e-05}]} {"index": 412, "beams": [{"question": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT visitor.Name FROM visitor WHERE visitor.Level_of_membership > 4 ORDER BY visitor.Name Asc", "inferred_code_readable": "", "score": -0.0007714156710321163}]} {"index": 413, "beams": [{"question": "What is the average age of the visitors whose membership level is not higher than 4?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(visitor.Age) FROM visitor WHERE visitor.Level_of_membership != 4", "inferred_code_readable": "", "score": -0.002661741818478447}]} {"index": 414, "beams": [{"question": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT visitor.Name, visitor.Level_of_membership FROM visitor WHERE visitor.Level_of_membership > 4 ORDER BY visitor.Level_of_membership Asc", "inferred_code_readable": "", "score": -0.7803391179763111}]} {"index": 415, "beams": [{"question": "Find the id and name of the museum that has the most staff members?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT museum.Museum_ID, museum.Name FROM museum ORDER BY museum.Num_of_Staff Desc LIMIT 1", "inferred_code_readable": "", "score": -1.978866945506752e-05}]} {"index": 416, "beams": [{"question": "Find the average number of staff working for the museums that were open before 2009.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2009))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(museum.Num_of_Staff) FROM museum WHERE museum.Open_Year < 2009", "inferred_code_readable": "", "score": -0.0016103693543172426}]} {"index": 417, "beams": [{"question": "What are the opening year and staff number of the museum named Plaza Museum?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"DinMuseumMuseum\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT museum.Open_Year, museum.Num_of_Staff FROM museum WHERE museum.Name = \"DinMuseumMuseum\"", "inferred_code_readable": "", "score": -2.3223553754502575}]} {"index": 418, "beams": [{"question": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2010))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT museum.Name FROM museum WHERE museum.Num_of_Staff > (SELECT Max(museum.Num_of_Staff) FROM museum WHERE museum.Open_Year = 2010)", "inferred_code_readable": "", "score": -0.07935674603634624}]} {"index": 419, "beams": [{"question": "find the id, name and age for visitors who visited some museums more than once.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT visitor.ID, visitor.Name, visitor.Age FROM visitor JOIN visit ON visitor.ID = visit.visitor_ID GROUP BY visitor.ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.00023971794679766845}]} {"index": 420, "beams": [{"question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 12) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT visitor.ID, visitor.Name, visitor.Level_of_membership FROM visitor JOIN visit ON visitor.ID = visit.visitor_ID GROUP BY visitor.ID ORDER BY Sum(visit.Total_spent) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0007444289127818138}]} {"index": 421, "beams": [{"question": "What are the id and name of the museum visited most times?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT visit.Museum_ID, museum.Name FROM museum JOIN visit ON museum.Museum_ID = visit.Museum_ID GROUP BY visit.Museum_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.011003120469617045}]} {"index": 422, "beams": [{"question": "What is the name of the museum that had no visitor yet?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT museum.Name FROM museum WHERE museum.Museum_ID NOT IN (SELECT visit.Museum_ID FROM visit)", "inferred_code_readable": "", "score": -1.4185892723617144e-05}]} {"index": 423, "beams": [{"question": "Find the name and age of the visitor who bought the most tickets at once.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 11) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT visitor.Name, visitor.Age FROM visitor JOIN visit ON visitor.ID = visit.visitor_ID GROUP BY visitor.ID ORDER BY Sum(visit.Num_of_Ticket) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.002020537382335874}]} {"index": 424, "beams": [{"question": "What are the average and maximum number of tickets bought in all visits?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(visit.Num_of_Ticket), Max(visit.Num_of_Ticket) FROM visit", "inferred_code_readable": "", "score": -1.7762128329934512e-05}]} {"index": 425, "beams": [{"question": "What is the total ticket expense of the visitors whose membership level is 1?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(visit.Total_spent) FROM visitor JOIN visit ON visitor.ID = visit.visitor_ID WHERE visitor.Level_of_membership = 1", "inferred_code_readable": "", "score": -0.0001468632089967059}]} {"index": 426, "beams": [{"question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2009))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2011))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT visitor.Name FROM museum JOIN visitor JOIN visit ON museum.Museum_ID = visit.Museum_ID AND visit.visitor_ID = visitor.ID WHERE museum.Open_Year = 2009 INTERSECT SELECT visitor.Name FROM visitor JOIN visit ON visitor.ID = visit.visitor_ID JOIN museum ON visit.Museum_ID = museum.Museum_ID WHERE museum.Open_Year > 2011", "inferred_code_readable": "", "score": -0.22175368802873408}]} {"index": 427, "beams": [{"question": "Find the number of visitors who did not visit any museum opened after 2010.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2010))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM visit WHERE visit.Museum_ID NOT IN (SELECT museum.Museum_ID FROM museum WHERE museum.Open_Year > 2010)", "inferred_code_readable": "", "score": -1.4410133510494845}]} {"index": 428, "beams": [{"question": "How many museums were opened after 2013 or before 2008?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Or (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 300))))) (cond-right (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM museum WHERE museum.Open_Year > 300 OR museum.Open_Year < 8", "inferred_code_readable": "", "score": -0.34379949955243205}]} {"index": 429, "beams": [{"question": "Find the total number of players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM players", "inferred_code_readable": "", "score": -6.079665766378639e-06}]} {"index": 430, "beams": [{"question": "How many players are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM players", "inferred_code_readable": "", "score": -1.4066652880728725e-05}]} {"index": 431, "beams": [{"question": "Find the total number of matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM matches", "inferred_code_readable": "", "score": -0.0013385694506879986}]} {"index": 432, "beams": [{"question": "Count the number of matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM matches", "inferred_code_readable": "", "score": -3.3974161972594175e-05}]} {"index": 433, "beams": [{"question": "List the first name and birth date of all players from the country with code USA.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.birth_date FROM players WHERE players.country_code = \"United\"", "inferred_code_readable": "", "score": -0.02255292934964359}]} {"index": 434, "beams": [{"question": "What are the first names and birth dates of players from the USA?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.birth_date FROM players WHERE players.country_code = \"United\"", "inferred_code_readable": "", "score": -0.012110787882051}]} {"index": 435, "beams": [{"question": "Find the average age of losers and winners of all matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(matches.loser_age) FROM matches INTERSECT SELECT Avg(matches.winner_age) FROM matches", "inferred_code_readable": "", "score": -0.06354726396060073}]} {"index": 436, "beams": [{"question": "What are the average ages of losers and winners across matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(matches.loser_age) FROM matches INTERSECT SELECT Avg(matches.winner_age) FROM matches", "inferred_code_readable": "", "score": -0.10091931377697705}]} {"index": 437, "beams": [{"question": "Find the average rank of winners in all matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(matches.winner_rank) FROM matches", "inferred_code_readable": "", "score": -0.004456119606956577}]} {"index": 438, "beams": [{"question": "What is the average rank for winners in all matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(matches.winner_rank) FROM matches", "inferred_code_readable": "", "score": -0.06683578935165713}]} {"index": 439, "beams": [{"question": "Find the highest rank of losers in all matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.loser_rank FROM matches", "inferred_code_readable": "", "score": -0.893788687212627}]} {"index": 440, "beams": [{"question": "What is the best rank of losers across all matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.loser_rank FROM matches ORDER BY matches.loser_rank Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0005263593630218111}]} {"index": 441, "beams": [{"question": "find the number of distinct country codes of all players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT players.country_code) FROM players", "inferred_code_readable": "", "score": -9.894358790063507e-06}]} {"index": 442, "beams": [{"question": "How many distinct countries do players come from?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT players.country_code) FROM players", "inferred_code_readable": "", "score": -9.298316292927211e-06}]} {"index": 443, "beams": [{"question": "Find the number of distinct name of losers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT matches.loser_name) FROM matches", "inferred_code_readable": "", "score": -6.675717138193704e-06}]} {"index": 444, "beams": [{"question": "How many different loser names are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT matches.loser_name) FROM matches", "inferred_code_readable": "", "score": -6.079671663883346e-06}]} {"index": 445, "beams": [{"question": "Find the name of tourney that has more than 10 matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.tourney_name FROM matches GROUP BY matches.tourney_name HAVING Count(matches.match_num) > 10", "inferred_code_readable": "", "score": -0.014374618321234323}]} {"index": 446, "beams": [{"question": "What are the names of tournaments that have more than 10 matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.tourney_name FROM matches GROUP BY matches.tourney_name HAVING Count(matches.match_num) > 10", "inferred_code_readable": "", "score": -0.05557976370344164}]} {"index": 447, "beams": [{"question": "List the names of all winners who played in both 2013 and 2016.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2003))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2016))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name FROM players JOIN matches ON players.player_id = matches.loser_id WHERE matches.year = 2003 INTERSECT SELECT players.first_name FROM players JOIN matches ON players.player_id = matches.winner_id WHERE matches.year = 2016", "inferred_code_readable": "", "score": -1.2380282013280635}]} {"index": 448, "beams": [{"question": "What are the names of players who won in both 2013 and 2016?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1989))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2016))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name FROM players JOIN matches ON players.player_id = matches.loser_id WHERE matches.year = 1989 INTERSECT SELECT players.first_name FROM players JOIN matches ON players.player_id = matches.winner_id WHERE matches.year = 2016", "inferred_code_readable": "", "score": -0.8859286601690357}]} {"index": 449, "beams": [{"question": "List the number of all matches who played in years of 2013 or 2016.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2016))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.match_num FROM matches WHERE matches.year = 3 OR matches.year = 2016", "inferred_code_readable": "", "score": -0.04679045217994826}]} {"index": 450, "beams": [{"question": "How many matches were played in 2013 or 2016?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2016))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM matches WHERE matches.year = 3 OR matches.year = 2016", "inferred_code_readable": "", "score": -0.8704299173000578}]} {"index": 451, "beams": [{"question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NewTAChampionship\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ChiOpenOpenOpen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code, players.first_name FROM players JOIN matches ON players.player_id = matches.loser_id WHERE matches.tourney_name = \"NewTAChampionship\" INTERSECT SELECT players.country_code, players.first_name FROM players JOIN matches ON players.player_id = matches.winner_id WHERE matches.tourney_name = \"ChiOpenOpenOpen\"", "inferred_code_readable": "", "score": -1.722106944908532}]} {"index": 452, "beams": [{"question": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NewTAChampionship\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"COpenOpenOpen\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code FROM players JOIN matches ON players.player_id = matches.loser_id WHERE matches.tourney_name = \"NewTAChampionship\" INTERSECT SELECT players.first_name, players.country_code FROM players JOIN matches ON players.player_id = matches.winner_id WHERE matches.tourney_name = \"COpenOpenOpen\"", "inferred_code_readable": "", "score": -1.9008236805743124}]} {"index": 453, "beams": [{"question": "Find the first name and country code of the oldest player.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code FROM players ORDER BY players.birth_date Desc LIMIT 1", "inferred_code_readable": "", "score": -1.2040111414535204e-05}]} {"index": 454, "beams": [{"question": "What is the first name and country code of the oldest player?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code FROM players ORDER BY players.birth_date Desc LIMIT 1", "inferred_code_readable": "", "score": -1.2874573400267764e-05}]} {"index": 455, "beams": [{"question": "List the first and last name of all players in the order of birth date.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.last_name FROM players ORDER BY players.birth_date Asc", "inferred_code_readable": "", "score": -4.649159180303286e-06}]} {"index": 456, "beams": [{"question": "What are the full names of all players, sorted by birth date?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.last_name FROM players ORDER BY players.birth_date Asc", "inferred_code_readable": "", "score": -1.251693991122238e-05}]} {"index": 457, "beams": [{"question": "List the first and last name of all players who are left / L hand in the order of birth date.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Defender\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.last_name FROM players WHERE players.hand = \"Defender\" ORDER BY players.birth_date Asc", "inferred_code_readable": "", "score": -0.1532140006959679}]} {"index": 458, "beams": [{"question": "What are the full names of all left handed players, in order of birth date?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Defender\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.last_name FROM players WHERE players.hand = \"Defender\" ORDER BY players.birth_date Asc", "inferred_code_readable": "", "score": -0.045002221802356246}]} {"index": 459, "beams": [{"question": "Find the first name and country code of the player who did the most number of tours.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code FROM players JOIN rankings ON players.player_id = rankings.player_id GROUP BY rankings.player_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.00013601414733699357}]} {"index": 460, "beams": [{"question": "What is the first name and country code of the player with the most tours?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code FROM players JOIN rankings ON players.player_id = rankings.player_id GROUP BY rankings.player_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0001329140640891069}]} {"index": 461, "beams": [{"question": "Find the year that has the most number of matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.year FROM matches GROUP BY matches.year ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -6.675717088455713e-06}]} {"index": 462, "beams": [{"question": "Which year had the most matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.year FROM matches GROUP BY matches.year ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -1.847740834648448e-05}]} {"index": 463, "beams": [{"question": "Find the name and rank points of the winner who won the most times.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name, matches.winner_rank_points FROM matches GROUP BY matches.winner_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -1.2580302047712024}]} {"index": 464, "beams": [{"question": "What is the name of the winner who has won the most matches, and how many rank points does this player have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name, matches.winner_rank_points FROM players JOIN matches ON players.player_id = matches.loser_id GROUP BY matches.winner_rank ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.9879287608472822}]} {"index": 465, "beams": [{"question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AustralianOpen\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name FROM players JOIN matches ON players.player_id = matches.loser_id WHERE matches.tourney_name = \"AustralianOpen\" ORDER BY matches.winner_rank_points Desc LIMIT 1", "inferred_code_readable": "", "score": -1.5881204102600677}]} {"index": 466, "beams": [{"question": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"AustralianOpen\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Japan\"))))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name FROM matches WHERE matches.tourney_name = \"AustralianOpen\" AND matches.winner_rank_points = \"Japan\" ORDER BY matches.winner_rank_points Desc LIMIT 1", "inferred_code_readable": "", "score": -3.1225205056574126}]} {"index": 467, "beams": [{"question": "find the names of loser and winner who played in the match with greatest number of minutes.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.loser_name, matches.winner_name FROM matches ORDER BY matches.minutes Desc LIMIT 1", "inferred_code_readable": "", "score": -6.771009067563227e-05}]} {"index": 468, "beams": [{"question": "What are the names of the winner and loser who played in the longest match?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name, matches.loser_name FROM matches ORDER BY matches.match_num Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0005800261138659835}]} {"index": 469, "beams": [{"question": "Find the average ranking for each player and their first name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, Avg(rankings.ranking_points) FROM players JOIN rankings ON players.player_id = rankings.player_id GROUP BY players.first_name", "inferred_code_readable": "", "score": -0.0009412043970584705}]} {"index": 470, "beams": [{"question": "What are the first names of all players, and their average rankings?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, Avg(rankings.ranking_points) FROM players JOIN rankings ON players.player_id = rankings.player_id GROUP BY rankings.player_id", "inferred_code_readable": "", "score": -0.0001519898746877857}]} {"index": 471, "beams": [{"question": "Find the total ranking points for each player and their first name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, Sum(rankings.ranking_points) FROM players JOIN rankings ON players.player_id = rankings.player_id GROUP BY players.first_name", "inferred_code_readable": "", "score": -0.061185358463433204}]} {"index": 472, "beams": [{"question": "What are the first names of all players, and their total ranking points?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, Sum(rankings.ranking_points) FROM players JOIN rankings ON players.player_id = rankings.player_id GROUP BY rankings.player_id", "inferred_code_readable": "", "score": -0.08142083098298514}]} {"index": 473, "beams": [{"question": "find the number of players for each country.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code, Count(*) FROM players GROUP BY players.country_code", "inferred_code_readable": "", "score": -5.483625201918585e-06}]} {"index": 474, "beams": [{"question": "How many players are from each country?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code, Count(*) FROM players GROUP BY players.country_code", "inferred_code_readable": "", "score": -4.053114956548143e-06}]} {"index": 475, "beams": [{"question": "find the code of the country where has the greatest number of players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -4.172324146622941e-06}]} {"index": 476, "beams": [{"question": "What is the code of the country with the most players?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -4.053114437851946e-06}]} {"index": 477, "beams": [{"question": "Find the codes of countries that have more than 50 players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 50))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code HAVING Count(*) > 50", "inferred_code_readable": "", "score": -0.0007301632404193015}]} {"index": 478, "beams": [{"question": "What are the codes of countries with more than 50 players?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 50))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code HAVING Count(*) > 50", "inferred_code_readable": "", "score": -0.0006623517355279773}]} {"index": 479, "beams": [{"question": "Find the total number of tours for each ranking date.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 39) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 39) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT rankings.ranking_date, Sum(rankings.tours) FROM rankings GROUP BY rankings.ranking_date", "inferred_code_readable": "", "score": -0.041600345569612784}]} {"index": 480, "beams": [{"question": "How many total tours were there for each ranking date?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 39) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 39) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT rankings.ranking_date, Sum(rankings.tours) FROM rankings GROUP BY rankings.ranking_date", "inferred_code_readable": "", "score": -0.001665387642312055}]} {"index": 481, "beams": [{"question": "Find the number of matches happened in each year.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), matches.year FROM matches GROUP BY matches.year", "inferred_code_readable": "", "score": -0.009117837984618404}]} {"index": 482, "beams": [{"question": "How many matches were played in each year?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), matches.year FROM matches GROUP BY matches.year", "inferred_code_readable": "", "score": -0.48971182062874163}]} {"index": 483, "beams": [{"question": "Find the name and rank of the 3 youngest winners across all matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name, matches.winner_rank FROM matches ORDER BY matches.winner_age Asc LIMIT 3", "inferred_code_readable": "", "score": -0.2111213308905917}]} {"index": 484, "beams": [{"question": "What are the names and ranks of the three youngest winners across all matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT matches.winner_name, matches.winner_rank FROM matches ORDER BY matches.winner_age Asc LIMIT 3", "inferred_code_readable": "", "score": -0.0808124409632498}]} {"index": 485, "beams": [{"question": "How many different winners both participated in the WTA Championships and were left handed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"MTAChampionship\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 30) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Nokia\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM matches WHERE matches.tourney_name = \"MTAChampionship\" AND matches.winner_hand = \"Nokia\"", "inferred_code_readable": "", "score": -2.6464074259768253}]} {"index": 486, "beams": [{"question": "Find the number of left handed winners who participated in the WTA Championships.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NETAChampionship\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM players JOIN matches ON players.player_id = matches.loser_id WHERE players.hand = \"F\" AND matches.tourney_name = \"NETAChampionship\"", "inferred_code_readable": "", "score": -1.752815309199761}]} {"index": 487, "beams": [{"question": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code, players.birth_date FROM players JOIN matches ON players.player_id = matches.loser_id ORDER BY matches.winner_rank_points Desc LIMIT 1", "inferred_code_readable": "", "score": -0.5427096846539712}]} {"index": 488, "beams": [{"question": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.first_name, players.country_code, players.birth_date FROM players JOIN matches ON players.player_id = matches.loser_id GROUP BY matches.winner_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.12152060045335844}]} {"index": 489, "beams": [{"question": "Find the number of players for each hand type.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.hand, Count(*) FROM players GROUP BY players.hand", "inferred_code_readable": "", "score": -5.006787276329305e-06}]} {"index": 490, "beams": [{"question": "How many players are there for each hand type?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT players.hand, Count(*) FROM players GROUP BY players.hand", "inferred_code_readable": "", "score": -4.05311472206904e-06}]} {"index": 491, "beams": [{"question": "How many ships ended up being 'Captured'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Detured\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM ship WHERE ship.disposition_of_ship = \"Detured\"", "inferred_code_readable": "", "score": -0.9313031434982548}]} {"index": 492, "beams": [{"question": "List the name and tonnage ordered by in descending alphaetical order for the names.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT ship.name, ship.tonnage FROM ship ORDER BY ship.name Desc", "inferred_code_readable": "", "score": -4.231867464454808e-05}]} {"index": 493, "beams": [{"question": "List the name, date and result of each battle.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT battle.name, battle.date, battle.result FROM battle", "inferred_code_readable": "", "score": -4.05311499207528e-06}]} {"index": 494, "beams": [{"question": "What is maximum and minimum death toll caused each time?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(death.killed), Min(death.killed), death.killed FROM death", "inferred_code_readable": "", "score": -0.4193104100456324}]} {"index": 495, "beams": [{"question": "What is the average number of injuries caused each time?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(death.injured), battle.name FROM battle JOIN ship ON battle.id = ship.lost_in_battle JOIN death ON ship.id = death.caused_by_ship_id GROUP BY battle.name", "inferred_code_readable": "", "score": -0.6125684597271928}]} {"index": 496, "beams": [{"question": "What are the death and injury situations caused by the ship with tonnage 't'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"London\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT death.killed, death.injured FROM ship JOIN death ON ship.id = death.caused_by_ship_id WHERE ship.tonnage = \"London\"", "inferred_code_readable": "", "score": -0.7692074030516665}]} {"index": 497, "beams": [{"question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gron\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT battle.name, battle.result FROM battle WHERE battle.bulgarian_commander != \"Gron\"", "inferred_code_readable": "", "score": -1.3981842622105916}]} {"index": 498, "beams": [{"question": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ps\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT battle.id, battle.name FROM battle JOIN ship ON battle.id = ship.lost_in_battle WHERE ship.ship_type = \"Ps\"", "inferred_code_readable": "", "score": -0.27387370433140035}]} {"index": 499, "beams": [{"question": "What are the ids and names of the battles that led to more than 10 people killed in total.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 17) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT battle.id, battle.name FROM battle JOIN ship ON battle.id = ship.lost_in_battle JOIN death ON ship.id = death.caused_by_ship_id GROUP BY battle.id HAVING Sum(death.killed) > 10", "inferred_code_readable": "", "score": -0.13304115641894754}]} {"index": 500, "beams": [{"question": "What is the ship id and name that caused most total injuries?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 18) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT ship.id, ship.name FROM ship JOIN death ON ship.id = death.caused_by_ship_id GROUP BY ship.id ORDER BY Sum(death.injured) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0007304296740500149}]} {"index": 501, "beams": [{"question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Keid\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Orton\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT battle.name FROM battle WHERE battle.bulgarian_commander = \"Keid\" AND battle.latin_commander = \"Orton\"", "inferred_code_readable": "", "score": -4.34038778894066}]} {"index": 502, "beams": [{"question": "How many different results are there for the battles?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT battle.result) FROM battle", "inferred_code_readable": "", "score": -6.67571658397037e-06}]} {"index": 503, "beams": [{"question": "How many battles did not lose any ship with tonnage '225'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM battle WHERE battle.id NOT IN (SELECT ship.lost_in_battle FROM ship WHERE ship.tonnage = 200)", "inferred_code_readable": "", "score": -0.5641156879555567}]} {"index": 504, "beams": [{"question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gtice\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ArMSAta\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT battle.name, battle.date FROM battle JOIN ship ON battle.id = ship.lost_in_battle WHERE ship.name = \"Gtice\" INTERSECT SELECT battle.name, battle.date FROM battle JOIN ship ON battle.id = ship.lost_in_battle WHERE ship.name = \"ArMSAta\"", "inferred_code_readable": "", "score": -2.9390896636831485}]} {"index": 505, "beams": [{"question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedChannel\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT battle.name, battle.result, battle.bulgarian_commander FROM battle WHERE battle.id NOT IN (SELECT ship.lost_in_battle FROM ship WHERE ship.location = \"UnitedChannel\")", "inferred_code_readable": "", "score": -0.4408449251763287}]} {"index": 506, "beams": [{"question": "What are the notes of the death events which has substring 'East'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%London%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT death.note FROM death WHERE death.killed LIKE \"%London%\"", "inferred_code_readable": "", "score": -1.065113985775838}]} {"index": 507, "beams": [{"question": "what are all the addresses including line 1 and line 2?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Addresses.line_1 FROM Addresses WHERE Addresses.line_1 = 1 INTERSECT SELECT Addresses.line_1 FROM Addresses WHERE Addresses.line_1 = 2", "inferred_code_readable": "", "score": -0.283564339972493}]} {"index": 508, "beams": [{"question": "What is the first and second line for all addresses?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Addresses.line_1, Addresses.line_2 FROM Addresses", "inferred_code_readable": "", "score": -2.3841839293936573e-06}]} {"index": 509, "beams": [{"question": "How many courses in total are listed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Courses", "inferred_code_readable": "", "score": -2.741812409112754e-06}]} {"index": 510, "beams": [{"question": "How many courses are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Courses", "inferred_code_readable": "", "score": -2.8610216062929794e-06}]} {"index": 511, "beams": [{"question": "How is the math course described?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_description FROM Courses WHERE Courses.course_name = \"\"", "inferred_code_readable": "", "score": -1.2663716077784102}]} {"index": 512, "beams": [{"question": "What are the descriptions for all the math courses?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_description FROM Courses WHERE Courses.course_name = \"\"", "inferred_code_readable": "", "score": -0.9208155870432648}]} {"index": 513, "beams": [{"question": "What is the zip code of the address in the city Port Chelsea?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"FastChelseaChelsea\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Addresses.zip_postcode FROM Addresses WHERE Addresses.city = \"FastChelseaChelsea\"", "inferred_code_readable": "", "score": -2.7581714599298266}]} {"index": 514, "beams": [{"question": "What is the zip code for Port Chelsea?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"London\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Addresses.zip_postcode FROM Addresses WHERE Addresses.city = \"London\"", "inferred_code_readable": "", "score": -2.7291775345796907}]} {"index": 515, "beams": [{"question": "Which department offers the most number of degrees? List department name and id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Departments.department_name, Departments.department_id FROM Departments JOIN Degree_Programs ON Departments.department_id = Degree_Programs.department_id GROUP BY Degree_Programs.department_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.30454448435389736}]} {"index": 516, "beams": [{"question": "What is the name and id of the department with the most number of degrees ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Departments.department_name, Degree_Programs.department_id FROM Departments JOIN Degree_Programs ON Departments.department_id = Degree_Programs.department_id GROUP BY Degree_Programs.department_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.7296811695532739}]} {"index": 517, "beams": [{"question": "How many departments offer any degree?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Degree_Programs.department_id) FROM Degree_Programs", "inferred_code_readable": "", "score": -0.00013803631617292922}]} {"index": 518, "beams": [{"question": "How many different departments offer degrees?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Degree_Programs.department_id) FROM Degree_Programs", "inferred_code_readable": "", "score": -0.0004906837428890753}]} {"index": 519, "beams": [{"question": "How many different degree names are offered?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Degree_Programs.degree_summary_name) FROM Degree_Programs", "inferred_code_readable": "", "score": -0.0007731435212647852}]} {"index": 520, "beams": [{"question": "How many different degrees are offered?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Degree_Programs.degree_program_id) FROM Degree_Programs", "inferred_code_readable": "", "score": -0.0713658402982773}]} {"index": 521, "beams": [{"question": "How many degrees does the engineering department offer?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Computer\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Departments JOIN Degree_Programs ON Departments.department_id = Degree_Programs.department_id WHERE Departments.department_name = \"Computer\"", "inferred_code_readable": "", "score": -0.13617650549664262}]} {"index": 522, "beams": [{"question": "How many degrees does the engineering department have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Computer\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Departments JOIN Degree_Programs ON Departments.department_id = Degree_Programs.department_id WHERE Departments.department_name = \"Computer\"", "inferred_code_readable": "", "score": -0.19326450304727416}]} {"index": 523, "beams": [{"question": "What are the names and descriptions of all the sections?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sections.section_name, Sections.section_description FROM Sections", "inferred_code_readable": "", "score": -1.0728835135864756e-06}]} {"index": 524, "beams": [{"question": "What are the names and descriptions for all the sections?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sections.section_name, Sections.section_description FROM Sections", "inferred_code_readable": "", "score": -1.0728835135864756e-06}]} {"index": 525, "beams": [{"question": "What are the names and id of courses having at most 2 sections?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 4))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Le (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_name, Courses.course_id FROM Courses JOIN Sections ON Courses.course_id = Sections.course_id GROUP BY Courses.course_id HAVING Count(*) <= 2", "inferred_code_readable": "", "score": -0.24972350389191433}]} {"index": 526, "beams": [{"question": "What are the names and ids of every course with less than 2 sections?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 4))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_name, Courses.course_id FROM Courses JOIN Sections ON Courses.course_id = Sections.course_id GROUP BY Sections.course_id HAVING Count(*) < 2", "inferred_code_readable": "", "score": -0.7112768186880345}]} {"index": 527, "beams": [{"question": "List the section_name in reversed lexicographical order.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sections.section_name FROM Sections ORDER BY Sections.section_name Desc", "inferred_code_readable": "", "score": -4.005365313020093e-05}]} {"index": 528, "beams": [{"question": "What are the names of the sections in reverse alphabetical order?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sections.section_name FROM Sections ORDER BY Sections.section_name Desc", "inferred_code_readable": "", "score": -0.06052288785466686}]} {"index": 529, "beams": [{"question": "What is the semester which most student registered in? Show both the name and the id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 29) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Semesters.semester_name, Semesters.semester_id FROM Semesters JOIN Student_Enrolment ON Semesters.semester_id = Student_Enrolment.semester_id GROUP BY Semesters.semester_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.05858367649044993}]} {"index": 530, "beams": [{"question": "For each semester, what is the name and id of the one with the most students registered?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 29) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Semesters.semester_name, Student_Enrolment.semester_id FROM Semesters JOIN Student_Enrolment ON Semesters.semester_id = Student_Enrolment.semester_id GROUP BY Student_Enrolment.semester_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.3309555414061691}]} {"index": 531, "beams": [{"question": "What is the description of the department whose name has the substring the computer?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%s%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Departments.department_description FROM Departments WHERE Departments.department_name LIKE \"%s%\"", "inferred_code_readable": "", "score": -1.2880234551737573}]} {"index": 532, "beams": [{"question": "What is the department description for the one whose name has the word computer?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%Statistics%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Departments.department_description FROM Departments WHERE Departments.department_name LIKE \"%Statistics%\"", "inferred_code_readable": "", "score": -2.2013645466503036}]} {"index": 533, "beams": [{"question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.student_id FROM Students JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id GROUP BY Students.student_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.25182748352663253}]} {"index": 534, "beams": [{"question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id GROUP BY Students.student_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.06310826321546159}]} {"index": 535, "beams": [{"question": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ph\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Degree_Programs JOIN Students JOIN Student_Enrolment ON Degree_Programs.degree_program_id = Student_Enrolment.degree_program_id AND Student_Enrolment.student_id = Students.student_id WHERE Degree_Programs.degree_summary_name = \"Ph\"", "inferred_code_readable": "", "score": -2.3991870873646306}]} {"index": 536, "beams": [{"question": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ph\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Degree_Programs JOIN Students JOIN Student_Enrolment ON Degree_Programs.degree_program_id = Student_Enrolment.degree_program_id AND Student_Enrolment.student_id = Students.student_id WHERE Degree_Programs.degree_summary_name = \"Ph\"", "inferred_code_readable": "", "score": -2.320644672994945}]} {"index": 537, "beams": [{"question": "Find the kind of program which most number of students are enrolled in?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 8))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 50) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses ON Courses.course_id = Student_Enrolment_Courses.course_id GROUP BY Courses.course_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.019336862771510255}]} {"index": 538, "beams": [{"question": "What is the degree summary name that has the most number of students enrolled?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Degree_Programs.degree_summary_name FROM Degree_Programs JOIN Student_Enrolment ON Degree_Programs.degree_program_id = Student_Enrolment.degree_program_id GROUP BY Degree_Programs.degree_summary_name ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.003556013963830651}]} {"index": 539, "beams": [{"question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 50) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student_Enrolment_Courses.course_id, Degree_Programs.degree_summary_name FROM Degree_Programs JOIN Student_Enrolment ON Degree_Programs.degree_program_id = Student_Enrolment.degree_program_id JOIN Student_Enrolment_Courses ON Student_Enrolment.student_enrolment_id = Student_Enrolment_Courses.student_enrolment_id GROUP BY Degree_Programs.degree_program_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.7398776529308932}]} {"index": 540, "beams": [{"question": "What is the program id and the summary of the degree that has the most students enrolled?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student_Enrolment.degree_program_id, Degree_Programs.degree_summary_name FROM Degree_Programs JOIN Student_Enrolment ON Degree_Programs.degree_program_id = Student_Enrolment.degree_program_id GROUP BY Student_Enrolment.degree_program_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.24164883087622258}]} {"index": 541, "beams": [{"question": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.student_id, Students.first_name, Count(*) FROM Students JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id GROUP BY Students.student_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0074206499153604}]} {"index": 542, "beams": [{"question": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Count(*) FROM Students JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id GROUP BY Students.student_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0022283353039256326}]} {"index": 543, "beams": [{"question": "Which semesters do not have any student enrolled? List the semester name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 29) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Semesters.semester_name FROM Semesters WHERE Semesters.semester_id NOT IN (SELECT Student_Enrolment.semester_id FROM Student_Enrolment)", "inferred_code_readable": "", "score": -1.5854819871208292e-05}]} {"index": 544, "beams": [{"question": "What is the name of the semester with no students enrolled?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 29) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 28) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Semesters.semester_name FROM Semesters WHERE Semesters.semester_id NOT IN (SELECT Student_Enrolment.semester_id FROM Student_Enrolment)", "inferred_code_readable": "", "score": -1.776216415549925e-05}]} {"index": 545, "beams": [{"question": "What are all the course names of the courses which ever have students enrolled in?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 8))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 50) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses ON Courses.course_id = Student_Enrolment_Courses.course_id", "inferred_code_readable": "", "score": -0.004669656980752279}]} {"index": 546, "beams": [{"question": "What are the names of all courses that have some students enrolled?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 8))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 50) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses ON Courses.course_id = Student_Enrolment_Courses.course_id", "inferred_code_readable": "", "score": -0.0017726493891458972}]} {"index": 547, "beams": [{"question": "What's the name of the course with most number of enrollments?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 8))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 50) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses ON Courses.course_id = Student_Enrolment_Courses.course_id GROUP BY Courses.course_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.11447699346874884}]} {"index": 548, "beams": [{"question": "What is the name of the course with the most students enrolled?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 8))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 50) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses ON Courses.course_id = Student_Enrolment_Courses.course_id GROUP BY Courses.course_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0001994259051230074}]} {"index": 549, "beams": [{"question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CaliCarolina\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7)) (Table (table-table_id 8))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 44) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 51) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CaliCarolina\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Students.last_name FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id WHERE Addresses.state_province_county = \"CaliCarolina\" EXCEPT SELECT Students.last_name FROM Students JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id JOIN Student_Enrolment_Courses ON Student_Enrolment.student_enrolment_id = Student_Enrolment_Courses.student_enrolment_id WHERE Addresses.state_province_county = \"CaliCarolina\"", "inferred_code_readable": "", "score": -1.7983866824971457}]} {"index": 550, "beams": [{"question": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CaliCarolina\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7)) (Table (table-table_id 0))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 44) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 51) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Students.last_name FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id WHERE Addresses.state_province_county = \"CaliCarolina\" EXCEPT SELECT Students.last_name FROM Students JOIN Student_Enrolment ON Students.student_id = Student_Enrolment.student_id JOIN Addresses", "inferred_code_readable": "", "score": -2.7987093585486207}]} {"index": 551, "beams": [{"question": "Show the date and id of the transcript with at least 2 course results.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9)) (Table (table-table_id 10))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.transcript_id FROM Transcripts JOIN Transcript_Contents ON Transcripts.transcript_id = Transcript_Contents.transcript_id GROUP BY Transcripts.transcript_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.03856857865492458}]} {"index": 552, "beams": [{"question": "What is the date and id of the transcript with at least 2 courses listed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9)) (Table (table-table_id 10))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.transcript_id FROM Transcripts JOIN Transcript_Contents ON Transcripts.transcript_id = Transcript_Contents.transcript_id GROUP BY Transcripts.transcript_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.045901173923155625}]} {"index": 553, "beams": [{"question": "What is the phone number of the man with the first name Timmothy and the last name Ward?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Mmothy\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Td\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.cell_mobile_number FROM Students WHERE Students.first_name = \"Mmothy\" AND Students.last_name = \"Td\"", "inferred_code_readable": "", "score": -0.3558222046611448}]} {"index": 554, "beams": [{"question": "What is the mobile phone number of the student named Timmothy Ward ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Mmothy\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Td\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.cell_mobile_number FROM Students WHERE Students.first_name = \"Mmothy\" AND Students.last_name = \"Td\"", "inferred_code_readable": "", "score": -0.04907766084016174}]} {"index": 555, "beams": [{"question": "Who is the first student to register? List the first name, middle name and last name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.date_first_registered Asc LIMIT 1", "inferred_code_readable": "", "score": -0.007258721604046059}]} {"index": 556, "beams": [{"question": "What is the first, middle, and last name of the first student to register?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.date_first_registered Asc LIMIT 1", "inferred_code_readable": "", "score": -0.00033945602503848704}]} {"index": 557, "beams": [{"question": "Who is the earliest graduate of the school? List the first name, middle name and last name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.date_left Asc LIMIT 1", "inferred_code_readable": "", "score": -4.5060626213455635e-05}]} {"index": 558, "beams": [{"question": "What is the first, middle, and last name of the earliest school graduate?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.date_left Asc LIMIT 1", "inferred_code_readable": "", "score": -2.7179616068906398e-05}]} {"index": 559, "beams": [{"question": "Whose permanent address is different from his or her current address? List his or her first name.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Students.first_name FROM Students WHERE Students.permanent_address_id > (SELECT Min(Students.permanent_address_id) FROM Students)", "inferred_code_readable": "", "score": -0.3315903763676289}]} {"index": 560, "beams": [{"question": "What is the first name of the student whose permanent address is different from his or her current one?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Students.first_name FROM Students WHERE Students.permanent_address_id > (SELECT Min(Students.permanent_address_id) FROM Students)", "inferred_code_readable": "", "score": -0.01778353494083973}]} {"index": 561, "beams": [{"question": "Which address holds the most number of students currently? List the address id and all lines.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.current_address_id, Addresses.line_1 FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id GROUP BY Students.current_address_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0019024227260402427}]} {"index": 562, "beams": [{"question": "What is the id, line 1, and line 2 of the address with the most students?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.current_address_id, Addresses.line_1, Addresses.line_2 FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id GROUP BY Students.current_address_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0327847133460466}]} {"index": 563, "beams": [{"question": "On average, when were the transcripts printed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Transcripts.transcript_date) FROM Transcripts", "inferred_code_readable": "", "score": -0.000404395977710692}]} {"index": 564, "beams": [{"question": "What is the average transcript date?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Transcripts.transcript_date) FROM Transcripts", "inferred_code_readable": "", "score": -1.1801673430511528e-05}]} {"index": 565, "beams": [{"question": "When is the first transcript released? List the date and details.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 54) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.other_details FROM Transcripts ORDER BY Transcripts.transcript_date Asc", "inferred_code_readable": "", "score": -0.18745780616711727}]} {"index": 566, "beams": [{"question": "What is the earliest date of a transcript release, and what details can you tell me?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 54) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.other_details FROM Transcripts ORDER BY Transcripts.transcript_date Asc LIMIT 1", "inferred_code_readable": "", "score": -3.242467719388742e-05}]} {"index": 567, "beams": [{"question": "How many transcripts are released?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Transcripts", "inferred_code_readable": "", "score": -4.887575244083564e-06}]} {"index": 568, "beams": [{"question": "How many transcripts are listed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Transcripts", "inferred_code_readable": "", "score": -9.536717691105423e-06}]} {"index": 569, "beams": [{"question": "What is the last transcript release date?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(Transcripts.transcript_date) FROM Transcripts", "inferred_code_readable": "", "score": -0.003021700763106594}]} {"index": 570, "beams": [{"question": "When was the last transcript released?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(Transcripts.transcript_date) FROM Transcripts", "inferred_code_readable": "", "score": -0.00947891897629205}]} {"index": 571, "beams": [{"question": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 10))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcript_Contents.transcript_id, Count(*) FROM Transcript_Contents GROUP BY Transcript_Contents.transcript_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.00490899250942789}]} {"index": 572, "beams": [{"question": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 10))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcript_Contents.transcript_id, Count(*) FROM Transcript_Contents GROUP BY Transcript_Contents.transcript_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.8964273488481354}]} {"index": 573, "beams": [{"question": "Show the date of the transcript which shows the least number of results, also list the id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9)) (Table (table-table_id 10))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.transcript_id FROM Transcripts JOIN Transcript_Contents ON Transcripts.transcript_id = Transcript_Contents.transcript_id GROUP BY Transcripts.transcript_id ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.20484851155131878}]} {"index": 574, "beams": [{"question": "What is the date and id of the transcript with the least number of results?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 53) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 9)) (Table (table-table_id 10))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 56) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 52) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.transcript_id FROM Transcripts JOIN Transcript_Contents ON Transcripts.transcript_id = Transcript_Contents.transcript_id GROUP BY Transcripts.transcript_id ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.0075584001928206135}]} {"index": 575, "beams": [{"question": "Find the semester when both Master students and Bachelor students got enrolled in.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Comp\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (String (string-s \"P\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student_Enrolment.semester_id FROM Student_Enrolment WHERE Student_Enrolment.degree_program_id = \"Comp\" INTERSECT SELECT Student_Enrolment.semester_id FROM Student_Enrolment WHERE Student_Enrolment.degree_program_id = \"P\"", "inferred_code_readable": "", "score": -1.4011812028079973}]} {"index": 576, "beams": [{"question": "What is the id of the semester that had both Masters and Bachelors students enrolled?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Fall\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (String (string-s \"P\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Student_Enrolment.semester_id FROM Student_Enrolment WHERE Student_Enrolment.degree_program_id = \"Fall\" INTERSECT SELECT Student_Enrolment.semester_id FROM Student_Enrolment WHERE Student_Enrolment.degree_program_id = \"P\"", "inferred_code_readable": "", "score": -0.8316233492719931}]} {"index": 577, "beams": [{"question": "How many different addresses do the students currently live?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Students.current_address_id) FROM Students", "inferred_code_readable": "", "score": -6.079670995973174e-06}]} {"index": 578, "beams": [{"question": "What are the different addresses that have students living there?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Addresses.other_address_details FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id", "inferred_code_readable": "", "score": -0.11598307072874547}]} {"index": 579, "beams": [{"question": "List all the student details in reversed lexicographical order.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT * FROM Students ORDER BY Students.other_student_details Desc", "inferred_code_readable": "", "score": -0.2303216457155699}]} {"index": 580, "beams": [{"question": "What other details can you tell me about students in reverse alphabetical order?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT * FROM Students ORDER BY Students.other_student_details Desc", "inferred_code_readable": "", "score": -0.056272979653606114}]} {"index": 581, "beams": [{"question": "Describe the section h.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (String (string-s \"x\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sections.section_description FROM Sections WHERE Sections.section_name = \"x\"", "inferred_code_readable": "", "score": -1.116202712048434}]} {"index": 582, "beams": [{"question": "What is the description for the section named h?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (String (string-s \"x\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sections.section_description FROM Sections WHERE Sections.section_name = \"x\"", "inferred_code_readable": "", "score": -0.07730653136950849}]} {"index": 583, "beams": [{"question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Close\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"C700166582\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id WHERE Addresses.country = \"Close\" OR Students.cell_mobile_number = \"C700166582\"", "inferred_code_readable": "", "score": -0.40532549775631566}]} {"index": 584, "beams": [{"question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Close\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"C700166582\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Students.first_name FROM Addresses JOIN Students ON Addresses.address_id = Students.current_address_id WHERE Addresses.country = \"Close\" OR Students.cell_mobile_number = \"C700166582\"", "inferred_code_readable": "", "score": -0.5347757040312828}]} {"index": 585, "beams": [{"question": "List the title of all cartoons in alphabetical order.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM Cartoon ORDER BY Cartoon.Title Asc", "inferred_code_readable": "", "score": -6.437294160832607e-06}]} {"index": 586, "beams": [{"question": "What are the titles of the cartoons sorted alphabetically?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM Cartoon ORDER BY Cartoon.Title Asc", "inferred_code_readable": "", "score": -8.463848971018706e-06}]} {"index": 587, "beams": [{"question": "List all cartoon directed by \"Ben Jones\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"MarkJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = \"MarkJones\"", "inferred_code_readable": "", "score": -1.2449076145857703}]} {"index": 588, "beams": [{"question": "What are the names of all cartoons directed by Ben Jones?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"MarkJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = \"MarkJones\"", "inferred_code_readable": "", "score": -0.49196338597164413}]} {"index": 589, "beams": [{"question": "How many cartoons were written by \"Joseph Kuhr\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"StevenKuKuhr\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Cartoon WHERE Cartoon.Written_by = \"StevenKuKuhr\"", "inferred_code_readable": "", "score": -0.8637592367094413}]} {"index": 590, "beams": [{"question": "What is the number of cartoones written by Joseph Kuhr?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"OyKuKuhr\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Cartoon WHERE Cartoon.Written_by = \"OyKuKuhr\"", "inferred_code_readable": "", "score": -1.8466399253377688}]} {"index": 591, "beams": [{"question": "list all cartoon titles and their directors ordered by their air date", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title, Cartoon.Directed_by FROM Cartoon ORDER BY Cartoon.Original_air_date Asc", "inferred_code_readable": "", "score": -3.3378590273969166e-06}]} {"index": 592, "beams": [{"question": "What is the name and directors of all the cartoons that are ordered by air date?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title, Cartoon.Directed_by FROM Cartoon ORDER BY Cartoon.Original_air_date Asc", "inferred_code_readable": "", "score": -8.344639581991942e-06}]} {"index": 593, "beams": [{"question": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"PeterJonesJones\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"BlanVietViet\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = \"PeterJonesJones\" OR Cartoon.Written_by = \"BlanVietViet\"", "inferred_code_readable": "", "score": -2.037399146737613}]} {"index": 594, "beams": [{"question": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"MarkJonesJones\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"BlanVietViet\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = \"MarkJonesJones\" OR Cartoon.Written_by = \"BlanVietViet\"", "inferred_code_readable": "", "score": -1.7560275368266502}]} {"index": 595, "beams": [{"question": "Which country has the most of TV Channels? List the country and number of TV Channels it has.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country, Count(*) FROM TV_Channel GROUP BY TV_Channel.Country ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -2.3961018840168435e-05}]} {"index": 596, "beams": [{"question": "What is the country with the most number of TV Channels and how many does it have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country, Count(*) FROM TV_Channel GROUP BY TV_Channel.Country ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.00021646786224494008}]} {"index": 597, "beams": [{"question": "List the number of different series names and contents in the TV Channel table.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct True)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT TV_Channel.series_name), Count(DISTINCT TV_Channel.Content) FROM TV_Channel", "inferred_code_readable": "", "score": -0.007142887772566553}]} {"index": 598, "beams": [{"question": "How many different series and contents are listed in the TV Channel table?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct True)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT TV_Channel.Content), Count(DISTINCT TV_Channel.Content) FROM TV_Channel", "inferred_code_readable": "", "score": -0.00041267221220664396}]} {"index": 599, "beams": [{"question": "What is the content of TV Channel with serial name \"Sky Radio\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"JaRadioRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Content FROM TV_Channel WHERE TV_Channel.series_name = \"JaRadioRadio\"", "inferred_code_readable": "", "score": -1.34633465158727}]} {"index": 600, "beams": [{"question": "What is the content of the series Sky Radio?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TVRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Content FROM TV_Channel WHERE TV_Channel.series_name = \"TVRadio\"", "inferred_code_readable": "", "score": -2.0655080145470137}]} {"index": 601, "beams": [{"question": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"URadioRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Package_Option FROM TV_Channel WHERE TV_Channel.series_name = \"URadioRadio\"", "inferred_code_readable": "", "score": -1.6790111244180963}]} {"index": 602, "beams": [{"question": "What are the Package Options of the TV Channels whose series names are Sky Radio?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TeRadioRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Package_Option FROM TV_Channel WHERE TV_Channel.series_name = \"TeRadioRadio\"", "inferred_code_readable": "", "score": -1.7130766189000468}]} {"index": 603, "beams": [{"question": "How many TV Channel using language English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM TV_Channel WHERE TV_Channel.Language = \"english\"", "inferred_code_readable": "", "score": -0.14356618933372545}]} {"index": 604, "beams": [{"question": "How many TV Channels use the English language?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM TV_Channel WHERE TV_Channel.Language = \"english\"", "inferred_code_readable": "", "score": -0.14599796663956965}]} {"index": 605, "beams": [{"question": "List the language used least number of TV Channel. List language and number of TV Channel.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.004087918822598624}]} {"index": 606, "beams": [{"question": "What are the languages used by the least number of TV Channels and how many channels use it?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.0020946171604947494}]} {"index": 607, "beams": [{"question": "List each language and the number of TV Channels using it.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language", "inferred_code_readable": "", "score": -3.0994407538287305e-06}]} {"index": 608, "beams": [{"question": "For each language, list the number of TV Channels that use it.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language", "inferred_code_readable": "", "score": -2.9802314145399578e-06}]} {"index": 609, "beams": [{"question": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TheRiseofofBeBe\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.series_name FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Title = \"TheRiseofofBeBe\"", "inferred_code_readable": "", "score": -1.2586412236134166}]} {"index": 610, "beams": [{"question": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TheRiseofofBeBe\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.series_name FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Title = \"TheRiseofofBeBe\"", "inferred_code_readable": "", "score": -1.2090223990509728}]} {"index": 611, "beams": [{"question": "List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"sRadioRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM TV_Channel JOIN TV_series ON TV_Channel.id = TV_series.Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE TV_Channel.series_name = \"sRadioRadio\"", "inferred_code_readable": "", "score": -0.7646578539799833}]} {"index": 612, "beams": [{"question": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"sRadioRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Title FROM TV_Channel JOIN TV_series ON TV_Channel.id = TV_series.Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE TV_Channel.series_name = \"sRadioRadio\"", "inferred_code_readable": "", "score": -0.9783766636360411}]} {"index": 613, "beams": [{"question": "List the Episode of all TV series sorted by rating.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Episode FROM TV_series ORDER BY TV_series.Rating Asc", "inferred_code_readable": "", "score": -0.0002156267866126882}]} {"index": 614, "beams": [{"question": "What are all of the episodes ordered by ratings?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Episode FROM TV_series ORDER BY TV_series.Rating Asc", "inferred_code_readable": "", "score": -7.128484453744477e-05}]} {"index": 615, "beams": [{"question": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Episode, TV_series.Rating FROM TV_series ORDER BY TV_series.Rating Desc LIMIT 3", "inferred_code_readable": "", "score": -0.00018046853889330805}]} {"index": 616, "beams": [{"question": "What are 3 most highly rated episodes in the TV series table and what were those ratings?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Episode, TV_series.Rating FROM TV_series ORDER BY TV_series.Rating Desc LIMIT 3", "inferred_code_readable": "", "score": -8.249126672410512e-05}]} {"index": 617, "beams": [{"question": "What is minimum and maximum share of TV series?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Min(TV_series.Share), Max(TV_series.Share) FROM TV_series", "inferred_code_readable": "", "score": -0.00022540488775035783}]} {"index": 618, "beams": [{"question": "What is the maximum and minimum share for the TV series?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(TV_series.Share), Min(TV_series.Share) FROM TV_series", "inferred_code_readable": "", "score": -9.298297030113645e-06}]} {"index": 619, "beams": [{"question": "What is the air date of TV series with Episode \"A Love of a Lifetime\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ALoveofaLifeLifeLife\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Air_Date FROM TV_series WHERE TV_series.Episode = \"ALoveofaLifeLifeLife\"", "inferred_code_readable": "", "score": -0.598317198172154}]} {"index": 620, "beams": [{"question": "When did the episode \"A Love of a Lifetime\" air?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ALoveofaLifeLifetime\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Air_Date FROM TV_series WHERE TV_series.Episode = \"ALoveofaLifeLifetime\"", "inferred_code_readable": "", "score": -0.47912342662769447}]} {"index": 621, "beams": [{"question": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ALoveofaLifeLifeLife\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Weekly_Rank FROM TV_series WHERE TV_series.Episode = \"ALoveofaLifeLifeLife\"", "inferred_code_readable": "", "score": -0.7133730883171481}]} {"index": 622, "beams": [{"question": "What is the weekly rank for the episode \"A Love of a Lifetime\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ALoveofaLifeLifetime\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Weekly_Rank FROM TV_series WHERE TV_series.Episode = \"ALoveofaLifeLifetime\"", "inferred_code_readable": "", "score": -0.9343565375796601}]} {"index": 623, "beams": [{"question": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ALoveofaLifeLifeLife\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.series_name FROM TV_Channel JOIN TV_series ON TV_Channel.id = TV_series.Channel WHERE TV_series.Episode = \"ALoveofaLifeLifeLife\"", "inferred_code_readable": "", "score": -0.6573643186616849}]} {"index": 624, "beams": [{"question": "What is the name of the series that has the episode \"A Love of a Lifetime\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ALoveofaLifeLifeLife\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.series_name FROM TV_Channel JOIN TV_series ON TV_Channel.id = TV_series.Channel WHERE TV_series.Episode = \"ALoveofaLifeLifeLife\"", "inferred_code_readable": "", "score": -0.21815649091559663}]} {"index": 625, "beams": [{"question": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"sRadioRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Episode FROM TV_Channel JOIN TV_series ON TV_Channel.id = TV_series.Channel WHERE TV_Channel.series_name = \"sRadioRadio\"", "inferred_code_readable": "", "score": -1.6508733149363906}]} {"index": 626, "beams": [{"question": "What is the episode for the TV series named \"Sky Radio\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TVRadio\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_series.Episode FROM TV_Channel JOIN TV_series ON TV_Channel.id = TV_series.Channel WHERE TV_Channel.series_name = \"TVRadio\"", "inferred_code_readable": "", "score": -1.6609346270554965}]} {"index": 627, "beams": [{"question": "Find the number of cartoons directed by each of the listed directors.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Directed_by, Count(*) FROM Cartoon GROUP BY Cartoon.Directed_by", "inferred_code_readable": "", "score": -7.987001310993946e-06}]} {"index": 628, "beams": [{"question": "How many cartoons did each director create?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Directed_by, Count(*) FROM Cartoon GROUP BY Cartoon.Directed_by", "inferred_code_readable": "", "score": -1.28745429961441e-05}]} {"index": 629, "beams": [{"question": "Find the production code and channel of the most recently aired cartoon .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Production_code, Cartoon.Channel FROM Cartoon ORDER BY Cartoon.Production_code Desc LIMIT 1", "inferred_code_readable": "", "score": -0.08366505801340196}]} {"index": 630, "beams": [{"question": "What is the produdction code and channel of the most recent cartoon ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Cartoon.Production_code, Cartoon.Channel FROM Cartoon ORDER BY Cartoon.Production_code Desc LIMIT 1", "inferred_code_readable": "", "score": -0.05827272310530418}]} {"index": 631, "beams": [{"question": "Find the package choice and series name of the TV channel that has high definition TV.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Universal\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Package_Option, TV_Channel.series_name FROM TV_Channel WHERE TV_Channel.Hight_definition_TV = \"Universal\"", "inferred_code_readable": "", "score": -0.9721646519169127}]} {"index": 632, "beams": [{"question": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Y\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Package_Option, TV_Channel.series_name FROM TV_Channel WHERE TV_Channel.Hight_definition_TV = \"Y\"", "inferred_code_readable": "", "score": -1.22401595077703}]} {"index": 633, "beams": [{"question": "which countries' tv channels are playing some cartoon written by Todd Casey?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NiddCasey\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country, TV_Channel.Country FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Written_by = \"NiddCasey\"", "inferred_code_readable": "", "score": -0.6230139675251962}]} {"index": 634, "beams": [{"question": "What are the countries that have cartoons on TV that were written by Todd Casey?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TddCasey\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Written_by = \"TddCasey\"", "inferred_code_readable": "", "score": -0.12406751925043125}]} {"index": 635, "beams": [{"question": "which countries' tv channels are not playing any cartoon written by Todd Casey?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TddCaseCasey\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country, TV_Channel.Country FROM TV_Channel EXCEPT SELECT TV_Channel.Country, TV_Channel.Country FROM Cartoon JOIN TV_Channel ON Cartoon.Channel = TV_Channel.id WHERE Cartoon.Written_by = \"TddCaseCasey\"", "inferred_code_readable": "", "score": -1.9481597209977863}]} {"index": 636, "beams": [{"question": "What are the countries that are not playing cartoons written by Todd Casey?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"TddCaseCasey\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country FROM TV_Channel EXCEPT SELECT TV_Channel.Country FROM Cartoon JOIN TV_Channel ON Cartoon.Channel = TV_Channel.id WHERE Cartoon.Written_by = \"TddCaseCasey\"", "inferred_code_readable": "", "score": -0.9872348180397381}]} {"index": 637, "beams": [{"question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalterChang\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalterChang\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalterChang\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.series_name, TV_Channel.Country FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Directed_by = \"WalterChang\" AND Cartoon.Written_by = \"WalterChang\" INTERSECT SELECT TV_Channel.series_name, TV_Channel.Country FROM Cartoon JOIN TV_Channel ON Cartoon.Channel = TV_Channel.id WHERE Cartoon.Written_by = \"WalterChang\"", "inferred_code_readable": "", "score": -1.8618207081645295}]} {"index": 638, "beams": [{"question": "What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalterChang\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.series_name, TV_Channel.Country FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Directed_by = \"WalJones\" INTERSECT SELECT TV_Channel.series_name, TV_Channel.Country FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Directed_by = \"WalterChang\"", "inferred_code_readable": "", "score": -0.9830300092553088}]} {"index": 639, "beams": [{"question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Pixel_aspect_ratio_PAR, TV_Channel.Country FROM TV_Channel WHERE TV_Channel.Language != \"USA\"", "inferred_code_readable": "", "score": -0.1202604098206308}]} {"index": 640, "beams": [{"question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Pixel_aspect_ratio_PAR, TV_Channel.Country FROM TV_Channel WHERE TV_Channel.Language != \"USA\"", "inferred_code_readable": "", "score": -0.10813255565521729}]} {"index": 641, "beams": [{"question": "find id of the tv channels that from the countries where have more than two tv channels.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.Country FROM TV_Channel GROUP BY TV_Channel.Country HAVING Count(*) > 2", "inferred_code_readable": "", "score": -0.00013052709939387341}]} {"index": 642, "beams": [{"question": "What are the ids of all tv channels that have more than 2 TV channels?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT TV_Channel.id FROM TV_Channel GROUP BY TV_Channel.id HAVING Count(*) > 2", "inferred_code_readable": "", "score": -0.011002964095418122}]} {"index": 643, "beams": [{"question": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalJonesJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Cartoon.id FROM Cartoon EXCEPT SELECT Cartoon.Channel FROM Cartoon WHERE Cartoon.Directed_by = \"WalJonesJones\"", "inferred_code_readable": "", "score": -0.5315431171386606}]} {"index": 644, "beams": [{"question": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalJonesJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT TV_Channel.id FROM TV_Channel EXCEPT SELECT Cartoon.Channel FROM Cartoon WHERE Cartoon.Directed_by = \"WalJonesJones\"", "inferred_code_readable": "", "score": -0.8123878969029334}]} {"index": 645, "beams": [{"question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalJonesJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT TV_Channel.Package_Option FROM TV_Channel EXCEPT SELECT TV_Channel.Package_Option FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Directed_by = \"WalJonesJones\"", "inferred_code_readable": "", "score": -1.2769110576330647}]} {"index": 646, "beams": [{"question": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))) (val-val1 (String (string-s \"WalJonesJones\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT TV_Channel.Package_Option FROM TV_Channel EXCEPT SELECT TV_Channel.Package_Option FROM TV_Channel JOIN Cartoon ON TV_Channel.id = Cartoon.Channel WHERE Cartoon.Directed_by = \"WalJonesJones\"", "inferred_code_readable": "", "score": -0.8011702604942812}]} {"index": 647, "beams": [{"question": "How many poker players are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM poker_player", "inferred_code_readable": "", "score": -2.861021521027851e-06}]} {"index": 648, "beams": [{"question": "Count the number of poker players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM poker_player", "inferred_code_readable": "", "score": -5.960452838849051e-06}]} {"index": 649, "beams": [{"question": "List the earnings of poker players in descending order.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Earnings FROM poker_player ORDER BY poker_player.Earnings Desc", "inferred_code_readable": "", "score": -5.00678715553704e-06}]} {"index": 650, "beams": [{"question": "What are the earnings of poker players, ordered descending by value?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Earnings FROM poker_player ORDER BY poker_player.Earnings Desc", "inferred_code_readable": "", "score": -2.682188374336647e-05}]} {"index": 651, "beams": [{"question": "List the final tables made and the best finishes of poker players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Final_Table_Made, poker_player.Best_Finish FROM poker_player", "inferred_code_readable": "", "score": -0.0023938605816695713}]} {"index": 652, "beams": [{"question": "What are the final tables made and best finishes for all poker players?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Final_Table_Made, poker_player.Best_Finish FROM poker_player", "inferred_code_readable": "", "score": -0.0001952501020880959}]} {"index": 653, "beams": [{"question": "What is the average earnings of poker players?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(poker_player.Earnings) FROM poker_player", "inferred_code_readable": "", "score": -5.84125277214298e-06}]} {"index": 654, "beams": [{"question": "Return the average earnings across all poker players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(poker_player.Earnings) FROM poker_player", "inferred_code_readable": "", "score": -3.3378593968791392e-06}]} {"index": 655, "beams": [{"question": "What is the money rank of the poker player with the highest earnings?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player ORDER BY poker_player.Earnings Desc LIMIT 1", "inferred_code_readable": "", "score": -2.3245695501827868e-05}]} {"index": 656, "beams": [{"question": "Return the money rank of the player with the greatest earnings.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player ORDER BY poker_player.Earnings Desc LIMIT 1", "inferred_code_readable": "", "score": -2.6702794521327178e-05}]} {"index": 657, "beams": [{"question": "What is the maximum number of final tables made among poker players with earnings less than 200000?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(poker_player.Final_Table_Made) FROM poker_player WHERE poker_player.Earnings < 200000", "inferred_code_readable": "", "score": -0.0002230316623936801}]} {"index": 658, "beams": [{"question": "Return the maximum final tables made across all poker players who have earnings below 200000.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(poker_player.Final_Table_Made) FROM poker_player WHERE poker_player.Earnings < 200000", "inferred_code_readable": "", "score": -6.329953025385748e-05}]} {"index": 659, "beams": [{"question": "What are the names of poker players?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID", "inferred_code_readable": "", "score": -3.790841493866992e-05}]} {"index": 660, "beams": [{"question": "Return the names of all the poker players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID", "inferred_code_readable": "", "score": -2.0503940746152693e-05}]} {"index": 661, "beams": [{"question": "What are the names of poker players whose earnings is higher than 300000?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 300000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID WHERE poker_player.Earnings > 300000", "inferred_code_readable": "", "score": -0.003545961317598767}]} {"index": 662, "beams": [{"question": "Give the names of poker players who have earnings above 300000.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (Number (object-f 300000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID WHERE poker_player.Earnings > 300000", "inferred_code_readable": "", "score": -0.0018839801045089644}]} {"index": 663, "beams": [{"question": "List the names of poker players ordered by the final tables made in ascending order.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY poker_player.Final_Table_Made Asc", "inferred_code_readable": "", "score": -1.38282435315773e-05}]} {"index": 664, "beams": [{"question": "What are the names of poker players, ordered ascending by the number of final tables they have made?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY poker_player.Final_Table_Made Asc", "inferred_code_readable": "", "score": -6.568271788154334e-05}]} {"index": 665, "beams": [{"question": "What is the birth date of the poker player with the lowest earnings?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Birth_Date FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY poker_player.Earnings Asc LIMIT 1", "inferred_code_readable": "", "score": -1.4781937565544467e-05}]} {"index": 666, "beams": [{"question": "Return the birth date of the poker player with the lowest earnings.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Birth_Date FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY poker_player.Earnings Asc LIMIT 1", "inferred_code_readable": "", "score": -1.585481856380966e-05}]} {"index": 667, "beams": [{"question": "What is the money rank of the tallest poker player?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY people.Height Desc LIMIT 1", "inferred_code_readable": "", "score": -1.4066679000279692e-05}]} {"index": 668, "beams": [{"question": "Return the money rank of the poker player with the greatest height.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY people.Height Desc LIMIT 1", "inferred_code_readable": "", "score": -9.17910947606515e-06}]} {"index": 669, "beams": [{"question": "What is the average earnings of poker players with height higher than 200?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(poker_player.Earnings) FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID WHERE people.Height > 200", "inferred_code_readable": "", "score": -1.7046896289230062e-05}]} {"index": 670, "beams": [{"question": "Give average earnings of poker players who are taller than 200.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(poker_player.Earnings) FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID WHERE people.Height > 200", "inferred_code_readable": "", "score": -9.29831874429965e-06}]} {"index": 671, "beams": [{"question": "What are the names of poker players in descending order of earnings?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY poker_player.Earnings Desc", "inferred_code_readable": "", "score": -4.768370324370608e-06}]} {"index": 672, "beams": [{"question": "Return the names of poker players sorted by their earnings descending.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM poker_player JOIN people ON poker_player.People_ID = people.People_ID ORDER BY poker_player.Earnings Desc", "inferred_code_readable": "", "score": -4.768370224894625e-06}]} {"index": 673, "beams": [{"question": "What are different nationalities of people and the corresponding number of people from each nation?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Nationality, Count(*) FROM people GROUP BY people.Nationality", "inferred_code_readable": "", "score": -3.457068501688809e-06}]} {"index": 674, "beams": [{"question": "How many people are there of each nationality?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Nationality, Count(*) FROM people GROUP BY people.Nationality", "inferred_code_readable": "", "score": -2.7418130983392075e-06}]} {"index": 675, "beams": [{"question": "What is the most common nationality of people?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -6.973535614207549e-05}]} {"index": 676, "beams": [{"question": "Give the nationality that is most common across all people.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -3.397417007278136e-05}]} {"index": 677, "beams": [{"question": "What are the nationalities that are shared by at least two people?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -9.059899490182488e-06}]} {"index": 678, "beams": [{"question": "Return the nationalities for which there are two or more people.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -2.133840843754342e-05}]} {"index": 679, "beams": [{"question": "List the names and birth dates of people in ascending alphabetical order of name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name, people.Birth_Date FROM people ORDER BY people.Name Asc", "inferred_code_readable": "", "score": -8.583054210475893e-06}]} {"index": 680, "beams": [{"question": "What are the names and birth dates of people, ordered by their names in alphabetical order?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name, people.Birth_Date FROM people ORDER BY people.Name Asc", "inferred_code_readable": "", "score": -5.6028328074830824e-06}]} {"index": 681, "beams": [{"question": "Show names of people whose nationality is not \"Russia\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ice\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM people WHERE people.Nationality != \"Ice\"", "inferred_code_readable": "", "score": -1.740744948380602}]} {"index": 682, "beams": [{"question": "What are the names of people who are not from Russia?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ice\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM people WHERE people.Nationality != \"Ice\"", "inferred_code_readable": "", "score": -1.7167875915593456}]} {"index": 683, "beams": [{"question": "List the names of people that are not poker players.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM people WHERE people.People_ID NOT IN (SELECT poker_player.People_ID FROM poker_player)", "inferred_code_readable": "", "score": -0.009488858980468251}]} {"index": 684, "beams": [{"question": "What are the names of people who do not play poker?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT people.Name FROM people WHERE people.People_ID NOT IN (SELECT poker_player.People_ID FROM poker_player)", "inferred_code_readable": "", "score": -8.404101139802833e-05}]} {"index": 685, "beams": [{"question": "How many distinct nationalities are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT people.Nationality) FROM people", "inferred_code_readable": "", "score": -5.364415834208103e-06}]} {"index": 686, "beams": [{"question": "Count the number of different nationalities.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT people.Nationality) FROM people", "inferred_code_readable": "", "score": -5.245206416759629e-06}]} {"index": 687, "beams": [{"question": "How many states are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(AREA_CODE_STATE.state) FROM AREA_CODE_STATE", "inferred_code_readable": "", "score": -0.4485534723680402}]} {"index": 688, "beams": [{"question": "List the contestant numbers and names, ordered by contestant name descending.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT CONTESTANTS.contestant_number, CONTESTANTS.contestant_name FROM CONTESTANTS ORDER BY CONTESTANTS.contestant_name Desc", "inferred_code_readable": "", "score": -5.412015967465322e-05}]} {"index": 689, "beams": [{"question": "List the vote ids, phone numbers and states of all votes.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT VOTES.vote_id, VOTES.phone_number, VOTES.state FROM VOTES", "inferred_code_readable": "", "score": -0.0001256408499727968}]} {"index": 690, "beams": [{"question": "What are the maximum and minimum values of area codes?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(AREA_CODE_STATE.area_code), Min(AREA_CODE_STATE.area_code) FROM AREA_CODE_STATE", "inferred_code_readable": "", "score": -0.00022946314754079822}]} {"index": 691, "beams": [{"question": "What is last date created of votes from the state 'CA'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT VOTES.created FROM AREA_CODE_STATE JOIN VOTES ON AREA_CODE_STATE.state = VOTES.state WHERE AREA_CODE_STATE.state = \"CA\"", "inferred_code_readable": "", "score": -1.0041425965205022}]} {"index": 692, "beams": [{"question": "What are the names of the contestants whose names are not 'Jessie Alloway'", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Goods\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT CONTESTANTS.contestant_name FROM CONTESTANTS WHERE CONTESTANTS.contestant_name != \"Goods\"", "inferred_code_readable": "", "score": -3.2617169245972377}]} {"index": 693, "beams": [{"question": "What are the distinct states and create time of all votes?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT VOTES.state, VOTES.created FROM VOTES", "inferred_code_readable": "", "score": -0.008680545707804299}]} {"index": 694, "beams": [{"question": "What are the contestant numbers and names of the contestants who had at least two votes?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT CONTESTANTS.contestant_number, CONTESTANTS.contestant_name FROM CONTESTANTS JOIN VOTES ON CONTESTANTS.contestant_number = VOTES.contestant_number GROUP BY CONTESTANTS.contestant_number HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -4.9113983727977484e-05}]} {"index": 695, "beams": [{"question": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT CONTESTANTS.contestant_number, CONTESTANTS.contestant_name FROM CONTESTANTS JOIN VOTES ON CONTESTANTS.contestant_number = VOTES.contestant_number GROUP BY VOTES.contestant_number ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.6609548458636425}]} {"index": 696, "beams": [{"question": "What are the number of votes from state 'NY' or 'CA'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NY\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"BAL\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM AREA_CODE_STATE JOIN VOTES ON AREA_CODE_STATE.state = VOTES.state WHERE AREA_CODE_STATE.state = \"NY\" OR AREA_CODE_STATE.state = \"BAL\"", "inferred_code_readable": "", "score": -1.0657772247195965}]} {"index": 697, "beams": [{"question": "How many contestants did not get voted?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM CONTESTANTS WHERE CONTESTANTS.contestant_number NOT IN (SELECT VOTES.contestant_number FROM VOTES)", "inferred_code_readable": "", "score": -1.1205665650493302e-05}]} {"index": 698, "beams": [{"question": "What is the area code in which the most voters voted?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT AREA_CODE_STATE.area_code FROM AREA_CODE_STATE JOIN VOTES ON AREA_CODE_STATE.state = VOTES.state GROUP BY AREA_CODE_STATE.area_code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.7141640467535169}]} {"index": 699, "beams": [{"question": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"DukeGehGeh\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT VOTES.created, VOTES.state, VOTES.phone_number FROM CONTESTANTS JOIN VOTES ON CONTESTANTS.contestant_number = VOTES.contestant_number WHERE CONTESTANTS.contestant_name = \"DukeGehGeh\"", "inferred_code_readable": "", "score": -0.9438887767296364}]} {"index": 700, "beams": [{"question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"ApthaGehling\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gity\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT AREA_CODE_STATE.area_code FROM AREA_CODE_STATE JOIN CONTESTANTS JOIN VOTES ON AREA_CODE_STATE.state = VOTES.state AND VOTES.contestant_number = CONTESTANTS.contestant_number WHERE CONTESTANTS.contestant_name = \"ApthaGehling\" INTERSECT SELECT AREA_CODE_STATE.area_code FROM VOTES JOIN CONTESTANTS ON VOTES.contestant_number = CONTESTANTS.contestant_number WHERE CONTESTANTS.contestant_name = \"Gity\"", "inferred_code_readable": "", "score": -2.4445307626382444}]} {"index": 701, "beams": [{"question": "Return the names of the contestants whose names contain the substring 'Al' .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%a%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT CONTESTANTS.contestant_name FROM CONTESTANTS WHERE CONTESTANTS.contestant_name LIKE \"%a%\"", "inferred_code_readable": "", "score": -0.44685894246527624}]} {"index": 702, "beams": [{"question": "What are the names of all the countries that became independent after 1950?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1850))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.IndepYear > 1850", "inferred_code_readable": "", "score": -0.06053748353707533}]} {"index": 703, "beams": [{"question": "Give the names of the nations that were founded after 1950.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1850))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.IndepYear > 1850", "inferred_code_readable": "", "score": -0.017002260310754025}]} {"index": 704, "beams": [{"question": "How many countries have a republic as their form of government?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT country.Name) FROM country", "inferred_code_readable": "", "score": -0.3491007674519224}]} {"index": 705, "beams": [{"question": "How many countries have governments that are republics?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT country.Name) FROM country", "inferred_code_readable": "", "score": -0.036892304310477186}]} {"index": 706, "beams": [{"question": "What is the total surface area of the countries in the Caribbean region?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Research\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.SurfaceArea) FROM country WHERE country.Region = \"Research\"", "inferred_code_readable": "", "score": -0.09501164382438532}]} {"index": 707, "beams": [{"question": "How much surface area do the countires in the Carribean cover together?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Tokyo\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.SurfaceArea) FROM country WHERE country.Continent = \"Tokyo\"", "inferred_code_readable": "", "score": -0.5644695969019722}]} {"index": 708, "beams": [{"question": "Which continent is Anguilla in?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"iailla\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Continent FROM country WHERE country.Name = \"iailla\"", "inferred_code_readable": "", "score": -2.4927797615521428}]} {"index": 709, "beams": [{"question": "What is the continent name which Anguilla belongs to?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Soingilla\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Continent FROM country WHERE country.LocalName = \"Soingilla\"", "inferred_code_readable": "", "score": -3.3092620111997775}]} {"index": 710, "beams": [{"question": "Which region is the city Kabul located in?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Ho\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.District FROM city WHERE city.Name = \"Ho\"", "inferred_code_readable": "", "score": -2.5129404501527475}]} {"index": 711, "beams": [{"question": "What region is Kabul in?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Suc\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.District FROM city WHERE city.Name = \"Suc\"", "inferred_code_readable": "", "score": -0.799132546747245}]} {"index": 712, "beams": [{"question": "Which language is the most popular in Aruba?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"aruba\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Name = \"aruba\" GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.3664322976258205}]} {"index": 713, "beams": [{"question": "What language is predominantly spoken in Aruba?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Aruba\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Name = \"Aruba\" GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.12161052851684673}]} {"index": 714, "beams": [{"question": "What are the population and life expectancies in Brazil?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"B\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Population, country.LifeExpectancy FROM country WHERE country.Name = \"B\"", "inferred_code_readable": "", "score": -0.7310304343078826}]} {"index": 715, "beams": [{"question": "Give me Brazil\u2019s population and life expectancies.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Population, country.LifeExpectancy FROM country WHERE country.Name = \"East\"", "inferred_code_readable": "", "score": -1.483048558190788}]} {"index": 716, "beams": [{"question": "What are the region and population of Angola?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.SurfaceArea, country.Population FROM country WHERE country.Name = \"East\"", "inferred_code_readable": "", "score": -0.4050727584674192}]} {"index": 717, "beams": [{"question": "What region does Angola belong to and what is its population?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Region, country.Population FROM country WHERE country.Name = \"East\"", "inferred_code_readable": "", "score": -0.5104803289830357}]} {"index": 718, "beams": [{"question": "What is the average expected life expectancy for countries in the region of Central Africa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Canada\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.LifeExpectancy) FROM country WHERE country.Region = \"Canada\"", "inferred_code_readable": "", "score": -0.5952021442327435}]} {"index": 719, "beams": [{"question": "How long is the people\u2019s average life expectancy in Central Africa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CoAfricaAfrica\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.LifeExpectancy) FROM country WHERE country.Region = \"CoAfricaAfrica\"", "inferred_code_readable": "", "score": -1.3678259186735389}]} {"index": 720, "beams": [{"question": "What is the name of country that has the shortest life expectancy in Asia?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Alice\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Region = \"Alice\" ORDER BY country.LifeExpectancy Asc LIMIT 1", "inferred_code_readable": "", "score": -1.5970225909514895}]} {"index": 721, "beams": [{"question": "Give the name of the country in Asia with the lowest life expectancy.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Continent = \"East\" ORDER BY country.LifeExpectancy Asc LIMIT 1", "inferred_code_readable": "", "score": -0.9628603636137001}]} {"index": 722, "beams": [{"question": "What is the total population and maximum GNP in Asia?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Uniteda\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.Population), Max(country.GNP) FROM country WHERE country.Continent = \"Uniteda\"", "inferred_code_readable": "", "score": -1.5118124531011432}]} {"index": 723, "beams": [{"question": "How many people live in Asia, and what is the largest GNP among them?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedI\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(country.Population), Max(country.GNP) FROM country WHERE country.Continent = \"UnitedI\"", "inferred_code_readable": "", "score": -1.9637922829992007}]} {"index": 724, "beams": [{"question": "What is the average life expectancy in African countries that are republics?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Australia\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Tourna\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.LifeExpectancy) FROM country WHERE country.Continent = \"Australia\" AND country.GovernmentForm = \"Tourna\"", "inferred_code_readable": "", "score": -1.225371510404095}]} {"index": 725, "beams": [{"question": "Give the average life expectancy for countries in Africa which are republics?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Tourna\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.LifeExpectancy) FROM country WHERE country.Continent = \"East\" AND country.GovernmentForm = \"Tourna\"", "inferred_code_readable": "", "score": -2.580776338660584}]} {"index": 726, "beams": [{"question": "What is the total surface area of the continents Asia and Europe?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Uniteden\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.SurfaceArea) FROM country WHERE country.Continent = \"UK\" OR country.Continent = \"Uniteden\"", "inferred_code_readable": "", "score": -2.7711629177103347}]} {"index": 727, "beams": [{"question": "Give the total surface area covered by countries in Asia or Europe.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Tokyo\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Tai\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.SurfaceArea) FROM country WHERE country.Continent = \"Tokyo\" OR country.Continent = \"Tai\"", "inferred_code_readable": "", "score": -1.863510326942226}]} {"index": 728, "beams": [{"question": "How many people live in Gelderland district?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gierland\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Population FROM city WHERE city.District = \"Gierland\"", "inferred_code_readable": "", "score": -1.4356826173017012}]} {"index": 729, "beams": [{"question": "What is the total population of Gelderland district?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Gierland\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(city.Population) FROM city WHERE city.District = \"Gierland\"", "inferred_code_readable": "", "score": -1.836653053754084}]} {"index": 730, "beams": [{"question": "What is the average GNP and total population in all nations whose government is US territory?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.GNP), Sum(country.Population) FROM country WHERE country.Continent = \"United\"", "inferred_code_readable": "", "score": -0.1670623106153002}]} {"index": 731, "beams": [{"question": "Give the mean GNP and total population of nations which are considered US territory.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.GNP), Sum(country.Population) FROM country WHERE country.Continent = \"United\"", "inferred_code_readable": "", "score": -0.23915384704392295}]} {"index": 732, "beams": [{"question": "How many unique languages are spoken in the world?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM countrylanguage", "inferred_code_readable": "", "score": -1.2278532665277453e-05}]} {"index": 733, "beams": [{"question": "What is the number of distinct languages used around the world?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM countrylanguage", "inferred_code_readable": "", "score": -2.6464317166130513e-05}]} {"index": 734, "beams": [{"question": "How many type of governments are in Africa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT country.GovernmentForm) FROM country WHERE country.Continent = \"East\"", "inferred_code_readable": "", "score": -0.13413900541912227}]} {"index": 735, "beams": [{"question": "How many different forms of governments are there in Africa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT country.GovernmentForm) FROM country WHERE country.Continent = \"East\"", "inferred_code_readable": "", "score": -0.42829025356152783}]} {"index": 736, "beams": [{"question": "What is the total number of languages used in Aruba?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Aruba\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.LocalName = \"Aruba\"", "inferred_code_readable": "", "score": -1.6362237060192868}]} {"index": 737, "beams": [{"question": "How many languages are spoken in Aruba?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))) (val-val1 (String (string-s \"aruba\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(countrylanguage.Language) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.LocalName = \"aruba\"", "inferred_code_readable": "", "score": -1.6722748580915123}]} {"index": 738, "beams": [{"question": "How many official languages does Afghanistan have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Afghanistan\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Name = \"Afghanistan\"", "inferred_code_readable": "", "score": -0.24697921604429496}]} {"index": 739, "beams": [{"question": "How many official languages are spoken in Afghanistan?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Afghanistan\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Name = \"Afghanistan\"", "inferred_code_readable": "", "score": -0.07089892196425751}]} {"index": 740, "beams": [{"question": "What is name of the country that speaks the largest number of languages?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY countrylanguage.CountryCode ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.37412253020502817}]} {"index": 741, "beams": [{"question": "Give the name of the nation that uses the greatest amount of languages.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY countrylanguage.CountryCode ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.29591342805213827}]} {"index": 742, "beams": [{"question": "Which continent has the most diverse languages?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Continent FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY country.Continent ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.03938230758027572}]} {"index": 743, "beams": [{"question": "Which continent speaks the most languages?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Continent FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY country.Continent ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.00011956425955617078}]} {"index": 744, "beams": [{"question": "How many countries speak both English and Dutch?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country WHERE country.Code = \"UK\" INTERSECT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -0.8806238724238895}]} {"index": 745, "beams": [{"question": "What is the number of nations that use English and Dutch?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"UK\" INTERSECT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -2.762226602647104}]} {"index": 746, "beams": [{"question": "What are the names of nations speak both English and French?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"F\" INTERSECT SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -0.09489260932040366}]} {"index": 747, "beams": [{"question": "Give the names of nations that speak both English and French.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"F\" INTERSECT SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -0.13303516562613282}]} {"index": 748, "beams": [{"question": "What are the names of nations where both English and French are official languages?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"F\" INTERSECT SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -0.12547114356732436}]} {"index": 749, "beams": [{"question": "Give the names of countries with English and French as official languages.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"F\" INTERSECT SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -0.20377413999641192}]} {"index": 750, "beams": [{"question": "What is the number of distinct continents where Chinese is spoken?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT country.Continent) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"China\"", "inferred_code_readable": "", "score": -0.0930590031448304}]} {"index": 751, "beams": [{"question": "How many continents speak Chinese?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT country.Continent) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"China\"", "inferred_code_readable": "", "score": -0.017933946145468838}]} {"index": 752, "beams": [{"question": "What are the regions that use English or Dutch?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Man\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Region FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"UK\" OR countrylanguage.Language = \"Man\"", "inferred_code_readable": "", "score": -0.5012406036209214}]} {"index": 753, "beams": [{"question": "Which regions speak Dutch or English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Man\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Region FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"UK\" OR countrylanguage.Language = \"Man\"", "inferred_code_readable": "", "score": -0.45555312185909713}]} {"index": 754, "beams": [{"question": "What are the countries where either English or Dutch is the official language ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Man\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"UK\" OR countrylanguage.Language = \"Man\"", "inferred_code_readable": "", "score": -0.056479683333179764}]} {"index": 755, "beams": [{"question": "Which countries have either English or Dutch as an official language?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UK\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Man\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"UK\" OR countrylanguage.Language = \"Man\"", "inferred_code_readable": "", "score": -0.05621879062862689}]} {"index": 756, "beams": [{"question": "Which language is the most popular on the Asian continent?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Continent = \"China\" GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.2528905347220274}]} {"index": 757, "beams": [{"question": "What is the language that is used by the largest number of Asian nations?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"American\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Continent = \"American\" GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.4858766087549995}]} {"index": 758, "beams": [{"question": "Which languages are spoken by only one country in republic governments?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY countrylanguage.Language HAVING Count(*) = 1", "inferred_code_readable": "", "score": -0.025955353234728307}]} {"index": 759, "beams": [{"question": "What languages are only used by a single country with a republic government?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))))) (val-val1 (String (string-s \"1\"))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.GovernmentForm = \"1\" GROUP BY countrylanguage.Language HAVING Count(*) = 1", "inferred_code_readable": "", "score": -0.8532503643367306}]} {"index": 760, "beams": [{"question": "Find the city with the largest population that uses English.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Name FROM city WHERE city.Population = (SELECT Max(city.Population) FROM countrylanguage WHERE countrylanguage.Language = \"english\") AND city.Name = \"english\"", "inferred_code_readable": "", "score": -2.0299825909086024}]} {"index": 761, "beams": [{"question": "What is the most populace city that speaks English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Name FROM city WHERE city.Population = (SELECT Max(city.Population) FROM countrylanguage WHERE countrylanguage.Language = \"english\") AND city.CountryCode = \"english\"", "inferred_code_readable": "", "score": -2.030835354421285}]} {"index": 762, "beams": [{"question": "Find the name, population and expected life length of asian country with the largest area?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"bay\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Uniteda\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.Population, country.LifeExpectancy FROM country WHERE country.SurfaceArea = \"bay\" AND country.Continent = (SELECT Max(country.SurfaceArea) FROM country WHERE country.Continent = \"Uniteda\")", "inferred_code_readable": "", "score": -4.918713707220782}]} {"index": 763, "beams": [{"question": "What are the name, population, and life expectancy of the largest Asian country by land?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"yes\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.Population, country.LifeExpectancy FROM country WHERE country.Continent = \"yes\"", "inferred_code_readable": "", "score": -0.8090446491720726}]} {"index": 764, "beams": [{"question": "What is average life expectancy in the countries where English is not the official language?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"So\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.LifeExpectancy) FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"So\")", "inferred_code_readable": "", "score": -0.9585453054320467}]} {"index": 765, "beams": [{"question": "Give the mean life expectancy of countries in which English is not the official language.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.LifeExpectancy) FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"english\")", "inferred_code_readable": "", "score": -0.9414379956175978}]} {"index": 766, "beams": [{"question": "What is the total number of people living in the nations that do not use English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.Population) FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"USA\")", "inferred_code_readable": "", "score": -0.08440902279333784}]} {"index": 767, "beams": [{"question": "How many people live in countries that do not speak English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.Population) FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"USA\")", "inferred_code_readable": "", "score": -0.3374743389805346}]} {"index": 768, "beams": [{"question": "What is the official language spoken in the country whose head of state is Beatrix?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Robinrix\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.HeadOfState = \"Robinrix\"", "inferred_code_readable": "", "score": -1.663592487568664}]} {"index": 769, "beams": [{"question": "What is the official language used in the country the name of whose head of state is Beatrix.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Robinrix\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.HeadOfState = \"Robinrix\"", "inferred_code_readable": "", "score": -1.1411455496840759}]} {"index": 770, "beams": [{"question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1850))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.IndepYear < 1850", "inferred_code_readable": "", "score": -0.4126778535108784}]} {"index": 771, "beams": [{"question": "For the countries founded before 1930, what is the total number of distinct official languages?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1850))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.IndepYear < 1850", "inferred_code_readable": "", "score": -0.28650676938347175}]} {"index": 772, "beams": [{"question": "What are the countries that have greater surface area than any country in Europe?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Unitedy\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.SurfaceArea > (SELECT Max(country.SurfaceArea) FROM country WHERE country.Region = \"Unitedy\")", "inferred_code_readable": "", "score": -0.8573666597656242}]} {"index": 773, "beams": [{"question": "Which countries have greater area than that of any country in Europe?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United0\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.SurfaceArea > (SELECT Max(country.SurfaceArea) FROM country WHERE country.Continent = \"United0\")", "inferred_code_readable": "", "score": -1.822637286269341}]} {"index": 774, "beams": [{"question": "What are the African countries that have a population less than any country in Asia?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Australia\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Population < (SELECT Min(country.Population) FROM country WHERE country.Continent = \"Australia\")", "inferred_code_readable": "", "score": -0.9317240534245528}]} {"index": 775, "beams": [{"question": "Which African countries have a smaller population than that of any country in Asia?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Canada\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Population < (SELECT Min(country.Population) FROM country WHERE country.Continent = \"Canada\")", "inferred_code_readable": "", "score": -0.8409637979275857}]} {"index": 776, "beams": [{"question": "Which Asian countries have a population that is larger than any country in Africa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Australia\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Population > (SELECT Max(country.Population) FROM country WHERE country.Continent = \"Australia\")", "inferred_code_readable": "", "score": -0.7820404490319603}]} {"index": 777, "beams": [{"question": "What are the Asian countries which have a population larger than that of any country in Africa?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Australia\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Population > (SELECT country.Population FROM country WHERE country.Continent = \"Australia\")", "inferred_code_readable": "", "score": -0.6883321387736103}]} {"index": 778, "beams": [{"question": "What are the country codes for countries that do not speak English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Code FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"english\")", "inferred_code_readable": "", "score": -0.2081208463877644}]} {"index": 779, "beams": [{"question": "Return the country codes for countries that do not speak English.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Code FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"english\")", "inferred_code_readable": "", "score": -0.131110180121901}]} {"index": 780, "beams": [{"question": "What are the country codes of countries where people use languages other than English?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language != \"english\"", "inferred_code_readable": "", "score": -0.3069627836344253}]} {"index": 781, "beams": [{"question": "Give the country codes for countries in which people speak langauges that are not English.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language != \"english\"", "inferred_code_readable": "", "score": -0.6073049041397454}]} {"index": 782, "beams": [{"question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"USA\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Code FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"USA\")", "inferred_code_readable": "", "score": -0.807856893002338}]} {"index": 783, "beams": [{"question": "Return the codes of countries that do not speak English and do not have Republics for governments.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Code FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"english\")", "inferred_code_readable": "", "score": -0.235184563486591}]} {"index": 784, "beams": [{"question": "Which cities are in European countries where English is not the official language?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Name FROM city WHERE city.CountryCode NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"United\")", "inferred_code_readable": "", "score": -0.5536429596289025}]} {"index": 785, "beams": [{"question": "What are the names of cities in Europe for which English is not the official language?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Unitedta\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Name FROM city WHERE city.CountryCode NOT IN (SELECT country.Code FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Continent != \"Unitedta\")", "inferred_code_readable": "", "score": -2.307730283950278}]} {"index": 786, "beams": [{"question": "Which unique cities are in Asian countries where Chinese is the official language ?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT city.Name FROM city JOIN country ON city.CountryCode = country.Code JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Region = \"China\" AND countrylanguage.Language = \"China\"", "inferred_code_readable": "", "score": -0.11352762807651118}]} {"index": 787, "beams": [{"question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3)) (Table (table-table_id 3))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"China\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT city.Name FROM city JOIN country ON city.CountryCode = country.Code JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE country.Continent = \"China\" AND countrylanguage.Language = \"China\"", "inferred_code_readable": "", "score": -2.0720110057917367}]} {"index": 788, "beams": [{"question": "What are the name, independence year, and surface area of the country with the smallest population?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.IndepYear, country.SurfaceArea FROM country ORDER BY country.Population Asc LIMIT 1", "inferred_code_readable": "", "score": -3.4928183843874194e-05}]} {"index": 789, "beams": [{"question": "Give the name, year of independence, and surface area of the country that has the lowest population.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.IndepYear, country.SurfaceArea FROM country ORDER BY country.Population Asc LIMIT 1", "inferred_code_readable": "", "score": -0.005426180514390921}]} {"index": 790, "beams": [{"question": "What are the population, name and leader of the country with the largest area?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Population, country.Name, country.HeadOfState FROM country WHERE country.SurfaceArea = (SELECT Max(country.SurfaceArea) FROM country)", "inferred_code_readable": "", "score": -0.2410044711816397}]} {"index": 791, "beams": [{"question": "Give the name, population, and head of state for the country that has the largest area.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.Population, country.HeadOfState FROM country WHERE country.SurfaceArea = (SELECT Max(country.SurfaceArea) FROM country)", "inferred_code_readable": "", "score": -0.0029585571644261677}]} {"index": 792, "beams": [{"question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, Count(*) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY country.Code HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.012316149372828988}]} {"index": 793, "beams": [{"question": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, Count(*) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY country.Name HAVING Count(*) > 2", "inferred_code_readable": "", "score": -0.0005155136278673922}]} {"index": 794, "beams": [{"question": "Find the number of cities in each district whose population is greater than the average population of cities?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), city.District FROM city WHERE city.Population > (SELECT Avg(city.Population) FROM city) GROUP BY city.District", "inferred_code_readable": "", "score": -0.00022398080569985268}]} {"index": 795, "beams": [{"question": "How many cities in each district have a population that is above the average population across all cities?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), city.District FROM city WHERE city.Population > (SELECT Avg(city.Population) FROM city) GROUP BY city.District", "inferred_code_readable": "", "score": -0.0010149277738804585}]} {"index": 796, "beams": [{"question": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Avg)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (Number (object-f 180))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.GovernmentForm, Sum(country.Population) FROM country GROUP BY country.GovernmentForm HAVING Avg(country.LifeExpectancy) >= 180", "inferred_code_readable": "", "score": -0.9246455575690788}]} {"index": 797, "beams": [{"question": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 19) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Avg)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (Number (object-f 180))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.GovernmentForm, Sum(country.Population) FROM country GROUP BY country.GovernmentForm HAVING Avg(country.LifeExpectancy) >= 180", "inferred_code_readable": "", "score": -0.8320304637953484}]} {"index": 798, "beams": [{"question": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (Number (object-f 70))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(country.Continent), Avg(country.Population) FROM country WHERE country.LifeExpectancy < 70 GROUP BY country.Continent", "inferred_code_readable": "", "score": -1.8816401301224062}]} {"index": 799, "beams": [{"question": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 70))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Continent, Sum(country.Population), country.LifeExpectancy FROM country WHERE country.Continent < 70 GROUP BY country.Continent", "inferred_code_readable": "", "score": -1.084239272510409}]} {"index": 800, "beams": [{"question": "What are the names and areas of countries with the top 5 largest area?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 5) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.SurfaceArea FROM country ORDER BY country.SurfaceArea Desc LIMIT 5", "inferred_code_readable": "", "score": -0.08619955544267555}]} {"index": 801, "beams": [{"question": "Return the names and surface areas of the 5 largest countries.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 5) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name, country.SurfaceArea FROM country ORDER BY country.SurfaceArea Desc LIMIT 5", "inferred_code_readable": "", "score": -0.00876349124567355}]} {"index": 802, "beams": [{"question": "What are names of countries with the top 3 largest population?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Desc LIMIT 3", "inferred_code_readable": "", "score": -9.65593032731249e-06}]} {"index": 803, "beams": [{"question": "Return the names of the 3 most populated countries.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Desc LIMIT 3", "inferred_code_readable": "", "score": -1.1086431136675401e-05}]} {"index": 804, "beams": [{"question": "What are the names of the nations with the 3 lowest populations?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Asc LIMIT 3", "inferred_code_readable": "", "score": -2.5629902872026378e-05}]} {"index": 805, "beams": [{"question": "Return the names of the 3 countries with the fewest people.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 3) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Asc LIMIT 3", "inferred_code_readable": "", "score": -2.6583542378944003e-05}]} {"index": 806, "beams": [{"question": "how many countries are in Asia?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country WHERE country.Continent = \"East\"", "inferred_code_readable": "", "score": -0.5393935559860452}]} {"index": 807, "beams": [{"question": "Count the number of countries in Asia.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (String (string-s \"East\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country WHERE country.Continent = \"East\"", "inferred_code_readable": "", "score": -0.42674930392902155}]} {"index": 808, "beams": [{"question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8000))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (String (string-s \"UnitedI\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Continent > 8000 AND country.Population = \"UnitedI\"", "inferred_code_readable": "", "score": -1.6430142310276707}]} {"index": 809, "beams": [{"question": "Give the names of countries that are in Europe and have a population equal to 80000.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 8000))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Unitedsa\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country WHERE country.Continent > 8000 AND country.Population = \"Unitedsa\"", "inferred_code_readable": "", "score": -3.0527758237892897}]} {"index": 810, "beams": [{"question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NorthAmericaAmerica\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.Population), Avg(country.SurfaceArea) FROM country WHERE country.Continent > 3000 AND country.SurfaceArea = \"NorthAmericaAmerica\"", "inferred_code_readable": "", "score": -0.9812786499004744}]} {"index": 811, "beams": [{"question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (And (cond-left (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3000))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))) (val-val1 (String (string-s \"NorthAmerica\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(country.Population), Avg(country.SurfaceArea) FROM country WHERE country.Region > 3000 AND country.SurfaceArea = \"NorthAmerica\"", "inferred_code_readable": "", "score": -0.5610254885502854}]} {"index": 812, "beams": [{"question": "What are the cities whose population is between 160000 and 900000?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200000))) (val-val2 (Number (object-f 70000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Name FROM city WHERE city.Population BETWEEN 200000 AND 70000", "inferred_code_readable": "", "score": -0.4656277335669188}]} {"index": 813, "beams": [{"question": "Return the names of cities that have a population between 160000 and 900000 .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Between (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200000))) (val-val2 (Number (object-f 70000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT city.Name FROM city WHERE city.Population BETWEEN 200000 AND 70000", "inferred_code_readable": "", "score": -0.9846777197112644}]} {"index": 814, "beams": [{"question": "Which language is spoken by the largest number of countries?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM countrylanguage GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -6.222551998291692e-05}]} {"index": 815, "beams": [{"question": "Give the language that is spoken in the most countries.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.Language FROM countrylanguage GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -8.022497624438074e-05}]} {"index": 816, "beams": [{"question": "What is the language spoken by the largest percentage of people in each country?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode GROUP BY countrylanguage.Language ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.5537885364084687}]} {"index": 817, "beams": [{"question": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 26) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.CountryCode, countrylanguage.Language FROM countrylanguage GROUP BY countrylanguage.CountryCode ORDER BY Sum(countrylanguage.Percentage) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.10604450152930411}]} {"index": 818, "beams": [{"question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"bangla\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Spring\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM countrylanguage WHERE countrylanguage.Language = \"bangla\" AND countrylanguage.Percentage = \"Spring\"", "inferred_code_readable": "", "score": -2.5797681889097674}]} {"index": 819, "beams": [{"question": "Count the number of countries for which Spanish is the predominantly spoken language.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"english\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM country JOIN countrylanguage ON country.Code = countrylanguage.CountryCode WHERE countrylanguage.Language = \"english\"", "inferred_code_readable": "", "score": -0.632227139308938}]} {"index": 820, "beams": [{"question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"bangla\"))))) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"bangla\" ORDER BY countrylanguage.Percentage Desc LIMIT 1", "inferred_code_readable": "", "score": -0.7982261385603948}]} {"index": 821, "beams": [{"question": "Return the codes of countries for which Spanish is the predominantly spoken language.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))) (val-val1 (String (string-s \"bangla\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = \"bangla\"", "inferred_code_readable": "", "score": -0.9124663566900608}]} {"index": 822, "beams": [{"question": "How many conductors are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM conductor", "inferred_code_readable": "", "score": -2.384184959680624e-06}]} {"index": 823, "beams": [{"question": "Count the number of conductors.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM conductor", "inferred_code_readable": "", "score": -1.668929584752732e-06}]} {"index": 824, "beams": [{"question": "List the names of conductors in ascending order of age.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Age Asc", "inferred_code_readable": "", "score": -2.622603666679879e-06}]} {"index": 825, "beams": [{"question": "What are the names of conductors, ordered by age?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Age Asc", "inferred_code_readable": "", "score": -0.0002470906763036851}]} {"index": 826, "beams": [{"question": "What are the names of conductors whose nationalities are not \"USA\"?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor WHERE conductor.Nationality != \"United\"", "inferred_code_readable": "", "score": -0.09370358309698901}]} {"index": 827, "beams": [{"question": "Return the names of conductors that do not have the nationality \"USA\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))) (val-val1 (String (string-s \"United\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor WHERE conductor.Nationality != \"United\"", "inferred_code_readable": "", "score": -0.06221542326144913}]} {"index": 828, "beams": [{"question": "What are the record companies of orchestras in descending order of years in which they were founded?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company FROM orchestra ORDER BY orchestra.Year_of_Founded Desc", "inferred_code_readable": "", "score": -1.8119666329141637e-05}]} {"index": 829, "beams": [{"question": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company FROM orchestra ORDER BY orchestra.Year_of_Founded Desc", "inferred_code_readable": "", "score": -2.0146182478697483e-05}]} {"index": 830, "beams": [{"question": "What is the average attendance of shows?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(show.Attendance) FROM show", "inferred_code_readable": "", "score": -1.7881389879903509e-06}]} {"index": 831, "beams": [{"question": "Return the average attendance across all shows.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(show.Attendance) FROM show", "inferred_code_readable": "", "score": -1.192092724977556e-06}]} {"index": 832, "beams": [{"question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (String (string-s \"nfinalfinal\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(performance.Share), Min(performance.Share) FROM performance WHERE performance.Type != \"nfinalfinal\"", "inferred_code_readable": "", "score": -1.4421726648145992}]} {"index": 833, "beams": [{"question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Min)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 18) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 14) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Aerfinal\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Max(performance.Share), Min(performance.Share) FROM performance WHERE performance.Type != \"Aerfinal\"", "inferred_code_readable": "", "score": -2.78646390473385}]} {"index": 834, "beams": [{"question": "How many different nationalities do conductors have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT conductor.Nationality) FROM conductor", "inferred_code_readable": "", "score": -1.2278528167541936e-05}]} {"index": 835, "beams": [{"question": "Count the number of different nationalities of conductors.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT conductor.Nationality) FROM conductor", "inferred_code_readable": "", "score": -1.2755362703842366e-05}]} {"index": 836, "beams": [{"question": "List names of conductors in descending order of years of work.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc", "inferred_code_readable": "", "score": -2.264975172749928e-06}]} {"index": 837, "beams": [{"question": "What are the names of conductors, sorted descending by the number of years they have worked?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc", "inferred_code_readable": "", "score": -2.8610216702418256e-06}]} {"index": 838, "beams": [{"question": "List the name of the conductor with the most years of work.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc LIMIT 1", "inferred_code_readable": "", "score": -3.0994402138162513e-06}]} {"index": 839, "beams": [{"question": "What is the name of the conductor who has worked the greatest number of years?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc LIMIT 1", "inferred_code_readable": "", "score": -7.0333379298404e-06}]} {"index": 840, "beams": [{"question": "Show the names of conductors and the orchestras they have conducted.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name, orchestra.Orchestra FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID", "inferred_code_readable": "", "score": -0.36512064115144227}]} {"index": 841, "beams": [{"question": "What are the names of conductors as well as the corresonding orchestras that they have conducted?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name, orchestra.Orchestra FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID", "inferred_code_readable": "", "score": -0.028465771082871072}]} {"index": 842, "beams": [{"question": "Show the names of conductors that have conducted more than one orchestras.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID GROUP BY orchestra.Conductor_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.00042828724591004175}]} {"index": 843, "beams": [{"question": "What are the names of conductors who have conducted at more than one orchestra?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID GROUP BY orchestra.Conductor_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.05362781456192778}]} {"index": 844, "beams": [{"question": "Show the name of the conductor that has conducted the most number of orchestras.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID GROUP BY orchestra.Conductor_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -3.7431535886867096e-05}]} {"index": 845, "beams": [{"question": "What is the name of the conductor who has conducted the most orchestras?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID GROUP BY orchestra.Conductor_ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -3.552421163988129e-05}]} {"index": 846, "beams": [{"question": "Please show the name of the conductor that has conducted orchestras founded after 2008.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2008))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID WHERE orchestra.Year_of_Founded > 2008", "inferred_code_readable": "", "score": -0.1955829352462004}]} {"index": 847, "beams": [{"question": "What are the names of conductors who have conducted orchestras founded after the year 2008?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2008))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra ON conductor.Conductor_ID = orchestra.Conductor_ID WHERE orchestra.Year_of_Founded > 2008", "inferred_code_readable": "", "score": -0.08119903690434427}]} {"index": 848, "beams": [{"question": "Please show the different record companies and the corresponding number of orchestras.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company, Count(*) FROM orchestra GROUP BY orchestra.Record_Company", "inferred_code_readable": "", "score": -4.2915323277270545e-06}]} {"index": 849, "beams": [{"question": "How many orchestras does each record company manage?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company, Count(*) FROM orchestra GROUP BY orchestra.Record_Company", "inferred_code_readable": "", "score": -5.60282942529966e-06}]} {"index": 850, "beams": [{"question": "Please show the record formats of orchestras in ascending order of count.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Major_Record_Format FROM orchestra GROUP BY orchestra.Major_Record_Format ORDER BY Count(*) Asc", "inferred_code_readable": "", "score": -0.000440145632772726}]} {"index": 851, "beams": [{"question": "What are the major record formats of orchestras, sorted by their frequency?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Major_Record_Format FROM orchestra GROUP BY orchestra.Major_Record_Format ORDER BY Count(*) Asc", "inferred_code_readable": "", "score": -0.13313911854775995}]} {"index": 852, "beams": [{"question": "List the record company shared by the most number of orchestras.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company FROM orchestra GROUP BY orchestra.Record_Company ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -7.510181390557591e-06}]} {"index": 853, "beams": [{"question": "What is the record company used by the greatest number of orchestras?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company FROM orchestra GROUP BY orchestra.Record_Company ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -7.152551177114219e-06}]} {"index": 854, "beams": [{"question": "List the names of orchestras that have no performance.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Orchestra FROM orchestra WHERE orchestra.Orchestra_ID NOT IN (SELECT performance.Orchestra_ID FROM performance)", "inferred_code_readable": "", "score": -1.6212436335649727e-05}]} {"index": 855, "beams": [{"question": "What are the orchestras that do not have any performances?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Orchestra FROM orchestra WHERE orchestra.Orchestra_ID NOT IN (SELECT performance.Orchestra_ID FROM performance)", "inferred_code_readable": "", "score": -1.3947473291864299e-05}]} {"index": 856, "beams": [{"question": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2003))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2003))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company FROM orchestra WHERE orchestra.Year_of_Founded < 2003 INTERSECT SELECT orchestra.Record_Company FROM orchestra WHERE orchestra.Year_of_Founded > 2003", "inferred_code_readable": "", "score": -1.0885519981047906}]} {"index": 857, "beams": [{"question": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2003))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1990))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Record_Company FROM orchestra WHERE orchestra.Year_of_Founded < 2003 INTERSECT SELECT orchestra.Record_Company FROM orchestra WHERE orchestra.Year_of_Founded > 1990", "inferred_code_readable": "", "score": -0.8397751152363213}]} {"index": 858, "beams": [{"question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CV\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Jaing\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM orchestra WHERE orchestra.Major_Record_Format = \"CV\" OR orchestra.Major_Record_Format = \"Jaing\"", "inferred_code_readable": "", "score": -0.7400470535865651}]} {"index": 859, "beams": [{"question": "Count the number of orchestras that have CD or DVD as their record format.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"CV\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Jaing\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM orchestra WHERE orchestra.Major_Record_Format = \"CV\" OR orchestra.Major_Record_Format = \"Jaing\"", "inferred_code_readable": "", "score": -1.3223197328253704}]} {"index": 860, "beams": [{"question": "Show the years in which orchestras that have given more than one performance are founded.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Year_of_Founded FROM orchestra JOIN performance ON orchestra.Orchestra_ID = performance.Orchestra_ID GROUP BY performance.Orchestra_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.0015279766820910368}]} {"index": 861, "beams": [{"question": "What are years of founding for orchestras that have had more than a single performance?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT orchestra.Year_of_Founded FROM orchestra JOIN performance ON orchestra.Orchestra_ID = performance.Orchestra_ID GROUP BY performance.Orchestra_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.00016057073137432099}]} {"index": 862, "beams": [{"question": "How many high schoolers are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler", "inferred_code_readable": "", "score": -1.5497203449399422e-06}]} {"index": 863, "beams": [{"question": "Count the number of high schoolers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler", "inferred_code_readable": "", "score": -1.07288342121592e-06}]} {"index": 864, "beams": [{"question": "Show the names and grades of each high schooler.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name, Highschooler.grade FROM Highschooler", "inferred_code_readable": "", "score": -0.002580652711600351}]} {"index": 865, "beams": [{"question": "What are the names and grades for each high schooler?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name, Highschooler.grade FROM Highschooler", "inferred_code_readable": "", "score": -0.012346537783109568}]} {"index": 866, "beams": [{"question": "Show all the grades of the high schoolers.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Highschooler.grade FROM Highschooler", "inferred_code_readable": "", "score": -1.573558087386573e-05}]} {"index": 867, "beams": [{"question": "What is the grade of each high schooler?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Highschooler.grade FROM Highschooler", "inferred_code_readable": "", "score": -0.001988500952293748}]} {"index": 868, "beams": [{"question": "What grade is Kyle in?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kne\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.name = \"Kne\"", "inferred_code_readable": "", "score": -0.2568337246737187}]} {"index": 869, "beams": [{"question": "Return the grade for the high schooler named Kyle.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kne\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.name = \"Kne\"", "inferred_code_readable": "", "score": -1.2260530069420952}]} {"index": 870, "beams": [{"question": "Show the names of all high schoolers in grade 10.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade = 10", "inferred_code_readable": "", "score": -0.0001276685817543921}]} {"index": 871, "beams": [{"question": "What are the names of all high schoolers in grade 10?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade = 10", "inferred_code_readable": "", "score": -0.00013792109768218097}]} {"index": 872, "beams": [{"question": "Show the ID of the high schooler named Kyle.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kne\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.ID FROM Highschooler WHERE Highschooler.name = \"Kne\"", "inferred_code_readable": "", "score": -0.6559027656906196}]} {"index": 873, "beams": [{"question": "What is Kyle's id?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"King\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.ID FROM Highschooler WHERE Highschooler.name = \"King\"", "inferred_code_readable": "", "score": -0.6796684069014702}]} {"index": 874, "beams": [{"question": "How many high schoolers are there in grade 9 or 10?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2009))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler WHERE Highschooler.grade = 2009 OR Highschooler.grade = 10", "inferred_code_readable": "", "score": -0.14407812961214717}]} {"index": 875, "beams": [{"question": "Count the number of high schoolers in grades 9 or 10.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2009))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 10))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler WHERE Highschooler.grade = 2009 OR Highschooler.grade = 10", "inferred_code_readable": "", "score": -0.18253130597724265}]} {"index": 876, "beams": [{"question": "Show the number of high schoolers for each grade.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade, Count(*) FROM Highschooler GROUP BY Highschooler.grade", "inferred_code_readable": "", "score": -1.1324841160842425e-05}]} {"index": 877, "beams": [{"question": "How many high schoolers are in each grade?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade", "inferred_code_readable": "", "score": -1.5139529544683228e-05}]} {"index": 878, "beams": [{"question": "Which grade has the most high schoolers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -1.5854766317602298e-05}]} {"index": 879, "beams": [{"question": "Return the grade that has the greatest number of high schoolers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -5.638493239246145e-05}]} {"index": 880, "beams": [{"question": "Show me all grades that have at least 4 students.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade HAVING Count(*) >= 4", "inferred_code_readable": "", "score": -4.8160394705121234e-05}]} {"index": 881, "beams": [{"question": "Which grades have 4 or more high schoolers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 4))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade HAVING Count(*) >= 4", "inferred_code_readable": "", "score": -0.0002503298792007058}]} {"index": 882, "beams": [{"question": "Show the student IDs and numbers of friends corresponding to each.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Friend.student_id, Count(*) FROM Friend GROUP BY Friend.student_id", "inferred_code_readable": "", "score": -0.5426203608370699}]} {"index": 883, "beams": [{"question": "How many friends does each student have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), Friend.student_id FROM Friend GROUP BY Friend.student_id", "inferred_code_readable": "", "score": -0.0002881104497589604}]} {"index": 884, "beams": [{"question": "Show the names of high school students and their corresponding number of friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name, Count(*) FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id GROUP BY Highschooler.name", "inferred_code_readable": "", "score": -2.539150283098479e-05}]} {"index": 885, "beams": [{"question": "What are the names of the high schoolers and how many friends does each have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name, Count(*) FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id GROUP BY Highschooler.name", "inferred_code_readable": "", "score": -8.713992842501739e-05}]} {"index": 886, "beams": [{"question": "What is the name of the high schooler who has the greatest number of friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id GROUP BY Highschooler.ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.8888428195699092}]} {"index": 887, "beams": [{"question": "Return the name of the high school student with the most friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id GROUP BY Highschooler.ID ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.40730813144215006}]} {"index": 888, "beams": [{"question": "Show the names of high schoolers who have at least 3 friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id GROUP BY Highschooler.ID HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.1409042101780429}]} {"index": 889, "beams": [{"question": "What are the names of high schoolers who have 3 or more friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 3))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id GROUP BY Highschooler.ID HAVING Count(*) >= 3", "inferred_code_readable": "", "score": -0.01731857887761379}]} {"index": 890, "beams": [{"question": "Show the names of all of the high schooler Kyle's friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kim\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Highschooler.name = \"Kim\"", "inferred_code_readable": "", "score": -1.337845549526051}]} {"index": 891, "beams": [{"question": "Return the names of friends of the high school student Kyle.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Carole\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Highschooler.name = \"Carole\"", "inferred_code_readable": "", "score": -0.7054251423485809}]} {"index": 892, "beams": [{"question": "How many friends does the high school student Kyle have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Carole\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Highschooler.name = \"Carole\"", "inferred_code_readable": "", "score": -1.0022567797940667}]} {"index": 893, "beams": [{"question": "Count the number of friends Kyle has.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kne\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Highschooler.name = \"Kne\"", "inferred_code_readable": "", "score": -0.2445900736212181}]} {"index": 894, "beams": [{"question": "Show ids of all students who do not have any friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Highschooler.ID FROM Highschooler EXCEPT SELECT Friend.student_id FROM Friend", "inferred_code_readable": "", "score": -6.031885882151755e-05}]} {"index": 895, "beams": [{"question": "What are the ids of high school students who do not have friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Highschooler.ID FROM Highschooler EXCEPT SELECT Friend.student_id FROM Friend", "inferred_code_readable": "", "score": -9.059899369390223e-06}]} {"index": 896, "beams": [{"question": "Show names of all high school students who do not have any friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend)", "inferred_code_readable": "", "score": -0.0003710577132238768}]} {"index": 897, "beams": [{"question": "What are the names of students who have no friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend)", "inferred_code_readable": "", "score": -0.4797247648078482}]} {"index": 898, "beams": [{"question": "Show the ids of high schoolers who have friends and are also liked by someone else.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Friend.student_id FROM Friend INTERSECT SELECT Likes.student_id FROM Likes", "inferred_code_readable": "", "score": -0.06993068344194597}]} {"index": 899, "beams": [{"question": "What are the ids of students who both have friends and are liked?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Friend.student_id FROM Friend INTERSECT SELECT Likes.student_id FROM Likes", "inferred_code_readable": "", "score": -0.0016075359347667018}]} {"index": 900, "beams": [{"question": "Show name of all students who have some friends and also are liked by someone else.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id INTERSECT SELECT Highschooler.name FROM Highschooler JOIN Likes", "inferred_code_readable": "", "score": -0.6149732460130934}]} {"index": 901, "beams": [{"question": "What are the names of high schoolers who both have friends and are liked?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id INTERSECT SELECT Highschooler.name FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.student_id", "inferred_code_readable": "", "score": -0.4613154080867048}]} {"index": 902, "beams": [{"question": "Count the number of likes for each student id.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), Likes.student_id FROM Likes GROUP BY Likes.student_id", "inferred_code_readable": "", "score": -7.474280383945597e-05}]} {"index": 903, "beams": [{"question": "How many likes correspond to each student id?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*), Likes.student_id FROM Likes GROUP BY Likes.student_id", "inferred_code_readable": "", "score": -5.090195789136942e-05}]} {"index": 904, "beams": [{"question": "Show the names of high schoolers who have likes, and numbers of likes for each.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name, Count(*) FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id GROUP BY Highschooler.name", "inferred_code_readable": "", "score": -0.6097297634144354}]} {"index": 905, "beams": [{"question": "What are the names of high schoolers who have likes, and how many likes does each have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name, Count(*) FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id GROUP BY Highschooler.name", "inferred_code_readable": "", "score": -0.010987929560364762}]} {"index": 906, "beams": [{"question": "What is the name of the high schooler who has the greatest number of likes?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id GROUP BY Likes.student_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0784965999453604}]} {"index": 907, "beams": [{"question": "Give the name of the student with the most likes.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2)) (Table (table-table_id 0))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id GROUP BY Likes.student_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -1.0351057672978783}]} {"index": 908, "beams": [{"question": "Show the names of students who have at least 2 likes.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id GROUP BY Likes.student_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.000208602293326976}]} {"index": 909, "beams": [{"question": "What are the names of students who have 2 or more likes?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id GROUP BY Likes.student_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.00013851530473374396}]} {"index": 910, "beams": [{"question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Highschooler.grade > 5 GROUP BY Highschooler.name HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.16012834564149614}]} {"index": 911, "beams": [{"question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5))))) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Highschooler.grade > 5 GROUP BY Highschooler.name HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.23186122509979867}]} {"index": 912, "beams": [{"question": "How many likes does Kyle have?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kne\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id WHERE Highschooler.name = \"Kne\"", "inferred_code_readable": "", "score": -1.3950186352866396}]} {"index": 913, "beams": [{"question": "Return the number of likes that the high schooler named Kyle has.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Kne\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Highschooler JOIN Likes ON Highschooler.ID = Likes.liked_id WHERE Highschooler.name = \"Kne\"", "inferred_code_readable": "", "score": -1.309330008528903}]} {"index": 914, "beams": [{"question": "Find the average grade of all students who have some friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Highschooler.grade) FROM Highschooler WHERE Highschooler.ID IN (SELECT Friend.friend_id FROM Friend)", "inferred_code_readable": "", "score": -0.002233910484356727}]} {"index": 915, "beams": [{"question": "What is the average grade of students who have friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (cond?-where (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Highschooler.grade) FROM Highschooler JOIN Friend ON Highschooler.ID = Friend.student_id WHERE Friend.friend_id IN (SELECT Friend.friend_id FROM Friend)", "inferred_code_readable": "", "score": -1.0350911051098706}]} {"index": 916, "beams": [{"question": "Find the minimum grade of students who have no friends.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend)", "inferred_code_readable": "", "score": -0.0004993752345754388}]} {"index": 917, "beams": [{"question": "What is the lowest grade of students who do not have any friends?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend)", "inferred_code_readable": "", "score": -0.034477010021362275}]} {"index": 918, "beams": [{"question": "Which states have both owners and professionals living there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False))))) (val-val1 (Number (object-f 0))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.state FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id JOIN Professionals JOIN Treatments ON Dogs.dog_id = Treatments.dog_id AND Treatments.professional_id = Professionals.professional_id WHERE Professionals.role_code = 0 INTERSECT SELECT Professionals.state FROM Professionals", "inferred_code_readable": "", "score": -0.5456301853383607}]} {"index": 919, "beams": [{"question": "Find the states where both owners and professionals live.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.state FROM Owners INTERSECT SELECT Professionals.state FROM Professionals", "inferred_code_readable": "", "score": -0.11929007737203534}]} {"index": 920, "beams": [{"question": "What is the average age of the dogs who have gone through any treatments?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "inferred_code_readable": "", "score": -0.0006726659558893289}]} {"index": 921, "beams": [{"question": "Find the average age of the dogs who went through treatments.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "inferred_code_readable": "", "score": -0.3117219103203368}]} {"index": 922, "beams": [{"question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"James\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))", "inferred_code": "SELECT Professionals.professional_id, Professionals.last_name, Professionals.cell_number FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id WHERE Professionals.state = \"James\" UNION SELECT Professionals.professional_id, Professionals.last_name, Professionals.cell_number FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id GROUP BY Professionals.professional_id HAVING Count(*) > 2", "inferred_code_readable": "", "score": -3.418789349719404}]} {"index": 923, "beams": [{"question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"James\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))", "inferred_code": "SELECT Professionals.professional_id, Professionals.last_name, Professionals.cell_number FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id WHERE Professionals.state = \"James\" UNION SELECT Professionals.professional_id, Professionals.cell_number, Professionals.cell_number FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id GROUP BY Professionals.professional_id HAVING Count(*) > 2", "inferred_code_readable": "", "score": -3.0173520502277142}]} {"index": 924, "beams": [{"question": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Dogs.name FROM Dogs EXCEPT SELECT Dogs.name FROM Dogs JOIN Treatments ON Dogs.dog_id = Treatments.dog_id WHERE Treatments.cost_of_treatment > 1000", "inferred_code_readable": "", "score": -0.020629382392293394}]} {"index": 925, "beams": [{"question": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Dogs.name FROM Dogs EXCEPT SELECT Dogs.name FROM Dogs JOIN Treatments ON Dogs.dog_id = Treatments.dog_id WHERE Treatments.cost_of_treatment > 1000", "inferred_code_readable": "", "score": -0.19046670486504524}]} {"index": 926, "beams": [{"question": "Which first names are used for professionals or owners but are not used as dog names?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Professionals.first_name FROM Dogs JOIN Professionals JOIN Treatments ON Dogs.dog_id = Treatments.dog_id AND Treatments.professional_id = Professionals.professional_id EXCEPT SELECT Owners.first_name FROM Professionals JOIN Dogs", "inferred_code_readable": "", "score": -3.300741529067203}]} {"index": 927, "beams": [{"question": "Find the first names that are used for professionals or owners but are not used as dog names.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Professionals.first_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id JOIN Professionals JOIN Treatments ON Dogs.dog_id = Treatments.dog_id AND Treatments.professional_id = Professionals.professional_id EXCEPT SELECT Owners.first_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id", "inferred_code_readable": "", "score": -1.2269668325088858}]} {"index": 928, "beams": [{"question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Professionals.professional_id, Professionals.role_code, Professionals.email_address FROM Professionals EXCEPT SELECT Professionals.professional_id, Professionals.role_code, Professionals.email_address FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id", "inferred_code_readable": "", "score": -0.0171917757992901}]} {"index": 929, "beams": [{"question": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-union))", "inferred_code": "SELECT Professionals.professional_id, Professionals.role_code, Professionals.email_address FROM Professionals EXCEPT SELECT Professionals.professional_id, Professionals.role_code, Professionals.email_address FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id", "inferred_code_readable": "", "score": -0.08942598785718303}]} {"index": 930, "beams": [{"question": "Which owner owns the most dogs? List the owner id, first name and last name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.owner_id, Owners.first_name, Owners.last_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id GROUP BY Owners.owner_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.002106739183275863}]} {"index": 931, "beams": [{"question": "Return the owner id, first name and last name of the owner who has the most dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.owner_id, Owners.first_name, Owners.last_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id GROUP BY Owners.owner_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.000982228854248035}]} {"index": 932, "beams": [{"question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.professional_id, Professionals.role_code, Professionals.first_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id GROUP BY Professionals.professional_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.004625776960082817}]} {"index": 933, "beams": [{"question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.professional_id, Professionals.role_code, Professionals.first_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id GROUP BY Professionals.professional_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.0014851875448798069}]} {"index": 934, "beams": [{"question": "What is the name of the breed with the most dogs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Breeds.breed_name FROM Breeds JOIN Dogs ON Breeds.breed_code = Dogs.breed_code GROUP BY Breeds.breed_code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0002161067972323849}]} {"index": 935, "beams": [{"question": "Which breed do the most dogs have? Give me the breed name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Breeds.breed_name FROM Breeds JOIN Dogs ON Breeds.breed_code = Dogs.breed_code GROUP BY Breeds.breed_code ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.3689842223548325}]} {"index": 936, "beams": [{"question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5)) (Table (table-table_id 7))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.owner_id, Owners.last_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id JOIN Treatments ON Dogs.dog_id = Treatments.dog_id GROUP BY Owners.owner_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.002150350625271358}]} {"index": 937, "beams": [{"question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5)) (Table (table-table_id 7))) (cond?-conds (And (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.owner_id, Owners.last_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id JOIN Treatments ON Dogs.dog_id = Treatments.dog_id GROUP BY Owners.owner_id ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0004678784922447221}]} {"index": 938, "beams": [{"question": "What is the description of the treatment type that costs the least money in total?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 49) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments ON Treatment_Types.treatment_type_code = Treatments.treatment_type_code GROUP BY Treatments.treatment_type_code ORDER BY Sum(Treatments.cost_of_treatment) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.07598989608704443}]} {"index": 939, "beams": [{"question": "Give me the description of the treatment type whose total cost is the lowest.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 49) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments ON Treatment_Types.treatment_type_code = Treatments.treatment_type_code GROUP BY Treatments.treatment_type_code ORDER BY Sum(Treatments.cost_of_treatment) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.019220245529908198}]} {"index": 940, "beams": [{"question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.owner_id, Owners.zip_code FROM Charges JOIN Owners JOIN Dogs GROUP BY Owners.owner_id ORDER BY Sum(Charges.charge_amount) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.06230575280574158}]} {"index": 941, "beams": [{"question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 16) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Sum)) (column-col_id 5) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.owner_id, Owners.zip_code FROM Charges JOIN Owners JOIN Dogs GROUP BY Owners.owner_id ORDER BY Sum(Charges.charge_amount) Desc LIMIT 1", "inferred_code_readable": "", "score": -0.7999796240602066}]} {"index": 942, "beams": [{"question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.professional_id, Professionals.cell_number FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id GROUP BY Professionals.professional_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.006323955618896093}]} {"index": 943, "beams": [{"question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6)) (Table (table-table_id 7))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Ge (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 2))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.professional_id, Professionals.cell_number FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id GROUP BY Professionals.professional_id HAVING Count(*) >= 2", "inferred_code_readable": "", "score": -0.0010790148371455643}]} {"index": 944, "beams": [{"question": "What are the first name and last name of the professionals who have done treatment with cost below average?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id WHERE Treatments.cost_of_treatment < (SELECT Avg(Treatments.cost_of_treatment) FROM Treatments)", "inferred_code_readable": "", "score": -0.007525652070640376}]} {"index": 945, "beams": [{"question": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id WHERE Treatments.cost_of_treatment < (SELECT Avg(Treatments.cost_of_treatment) FROM Treatments)", "inferred_code_readable": "", "score": -0.009191707163623164}]} {"index": 946, "beams": [{"question": "List the date of each treatment, together with the first name of the professional who operated it.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 48) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatments.date_of_treatment, Professionals.first_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id", "inferred_code_readable": "", "score": -2.980231442961667e-06}]} {"index": 947, "beams": [{"question": "What are the date and the operating professional's first name of each treatment?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 48) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatments.date_of_treatment, Professionals.first_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id", "inferred_code_readable": "", "score": -2.2649761604043306e-06}]} {"index": 948, "beams": [{"question": "List the cost of each treatment and the corresponding treatment type description.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatments.cost_of_treatment, Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments ON Treatment_Types.treatment_type_code = Treatments.treatment_type_code", "inferred_code_readable": "", "score": -6.556507429422709e-06}]} {"index": 949, "beams": [{"question": "What are the cost and treatment type description of each treatment?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 3))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 47) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatments.cost_of_treatment, Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments ON Treatment_Types.treatment_type_code = Treatments.treatment_type_code", "inferred_code_readable": "", "score": -6.7949258522048694e-06}]} {"index": 950, "beams": [{"question": "List each owner's first name, last name, and the size of his for her dog.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Owners.last_name, Dogs.size_code FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id", "inferred_code_readable": "", "score": -0.010820283473499615}]} {"index": 951, "beams": [{"question": "What are each owner's first name, last name, and the size of their dog?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Owners.last_name, Dogs.size_code FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id", "inferred_code_readable": "", "score": -4.422602237497131e-05}]} {"index": 952, "beams": [{"question": "List pairs of the owner's first name and the dogs's name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Dogs.name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id", "inferred_code_readable": "", "score": -0.0042354587907809105}]} {"index": 953, "beams": [{"question": "What are each owner's first name and their dogs's name?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Dogs.name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id", "inferred_code_readable": "", "score": -0.0018423608220103915}]} {"index": 954, "beams": [{"question": "List the names of the dogs of the rarest breed and the treatment dates of them.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 48) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.name, Treatments.date_of_treatment FROM Dogs JOIN Treatments ON Dogs.dog_id = Treatments.dog_id GROUP BY Dogs.breed_code ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.1558569737897102}]} {"index": 955, "beams": [{"question": "Which dogs are of the rarest breed? Show their names and treatment dates.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 48) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.name, Treatments.date_of_treatment FROM Dogs JOIN Treatments ON Dogs.dog_id = Treatments.dog_id GROUP BY Dogs.breed_code ORDER BY Count(*) Asc LIMIT 1", "inferred_code_readable": "", "score": -0.029715371303836946}]} {"index": 956, "beams": [{"question": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"s\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Dogs.name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id WHERE Owners.state = \"s\"", "inferred_code_readable": "", "score": -1.3406530190211825}]} {"index": 957, "beams": [{"question": "Find the first names of owners living in Virginia and the names of dogs they own.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"a\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Dogs.name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id WHERE Owners.state = \"a\"", "inferred_code_readable": "", "score": -2.585228711098118}]} {"index": 958, "beams": [{"question": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 30) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.date_arrived, Dogs.date_departed FROM Dogs JOIN Treatments ON Dogs.dog_id = Treatments.dog_id", "inferred_code_readable": "", "score": -0.003598596502470741}]} {"index": 959, "beams": [{"question": "Find the arriving date and the departing date of the dogs that received a treatment.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 30) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.date_arrived, Dogs.date_departed FROM Dogs JOIN Treatments ON Dogs.dog_id = Treatments.dog_id", "inferred_code_readable": "", "score": -0.16159179925682565}]} {"index": 960, "beams": [{"question": "List the last name of the owner owning the youngest dog.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.last_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id ORDER BY Dogs.age Asc LIMIT 1", "inferred_code_readable": "", "score": -0.0003338707432050114}]} {"index": 961, "beams": [{"question": "Who owns the youngest dog? Give me his or her last name.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4)) (Table (table-table_id 5))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.last_name FROM Owners JOIN Dogs ON Owners.owner_id = Dogs.owner_id ORDER BY Dogs.age Asc LIMIT 1", "inferred_code_readable": "", "score": -1.5139540543884777e-05}]} {"index": 962, "beams": [{"question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Jas\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"L\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.email_address FROM Professionals WHERE Professionals.state = \"Jas\" OR Professionals.state = \"L\"", "inferred_code_readable": "", "score": -2.2866076076020008}]} {"index": 963, "beams": [{"question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Jas\"))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Texas\"))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.email_address FROM Professionals WHERE Professionals.state = \"Jas\" OR Professionals.state = \"Texas\"", "inferred_code_readable": "", "score": -2.572309877542743}]} {"index": 964, "beams": [{"question": "What are the arriving date and the departing date of all the dogs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 30) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.date_arrived, Dogs.date_departed FROM Dogs", "inferred_code_readable": "", "score": -5.4836221536902485e-06}]} {"index": 965, "beams": [{"question": "List the arrival date and the departure date for all the dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 30) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 32) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.date_arrived, Dogs.date_departed FROM Dogs", "inferred_code_readable": "", "score": -5.12599553559312e-06}]} {"index": 966, "beams": [{"question": "How many dogs went through any treatments?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Treatments.dog_id) FROM Treatments", "inferred_code_readable": "", "score": -4.339175296763642e-05}]} {"index": 967, "beams": [{"question": "Count the number of dogs that went through a treatment.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Treatments.dog_id) FROM Treatments", "inferred_code_readable": "", "score": -1.7881342905923248e-05}]} {"index": 968, "beams": [{"question": "How many professionals have performed any treatment to dogs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct True))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(DISTINCT Treatments.professional_id) FROM Treatments", "inferred_code_readable": "", "score": -0.02136699906917272}]} {"index": 969, "beams": [{"question": "Find the number of professionals who have ever treated dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Treatments", "inferred_code_readable": "", "score": -0.5534205418071139}]} {"index": 970, "beams": [{"question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%M%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.role_code, Professionals.street, Professionals.state FROM Professionals WHERE Professionals.city LIKE \"%M%\"", "inferred_code_readable": "", "score": -1.41191137801259}]} {"index": 971, "beams": [{"question": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 34) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 36) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 38) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 37) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%London%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.role_code, Professionals.street, Professionals.state, Professionals.state FROM Professionals WHERE Professionals.city LIKE \"%London%\"", "inferred_code_readable": "", "score": -1.7433069209251855}]} {"index": 972, "beams": [{"question": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%Diana%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Owners.last_name, Owners.email_address FROM Owners WHERE Owners.state LIKE \"%Diana%\"", "inferred_code_readable": "", "score": -0.5542110030544123}]} {"index": 973, "beams": [{"question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 11) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 12) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 17) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Like (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"%Diana%\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Owners.first_name, Owners.last_name, Owners.email_address FROM Owners WHERE Owners.state LIKE \"%Diana%\"", "inferred_code_readable": "", "score": -0.7891023308668679}]} {"index": 974, "beams": [{"question": "How many dogs have an age below the average?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.age < (SELECT Avg(Dogs.age) FROM Dogs)", "inferred_code_readable": "", "score": -5.245205208836978e-06}]} {"index": 975, "beams": [{"question": "Count the number of dogs of an age below the average.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.age < (SELECT Avg(Dogs.age) FROM Dogs)", "inferred_code_readable": "", "score": -6.914127517632096e-06}]} {"index": 976, "beams": [{"question": "How much does the most recent treatment cost?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatments.cost_of_treatment FROM Treatments ORDER BY Treatments.cost_of_treatment Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0005450138918945413}]} {"index": 977, "beams": [{"question": "Show me the cost of the most recently performed treatment.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 49) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 48) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Treatments.cost_of_treatment FROM Treatments ORDER BY Treatments.date_of_treatment Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0002774818840975968}]} {"index": 978, "beams": [{"question": "How many dogs have not gone through any treatment?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.dog_id NOT IN (SELECT Treatments.dog_id FROM Treatments)", "inferred_code_readable": "", "score": -1.0967244747916993e-05}]} {"index": 979, "beams": [{"question": "Tell me the number of dogs that have not received any treatment .", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 20) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 45) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.dog_id NOT IN (SELECT Treatments.dog_id FROM Treatments)", "inferred_code_readable": "", "score": -8.463853454543369e-06}]} {"index": 980, "beams": [{"question": "How many owners temporarily do not have any dogs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Owners WHERE Owners.owner_id NOT IN (SELECT Dogs.owner_id FROM Dogs)", "inferred_code_readable": "", "score": -1.1801708325265281e-05}]} {"index": 981, "beams": [{"question": "Find the number of owners who do not own any dogs at this moment.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 4))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 21) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Owners WHERE Owners.owner_id NOT IN (SELECT Dogs.owner_id FROM Dogs)", "inferred_code_readable": "", "score": -1.0967246431903277e-05}]} {"index": 982, "beams": [{"question": "How many professionals did not operate any treatment on dogs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Professionals WHERE Professionals.professional_id NOT IN (SELECT Treatments.professional_id FROM Treatments)", "inferred_code_readable": "", "score": -0.000800659902701284}]} {"index": 983, "beams": [{"question": "Find the number of professionals who have not treated any dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Professionals WHERE Professionals.professional_id NOT IN (SELECT Treatments.professional_id FROM Treatments)", "inferred_code_readable": "", "score": -1.7046888295624285e-05}]} {"index": 984, "beams": [{"question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 29) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.name, Dogs.age, Dogs.weight FROM Dogs WHERE Dogs.abandoned_yn = 1", "inferred_code_readable": "", "score": -0.03222654005222836}]} {"index": 985, "beams": [{"question": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 25) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 29) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 22) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.name, Dogs.age, Dogs.weight FROM Dogs WHERE Dogs.abandoned_yn = 1", "inferred_code_readable": "", "score": -0.06475371100447802}]} {"index": 986, "beams": [{"question": "What is the average age of all the dogs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "inferred_code_readable": "", "score": -2.7418128993872415e-06}]} {"index": 987, "beams": [{"question": "Compute the average age of all the dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Avg)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "inferred_code_readable": "", "score": -2.026557503143067e-06}]} {"index": 988, "beams": [{"question": "What is the age of the oldest dog?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.age FROM Dogs ORDER BY Dogs.date_of_birth Desc LIMIT 1", "inferred_code_readable": "", "score": -0.005663231103106625}]} {"index": 989, "beams": [{"question": "Tell me the age of the oldest dog.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 26) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 27) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Dogs.age FROM Dogs ORDER BY Dogs.date_of_birth Desc LIMIT 1", "inferred_code_readable": "", "score": -0.0022814695047799205}]} {"index": 990, "beams": [{"question": "How much does each charge type costs? List both charge type and amount.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Charges.charge_type, Sum(Charges.charge_amount) FROM Charges GROUP BY Charges.charge_type", "inferred_code_readable": "", "score": -0.4269566237063529}]} {"index": 991, "beams": [{"question": "List each charge type and its amount.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Charges.charge_type, Sum(Charges.charge_amount) FROM Charges GROUP BY Charges.charge_type", "inferred_code_readable": "", "score": -0.00021562956634824104}]} {"index": 992, "beams": [{"question": "How much does the most expensive charge type costs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Charges.charge_amount FROM Charges ORDER BY Charges.charge_type Desc LIMIT 1", "inferred_code_readable": "", "score": -0.004596468696576039}]} {"index": 993, "beams": [{"question": "What is the charge amount of the most expensive charge type?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Charges.charge_amount FROM Charges ORDER BY Charges.charge_type Desc LIMIT 1", "inferred_code_readable": "", "score": -7.498093814461981e-05}]} {"index": 994, "beams": [{"question": "List the email, cell phone and home phone of all the professionals.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.email_address, Professionals.cell_number, Professionals.home_phone FROM Professionals", "inferred_code_readable": "", "score": -0.00015746832957574952}]} {"index": 995, "beams": [{"question": "What are the email, cell phone and home phone of each professional?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 41) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 43) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 42) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 6))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.email_address, Professionals.cell_number, Professionals.home_phone FROM Professionals", "inferred_code_readable": "", "score": -0.00028596097270394694}]} {"index": 996, "beams": [{"question": "What are all the possible breed type and size type combinations?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Dogs.breed_code, Dogs.size_code FROM Dogs", "inferred_code_readable": "", "score": -0.33361111326848913}]} {"index": 997, "beams": [{"question": "Find the distinct breed type and size type combinations for dogs.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 23) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 24) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 5))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT Dogs.breed_code, Dogs.size_code FROM Dogs", "inferred_code_readable": "", "score": -0.00014328053231338345}]} {"index": 998, "beams": [{"question": "List the first name of all the professionals along with the description of the treatment they have done.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id", "inferred_code_readable": "", "score": -9.417526385391284e-06}]} {"index": 999, "beams": [{"question": "What are each professional's first name and description of the treatment they have performed?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 35) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 40) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 7)) (Table (table-table_id 6))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 46) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 33) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments ON Professionals.professional_id = Treatments.professional_id", "inferred_code_readable": "", "score": -0.0007265994927934116}]} {"index": 1000, "beams": [{"question": "How many singers are there?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM singer", "inferred_code_readable": "", "score": -3.3378575992060178e-06}]} {"index": 1001, "beams": [{"question": "What is the count of singers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM singer", "inferred_code_readable": "", "score": -2.3841845333549827e-06}]} {"index": 1002, "beams": [{"question": "List the name of singers in ascending order of net worth.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer ORDER BY singer.Net_Worth_Millions Asc", "inferred_code_readable": "", "score": -8.702250752889995e-06}]} {"index": 1003, "beams": [{"question": "What are the names of singers ordered by ascending net worth?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Asc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer ORDER BY singer.Net_Worth_Millions Asc", "inferred_code_readable": "", "score": -6.437287851213114e-06}]} {"index": 1004, "beams": [{"question": "What are the birth year and citizenship of singers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Birth_Year, singer.Citizenship FROM singer", "inferred_code_readable": "", "score": -2.0265573326128106e-06}]} {"index": 1005, "beams": [{"question": "What are the birth years and citizenships of the singers?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Birth_Year, singer.Citizenship FROM singer", "inferred_code_readable": "", "score": -2.264975869081809e-06}]} {"index": 1006, "beams": [{"question": "List the name of singers whose citizenship is not \"France\".", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Citizenship != \"F\"", "inferred_code_readable": "", "score": -2.2490975260372466}]} {"index": 1007, "beams": [{"question": "What are the names of the singers who are not French citizens?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Ne (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))) (val-val1 (String (string-s \"F\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Citizenship != \"F\"", "inferred_code_readable": "", "score": -0.4975180979289604}]} {"index": 1008, "beams": [{"question": "Show the name of singers whose birth year is either 1948 or 1949?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 180))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Birth_Year = 180 OR singer.Birth_Year = 200", "inferred_code_readable": "", "score": -0.9916703103729319}]} {"index": 1009, "beams": [{"question": "What are the names of the singers whose birth years are either 1948 or 1949?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 180))))) (cond-right (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 200))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Birth_Year = 180 OR singer.Birth_Year = 200", "inferred_code_readable": "", "score": -1.4154360293130495}]} {"index": 1010, "beams": [{"question": "What is the name of the singer with the largest net worth?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer ORDER BY singer.Net_Worth_Millions Desc LIMIT 1", "inferred_code_readable": "", "score": -1.8715822072579158e-05}]} {"index": 1011, "beams": [{"question": "What is the name of the singer who is worth the most?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer ORDER BY singer.Net_Worth_Millions Desc LIMIT 1", "inferred_code_readable": "", "score": -1.8119772491331787e-05}]} {"index": 1012, "beams": [{"question": "Show different citizenship of singers and the number of singers of each citizenship.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship, Count(*) FROM singer GROUP BY singer.Citizenship", "inferred_code_readable": "", "score": -3.099440483822491e-06}]} {"index": 1013, "beams": [{"question": "For each citizenship, how many singers are from that country?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship, Count(*) FROM singer GROUP BY singer.Citizenship", "inferred_code_readable": "", "score": -1.0013547253606703e-05}]} {"index": 1014, "beams": [{"question": "Please show the most common citizenship of singers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship FROM singer GROUP BY singer.Citizenship ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -3.4570466766581376e-05}]} {"index": 1015, "beams": [{"question": "What is the most common singer citizenship ?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by (order_by (order-order (Desc)) (val_unit*-val_units (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))))) (cond?-having) (int?-limit 1) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship FROM singer GROUP BY singer.Citizenship ORDER BY Count(*) Desc LIMIT 1", "inferred_code_readable": "", "score": -4.637174723143289e-05}]} {"index": 1016, "beams": [{"question": "Show different citizenships and the maximum net worth of singers of each citizenship.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship, Max(singer.Net_Worth_Millions) FROM singer GROUP BY singer.Citizenship", "inferred_code_readable": "", "score": -0.0001203998345005175}]} {"index": 1017, "beams": [{"question": "For each citizenship, what is the maximum net worth?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Max)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship, Max(singer.Net_Worth_Millions) FROM singer GROUP BY singer.Citizenship", "inferred_code_readable": "", "score": -0.08849288591358118}]} {"index": 1018, "beams": [{"question": "Show titles of songs and names of singers.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT song.Title, singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID", "inferred_code_readable": "", "score": -4.2795968397513207e-05}]} {"index": 1019, "beams": [{"question": "What are the song titles and singer names?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT song.Title, singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID", "inferred_code_readable": "", "score": -3.457056191535912e-05}]} {"index": 1020, "beams": [{"question": "Show distinct names of singers that have songs with sales more than 300000.", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (Number (object-f 300000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID WHERE song.Sales > 300000", "inferred_code_readable": "", "score": -0.036393590711718105}]} {"index": 1021, "beams": [{"question": "what are the different names of the singers that have sales more than 300000?", "model_output": "(sql (select-select (select (singleton-is_distinct True) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))) (val-val1 (Number (object-f 300000))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT DISTINCT singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID WHERE song.Sales > 300000", "inferred_code_readable": "", "score": -0.10031301364251988}]} {"index": 1022, "beams": [{"question": "Show the names of singers that have more than one song.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID GROUP BY song.Singer_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.00041540420237851094}]} {"index": 1023, "beams": [{"question": "What are the names of the singers that have more than one songs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (Count)) (column-col_id 0) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID GROUP BY song.Singer_ID HAVING Count(*) > 1", "inferred_code_readable": "", "score": -0.00047877962897047155}]} {"index": 1024, "beams": [{"question": "Show the names of singers and the total sales of their songs.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name, Sum(song.Sales) FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID GROUP BY singer.Name", "inferred_code_readable": "", "score": -0.0189243465061395}]} {"index": 1025, "beams": [{"question": "For each singer name, what is the total sales for their songs?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Sum)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 9) (singleton-is_distinct False)))))) (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 1))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (cond?-where) (col_unit*-group_by (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Sum(song.Sales), singer.Name FROM singer JOIN song ON singer.Singer_ID = song.Singer_ID GROUP BY singer.Name", "inferred_code_readable": "", "score": -0.00013136633060639724}]} {"index": 1026, "beams": [{"question": "List the name of singers that do not have any song.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Singer_ID NOT IN (SELECT song.Singer_ID FROM song)", "inferred_code_readable": "", "score": -2.6941181040740503e-05}]} {"index": 1027, "beams": [{"question": "What is the sname of every sing that does not have any song?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Not (cond-c (In (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ValSql (sql-s (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 8) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Singer_ID NOT IN (SELECT song.Singer_ID FROM song)", "inferred_code_readable": "", "score": -1.966951512599735e-05}]} {"index": 1028, "beams": [{"question": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 85))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship FROM singer WHERE singer.Birth_Year < 85 INTERSECT SELECT singer.Citizenship FROM singer WHERE singer.Birth_Year > 5", "inferred_code_readable": "", "score": -1.845065329609561}]} {"index": 1029, "beams": [{"question": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Lt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 32))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect (sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 5) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0))) (cond?-conds))) (cond?-where (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 3) (singleton-is_distinct False))))) (val-val1 (Number (object-f 5))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))) (sql?-except) (sql?-union))", "inferred_code": "SELECT singer.Citizenship FROM singer WHERE singer.Birth_Year < 32 INTERSECT SELECT singer.Citizenship FROM singer WHERE singer.Birth_Year > 5", "inferred_code_readable": "", "score": -2.315203743599106}]} {"index": 1030, "beams": [{"question": "How many available features are there in total?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (Count)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 0) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 2))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Count(*) FROM Other_Available_Features", "inferred_code_readable": "", "score": -1.9073481709597218e-06}]} {"index": 1031, "beams": [{"question": "What is the feature type name of feature AirCon?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 2) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 0)) (Table (table-table_id 2))) (cond?-conds (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 1) (singleton-is_distinct False))))) (val-val1 (ColUnit (col_unit-c (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 6) (singleton-is_distinct False))))))))) (cond?-where (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 7) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Papering\"))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Feature_Types.feature_type_name FROM Ref_Feature_Types JOIN Other_Available_Features ON Ref_Feature_Types.feature_type_code = Other_Available_Features.feature_type_code WHERE Other_Available_Features.feature_name = \"Papering\"", "inferred_code_readable": "", "score": -0.5936723202457159}]} {"index": 1032, "beams": [{"question": "Show the property type descriptions of properties belonging to that code.", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 4) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 1))) (cond?-conds))) (cond?-where) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Ref_Property_Types.property_type_description FROM Ref_Property_Types", "inferred_code_readable": "", "score": -0.0019252998804830668}]} {"index": 1033, "beams": [{"question": "What are the names of properties that are either houses or apartments with more than 1 room?", "model_output": "(sql (select-select (select (singleton-is_distinct False) (agg*-aggs (agg (agg_type-agg_id (NoneAggOp)) (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 13) (singleton-is_distinct False))))))))) (from-from (from (table_unit*-table_units (Table (table-table_id 3))) (cond?-conds))) (cond?-where (Or (cond-left (Eq (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 15) (singleton-is_distinct False))))) (val-val1 (String (string-s \"Con\"))))) (cond-right (Gt (val_unit-val_unit (Column (col_unit-col_unit1 (col_unit (agg_type-agg_id (NoneAggOp)) (column-col_id 10) (singleton-is_distinct False))))) (val-val1 (Number (object-f 1))))))) (col_unit*-group_by) (order_by?-order_by) (cond?-having) (int?-limit) (sql?-intersect) (sql?-except) (sql?-union))", "inferred_code": "SELECT Properties.property_name FROM Properties WHERE Properties.room_count = \"Con\" OR Properties.property_type_code > 1", "inferred_code_readable": "", "score": -1.1210383493807328}]}