{"index": 0, "beams": [{"orig_question": "Quantos cantores nós temos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM singer", "score": -0.25832958333194256}]} {"index": 1, "beams": [{"orig_question": "Qual é o número total de cantores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM singer", "score": -0.058697939733974636}]} {"index": 2, "beams": [{"orig_question": "Mostre o nome, o país e a idade de todos os cantores, ordenados por idade, do mais velho ao mais novo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name, singer.Country, singer.Age FROM singer ORDER BY singer.Age Asc", "score": -0.39454856049266596}]} {"index": 3, "beams": [{"orig_question": "Quais são os nomes, países e idades de cada cantor em ordem decrescente de idade?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name, singer.Country, singer.Age FROM singer ORDER BY singer.Age Desc", "score": -1.1780214870814234}]} {"index": 4, "beams": [{"orig_question": "Qual é a idade média, mínima e máxima de todos os cantores da França?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(singer.Age), Avg(singer.Age), Max(singer.Age) FROM singer WHERE singer.Country = 'terminal'", "score": -1.3940625895475023}]} {"index": 5, "beams": [{"orig_question": "Qual é a idade média, mínima e máxima de todos os cantores franceses?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(singer.Age), Min(singer.Age), Max(singer.Age) FROM singer WHERE singer.Country = 'terminal'", "score": -0.7272063758417744}]} {"index": 6, "beams": [{"orig_question": "Mostre o nome e o ano de lançamento da música do cantor mais jovem.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Song_Name, singer.Song_release_year FROM singer ORDER BY singer.Age Asc LIMIT 1", "score": -0.17057359162754437}]} {"index": 7, "beams": [{"orig_question": "Quais são os nomes e anos de lançamento de todas as canções da cantora mais jovem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Song_Name, singer.Song_release_year FROM singer ORDER BY singer.Age Asc LIMIT 1", "score": -0.14069947023017448}]} {"index": 8, "beams": [{"orig_question": "Quais são os países distintos de onde vêm os cantores com mais de 20 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT singer.Country FROM singer WHERE singer.Age > 'terminal'", "score": -0.039358853611702216}]} {"index": 9, "beams": [{"orig_question": "Quais são os diferentes países com cantores com mais de 20 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT singer.Country FROM singer WHERE singer.Age > 'terminal'", "score": -0.01978719233176207}]} {"index": 10, "beams": [{"orig_question": "Mostre todos os países e o número de cantores em cada país.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Country, Count(*) FROM singer GROUP BY singer.Country", "score": -0.003820847119868631}]} {"index": 11, "beams": [{"orig_question": "Quantos cantores são de cada país?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Country, Count(*) FROM singer GROUP BY singer.Country", "score": -0.006077760144307831}]} {"index": 12, "beams": [{"orig_question": "Liste todos os nomes de músicas por cantores acima da idade média.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Age > (SELECT Avg(singer.Age) FROM singer)", "score": -1.150368895381689}]} {"index": 13, "beams": [{"orig_question": "Quais são os nomes de todas as músicas de cantores mais velhos do que a média?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Age > (SELECT Avg(singer.Age) FROM singer)", "score": -1.166700163477799}]} {"index": 14, "beams": [{"orig_question": "Mostre a localização e o nome de todos os estádios com capacidade entre 5.000 e 10.000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Location, stadium.Name FROM stadium WHERE stadium.Capacity BETWEEN 'terminal' AND 'terminal'", "score": -0.03799158874062414}]} {"index": 15, "beams": [{"orig_question": "Quais são as localizações e nomes de todas as estações com capacidade entre 5.000 e 10.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Location, stadium.Name FROM stadium WHERE stadium.Capacity BETWEEN 'terminal' AND 'terminal'", "score": -0.07028549884398672}]} {"index": 16, "beams": [{"orig_question": "Qual é a capacidade máxima e a média de todos os estádios?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Max(stadium.Capacity), Avg(stadium.Capacity) FROM stadium", "score": -0.127509469258257}]} {"index": 17, "beams": [{"orig_question": "Qual é a capacidade média e máxima para todos os estádios?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(stadium.Capacity), Max(stadium.Capacity) FROM stadium", "score": -0.8025893944807194}]} {"index": 18, "beams": [{"orig_question": "Qual o nome e capacidade do estádio com maior média de público?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Avg"}, "col_id": 7, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium JOIN concert GROUP BY concert.Stadium_ID ORDER BY Avg(stadium.Average) Desc LIMIT 1", "score": -1.0264080666092923}]} {"index": 19, "beams": [{"orig_question": "Qual o nome e capacidade do estádio com maior média de público?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Avg"}, "col_id": 7, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium JOIN concert GROUP BY concert.Stadium_ID ORDER BY Avg(stadium.Average) Desc LIMIT 1", "score": -1.0264080666092923}]} {"index": 20, "beams": [{"orig_question": "Quantos shows há no ano de 2014 ou 2015?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM concert WHERE concert.Year = 'terminal' OR concert.Year = 'terminal'", "score": -0.005746817390900105}]} {"index": 21, "beams": [{"orig_question": "Quantos shows ocorreram em 2014 ou 2015?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM concert WHERE concert.Year = 'terminal' OR concert.Year = 'terminal'", "score": -0.0032819040325193782}]} {"index": 22, "beams": [{"orig_question": "Mostre o nome do estádio e o número de shows em cada estádio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name, Count(*) FROM concert JOIN stadium GROUP BY concert.Stadium_ID", "score": -0.02215673600221635}]} {"index": 23, "beams": [{"orig_question": "Para cada estádio, quantos shows acontecem lá?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT stadium.Name, Count(*) FROM stadium JOIN concert GROUP BY stadium.Stadium_ID", "score": -0.8338142939244335}]} {"index": 24, "beams": [{"orig_question": "Mostre o nome e a capacidade do estádio com o maior número de shows no ano de 2014 ou depois.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM concert JOIN stadium WHERE concert.Year >= 'terminal' GROUP BY concert.Stadium_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.6498177087332806}]} {"index": 25, "beams": [{"orig_question": "Qual é o nome e a capacidade do estádio com mais shows depois de 2013?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT stadium.Name, stadium.Capacity FROM stadium JOIN concert WHERE concert.Year > 'terminal' ORDER BY stadium.Capacity Desc LIMIT 1", "score": -0.8102191943471482}]} {"index": 26, "beams": [{"orig_question": "Qual ano tem o maior número de shows?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT concert.Year FROM concert GROUP BY concert.Year ORDER BY Count(*) Desc LIMIT 1", "score": -0.0037670304700441193}]} {"index": 27, "beams": [{"orig_question": "Qual é o ano que teve mais shows?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT concert.Year FROM concert GROUP BY concert.Year ORDER BY Count(*) Desc LIMIT 1", "score": -0.05331388013655669}]} {"index": 28, "beams": [{"orig_question": "Mostre os nomes dos estádios sem nenhum concerto.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name FROM stadium WHERE stadium.Stadium_ID NOT IN (SELECT concert.Stadium_ID FROM concert)", "score": -0.2799880195123592}]} {"index": 29, "beams": [{"orig_question": "Quais são os nomes dos estádios sem shows?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name FROM stadium EXCEPT SELECT stadium.Name FROM stadium JOIN concert", "score": -0.6575917084241993}]} {"index": 30, "beams": [{"orig_question": "Mostre os países de origem de um cantor com mais de 40 anos e de um cantor com menos de 30.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Country FROM singer WHERE singer.Age > 'terminal' INTERSECT SELECT singer.Country FROM singer WHERE singer.Age < 'terminal'", "score": -0.26573547114094254}]} {"index": 31, "beams": [{"orig_question": "Mostre nomes para todos os estádios, exceto para estádios com shows no ano de 2014.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name FROM stadium EXCEPT SELECT stadium.Name FROM stadium JOIN concert WHERE concert.Year = 'terminal'", "score": -0.20199414949274086}]} {"index": 32, "beams": [{"orig_question": "Quais são os nomes de todos os estádios que não tiveram show em 2014?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name FROM stadium EXCEPT SELECT stadium.Name FROM stadium JOIN concert WHERE concert.Year = 'terminal'", "score": -0.20018097439208304}]} {"index": 33, "beams": [{"orig_question": "Mostre o nome e o tema de todos os concertos e o número de cantores em cada concerto.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name, concert.Theme, Count(*) FROM concert JOIN singer_in_concert JOIN singer GROUP BY singer.Name", "score": -1.5076086912304163}]} {"index": 34, "beams": [{"orig_question": "Quais são os nomes, temas e número de cantores para cada show?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT concert.concert_Name, concert.Theme, Count(*) FROM concert GROUP BY concert.concert_Name", "score": -0.6983721209689975}]} {"index": 35, "beams": [{"orig_question": "Liste os nomes dos cantores e o número de shows de cada um.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name, Count(*) FROM concert JOIN stadium GROUP BY stadium.Name", "score": -0.7080680844737799}]} {"index": 36, "beams": [{"orig_question": "Quais são os nomes dos cantores e o número de shows de cada pessoa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Song_Name, Count(*) FROM singer GROUP BY singer.Song_Name", "score": -1.138499716134902}]} {"index": 37, "beams": [{"orig_question": "Liste todos os nomes de cantores em shows no ano de 2014.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT concert.concert_Name FROM concert WHERE concert.Year = 'terminal'", "score": -0.09314054137212224}]} {"index": 38, "beams": [{"orig_question": "Quais são os nomes dos cantores que se apresentaram em um show em 2014?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT concert.concert_Name FROM concert WHERE concert.Year = 'terminal'", "score": -0.048539806237386074}]} {"index": 39, "beams": [{"orig_question": "Qual é o nome e a nação do cantor que tem uma música com 'Hey' no nome?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT stadium.Name, singer.Country FROM stadium JOIN singer_in_concert JOIN singer WHERE singer.Song_Name LIKE 'terminal'", "score": -0.5720407554326812}]} {"index": 40, "beams": [{"orig_question": "Qual é o nome e país de origem de cada cantor que tem uma música com a palavra 'Hey' no título?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name, singer.Country FROM singer WHERE singer.Song_Name LIKE 'terminal'", "score": -0.36512651201337576}]} {"index": 41, "beams": [{"orig_question": "Encontre o nome e a localização dos estádios onde aconteceram alguns shows nos anos de 2014 e 2015.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT stadium.Name, stadium.Location FROM concert JOIN stadium WHERE concert.Year = 'terminal' INTERSECT SELECT stadium.Name, stadium.Location FROM concert JOIN stadium WHERE concert.Year = 'terminal'", "score": -0.10369117867776367}]} {"index": 42, "beams": [{"orig_question": "Quais são os nomes e localizações dos estádios que tiveram shows ocorridos em 2014 e 2015?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT stadium.Name, stadium.Location FROM stadium JOIN concert WHERE concert.Year = 'terminal' INTERSECT SELECT stadium.Name, stadium.Location FROM stadium JOIN concert WHERE concert.Year = 'terminal'", "score": -0.026244901852351177}]} {"index": 43, "beams": [{"orig_question": "Descubra o número de shows ocorridos no estádio com maior capacidade.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM stadium ORDER BY stadium.Capacity Desc LIMIT 1", "score": -0.06190426951548034}]} {"index": 44, "beams": [{"orig_question": "Qual a quantidade de shows que ocorreram no estádio com maior capacidade?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM stadium ORDER BY stadium.Capacity Desc LIMIT 1", "score": -0.08074532296541292}]} {"index": 45, "beams": [{"orig_question": "Encontre o número de animais de estimação com peso superior a 10.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Pets WHERE Pets.weight > 'terminal'", "score": -0.004518935878877528}]} {"index": 46, "beams": [{"orig_question": "Quantos animais de estimação pesam mais que 10?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Pets WHERE Pets.weight > 'terminal'", "score": -0.005283696642436553}]} {"index": 47, "beams": [{"orig_question": "Encontre o peso do cão mais novo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.weight FROM Pets WHERE Pets.pet_age = (SELECT Min(Pets.pet_age) FROM Pets)", "score": -1.100642454548506}]} {"index": 48, "beams": [{"orig_question": "Quanto pesa o cão mais novo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.weight FROM Pets ORDER BY Pets.pet_age Asc LIMIT 1", "score": -0.7425255637717783}]} {"index": 49, "beams": [{"orig_question": "Encontre o peso máximo para cada tipo de animal de estimação. Liste o peso máximo e o tipo de animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(Pets.weight), Pets.PetType FROM Pets GROUP BY Pets.PetType", "score": -0.7082756453748686}]} {"index": 50, "beams": [{"orig_question": "Liste o peso máximo e tipo para cada tipo de animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(Pets.weight), Pets.PetType FROM Pets GROUP BY Pets.PetType", "score": -0.41363775377566725}]} {"index": 51, "beams": [{"orig_question": "Encontre o número de animais de estimação pertencentes a alunos com mais de 20 anos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Has_Pet JOIN Student JOIN Pets WHERE Student.Age > 'terminal'", "score": -0.3960792685393173}]} {"index": 52, "beams": [{"orig_question": "Quantos animais de estimação pertencem a alunos com idade superior a 20 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Has_Pet JOIN Student JOIN Pets WHERE Student.Age > 'terminal'", "score": -0.6230723684420809}]} {"index": 53, "beams": [{"orig_question": "Encontre o número de animais de estimação criados por estudantes do sexo feminino (com sexo F).", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Has_Pet JOIN Student JOIN Pets WHERE Student.Sex = 'terminal' AND Pets.PetType = 'terminal'", "score": -1.5500431656109868}]} {"index": 54, "beams": [{"orig_question": "Quantos animais de estimação são criados por estudantes do sexo feminino?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Has_Pet JOIN Student JOIN Pets WHERE Student.Sex = 'terminal' AND Pets.PetType = 'terminal'", "score": -1.6122976227488834}]} {"index": 55, "beams": [{"orig_question": "Encontre o número de tipos distintos de animais de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT Pets.PetType) FROM Pets", "score": -0.0013566017102846217}]} {"index": 56, "beams": [{"orig_question": "Quantos tipos diferentes de animal de estimação existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT Pets.PetType) FROM Pets", "score": -0.0010691881165598716}]} {"index": 57, "beams": [{"orig_question": "Encontre o primeiro nome dos alunos que têm cães ou gatos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Student.Fname FROM Student JOIN Has_Pet JOIN Pets WHERE Pets.PetType = 'terminal' OR Pets.PetType = 'terminal'", "score": -2.346184368329432}]} {"index": 58, "beams": [{"orig_question": "Quais são os primeiros nomes de todos os alunos que têm um cão ou gato como animal de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname FROM Has_Pet JOIN Pets JOIN Student WHERE Pets.PetType = 'terminal' OR Pets.PetType = 'terminal'", "score": -0.24316370311679947}]} {"index": 59, "beams": [{"orig_question": "Encontre o primeiro nome dos alunos que têm animais de estimação, gatos e cachorros.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname FROM Has_Pet JOIN Pets JOIN Student WHERE Pets.PetType = 'terminal' INTERSECT SELECT Student.Fname FROM Has_Pet JOIN Pets JOIN Student WHERE Pets.PetType = 'terminal'", "score": -0.3841722842980744}]} {"index": 60, "beams": [{"orig_question": "Quais são os primeiros nomes dos alunos que têm cães e gatos como animais de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname FROM Has_Pet JOIN Pets JOIN Student WHERE Pets.PetType = 'terminal' INTERSECT SELECT Student.Fname FROM Has_Pet JOIN Pets JOIN Student WHERE Pets.PetType = 'terminal'", "score": -0.6274578924130765}]} {"index": 61, "beams": [{"orig_question": "Encontre o curso e a idade dos alunos que não têm um gato de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Major, Student.Age FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet WHERE Pets.PetType != 'terminal')", "score": -0.48267319637847095}]} {"index": 62, "beams": [{"orig_question": "Qual é o curso de cada aluno que não tem um gato como animal de estimação, e também quantos anos eles têm?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Major, Student.Age FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets WHERE Pets.PetType = 'terminal')", "score": -1.3776285116054794}]} {"index": 63, "beams": [{"orig_question": "Encontre a id de alunos que não têm um gato de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.StuID FROM Student EXCEPT SELECT Has_Pet.StuID FROM Has_Pet", "score": -0.12410543102305382}]} {"index": 64, "beams": [{"orig_question": "Quais são os ids dos alunos que não possuem gatos como animais de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.StuID FROM Student EXCEPT SELECT Has_Pet.StuID FROM Student WHERE Pets.PetType = 'terminal' EXCEPT SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets WHERE Pets.PetType = 'terminal'", "score": -0.6616645955218701}]} {"index": 65, "beams": [{"orig_question": "Encontre o primeiro nome e a idade dos alunos que têm um cachorro, mas não têm um gato como animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname, Student.Age FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet WHERE Pets.PetType = 'terminal')", "score": -2.5838485890833454}]} {"index": 66, "beams": [{"orig_question": "Qual é o primeiro nome de todo aluno que tem um cachorro, mas não tem um gato?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname FROM Student WHERE Student.Advisor = 'terminal' EXCEPT SELECT Student.Fname FROM Student JOIN Has_Pet WHERE Student.Advisor = 'terminal'", "score": -0.5550182768186005}]} {"index": 67, "beams": [{"orig_question": "Encontre o tipo e o peso do animal de estimação mais novo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Pets.PetType, Pets.weight FROM Has_Pet JOIN Pets JOIN Student WHERE Student.Age = (SELECT Min(Student.Age) FROM Student)", "score": -1.7417349920779088}]} {"index": 68, "beams": [{"orig_question": "Que tipo de animal de estimação é o animal mais jovem e quanto pesa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.PetType, Pets.weight FROM Pets ORDER BY Pets.weight Asc LIMIT 1", "score": -0.687572963652201}]} {"index": 69, "beams": [{"orig_question": "Encontre o id e o peso de todos os animais de estimação com idade superior a 1.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.PetID, Pets.weight FROM Has_Pet JOIN Pets WHERE Pets.pet_age > 'terminal'", "score": -1.7235050268936902}]} {"index": 70, "beams": [{"orig_question": "Qual é o id e o peso de cada animal de estimação com mais de 1?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.PetID, Pets.weight FROM Pets WHERE Pets.pet_age > 'terminal'", "score": -0.6771258901426336}]} {"index": 71, "beams": [{"orig_question": "Encontre a idade média e máxima para cada tipo de animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(Student.Age), Avg(Student.Age), Pets.PetType FROM Has_Pet JOIN Student JOIN Pets GROUP BY Pets.PetType", "score": -3.7390834141701816}]} {"index": 72, "beams": [{"orig_question": "Qual é a idade média e máxima para cada tipo de animal de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(Student.Age), Avg(Student.Age), Pets.PetType FROM Has_Pet JOIN Student JOIN Pets GROUP BY Pets.PetType", "score": -2.2156348852975043}]} {"index": 73, "beams": [{"orig_question": "Encontre o peso médio para cada tipo de animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.PetType, Avg(Pets.weight) FROM Pets GROUP BY Pets.PetType", "score": -0.4160903027286551}]} {"index": 74, "beams": [{"orig_question": "Qual é o peso médio de cada tipo de animal de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Pets.PetType, Avg(Pets.weight) FROM Pets GROUP BY Pets.PetType", "score": -0.31586605996767503}]} {"index": 75, "beams": [{"orig_question": "Encontre o primeiro nome e a idade dos alunos que têm um animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname, Student.Age FROM Has_Pet JOIN Pets JOIN Student WHERE Pets.PetType = 'terminal'", "score": -2.3102641111829527}]} {"index": 76, "beams": [{"orig_question": "Quais são os nomes e idades diferentes dos alunos que têm animais de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT DISTINCT Student.Fname, Student.Age FROM Has_Pet JOIN Student", "score": -0.6740039162978064}]} {"index": 77, "beams": [{"orig_question": "Encontre a identificação do animal de estimação de um aluno cujo sobrenome é ‘Smith’.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Has_Pet.PetID FROM Has_Pet JOIN Student WHERE Student.LName = 'terminal'", "score": -0.6331619285920169}]} {"index": 78, "beams": [{"orig_question": "Qual é a id do animal de estimação do aluno cujo sobrenome é 'Smith'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.StuID FROM Has_Pet JOIN Student WHERE Student.LName = 'terminal'", "score": -1.0106812540871033}]} {"index": 79, "beams": [{"orig_question": "Encontre o número de animais de estimação para cada aluno que possui algum animal de estimação e a identificação do aluno.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Has_Pet.StuID, Count(*) FROM Has_Pet GROUP BY Has_Pet.StuID", "score": -0.3739836596355417}]} {"index": 80, "beams": [{"orig_question": "Para alunos que têm animais de estimação, quantos animais de estimação cada aluno tem? liste seus ids em vez de nomes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT Has_Pet.StuID) FROM Has_Pet", "score": -1.309897624712903}]} {"index": 81, "beams": [{"orig_question": "Encontre o nome e o sexo do aluno que tem mais de um animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.Fname, Student.Sex FROM Has_Pet JOIN Student GROUP BY Has_Pet.StuID HAVING Count(*) > 'terminal'", "score": -0.23387339263535978}]} {"index": 82, "beams": [{"orig_question": "Qual é o primeiro nome e sexo de todos os alunos que têm mais de um animal de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Student.Fname, Student.Sex FROM Student JOIN Has_Pet GROUP BY Has_Pet.StuID HAVING Count(*) > 'terminal'", "score": -0.2485737260149108}]} {"index": 83, "beams": [{"orig_question": "Encontre o sobrenome do aluno que tem um gato de 3 anos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.LName FROM Student WHERE Student.Age = 'terminal'", "score": -0.14477033164246222}]} {"index": 84, "beams": [{"orig_question": "Qual é o sobrenome do aluno que tem um gato de 3 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Student.LName FROM Student WHERE Student.Age = 'terminal'", "score": -0.18775907156924632}]} {"index": 85, "beams": [{"orig_question": "Encontre a idade média dos alunos que não têm animal de estimação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(Student.Age) FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets WHERE Pets.PetType = 'terminal')", "score": -0.5318792249454347}]} {"index": 86, "beams": [{"orig_question": "Qual é a idade média de todos os alunos que não possuem animais de estimação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(Student.Age) FROM Student WHERE Student.StuID NOT IN (SELECT Has_Pet.StuID FROM Has_Pet JOIN Pets WHERE Pets.PetType != 'terminal')", "score": -0.6016751310744439}]} {"index": 87, "beams": [{"orig_question": "Quantos continentes existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Count(*) FROM car_names", "score": -0.7068671652814373}]} {"index": 88, "beams": [{"orig_question": "Qual é o número de continentes?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM car_makers", "score": -1.1530791482509812}]} {"index": 89, "beams": [{"orig_question": "Quantos países cada continente tem? Liste a id do continente, o nome do continente e o número de países.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryId, countries.CountryName, Count(*) FROM countries JOIN car_makers GROUP BY countries.CountryId", "score": -0.44313118210993707}]} {"index": 90, "beams": [{"orig_question": "Para cada continente, liste seu id, nome e quantos países ele tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT car_makers.Id, countries.CountryName, Count(*) FROM countries JOIN car_makers GROUP BY car_makers.Id", "score": -3.828147687483579}]} {"index": 91, "beams": [{"orig_question": "Quantos países estão listados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM countries", "score": -0.291607528842178}]} {"index": 92, "beams": [{"orig_question": "Quantos países existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM countries", "score": -0.166084736427365}]} {"index": 93, "beams": [{"orig_question": "Quantos modelos cada fabricante de automóveis produz? Liste o nome completo do fabricante, id e o número.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT car_makers.FullName, car_makers.Id, Count(*) FROM model_list JOIN car_makers GROUP BY car_makers.Id", "score": -1.5992788062430847}]} {"index": 94, "beams": [{"orig_question": "Qual é o nome completo de cada montadora, junto com seu id e quantos modelos ela produz?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT model_list.ModelId, model_list.ModelId, Count(*) FROM model_list JOIN car_names GROUP BY model_list.ModelId", "score": -1.144236247986555}]} {"index": 95, "beams": [{"orig_question": "Qual modelo de carro tem a potência mínima?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT model_list.Model FROM model_list JOIN car_names GROUP BY car_names.Model ORDER BY Count(*) Asc LIMIT 1", "score": -1.9027709886431694}]} {"index": 96, "beams": [{"orig_question": "Qual é o modelo do carro com a menor potência?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT car_names.Make FROM model_list JOIN car_names GROUP BY car_names.Make ORDER BY Count(*) Asc LIMIT 1", "score": -2.790098961442709}]} {"index": 97, "beams": [{"orig_question": "Encontre o modelo do carro cujo peso está abaixo do peso médio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT model_list.Model FROM cars_data JOIN car_names WHERE cars_data.Weight < (SELECT Avg(cars_data.Weight) FROM cars_data)", "score": -1.0404122240688594}]} {"index": 98, "beams": [{"orig_question": "Qual é o modelo do carro com peso menor que a média?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT model_list.Model FROM model_list JOIN cars_data WHERE cars_data.Weight < (SELECT Avg(cars_data.Weight) FROM cars_data)", "score": -0.9784116320658995}]} {"index": 99, "beams": [{"orig_question": "Encontre o nome dos fabricantes que produziram alguns carros no ano de 1970?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT car_makers.FullName FROM car_makers JOIN model_list JOIN cars_data WHERE cars_data.Year = 'terminal'", "score": -1.0269385799119846}]} {"index": 100, "beams": [{"orig_question": "Qual é o nome dos diferentes fabricantes de automóveis que produziram um carro em 1970?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT car_makers.FullName FROM model_list JOIN car_makers JOIN cars_data WHERE cars_data.Year = 'terminal'", "score": -2.3701578000031986}]} {"index": 101, "beams": [{"orig_question": "Encontre a marca e o tempo de produção dos carros que foram produzidos no primeiro ano?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT car_names.Make, cars_data.Year FROM cars_data JOIN car_names ORDER BY cars_data.Year Asc LIMIT 1", "score": -1.4365345952101052}]} {"index": 102, "beams": [{"orig_question": "Qual é o fabricante do carr produzido no primeiro ano e em que ano foi?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 23, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT car_names.Make, cars_data.Year FROM cars_data JOIN car_names GROUP BY cars_data.Year ORDER BY Count(cars_data.Year) Asc LIMIT 1", "score": -2.2051795665174723}]} {"index": 103, "beams": [{"orig_question": "Quais modelos distintos de carros são produzidos após 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT model_list.Model FROM model_list JOIN car_names JOIN cars_data WHERE cars_data.Year > 'terminal'", "score": -0.3434322318062186}]} {"index": 104, "beams": [{"orig_question": "Quais são os diferentes modelos de cartões produzidos após 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT car_names.Model FROM car_names JOIN cars_data WHERE cars_data.Year > 'terminal'", "score": -1.7868845234625041}]} {"index": 105, "beams": [{"orig_question": "Quantas montadoras existem em cada continente? Liste o nome do continente e a contagem.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT car_makers.Country, Count(*) FROM model_list JOIN car_makers GROUP BY car_makers.Country", "score": -0.22142514685401693}]} {"index": 106, "beams": [{"orig_question": "Qual é o nome de cada continente e quantas montadoras existem em cada um?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryName, Count(*) FROM countries JOIN car_makers GROUP BY car_makers.Country", "score": -0.576098211837234}]} {"index": 107, "beams": [{"orig_question": "Qual dos países tem mais fabricantes de automóveis? Liste o nome do país.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryName FROM countries JOIN car_makers GROUP BY countries.CountryName ORDER BY Count(*) Desc LIMIT 1", "score": -0.38523118140437873}]} {"index": 108, "beams": [{"orig_question": "Qual é o nome do país com mais montadoras?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryName FROM countries JOIN car_makers GROUP BY car_makers.Country ORDER BY Count(*) Desc LIMIT 1", "score": -0.3418261034930765}]} {"index": 109, "beams": [{"orig_question": "Quantos modelos de carros são produzidos por cada fabricante? Liste apenas a contagem e o nome completo do fabricante.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT car_names.Make, Count(*) FROM model_list JOIN car_names GROUP BY model_list.Model", "score": -3.7435483762528747}]} {"index": 110, "beams": [{"orig_question": "Qual é o número de modelos de carros produzidos por cada fabricante e qual é a id e o nome completo de cada fabricante?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT car_makers.Id, car_makers.FullName, Count(*) FROM car_makers JOIN cars_data GROUP BY cars_data.MPG", "score": -4.804710919968784}]} {"index": 111, "beams": [{"orig_question": "Qual é a aceleração do carro make amc hornet sportabout (sw)?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT cars_data.Cylinders FROM cars_data JOIN car_names WHERE car_names.Make = 'terminal'", "score": -0.06511532586591784}]} {"index": 112, "beams": [{"orig_question": "Quanto acelera o carro que torna o amc hornet sportabout (sw)?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Count(*) FROM car_names WHERE car_names.Make = 'terminal'", "score": -0.05490080558229238}]} {"index": 113, "beams": [{"orig_question": "Quantas montadoras existem na França?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM model_list JOIN car_makers WHERE car_makers.Country = 'terminal'", "score": -0.46317321801325306}]} {"index": 114, "beams": [{"orig_question": "Qual é o número de fabricantes de cuidados na França?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM car_makers WHERE car_makers.Country = 'terminal'", "score": -0.012546710466267541}]} {"index": 115, "beams": [{"orig_question": "Quantos modelos de carros são produzidos nos EUA?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM model_list JOIN car_makers WHERE car_makers.Country = 'terminal'", "score": -0.5718455192254623}]} {"index": 116, "beams": [{"orig_question": "Qual é a contagem dos modelos de carros produzidos nos Estados Unidos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM car_makers WHERE car_makers.Country = 'terminal'", "score": -0.06018109241267666}]} {"index": 117, "beams": [{"orig_question": "Qual é a média de milhas por galão (mpg) dos carros com 4 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Avg(cars_data.Weight) FROM cars_data JOIN car_names WHERE car_names.Make = 'terminal'", "score": -1.0294789414620027}]} {"index": 118, "beams": [{"orig_question": "Qual é a média de milhas por galão de todos os cartões com 4 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(cars_data.Cylinders) FROM cars_data WHERE cars_data.Weight = 'terminal'", "score": -1.6662652785889804}]} {"index": 119, "beams": [{"orig_question": "Qual é o menor peso do carro produzido com 8 cilindros em 1974?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Weight FROM cars_data WHERE cars_data.Year = 'terminal' ORDER BY cars_data.Weight Asc LIMIT 1", "score": -0.1009530005352417}]} {"index": 120, "beams": [{"orig_question": "Qual é o peso mínimo do carro com 8 cilindros produzido em 1974?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Min(cars_data.Weight) FROM cars_data WHERE cars_data.Year = 'terminal'", "score": -0.19305562970566825}]} {"index": 121, "beams": [{"orig_question": "Quais são todos os fabricantes e modelos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT model_list.ModelId, model_list.Model FROM model_list", "score": -0.6405141903633194}]} {"index": 122, "beams": [{"orig_question": "Quais são os fabricantes e modelos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT model_list.ModelId, model_list.Model FROM model_list", "score": -0.38235741984681226}]} {"index": 123, "beams": [{"orig_question": "Quais são os países com pelo menos um fabricante de automóveis? Nome e id da lista.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryName, car_makers.Country FROM countries JOIN car_makers GROUP BY car_makers.Country HAVING Count(*) >= 'terminal'", "score": -0.8695720254700063}]} {"index": 124, "beams": [{"orig_question": "Quais são os nomes e ids de todos os países com pelo menos um fabricante de automóveis?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryName, car_makers.Country FROM countries JOIN car_makers GROUP BY car_makers.Country HAVING Count(*) >= 'terminal'", "score": -0.3020157690543783}]} {"index": 125, "beams": [{"orig_question": "Qual é o número de carros com potência superior a 150?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Cylinders > 'terminal'", "score": -0.39084467478096485}]} {"index": 126, "beams": [{"orig_question": "Qual é o número de carros com potência superior a 150?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Cylinders > 'terminal'", "score": -0.39084467478096485}]} {"index": 127, "beams": [{"orig_question": "Qual é o peso médio dos carros a cada ano?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Year, Avg(cars_data.Weight) FROM cars_data GROUP BY cars_data.Year", "score": -0.23915233810384962}]} {"index": 128, "beams": [{"orig_question": "Qual é o peso médio e ano para cada ano?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(cars_data.Weight), cars_data.Year FROM cars_data GROUP BY cars_data.Year", "score": -0.7138489647513779}]} {"index": 129, "beams": [{"orig_question": "Que países da Europa têm pelo menos 3 fabricantes de automóveis?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT car_makers.Country FROM car_makers GROUP BY car_makers.Country HAVING Count(*) >= 'terminal'", "score": -0.7435683570256515}]} {"index": 130, "beams": [{"orig_question": "Quais são os nomes de todos os países europeus com pelo menos 3 fabricantes?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countries.CountryName FROM countries JOIN car_makers GROUP BY car_makers.Country HAVING Count(*) >= 'terminal'", "score": -0.3541313472233014}]} {"index": 131, "beams": [{"orig_question": "Qual é a potência máxima e a marca dos modelos de automóveis com 3 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Max(cars_data.Weight), Avg(cars_data.Weight) FROM cars_data WHERE cars_data.Cylinders = 'terminal'", "score": -1.0967151658624061}]} {"index": 132, "beams": [{"orig_question": "Qual é a maior quantidade de cavalos de força para os modelos com 3 cilindros e qual é a marca?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.MPG, cars_data.Weight FROM cars_data WHERE cars_data.Edispl = 'terminal'", "score": -1.059762377289644}]} {"index": 133, "beams": [{"orig_question": "Qual modelo economiza mais gasolina? Ou seja, tenha o máximo de milhas por galão.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 18, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT car_names.Model FROM cars_data JOIN car_names GROUP BY car_names.Model ORDER BY Sum(cars_data.Cylinders) Desc LIMIT 1", "score": -2.963399142900016}]} {"index": 134, "beams": [{"orig_question": "Qual é o modelo do carro com o mpg mais alto?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT car_names.Model FROM cars_data JOIN car_names ORDER BY cars_data.MPG Desc LIMIT 1", "score": -6.458273048512638}]} {"index": 135, "beams": [{"orig_question": "Qual é a potência média dos carros antes de 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(cars_data.Weight) FROM cars_data WHERE cars_data.Year < 'terminal'", "score": -0.34968172962999233}]} {"index": 136, "beams": [{"orig_question": "Qual é a potência média de todos os carros produzidos antes de 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(cars_data.Weight) FROM cars_data WHERE cars_data.Year < 'terminal'", "score": -0.06258293478094856}]} {"index": 137, "beams": [{"orig_question": "Qual é o edispl médio dos carros do modelo volvo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(cars_data.Edispl) FROM car_names JOIN cars_data WHERE car_names.Model = 'terminal'", "score": -0.802463501226157}]} {"index": 138, "beams": [{"orig_question": "Qual é o edispl médio para todos os volvos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(cars_data.Edispl) FROM cars_data", "score": -0.01518341590417549}]} {"index": 139, "beams": [{"orig_question": "Qual é a aceleração máxima para diferentes números de cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Max(cars_data.Cylinders), cars_data.Weight FROM cars_data GROUP BY cars_data.Weight", "score": -1.3791077851274167}]} {"index": 140, "beams": [{"orig_question": "Qual é a aceleração máxima para todos os diferentes cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Max(cars_data.Cylinders), car_names.Make FROM cars_data JOIN car_names GROUP BY car_names.Make", "score": -1.8920275308191776}]} {"index": 141, "beams": [{"orig_question": "Qual modelo tem mais versão (marca) de carros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT model_list.Model FROM car_names JOIN model_list GROUP BY car_names.Model ORDER BY Count(*) Desc LIMIT 1", "score": -1.1125758393973229}]} {"index": 142, "beams": [{"orig_question": "Qual modelo possui as versões mais diferentes?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT model_list.Model FROM model_list", "score": -0.9194349615115698}]} {"index": 143, "beams": [{"orig_question": "Quantos carros têm mais de 4 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM car_names JOIN cars_data WHERE cars_data.Weight > 'terminal'", "score": -0.1029223189689219}]} {"index": 144, "beams": [{"orig_question": "Qual é a quantidade de carros com mais de 4 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Weight > 'terminal'", "score": -0.14234090474201366}]} {"index": 145, "beams": [{"orig_question": "quantos carros foram produzidos em 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Year = 'terminal'", "score": -0.10459689464914845}]} {"index": 146, "beams": [{"orig_question": "Em 1980, quantos carros foram fabricados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Year = 'terminal'", "score": -0.02021842688554898}]} {"index": 147, "beams": [{"orig_question": "Quantos modelos de automóveis foram produzidos pelo fabricante com o nome completo American Motor Company?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM car_makers JOIN model_list WHERE car_makers.FullName = 'terminal'", "score": -1.997214809003708}]} {"index": 148, "beams": [{"orig_question": "Qual é o número de modelos de automóveis criados pela montadora American Motor Company?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM model_list JOIN car_makers WHERE car_makers.FullName = 'terminal'", "score": -0.70929586049715}]} {"index": 149, "beams": [{"orig_question": "Quais fabricantes projetaram mais de 3 modelos de automóveis? Liste o nome completo e o id.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT car_makers.FullName, car_makers.Id FROM car_makers JOIN model_list GROUP BY car_makers.Id HAVING Count(*) > 'terminal'", "score": -0.6838604906079127}]} {"index": 150, "beams": [{"orig_question": "Quais são os nomes e ids de todos os fabricantes com mais de 3 modelos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.MPG, cars_data.Id FROM cars_data GROUP BY cars_data.Edispl HAVING Count(*) > 'terminal'", "score": -3.841594696044922}]} {"index": 151, "beams": [{"orig_question": "Quais modelos distintos são produzidos pelo fabricante com o nome completo General Motors ou pesando mais de 3.500?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT model_list.Model FROM car_makers JOIN model_list JOIN cars_data WHERE car_makers.FullName = 'terminal' OR cars_data.Weight > 'terminal'", "score": -2.327061645053618}]} {"index": 152, "beams": [{"orig_question": "Quais são os diferentes modelos criados pela montadora General Motors ou pesavam mais de 3.500?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT cars_data.Year FROM car_makers JOIN car_names JOIN cars_data WHERE car_makers.FullName = 'terminal' OR cars_data.Weight > 'terminal'", "score": -2.4566805912181735}]} {"index": 153, "beams": [{"orig_question": "Em que anos foram produzidos carros com peso não inferior a 3.000 e não superior a 4.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Year FROM cars_data WHERE cars_data.Weight < 'terminal' EXCEPT SELECT cars_data.Year FROM cars_data WHERE cars_data.Weight < 'terminal'", "score": -0.4324557579784596}]} {"index": 154, "beams": [{"orig_question": "Quais são os diferentes anos em que foram produzidos carros com peso inferior a 4000 e também carros com peso superior a 3000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT cars_data.Year FROM cars_data WHERE cars_data.Weight < 'terminal' INTERSECT SELECT cars_data.Year FROM cars_data WHERE cars_data.Weight < 'terminal'", "score": -0.3583298858470698}]} {"index": 155, "beams": [{"orig_question": "Qual é a potência do carro com a maior aceleração?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Weight FROM cars_data ORDER BY cars_data.Cylinders Desc LIMIT 1", "score": -0.029469050132320262}]} {"index": 156, "beams": [{"orig_question": "Qual é a potência do carro com maior aceleração?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Weight FROM cars_data ORDER BY cars_data.Cylinders Desc LIMIT 1", "score": -0.013953113080788171}]} {"index": 157, "beams": [{"orig_question": "Para o modelo volvo, quantos cilindros o carro com menos aceleração tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Weight FROM model_list JOIN car_names JOIN cars_data WHERE model_list.Model = 'terminal' GROUP BY car_names.Model ORDER BY Count(*) Asc LIMIT 1", "score": -4.519276391714811}]} {"index": 158, "beams": [{"orig_question": "Para um modelo Volvo, quantos cilindros tem a versão com menos aceleração?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Weight FROM car_makers JOIN model_list JOIN cars_data WHERE model_list.Model = 'terminal' ORDER BY cars_data.Cylinders Asc LIMIT 1", "score": -3.2684727534651685}]} {"index": 159, "beams": [{"orig_question": "Quantos carros têm uma aceleração maior do que o carro com a maior potência?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "ColUnit", "c": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM car_names JOIN cars_data WHERE cars_data.Cylinders > car_names.Make", "score": -2.0332860983908176}]} {"index": 160, "beams": [{"orig_question": "Qual é o número de carros com maior aceleração do que aquele com maior potência?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "ColUnit", "c": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Count(*) FROM cars_data JOIN car_names WHERE cars_data.Cylinders < cars_data.Id", "score": -2.432619529776268}]} {"index": 161, "beams": [{"orig_question": "Quantos países têm mais de 2 fabricantes de automóveis?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM car_makers", "score": -0.6373280801344663}]} {"index": 162, "beams": [{"orig_question": "Qual é o número de países com mais de 2 fabricantes de automóveis?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM car_makers", "score": -0.5860139820724726}]} {"index": 163, "beams": [{"orig_question": "Quantos carros tem mais de 6 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM car_names JOIN cars_data WHERE cars_data.Weight > 'terminal'", "score": -0.15077032893896103}]} {"index": 164, "beams": [{"orig_question": "Qual é a quantidade de carros com mais de 6 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM cars_data WHERE cars_data.Weight > 'terminal'", "score": -0.038244833838689374}]} {"index": 165, "beams": [{"orig_question": "Para os carros com 4 cilindros, qual modelo tem a maior potência?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT car_names.Make FROM car_names JOIN cars_data WHERE cars_data.Weight = 'terminal' ORDER BY cars_data.Horsepower Desc LIMIT 1", "score": -2.1447405052604154}]} {"index": 166, "beams": [{"orig_question": "Para todos os carros de 4 cilindros, qual modelo tem mais potência?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT car_names.Make FROM car_names JOIN cars_data WHERE cars_data.Weight = 'terminal' ORDER BY cars_data.Horsepower Desc LIMIT 1", "score": -2.074539957102388}]} {"index": 167, "beams": [{"orig_question": "Entre os carros com mais do que a potência mais baixa, quais não têm mais de 3 cilindros? Liste o makeid do carro e faça o nome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT car_names.Make, car_names.MakeId FROM car_names JOIN cars_data WHERE cars_data.Weight < 'terminal' EXCEPT SELECT car_names.Make FROM car_names JOIN cars_data WHERE cars_data.Weight < 'terminal'", "score": -1.264644026348833}]} {"index": 168, "beams": [{"orig_question": "Entre os carros que não têm a potência mínima, quais são os ids e nomes de marca de todos aqueles com menos de 4 cilindros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Id, cars_data.MPG FROM cars_data WHERE cars_data.Weight < 'terminal'", "score": -1.5496716134948656}]} {"index": 169, "beams": [{"orig_question": "Qual é o máximo de milhas por galão de um carro com 8 cilindros ou produzido antes de 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Max(cars_data.Cylinders) FROM cars_data WHERE cars_data.Year = 'terminal' OR cars_data.Year < 'terminal'", "score": -1.892187800789543}]} {"index": 170, "beams": [{"orig_question": "Qual é o mpg máximo dos carros que tinham 8 cilindros ou que foram produzidos antes de 1980?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Max(cars_data.MPG) FROM cars_data WHERE cars_data.Weight = 'terminal' OR cars_data.Year < 'terminal'", "score": -1.5499182310013566}]} {"index": 171, "beams": [{"orig_question": "Quais modelos são mais leves do que 3500, mas não foram construídos pela 'Ford Motor Company'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Weight FROM cars_data WHERE cars_data.Weight > 'terminal' EXCEPT SELECT model_list.Model FROM model_list JOIN car_names JOIN car_makers WHERE car_makers.FullName = 'terminal'", "score": -4.751695319951978}]} {"index": 172, "beams": [{"orig_question": "Quais são os diferentes modelos que são mais leves do que 3500, mas não foram construídos pela Ford Motor Company?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT DISTINCT model_list.Model FROM cars_data WHERE cars_data.Weight > 'terminal' EXCEPT SELECT model_list.Model FROM model_list JOIN car_makers WHERE car_makers.FullName = 'terminal'", "score": -3.781750797992572}]} {"index": 173, "beams": [{"orig_question": "Quais são os nomes dos países onde não existe um único fabricante de automóveis?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT countries.CountryName FROM countries EXCEPT SELECT countries.CountryName FROM countries JOIN car_makers", "score": -0.5602455868139486}]} {"index": 174, "beams": [{"orig_question": "Quais são os nomes dos países sem fabricantes de automóveis?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT countries.CountryName FROM countries EXCEPT SELECT countries.CountryName FROM countries JOIN car_makers", "score": -0.21777007054696895}]} {"index": 175, "beams": [{"orig_question": "Quais são as montadoras que produzem pelo menos 2 modelos e mais de 3 montadoras? Liste a id e o fabricante.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT model_list.ModelId, model_list.Model FROM model_list JOIN car_names GROUP BY car_names.Model HAVING Count(*) >= 'terminal'", "score": -2.89309734664846}]} {"index": 176, "beams": [{"orig_question": "Quais são os ids e fabricantes de todos os fabricantes de automóveis que produzem pelo menos 2 modelos e fazem mais de 3 carros?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT cars_data.Id, cars_data.MPG FROM cars_data GROUP BY cars_data.Id HAVING Count(*) >= 'terminal' INTERSECT SELECT cars_data.Id, cars_data.MPG FROM cars_data GROUP BY cars_data.Id HAVING Count(*) >= 'terminal'", "score": -5.238011969253414}]} {"index": 177, "beams": [{"orig_question": "Quais são os id e nomes dos países que têm mais de 3 fabricantes de automóveis ou produzem o modelo 'fiat'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT car_makers.Country, countries.CountryName FROM countries JOIN car_makers WHERE car_makers.FullName = 'terminal' GROUP BY car_makers.Country HAVING Count(*) > 'terminal'", "score": -1.1258210933592636}]} {"index": 178, "beams": [{"orig_question": "Quais são os ids e nomes de todos os países que têm mais de 3 fabricantes de automóveis ou produzem modelo fiat?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT car_makers.Country, countries.CountryName FROM countries JOIN car_makers WHERE car_makers.FullName = 'terminal' GROUP BY car_makers.Country HAVING Count(*) > 'terminal'", "score": -1.3836995446472429}]} {"index": 179, "beams": [{"orig_question": "A que país pertence a companhia aérea \"JetBlue Airways\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.Country FROM airlines WHERE airlines.Airline = 'terminal'", "score": -0.001050469399586973}]} {"index": 180, "beams": [{"orig_question": "Em que país a Jetblue Airways é afiliada?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.Country FROM airlines WHERE airlines.Airline = 'terminal'", "score": -0.004403415387059795}]} {"index": 181, "beams": [{"orig_question": "Qual é a abreviatura de Airline \"JetBlue Airways\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.uid FROM airlines WHERE airlines.Airline = 'terminal'", "score": -0.012811314048576605}]} {"index": 182, "beams": [{"orig_question": "Qual abreviatura corresponde a Jetblue Airways?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT * FROM airlines WHERE airlines.Airline = 'terminal'", "score": -2.326406179461628}]} {"index": 183, "beams": [{"orig_question": "Liste todos os nomes das companhias aéreas e suas abreviações em \"EUA\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.Airline, airlines.Abbreviation FROM airlines WHERE airlines.Country = 'terminal'", "score": -0.06434189497485931}]} {"index": 184, "beams": [{"orig_question": "Quais são os nomes e abreviações das companhias aéreas nos EUA?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.Airline, airlines.Abbreviation FROM airlines WHERE airlines.Country = 'terminal'", "score": -0.15242192424557288}]} {"index": 185, "beams": [{"orig_question": "Liste o código e o nome do aeroporto na cidade de Anthony.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.AirportCode, airports.AirportName FROM airports WHERE airports.City = 'terminal'", "score": -0.005304787046036097}]} {"index": 186, "beams": [{"orig_question": "Forneça o código e o nome do aeroporto correspondentes à cidade de Antônio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.AirportCode, airports.AirportName FROM airports WHERE airports.City = 'terminal'", "score": -0.002727562780307835}]} {"index": 187, "beams": [{"orig_question": "Quantas companhias aéreas nós temos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM airlines", "score": -0.01888591794158856}]} {"index": 188, "beams": [{"orig_question": "Qual é o número total de companhias aéreas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM airlines", "score": -0.004819445093744434}]} {"index": 189, "beams": [{"orig_question": "Quantos aeroportos nós temos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM airports", "score": -0.0011755222153624345}]} {"index": 190, "beams": [{"orig_question": "Retorne o número de aeroportos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM airports", "score": -0.0020475336796152988}]} {"index": 191, "beams": [{"orig_question": "Quantos voos temos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM flights", "score": -0.014549912884831429}]} {"index": 192, "beams": [{"orig_question": "Retorna o número de voos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM flights", "score": -0.09453556544031017}]} {"index": 193, "beams": [{"orig_question": "Qual companhia aérea tem a abreviatura 'UAL'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines WHERE airlines.Abbreviation = 'terminal'", "score": -0.0038973754598146115}]} {"index": 194, "beams": [{"orig_question": "Dê à companhia aérea a abreviatura 'UAL'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines WHERE airlines.Abbreviation = 'terminal'", "score": -0.020617673987999297}]} {"index": 195, "beams": [{"orig_question": "Quantas companhias aéreas são dos EUA?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM airlines WHERE airlines.Country = 'terminal'", "score": -0.14648667960454986}]} {"index": 196, "beams": [{"orig_question": "Retorne o número de companhias aéreas nos EUA.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM airlines WHERE airlines.Country = 'terminal'", "score": -0.1274429857247128}]} {"index": 197, "beams": [{"orig_question": "Em que cidade e país fica o aeroporto de Alton?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.City, airports.Country FROM airports WHERE airports.AirportName = 'terminal'", "score": -0.0021198971507772058}]} {"index": 198, "beams": [{"orig_question": "Forneça a cidade e o país para o aeroporto de Alton.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.City, airports.Country FROM airports WHERE airports.AirportName = 'terminal'", "score": -0.0016760822932724295}]} {"index": 199, "beams": [{"orig_question": "Qual é o nome do aeroporto para o aeroporto 'AKO'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.AirportCode = 'terminal'", "score": -0.020070968193522276}]} {"index": 200, "beams": [{"orig_question": "Retorne o nome do aeroporto com o código 'AKO'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.AirportCode = 'terminal'", "score": -0.0008999107517126959}]} {"index": 201, "beams": [{"orig_question": "Quais são os nomes dos aeroportos na cidade 'Aberdeen'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.City = 'terminal'", "score": -0.00036597251118308805}]} {"index": 202, "beams": [{"orig_question": "Quais são os nomes dos aeroportos em Aberdeen?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.AirportName FROM airports WHERE airports.City = 'terminal'", "score": -0.0004165170265366669}]} {"index": 203, "beams": [{"orig_question": "Quantos voos partem de 'APG'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM flights WHERE flights.DestAirport = 'terminal'", "score": -0.03145780283375643}]} {"index": 204, "beams": [{"orig_question": "Conte o número de voos partindo de 'APG'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM flights WHERE flights.DestAirport = 'terminal'", "score": -0.14143693493679166}]} {"index": 205, "beams": [{"orig_question": "Quantos voos têm destino ATO?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM flights WHERE flights.DestAirport = 'terminal'", "score": -0.004493659391300753}]} {"index": 206, "beams": [{"orig_question": "Conte o número de voos em ATO.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM flights WHERE flights.SourceAirport = 'terminal'", "score": -0.5673612470272928}]} {"index": 207, "beams": [{"orig_question": "Quantos voos partem da cidade de Aberdeen?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.0884164701710688}]} {"index": 208, "beams": [{"orig_question": "Retorne o número de voos partindo de Aberdeen.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.027790741659259766}]} {"index": 209, "beams": [{"orig_question": "Quantos voos chegam à cidade de Aberdeen?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.07005647867208609}]} {"index": 210, "beams": [{"orig_question": "Retorne o número de voos chegando em Aberdeen.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.007217850166398421}]} {"index": 211, "beams": [{"orig_question": "Quantos voos partem da cidade 'Aberdeen' e têm destino na cidade 'Ashley'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM flights JOIN airports WHERE airports.City = 'terminal' AND airports.City = 'terminal'", "score": -0.9071792797158196}]} {"index": 212, "beams": [{"orig_question": "Quantos voos voam de Aberdeen para Ashley?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal' AND airports.AirportName = 'terminal'", "score": -0.6909136435169785}]} {"index": 213, "beams": [{"orig_question": "Quantos voos tem a companhia aérea 'JetBlue Airways'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = 'terminal'", "score": -0.2958547434081993}]} {"index": 214, "beams": [{"orig_question": "Forneça o número de voos da Jetblue Airways.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM flights JOIN airlines WHERE airlines.Airline = 'terminal'", "score": -1.6638640209566802}]} {"index": 215, "beams": [{"orig_question": "Quantos voos da 'United Airlines' vão para o aeroporto 'ASY'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = 'terminal' AND flights.DestAirport = 'terminal'", "score": -0.07372506018145941}]} {"index": 216, "beams": [{"orig_question": "Conte o número de voos da United Airlines que chegam ao Aeroporto ASY.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = 'terminal'", "score": -0.6309538422792684}]} {"index": 217, "beams": [{"orig_question": "Quantos voos da 'United Airlines' partem do aeroporto 'AHD'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = 'terminal' AND flights.DestAirport = 'terminal'", "score": -1.3281750272144563}]} {"index": 218, "beams": [{"orig_question": "Retorne o número de voos da United Airlines saindo do aeroporto AHD.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN flights WHERE airlines.Airline = 'terminal' AND airlines.Airline = 'terminal'", "score": -0.8081804513931274}]} {"index": 219, "beams": [{"orig_question": "Quantos voos da United Airlines vão para a cidade de 'Aberdeen'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN airports WHERE airports.City = 'terminal' AND airports.City = 'terminal'", "score": -2.649364513679757}]} {"index": 220, "beams": [{"orig_question": "Conte o número de voos da United Airlines que chegam em Aberdeen.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM airlines JOIN airports WHERE airports.City = 'terminal' AND airlines.Airline = 'terminal'", "score": -3.580205868129269}]} {"index": 221, "beams": [{"orig_question": "Qual cidade tem o maior número de voos chegando?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.City FROM airports JOIN flights GROUP BY airports.City ORDER BY Count(*) Desc LIMIT 1", "score": -0.3105840111056466}]} {"index": 222, "beams": [{"orig_question": "Qual cidade tem o aeroporto de destino mais frequente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.City FROM airports JOIN flights GROUP BY airports.City ORDER BY Count(*) Desc LIMIT 1", "score": -0.6635876592949899}]} {"index": 223, "beams": [{"orig_question": "Qual cidade tem o maior número de voos de partida?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.City FROM airports JOIN flights GROUP BY airports.City ORDER BY Count(*) Desc LIMIT 1", "score": -0.05871062681796957}]} {"index": 224, "beams": [{"orig_question": "Qual cidade é o aeroporto de origem mais frequente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.City FROM airports JOIN flights GROUP BY airports.City ORDER BY Count(*) Desc LIMIT 1", "score": -0.6767907091411871}]} {"index": 225, "beams": [{"orig_question": "Qual é o código do aeroporto com maior número de voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.AirportCode FROM airports JOIN flights GROUP BY airports.AirportCode ORDER BY Count(*) Desc LIMIT 1", "score": -0.5263985309319423}]} {"index": 226, "beams": [{"orig_question": "Qual é o código do aeroporto com mais voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.AirportCode FROM airports JOIN flights GROUP BY airports.AirportCode ORDER BY Count(*) Desc LIMIT 1", "score": -0.45671541556657047}]} {"index": 227, "beams": [{"orig_question": "Qual é o código do aeroporto com menor número de voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.AirportCode FROM airports JOIN flights GROUP BY airports.AirportCode ORDER BY Count(*) Asc LIMIT 1", "score": -1.5203664466607734}]} {"index": 228, "beams": [{"orig_question": "Dê o código do aeroporto com o menor número de voos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airports.City FROM flights JOIN airports GROUP BY flights.DestAirport ORDER BY Count(*) Asc LIMIT 1", "score": -1.6423515959941142}]} {"index": 229, "beams": [{"orig_question": "Qual companhia aérea tem o maior número de voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY airlines.Airline ORDER BY Count(*) Desc LIMIT 1", "score": -0.3059920352397967}]} {"index": 230, "beams": [{"orig_question": "Qual companhia aérea atende mais voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY airlines.Airline ORDER BY Count(*) Desc LIMIT 1", "score": -0.2160538403999226}]} {"index": 231, "beams": [{"orig_question": "Encontre a abreviatura e o país da companhia aérea com o menor número de voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline, airlines.Country FROM airlines JOIN flights JOIN airports GROUP BY airlines.Airline ORDER BY Count(*) Asc LIMIT 1", "score": -1.3346007127547637}]} {"index": 232, "beams": [{"orig_question": "Qual é a abreviatura de airilne has the menos vôos e em que país se encontra?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT flights.Airline, airports.Country FROM flights JOIN airports GROUP BY airports.Country ORDER BY Count(*) Asc LIMIT 1", "score": -1.251611491665244}]} {"index": 233, "beams": [{"orig_question": "Quais são as companhias aéreas que possuem algum vôo saindo do aeroporto 'AHD'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports WHERE airports.AirportCode = 'terminal'", "score": -2.565330027602613}]} {"index": 234, "beams": [{"orig_question": "Quais companhias aéreas têm um voo com aeroporto de origem AHD?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = 'terminal'", "score": -0.44782636302988976}]} {"index": 235, "beams": [{"orig_question": "Quais são as companhias aéreas que têm voos chegando no aeroporto 'AHD'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports WHERE airports.AirportCode = 'terminal'", "score": -1.6719208387658}]} {"index": 236, "beams": [{"orig_question": "Quais companhias aéreas têm voos com destino ao aeroporto AHD?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.DestAirport = 'terminal'", "score": -1.1128688035532832}]} {"index": 237, "beams": [{"orig_question": "Encontre todas as companhias aéreas com voos dos aeroportos 'APG' e 'CVO'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports WHERE flights.SourceAirport = 'terminal' INTERSECT SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.SourceAirport = 'terminal'", "score": -2.3174266449641436}]} {"index": 238, "beams": [{"orig_question": "Quais companhias aéreas têm voos saindo dos aeroportos APG e CVO?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports WHERE airports.AirportCode = 'terminal' INTERSECT SELECT airlines.Airline FROM airlines JOIN airports WHERE airports.AirportCode = 'terminal'", "score": -1.1831942808348686}]} {"index": 239, "beams": [{"orig_question": "Encontre todas as companhias aéreas que possuem voos do aeroporto 'CVO', mas não da 'APG'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports WHERE flights.SourceAirport = 'terminal' EXCEPT SELECT airlines.Airline FROM airlines JOIN airports WHERE flights.SourceAirport = 'terminal'", "score": -3.7599467614199895}]} {"index": 240, "beams": [{"orig_question": "Quais companhias aéreas partem de CVO, mas não de aeroportos APG?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN airports WHERE airlines.Abbreviation = 'terminal' EXCEPT SELECT airlines.Airline FROM airlines JOIN airports WHERE airports.AirportCode = 'terminal'", "score": -0.9766143140732311}]} {"index": 241, "beams": [{"orig_question": "Encontre todas as companhias aéreas com pelo menos 10 voos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY flights.Airline HAVING Count(*) >= 'terminal'", "score": -0.6701406717766076}]} {"index": 242, "beams": [{"orig_question": "Quais companhias aéreas têm pelo menos 10 voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights GROUP BY flights.Airline HAVING Count(*) >= 'terminal'", "score": -0.6098699372378178}]} {"index": 243, "beams": [{"orig_question": "Encontre todas as companhias aéreas com menos de 200 voos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.FlightNo < 'terminal'", "score": -0.47055163294862723}]} {"index": 244, "beams": [{"orig_question": "Quais companhias aéreas têm menos de 200 voos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airlines.Airline FROM airlines JOIN flights WHERE flights.FlightNo < 'terminal'", "score": -0.29098522877757205}]} {"index": 245, "beams": [{"orig_question": "Quais são os números dos voos da companhia aérea \"United Airlines\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airlines JOIN flights WHERE airlines.Airline = 'terminal'", "score": -0.02039469714873121}]} {"index": 246, "beams": [{"orig_question": "Quais números de voo correspondem aos voos da United Airlines?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airlines JOIN flights WHERE airlines.Airline = 'terminal'", "score": -0.3544219391851584}]} {"index": 247, "beams": [{"orig_question": "Quais são os números dos voos que partem do aeroporto \"APG\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.DestAirport = 'terminal'", "score": -0.2044828915677499}]} {"index": 248, "beams": [{"orig_question": "Forneça os números dos voos que partem de APG.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.6810144679766381}]} {"index": 249, "beams": [{"orig_question": "Quais são os números dos voos que chegam ao aeroporto \"APG\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.DestAirport = 'terminal'", "score": -0.07898527669385658}]} {"index": 250, "beams": [{"orig_question": "Forneça os números dos voos que pousam no APG.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM flights WHERE flights.DestAirport = 'terminal'", "score": -0.030650932311459655}]} {"index": 251, "beams": [{"orig_question": "Quais são os números dos voos que partem da cidade \"Aberdeen\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.06991575803840533}]} {"index": 252, "beams": [{"orig_question": "Forneça os números dos voos que partem de Aberdeen.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.08679987641698972}]} {"index": 253, "beams": [{"orig_question": "Quais são os números dos voos que chegam à cidade \"Aberdeen\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.07025077667276491}]} {"index": 254, "beams": [{"orig_question": "Forneça os números dos voos que chegam em Aberdeen.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT flights.FlightNo FROM airports JOIN flights WHERE airports.City = 'terminal'", "score": -0.029164888876721307}]} {"index": 255, "beams": [{"orig_question": "Encontre o número de voos que pousam na cidade de Aberdeen ou Abilene.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal' OR airports.City = 'terminal'", "score": -0.11871237275573776}]} {"index": 256, "beams": [{"orig_question": "Quantos voos pousam em Aberdeen ou Abilene?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM airports JOIN flights WHERE airports.City = 'terminal' OR airports.City = 'terminal'", "score": -0.16298702367021178}]} {"index": 257, "beams": [{"orig_question": "Encontre o nome dos aeroportos que não têm voos de ida e volta.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT airports.AirportName FROM airports JOIN flights WHERE airports.CountryAbbrev = 'terminal' EXCEPT SELECT airports.AirportName FROM airports WHERE airports.CountryAbbrev = 'terminal'", "score": -1.9636075694288593}]} {"index": 258, "beams": [{"orig_question": "Quais aeroportos não possuem voos de ida ou de chegada?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT * FROM airports WHERE airports.AirportName = 'terminal' EXCEPT SELECT flights.SourceAirport FROM flights GROUP BY flights.DestAirport HAVING Count(*) >= 'terminal'", "score": -6.120193286333233}]} {"index": 259, "beams": [{"orig_question": "Quantos funcionários tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM employee", "score": -0.002375899498929357}]} {"index": 260, "beams": [{"orig_question": "Conte o número de funcionários", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM employee", "score": -0.0014183292041707318}]} {"index": 261, "beams": [{"orig_question": "Classifique os nomes dos funcionários por idade em ordem crescente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.Name FROM employee ORDER BY employee.Age Asc", "score": -0.005686996242559417}]} {"index": 262, "beams": [{"orig_question": "Liste os nomes dos funcionários e classifique em ordem crescente de idade.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.Name FROM employee ORDER BY employee.Age Asc", "score": -0.005478023706416479}]} {"index": 263, "beams": [{"orig_question": "Qual é o número de funcionários de cada cidade?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.City, Count(*) FROM employee GROUP BY employee.City", "score": -0.008000373783488612}]} {"index": 264, "beams": [{"orig_question": "Conte o número de funcionários de cada cidade.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.City, Count(*) FROM employee GROUP BY employee.City", "score": -0.010765910119346245}]} {"index": 265, "beams": [{"orig_question": "De quais cidades vem mais de um funcionário com menos de 30 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.City FROM employee WHERE employee.Age > 'terminal' INTERSECT SELECT employee.City FROM employee WHERE employee.Age < 'terminal'", "score": -0.5109403441585982}]} {"index": 266, "beams": [{"orig_question": "Encontre as cidades que têm mais de um funcionário com menos de 30 anos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.City FROM employee WHERE employee.Age > 'terminal'", "score": -0.7378438711135686}]} {"index": 267, "beams": [{"orig_question": "Encontre o número de lojas em cada local.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Location, Count(*) FROM shop GROUP BY shop.Location", "score": -0.005013704236255023}]} {"index": 268, "beams": [{"orig_question": "Quantas lojas existem em cada local?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Location, Count(*) FROM shop GROUP BY shop.Location", "score": -0.004392146940062958}]} {"index": 269, "beams": [{"orig_question": "Encontre o nome do gerente e o distrito da loja cujo número de produtos é o maior.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Manager_name, shop.District FROM employee JOIN shop GROUP BY shop.Manager_name ORDER BY Count(*) Desc LIMIT 1", "score": -1.2152542190833628}]} {"index": 270, "beams": [{"orig_question": "Qual é o nome do gerente e o distrito da loja que vende o maior número de produtos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT shop.Manager_name, shop.District FROM shop JOIN hiring GROUP BY hiring.Shop_ID ORDER BY Count(*) Desc LIMIT 1", "score": -3.605904138588812}]} {"index": 271, "beams": [{"orig_question": "encontre o número mínimo e máximo de produtos de todas as lojas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Min(shop.Name), Max(shop.Number_products) FROM shop", "score": -1.898627073969692}]} {"index": 272, "beams": [{"orig_question": "Quais são os números mínimo e máximo de produtos em todas as lojas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Min(shop.Number_products), Max(shop.Number_products) FROM shop", "score": -1.1970534424763173}]} {"index": 273, "beams": [{"orig_question": "Retorne o nome, localização e distrito de todas as lojas em ordem decrescente de número de produtos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name, shop.Location, shop.District FROM shop ORDER BY shop.Name Desc", "score": -1.1667962997889845}]} {"index": 274, "beams": [{"orig_question": "Classifique todas as lojas por número de produtos em ordem decrescente e retorne o nome, a localização e o bairro de cada loja.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name, shop.Manager_name, shop.Location FROM shop ORDER BY shop.Name Desc", "score": -1.0459832548422128}]} {"index": 275, "beams": [{"orig_question": "Encontre os nomes das lojas cujo número de produtos é maior do que o número médio de produtos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Number_products > (SELECT Avg(shop.Number_products) FROM shop)", "score": -0.3307830823468976}]} {"index": 276, "beams": [{"orig_question": "O número de produtos de quais lojas está acima da média? Dê-me os nomes das lojas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT shop.Name) FROM shop WHERE shop.Number_products > (SELECT Avg(hiring.Is_full_time) FROM hiring)", "score": -1.7770952501450665}]} {"index": 277, "beams": [{"orig_question": "encontre o nome do funcionário mais premiado na avaliação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT employee.Name FROM employee JOIN hiring GROUP BY employee.Employee_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.2065119556909849}]} {"index": 278, "beams": [{"orig_question": "Qual funcionário recebeu mais prêmios nas avaliações? Dê-me o nome do funcionário.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation GROUP BY employee.Employee_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.2323781329432677}]} {"index": 279, "beams": [{"orig_question": "Encontre o nome do funcionário que recebeu o maior bônus único.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation ORDER BY evaluation.Bonus Desc LIMIT 1", "score": -0.19396795181091875}]} {"index": 280, "beams": [{"orig_question": "Qual funcionário recebeu o maior bônus? Dê-me o nome do funcionário.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 17, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT employee.Name FROM employee JOIN evaluation GROUP BY employee.Employee_ID ORDER BY Sum(evaluation.Bonus) Desc LIMIT 1", "score": -0.8209805147853331}]} {"index": 281, "beams": [{"orig_question": "Encontre os nomes dos funcionários que nunca ganharam nenhum prêmio na avaliação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.Name FROM employee WHERE employee.Employee_ID NOT IN (SELECT evaluation.Employee_ID FROM evaluation)", "score": -0.11885551745069023}]} {"index": 282, "beams": [{"orig_question": "Quais são os nomes dos funcionários que nunca foram avaliados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT employee.Name FROM employee WHERE employee.Employee_ID NOT IN (SELECT evaluation.Employee_ID FROM evaluation)", "score": -0.1024460259867439}]} {"index": 283, "beams": [{"orig_question": "Qual é o nome da loja que está contratando o maior número de funcionários?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name FROM hiring JOIN shop GROUP BY hiring.Shop_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.12367893301416188}]} {"index": 284, "beams": [{"orig_question": "Qual loja tem mais funcionários? Dê-me o nome da loja.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT shop.Name FROM shop JOIN hiring GROUP BY shop.Name ORDER BY Count(*) Desc LIMIT 1", "score": -0.7752056058961898}]} {"index": 285, "beams": [{"orig_question": "Encontre o nome das lojas que não contratam nenhum funcionário.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Shop_ID NOT IN (SELECT hiring.Shop_ID FROM hiring)", "score": -0.046887270865966}]} {"index": 286, "beams": [{"orig_question": "Quais lojas funcionam sem funcionários? Encontre os nomes das lojas", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name FROM shop WHERE shop.Shop_ID NOT IN (SELECT hiring.Shop_ID FROM hiring)", "score": -0.04382926937429943}]} {"index": 287, "beams": [{"orig_question": "Encontre o número de funcionários contratados em cada loj", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*), hiring.Shop_ID FROM hiring GROUP BY hiring.Shop_ID", "score": -0.6332958247512579}]} {"index": 288, "beams": [{"orig_question": "Para cada loja, retorne o número de funcionários que trabalham lá e o nome da loja.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.Name, Count(*) FROM hiring JOIN shop GROUP BY hiring.Shop_ID", "score": -1.0562969695297397}]} {"index": 289, "beams": [{"orig_question": "Qual é o bônus total dado em todas as avaliações?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Sum(evaluation.Year_awarded) FROM evaluation", "score": -0.11460328835710243}]} {"index": 290, "beams": [{"orig_question": "Encontre o valor total do bônus concedido em todas as avaliações.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Sum(evaluation.Year_awarded) FROM evaluation", "score": -0.2628696255887917}]} {"index": 291, "beams": [{"orig_question": "Dê-me todas as informações sobre contratação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT * FROM hiring", "score": -0.2420275508920895}]} {"index": 292, "beams": [{"orig_question": "Quais são todas as informações sobre contratação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT * FROM hiring", "score": -0.05766575405050389}]} {"index": 293, "beams": [{"orig_question": "Qual distrito tem lojas com menos de 3.000 produtos e lojas com mais de 10.000 produtos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.District FROM shop WHERE shop.Number_products < 'terminal' INTERSECT SELECT shop.District FROM shop WHERE shop.Number_products < 'terminal'", "score": -1.1124004882367373}]} {"index": 294, "beams": [{"orig_question": "Encontre os distritos em que existem lojas que vendem menos de 3.000 produtos e lojas que vendem mais de 10.000 produtos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT shop.District FROM shop WHERE shop.Number_products < 'terminal' INTERSECT SELECT shop.District FROM shop WHERE shop.Number_products > 'terminal'", "score": -1.148346318499506}]} {"index": 295, "beams": [{"orig_question": "Quantas localizações de lojas diferentes existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT shop.Location) FROM shop", "score": -0.008167334482976685}]} {"index": 296, "beams": [{"orig_question": "Conte o número de localizações de lojas distintas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT shop.Location) FROM shop", "score": -0.0029151228225714476}]} {"index": 297, "beams": [{"orig_question": "Quantos documentos temos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Documents", "score": -0.02838484663516283}]} {"index": 298, "beams": [{"orig_question": "Conte o número de documentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Documents", "score": -0.006098700454458594}]} {"index": 299, "beams": [{"orig_question": "Liste IDs de documentos, nomes de documentos e descrições de todos os documentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Documents.Document_Description FROM Documents", "score": -0.03211284082499333}]} {"index": 300, "beams": [{"orig_question": "Quais são os ids, nomes e descrições de todos os documentos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Documents.Document_Description FROM Documents", "score": -0.07184007560135797}]} {"index": 301, "beams": [{"orig_question": "Qual é o nome do documento e o id do modelo para o documento com a descrição com a letra 'w' nele?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_Name, Documents.Document_ID FROM Documents WHERE Documents.Document_Description LIKE 'terminal'", "score": -0.16821166246529629}]} {"index": 302, "beams": [{"orig_question": "Retorne os nomes e ids de modelo para documentos que contenham a letra w em sua descrição.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_Name, Documents.Document_ID FROM Documents WHERE Documents.Document_Description LIKE 'terminal'", "score": -0.10959575871015659}]} {"index": 303, "beams": [{"orig_question": "Qual é o id do documento, id do modelo e descrição para um documento chamado \"Robbin CV\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Template_ID, Documents.Document_Description FROM Documents WHERE Documents.Document_Name = 'terminal'", "score": -0.03439994352015674}]} {"index": 304, "beams": [{"orig_question": "Retorne o id do documento, id do modelo e descrição do documento com o nome Robbin CV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Template_ID, Documents.Document_Description FROM Documents WHERE Documents.Document_Name = 'terminal'", "score": -0.07711467907574843}]} {"index": 305, "beams": [{"orig_question": "Quantos modelos diferentes todos os documentos usam?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(DISTINCT Paragraphs.Document_ID) FROM Paragraphs", "score": -0.26911055482923985}]} {"index": 306, "beams": [{"orig_question": "Conte o número de modelos diferentes usados para documentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(DISTINCT Paragraphs.Document_ID) FROM Paragraphs", "score": -0.06884284503757954}]} {"index": 307, "beams": [{"orig_question": "Quantos documentos estão usando o modelo com o código de tipo 'PPT'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Documents JOIN Templates WHERE Templates.Template_Type_Code = 'terminal'", "score": -0.7619088566571008}]} {"index": 308, "beams": [{"orig_question": "Conte o número de documentos que usam o tipo de modelo PPT.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Templates WHERE Templates.Template_Type_Code = 'terminal'", "score": -0.2769416232149524}]} {"index": 309, "beams": [{"orig_question": "Mostre todos os IDs de modelo e número de documentos usando cada modelo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Template_ID, Count(*) FROM Documents JOIN Paragraphs GROUP BY Paragraphs.Document_ID", "score": -4.047928666928783}]} {"index": 310, "beams": [{"orig_question": "Quais são todos os IDs de modelo diferentes usados para documentos e quantas vezes cada um deles foi usado?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID, Count(*) FROM Paragraphs GROUP BY Paragraphs.Document_ID", "score": -0.1444869260303676}]} {"index": 311, "beams": [{"orig_question": "Qual é o código de id e tipo para o modelo usado pela maioria dos documentos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Template_ID, Count(*) FROM Documents GROUP BY Documents.Template_ID ORDER BY Count(*) Desc LIMIT 1", "score": -1.5775588874166715}]} {"index": 312, "beams": [{"orig_question": "Retorne o id e o código de tipo do modelo que é usado para o maior número de documentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Documents.Template_ID, Templates.Template_Type_Code FROM Documents JOIN Templates GROUP BY Documents.Template_ID ORDER BY Count(*) Desc LIMIT 1", "score": -2.9027714270632714}]} {"index": 313, "beams": [{"orig_question": "Mostre os ids de todos os modelos usados por mais de um documento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Template_ID FROM Documents JOIN Paragraphs GROUP BY Documents.Template_ID HAVING Count(*) > 'terminal'", "score": -0.8754918425693177}]} {"index": 314, "beams": [{"orig_question": "Quais são os IDs de modelo de qualquer modelo usado em mais de um único documento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) > 'terminal'", "score": -0.8425955674611032}]} {"index": 315, "beams": [{"orig_question": "Mostre ids para todos os modelos não usados por nenhum documento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_ID FROM Templates EXCEPT SELECT Documents.Template_ID FROM Documents", "score": -0.1461520530283451}]} {"index": 316, "beams": [{"orig_question": "Quais são os ids para modelos que não são usados em nenhum documento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_ID FROM Templates EXCEPT SELECT Documents.Template_ID FROM Documents", "score": -0.11975454213097692}]} {"index": 317, "beams": [{"orig_question": "Quantos modelos nós temos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Templates", "score": -0.027534683234989643}]} {"index": 318, "beams": [{"orig_question": "Conte o número de modelos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Templates", "score": -0.07810208178125322}]} {"index": 319, "beams": [{"orig_question": "Mostre ids de modelo, números de versão e códigos de tipo de modelo para todos os modelos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_ID, Templates.Version_Number, Templates.Template_Type_Code FROM Templates", "score": -0.06819489206827711}]} {"index": 320, "beams": [{"orig_question": "Quais são os ids, números de versão e códigos de tipo para cada modelo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_ID, Templates.Version_Number, Templates.Template_Type_Code FROM Templates", "score": -0.17448018223512918}]} {"index": 321, "beams": [{"orig_question": "Mostre todos os códigos de tipo de modelo distintos para todos os modelos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT Templates.Template_Type_Code FROM Templates", "score": -0.21071155555546284}]} {"index": 322, "beams": [{"orig_question": "Quais são os diferentes códigos de tipo de modelo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT DISTINCT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types", "score": -0.06657284311950207}]} {"index": 323, "beams": [{"orig_question": "Quais são os ids dos modelos com código de tipo de modelo PP ou PPT?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_ID FROM Templates WHERE Templates.Template_Type_Code = 'terminal' OR Templates.Template_Type_Code = 'terminal'", "score": -0.015139831812120974}]} {"index": 324, "beams": [{"orig_question": "Retorne os ids dos modelos que possuem o código PP ou PPT.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_ID FROM Templates WHERE Templates.Template_Type_Code = 'terminal' OR Templates.Template_Type_Code = 'terminal'", "score": -0.3736184726585634}]} {"index": 325, "beams": [{"orig_question": "Quantos modelos têm o código de tipo de modelo CV?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Templates WHERE Templates.Template_Type_Code = 'terminal'", "score": -0.032441735645988956}]} {"index": 326, "beams": [{"orig_question": "Conte o número de modelos do tipo CV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Templates WHERE Templates.Template_Type_Code = 'terminal'", "score": -0.01580753206508234}]} {"index": 327, "beams": [{"orig_question": "Qual é o número da versão e o código do tipo de modelo para o modelo com número de versão posterior a 5?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code, Templates.Template_Type_Code FROM Ref_Template_Types JOIN Templates WHERE Templates.Template_ID < 'terminal'", "score": -3.227501966059208}]} {"index": 328, "beams": [{"orig_question": "Retorne os números de versão e códigos de tipo de modelo de modelos com um número de versão maior que 5.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code, Templates.Template_Type_Code FROM Ref_Template_Types JOIN Templates GROUP BY Templates.Template_Type_Code HAVING Count(*) > 'terminal'", "score": -1.6051302081905234}]} {"index": 329, "beams": [{"orig_question": "Mostre todos os códigos de tipo de modelo e o número de modelos para cada um.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "score": -0.024788834665280035}]} {"index": 330, "beams": [{"orig_question": "Quais são os diferentes códigos de tipo de modelo e quantos modelos correspondem a cada um?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "score": -0.0266343033144949}]} {"index": 331, "beams": [{"orig_question": "Qual tipo de código de modelo tem o maior número de modelos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "score": -0.016258834718996695}]} {"index": 332, "beams": [{"orig_question": "Retorne o código de tipo do tipo de modelo ao qual a maioria dos modelos pertence.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "score": -0.17573147265011357}]} {"index": 333, "beams": [{"orig_question": "Mostre todos os códigos de tipo de modelo com menos de três modelos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}], "having": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code HAVING Count(*) < 'terminal'", "score": -0.6252050953917205}]} {"index": 334, "beams": [{"orig_question": "Quais são os códigos dos tipos de modelo que têm menos de 3 modelos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}], "having": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Templates JOIN Ref_Template_Types GROUP BY Templates.Template_Type_Code HAVING Count(*) < 'terminal'", "score": -1.6478165084954455}]} {"index": 335, "beams": [{"orig_question": "Qual é o menor número de versão e seu código de tipo de modelo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Version_Number, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Asc LIMIT 1", "score": -0.48132464475929737}]} {"index": 336, "beams": [{"orig_question": "Retorne o menor número de versão, junto com seu código de tipo de modelo correspondente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Version_Number, Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Asc LIMIT 1", "score": -0.2987253351020627}]} {"index": 337, "beams": [{"orig_question": "Qual é o código de tipo de modelo do modelo usado pelo documento com o nome \"Base de dados\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Documents JOIN Templates WHERE Documents.Document_Name = 'terminal'", "score": -0.12062204163521528}]} {"index": 338, "beams": [{"orig_question": "Retorne o código do tipo de modelo do modelo que é usado por um documento denominado Base de dados.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Documents JOIN Templates WHERE Documents.Document_Name = 'terminal'", "score": -0.22900014370679145}]} {"index": 339, "beams": [{"orig_question": "Mostre todos os nomes de documentos usando modelos com o código de tipo de modelo BK.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Documents.Document_Name FROM Documents JOIN Templates WHERE Templates.Template_Type_Code = 'terminal'", "score": -1.0285674133919827}]} {"index": 340, "beams": [{"orig_question": "Quais são os nomes dos documentos que usam modelos com o código BK?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Documents.Document_Name FROM Documents JOIN Paragraphs JOIN Templates WHERE Templates.Template_Type_Code = 'terminal'", "score": -4.905791873430587}]} {"index": 341, "beams": [{"orig_question": "Mostre todos os códigos de tipo de modelo e o número de documentos usando cada tipo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "score": -0.02850590267370734}]} {"index": 342, "beams": [{"orig_question": "Quais são os diferentes códigos de tipo de modelo e quantos documentos usam cada tipo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code, Count(*) FROM Templates GROUP BY Templates.Template_Type_Code", "score": -0.021574786631383347}]} {"index": 343, "beams": [{"orig_question": "Qual tipo de código de modelo é usado pela maioria dos documentos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "score": -0.06735020633459499}]} {"index": 344, "beams": [{"orig_question": "Retorne o código do tipo de modelo mais comumente usado em documentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Templates.Template_Type_Code FROM Templates GROUP BY Templates.Template_Type_Code ORDER BY Count(*) Desc LIMIT 1", "score": -0.08209065949972683}]} {"index": 345, "beams": [{"orig_question": "Mostre todos os códigos de tipo de modelo que não são usados por nenhum documento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types EXCEPT SELECT Templates.Template_Type_Code FROM Templates", "score": -0.18234567088074982}]} {"index": 346, "beams": [{"orig_question": "Quais são os códigos dos tipos de modelo que não são usados para nenhum documento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types EXCEPT SELECT Templates.Template_Type_Code FROM Templates", "score": -0.04690629162359983}]} {"index": 347, "beams": [{"orig_question": "Mostre todos os códigos e descrições de tipo de modelo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code, Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types", "score": -0.005057334800994795}]} {"index": 348, "beams": [{"orig_question": "Quais são os códigos de tipo e descrições para todos os tipos de modelo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code, Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types", "score": -0.011043310028981068}]} {"index": 349, "beams": [{"orig_question": "Quais são as descrições de tipo de modelo para o código de tipo de modelo \"AD\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Code = 'terminal'", "score": -0.0011160479289173963}]} {"index": 350, "beams": [{"orig_question": "Retorne a descrição do tipo de modelo do tipo de modelo com o código AD.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Code = 'terminal'", "score": -0.00030660627908218885}]} {"index": 351, "beams": [{"orig_question": "Qual é o código do tipo de modelo para a descrição do tipo de modelo \"Livro\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Description = 'terminal'", "score": -0.0003705023871418689}]} {"index": 352, "beams": [{"orig_question": "Retorne o código de tipo do tipo de modelo com a descrição \"Livro\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Ref_Template_Types.Template_Type_Code FROM Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Description = 'terminal'", "score": -0.0007432668789988384}]} {"index": 353, "beams": [{"orig_question": "Quais são as descrições de tipo de modelo distintas para os modelos já usados por qualquer documento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT Ref_Template_Types.Template_Type_Description FROM Ref_Template_Types JOIN Templates", "score": -0.5533417537808418}]} {"index": 354, "beams": [{"orig_question": "Retorne as diferentes descrições de modelos que foram usados em um documento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT DISTINCT Documents.Document_Description FROM Documents JOIN Paragraphs", "score": -0.6736650746024679}]} {"index": 355, "beams": [{"orig_question": "Quais são os IDs do modelo com a descrição do tipo de modelo \"Apresentação\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Documents.Document_ID FROM Documents JOIN Ref_Template_Types WHERE Ref_Template_Types.Template_Type_Description = 'terminal'", "score": -6.784337728349783}]} {"index": 356, "beams": [{"orig_question": "Retorne os ids correspondentes aos modelos com a descrição 'Apresentação'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Template_ID FROM Documents WHERE Documents.Document_Description = 'terminal'", "score": -0.021248017219477333}]} {"index": 357, "beams": [{"orig_question": "Quantos parágrafos no total?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM Paragraphs", "score": -0.1900159566066577}]} {"index": 358, "beams": [{"orig_question": "Conte o número de parágrafos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Ref_Template_Types", "score": -0.7845216383320803}]} {"index": 359, "beams": [{"orig_question": "Quantos parágrafos para o documento com o nome 'Summer Show'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM Documents JOIN Paragraphs WHERE Documents.Document_Name = 'terminal'", "score": -0.01950282742109266}]} {"index": 360, "beams": [{"orig_question": "Conte o número de parágrafos no documento denominado 'Summer Show'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM Documents JOIN Paragraphs WHERE Documents.Document_Name = 'terminal'", "score": -0.18014680844498798}]} {"index": 361, "beams": [{"orig_question": "Mostre detalhes de parágrafo para parágrafo com o texto 'Coreia'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT * FROM Documents WHERE Documents.Document_Name = 'terminal'", "score": -2.2304427474737167}]} {"index": 362, "beams": [{"orig_question": "Quais são os detalhes do parágrafo que inclui o texto 'Coréia'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT * FROM Templates WHERE Templates.Template_Details LIKE 'terminal'", "score": -2.663487372919917}]} {"index": 363, "beams": [{"orig_question": "Mostre todos os ids de parágrafo e textos para o documento com o nome 'Welcome to NY'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Template_ID FROM Documents WHERE Documents.Document_Name = 'terminal'", "score": -0.9238242938299379}]} {"index": 364, "beams": [{"orig_question": "Quais são os ids e os textos dos parágrafos do documento intitulado 'Welcome to NY'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_ID FROM Documents WHERE Documents.Document_Name = 'terminal'", "score": -1.102470821697807}]} {"index": 365, "beams": [{"orig_question": "Mostre todos os textos dos parágrafos do documento \"Revisões do cliente\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT * FROM Paragraphs JOIN Documents WHERE Documents.Document_Name = 'terminal'", "score": -0.886365182697773}]} {"index": 366, "beams": [{"orig_question": "Quais são os textos dos parágrafos para o documento com o nome 'Revisões do cliente'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT * FROM Documents JOIN Paragraphs WHERE Documents.Document_Name = 'terminal'", "score": -0.3579497188256937}]} {"index": 367, "beams": [{"orig_question": "Mostre todos os IDs de documentos e o número de parágrafos em cada documento. Solicite por identificação do documento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID, Count(*) FROM Paragraphs GROUP BY Paragraphs.Document_ID", "score": -0.5917574257473461}]} {"index": 368, "beams": [{"orig_question": "Retorna os diferentes ids de documentos junto com o número de parágrafos correspondentes a cada um, ordenados por id.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID, Count(*) FROM Documents JOIN Paragraphs GROUP BY Documents.Document_ID ORDER BY Count(*) Asc", "score": -0.5442047644173726}]} {"index": 369, "beams": [{"orig_question": "Mostre todos os IDs de documentos, nomes e o número de parágrafos em cada documento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Count(*) FROM Documents JOIN Paragraphs GROUP BY Documents.Document_ID", "score": -0.6009393761050887}]} {"index": 370, "beams": [{"orig_question": "Quais são os ids e nomes de cada documento, bem como o número de parágrafos em cada um?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name, Count(*) FROM Documents JOIN Paragraphs GROUP BY Documents.Document_ID", "score": -0.8714081507059745}]} {"index": 371, "beams": [{"orig_question": "Liste todos os IDs de documentos com pelo menos dois parágrafos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) >= 'terminal'", "score": -0.03549662366276607}]} {"index": 372, "beams": [{"orig_question": "Quais são os ids dos documentos que possuem 2 ou mais parágrafos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) >= 'terminal'", "score": -0.07536927673208993}]} {"index": 373, "beams": [{"orig_question": "Qual é a id e o nome do documento com maior número de parágrafos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name FROM Documents JOIN Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.6868124335378525}]} {"index": 374, "beams": [{"orig_question": "Retorna o id e o nome do documento com mais parágrafos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID, Documents.Document_Name FROM Documents JOIN Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.797291400776885}]} {"index": 375, "beams": [{"orig_question": "Qual é a identificação do documento com menor número de parágrafos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Asc LIMIT 1", "score": -0.027098604245111346}]} {"index": 376, "beams": [{"orig_question": "Retorna o id do documento com o menor número de parágrafos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID ORDER BY Count(*) Asc LIMIT 1", "score": -0.1045387008052785}]} {"index": 377, "beams": [{"orig_question": "Qual é a identificação do documento com 1 a 2 parágrafos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}], "having": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) BETWEEN 'terminal' AND 'terminal'", "score": -0.30685335396083246}]} {"index": 378, "beams": [{"orig_question": "Forneça os ids dos documentos que têm entre um e dois parágrafos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}], "having": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}], "having": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Documents.Document_ID FROM Documents GROUP BY Paragraphs.Document_ID HAVING Count(*) BETWEEN 'terminal' AND 'terminal' INTERSECT SELECT Paragraphs.Document_ID FROM Paragraphs GROUP BY Paragraphs.Document_ID HAVING Count(*) BETWEEN 'terminal' AND 'terminal'", "score": -1.6205094535980606}]} {"index": 379, "beams": [{"orig_question": "Mostre o id do documento com o texto do parágrafo 'Brasil' e 'Irlanda'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID FROM Documents JOIN Paragraphs WHERE Documents.Template_ID = 'terminal' INTERSECT SELECT Documents.Document_ID FROM Documents JOIN Paragraphs WHERE Paragraphs.Paragraph_ID = 'terminal'", "score": -2.35973820585059}]} {"index": 380, "beams": [{"orig_question": "Quais são os ids dos documentos que contêm o texto do parágrafo 'Brasil' e 'Irlanda'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Documents.Document_ID FROM Documents JOIN Paragraphs WHERE Documents.Template_ID = 'terminal' INTERSECT SELECT Documents.Document_ID FROM Documents JOIN Paragraphs WHERE Paragraphs.Paragraph_ID = 'terminal'", "score": -2.307996025774628}]} {"index": 381, "beams": [{"orig_question": "Quantos professores tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM teacher", "score": -0.0015575810120935785}]} {"index": 382, "beams": [{"orig_question": "Qual é a contagem total de professores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM teacher", "score": -0.006559255776664941}]} {"index": 383, "beams": [{"orig_question": "Liste os nomes dos professores em ordem crescente de idade.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher ORDER BY teacher.Age Asc", "score": -0.0037651052780347527}]} {"index": 384, "beams": [{"orig_question": "Quais são os nomes dos professores ordenados por idade ascendente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher ORDER BY teacher.Age Asc", "score": -0.003609179293107445}]} {"index": 385, "beams": [{"orig_question": "Qual é a idade e cidade natal dos professores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Age, teacher.Hometown FROM teacher", "score": -0.017527335453110027}]} {"index": 386, "beams": [{"orig_question": "Qual é a idade e cidade natal de cada professor?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Age, teacher.Hometown FROM teacher", "score": -0.010781411252025919}]} {"index": 387, "beams": [{"orig_question": "Liste o nome dos professores cuja cidade natal não seja `` Little Lever Urban District ''.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Hometown != 'terminal'", "score": -0.0028754404911524034}]} {"index": 388, "beams": [{"orig_question": "Quais são os nomes dos professores cuja cidade natal não é `` Little Lever Urban District ''?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Hometown != 'terminal'", "score": -0.0031177963667801123}]} {"index": 389, "beams": [{"orig_question": "Mostre o nome dos professores com 32 ou 33 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Hometown = 'terminal' OR teacher.Age = 'terminal'", "score": -0.32715765188186197}]} {"index": 390, "beams": [{"orig_question": "Quais são os nomes dos professores com 32 ou 33 anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Hometown = 'terminal' OR teacher.Age = 'terminal'", "score": -0.3928215589476167}]} {"index": 391, "beams": [{"orig_question": "Qual é a cidade natal do professor mais jovem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown FROM teacher ORDER BY teacher.Age Asc LIMIT 1", "score": -0.006945609913543649}]} {"index": 392, "beams": [{"orig_question": "De onde é o professor mais novo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher ORDER BY teacher.Age Asc LIMIT 1", "score": -0.7933367490735463}]} {"index": 393, "beams": [{"orig_question": "Mostre diferentes cidades natais de professores e o número de professores de cada cidade natal.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown, Count(*) FROM teacher GROUP BY teacher.Hometown", "score": -0.6418274155075778}]} {"index": 394, "beams": [{"orig_question": "Para cada cidade natal, quantos professores existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown, Count(*) FROM teacher GROUP BY teacher.Hometown", "score": -0.09732270113011054}]} {"index": 395, "beams": [{"orig_question": "Liste a cidade natal mais comum dos professores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown ORDER BY Count(*) Desc LIMIT 1", "score": -0.0026675448402215807}]} {"index": 396, "beams": [{"orig_question": "Qual é a cidade natal mais comum para professores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown ORDER BY Count(*) Desc LIMIT 1", "score": -0.0025714628099819947}]} {"index": 397, "beams": [{"orig_question": "Mostre as cidades natais compartilhadas por pelo menos dois professores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown HAVING Count(*) >= 'terminal'", "score": -0.01488040399772217}]} {"index": 398, "beams": [{"orig_question": "Quais são as cidades de onde vêm pelo menos dois professores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Hometown FROM teacher GROUP BY teacher.Hometown HAVING Count(*) >= 'terminal'", "score": -0.10048541614014539}]} {"index": 399, "beams": [{"orig_question": "Mostre os nomes dos professores e os cursos que eles devem ministrar.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT teacher.Name, course.Course FROM course_arrange JOIN teacher JOIN course", "score": -1.173383847369223}]} {"index": 400, "beams": [{"orig_question": "Qual é o nome de cada professor e que curso eles ministram?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT teacher.Name, course.Course FROM course_arrange JOIN teacher JOIN course", "score": -4.706757743857452}]} {"index": 401, "beams": [{"orig_question": "Mostre os nomes dos professores e os cursos que eles devem ministrar em ordem alfabética crescente do nome do professor.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT teacher.Name, course.Course FROM course_arrange JOIN teacher JOIN course ORDER BY teacher.Name Asc", "score": -2.212819144173409}]} {"index": 402, "beams": [{"orig_question": "Quais são os nomes dos professores e os cursos que ministram em ordem alfabética crescente pelo nome do professor?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name, course.Course FROM course_arrange JOIN course JOIN teacher ORDER BY teacher.Name Asc", "score": -0.4698176318706828}]} {"index": 403, "beams": [{"orig_question": "Mostre o nome do professor do curso de matemática.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT teacher.Name FROM course_arrange JOIN teacher JOIN course WHERE course.Course = 'terminal'", "score": -0.16450646084922482}]} {"index": 404, "beams": [{"orig_question": "Quais são os nomes das pessoas que ministram cursos de matemática?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT teacher.Name FROM course_arrange JOIN teacher JOIN course WHERE course.Course = 'terminal'", "score": -0.11379745572912725}]} {"index": 405, "beams": [{"orig_question": "Mostre os nomes dos professores e o número de cursos que ministram.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name, Count(*) FROM course_arrange JOIN teacher GROUP BY teacher.Name", "score": -0.08844564379614894}]} {"index": 406, "beams": [{"orig_question": "Quais são os nomes dos professores e quantos cursos eles ministram?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name, Count(*) FROM course_arrange JOIN teacher GROUP BY teacher.Name", "score": -0.15803226322532282}]} {"index": 407, "beams": [{"orig_question": "Mostre nomes de professores que ministram pelo menos dois cursos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM course_arrange JOIN teacher GROUP BY teacher.Name HAVING Count(*) >= 'terminal'", "score": -0.18206606765079414}]} {"index": 408, "beams": [{"orig_question": "Quais são os nomes dos professores que ministram pelo menos dois cursos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM course_arrange JOIN teacher GROUP BY teacher.Name HAVING Count(*) >= 'terminal'", "score": -0.20149186332059799}]} {"index": 409, "beams": [{"orig_question": "Liste os nomes dos professores que não foram contratados para ministrar cursos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Teacher_ID NOT IN (SELECT course_arrange.Teacher_ID FROM course_arrange)", "score": -0.1453878575505314}]} {"index": 410, "beams": [{"orig_question": "Quais são os nomes dos professores cujos cursos não foram organizados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT teacher.Name FROM teacher WHERE teacher.Teacher_ID NOT IN (SELECT course_arrange.Teacher_ID FROM course_arrange)", "score": -0.08264173254425344}]} {"index": 411, "beams": [{"orig_question": "Quantos visitantes com menos de 30 anos existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM visitor JOIN visit WHERE visitor.Age < 'terminal'", "score": -0.4864340538115357}]} {"index": 412, "beams": [{"orig_question": "Encontre os nomes dos visitantes cujo nível de associação é superior a 4 e ordene os resultados por nível, de alto a baixo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT visitor.Name FROM visitor JOIN visit WHERE visit.Total_spent > 'terminal' ORDER BY visitor.Name Asc", "score": -0.7424369542713691}]} {"index": 413, "beams": [{"orig_question": "Qual é a idade média dos visitantes cujo nível de adesão não é superior a 4?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(visitor.Age) FROM visitor WHERE visitor.ID NOT IN (SELECT visit.visitor_ID FROM visit WHERE visit.Total_spent > 'terminal')", "score": -1.0608259652508423}]} {"index": 414, "beams": [{"orig_question": "Encontre o nome e o nível de associação dos visitantes cujo nível de associação seja superior a 4 e classifique por idade, de idosos a jovens.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT visitor.Name, visitor.Age FROM visitor JOIN visit WHERE visit.Total_spent > 'terminal' ORDER BY visitor.Age Asc", "score": -0.198865752092388}]} {"index": 415, "beams": [{"orig_question": "Encontrar a id e o nome do museu com mais funcionários?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT museum.Museum_ID, museum.Name FROM museum JOIN visit GROUP BY museum.Name ORDER BY Count(*) Desc LIMIT 1", "score": -0.5063049735908862}]} {"index": 416, "beams": [{"orig_question": "Encontre o número médio de funcionários que trabalham para os museus que foram abertos antes de 2009.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(museum.Num_of_Staff) FROM museum WHERE museum.Open_Year < 'terminal'", "score": -0.08293620908807497}]} {"index": 417, "beams": [{"orig_question": "Qual é o ano de inauguração e o número de funcionários do museu denominado Plaza Museum?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT museum.Open_Year, museum.Num_of_Staff FROM museum WHERE museum.Name = 'terminal'", "score": -0.001648783668656506}]} {"index": 418, "beams": [{"orig_question": "encontre os nomes dos museus que têm mais funcionários do que o número mínimo de funcionários de todos os museus abertos após 2010.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT museum.Name FROM museum WHERE museum.Num_of_Staff > 'terminal'", "score": -0.42736622541087854}]} {"index": 419, "beams": [{"orig_question": "encontre a id, o nome e a idade dos visitantes que visitaram alguns museus mais de uma vez.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT visitor.ID, visitor.Name, visitor.Age FROM visitor JOIN visit GROUP BY visit.visitor_ID HAVING Count(*) > 'terminal'", "score": -1.1237496695721347}]} {"index": 420, "beams": [{"orig_question": "Qual é o id, nome e nível de associação dos visitantes que gastaram a maior quantia de dinheiro no total em todos os ingressos para museus?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 12, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT visit.visitor_ID, visitor.Name, Sum(visit.Num_of_Ticket) FROM visit JOIN visitor GROUP BY visit.visitor_ID ORDER BY Sum(visit.Total_spent) Desc LIMIT 1", "score": -3.9213049486279488}]} {"index": 421, "beams": [{"orig_question": "Quais são o id e o nome do museu mais visitado?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT museum.Museum_ID, museum.Name FROM museum JOIN visit GROUP BY museum.Museum_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.12739827270434034}]} {"index": 422, "beams": [{"orig_question": "Qual é o nome do museu que ainda não teve visita?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT museum.Name FROM museum WHERE museum.Museum_ID NOT IN (SELECT visit.Museum_ID FROM visit)", "score": -0.06325431329352682}]} {"index": 423, "beams": [{"orig_question": "Encontre o nome e a idade do visitante que comprou mais ingressos de uma só vez.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 11, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT visitor.Name, visitor.Age FROM visitor JOIN visit GROUP BY visit.visitor_ID ORDER BY Sum(visit.Num_of_Ticket) Desc LIMIT 1", "score": -1.1885196573116446}]} {"index": 424, "beams": [{"orig_question": "Qual é a média e o número máximo de ingressos comprados em todas as visitas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(visit.Num_of_Ticket), Avg(visit.Num_of_Ticket) FROM visit", "score": -0.25120558019625605}]} {"index": 425, "beams": [{"orig_question": "Qual é a despesa total com ingressos dos visitantes cujo nível de associação é 1?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Sum(visit.Total_spent) FROM visit WHERE visit.Total_spent = 'terminal'", "score": -1.0022648037102044}]} {"index": 426, "beams": [{"orig_question": "Qual é o nome do visitante que visitou um museu inaugurado antes de 2009 e um museu inaugurado depois de 2011?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT visitor.Name FROM visitor JOIN visit JOIN museum WHERE museum.Open_Year < 'terminal' INTERSECT SELECT visitor.Name FROM visitor JOIN visit JOIN museum WHERE museum.Open_Year > 'terminal'", "score": -1.091514383762842}]} {"index": 427, "beams": [{"orig_question": "Encontre o número de visitantes que não visitaram nenhum museu inaugurado depois de 2010.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM visit WHERE visit.Museum_ID NOT IN (SELECT museum.Museum_ID FROM museum WHERE museum.Open_Year > 'terminal')", "score": -0.9868231643920069}]} {"index": 428, "beams": [{"orig_question": "Quantos museus foram inaugurados depois de 2013 ou antes de 2008?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM museum WHERE museum.Open_Year > 'terminal' OR museum.Open_Year < 'terminal'", "score": -0.10326276250270894}]} {"index": 429, "beams": [{"orig_question": "Encontre o número total de jogadores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM players", "score": -0.0025183260295307264}]} {"index": 430, "beams": [{"orig_question": "Quantos jogadores estão lá?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM players", "score": -0.001974032122234348}]} {"index": 431, "beams": [{"orig_question": "Encontre o número total de correspondências.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM matches", "score": -0.04492433229461312}]} {"index": 432, "beams": [{"orig_question": "Conte o número de correspondências.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM matches", "score": -0.03597481036558747}]} {"index": 433, "beams": [{"orig_question": "Liste o primeiro nome e a data de nascimento de todos os jogadores do país com o código EUA.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.birth_date FROM players WHERE players.country_code = 'terminal'", "score": -0.0027891772057273556}]} {"index": 434, "beams": [{"orig_question": "Quais são os primeiros nomes e datas de nascimento dos jogadores dos EUA?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.birth_date FROM players", "score": -0.009943835308149573}]} {"index": 435, "beams": [{"orig_question": "Encontre a idade média dos perdedores e vencedores de todas as partidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(matches.loser_age), Avg(matches.loser_age) FROM matches WHERE matches.year = 'terminal'", "score": -1.6684640023449901}]} {"index": 436, "beams": [{"orig_question": "Qual é a idade média dos perdedores e vencedores nas partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(matches.loser_age), Avg(matches.loser_age) FROM players JOIN matches WHERE players.first_name = 'terminal'", "score": -0.8295718063018285}]} {"index": 437, "beams": [{"orig_question": "Encontre a classificação média dos vencedores em todas as partidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(matches.score) FROM matches", "score": -0.041737073101103306}]} {"index": 438, "beams": [{"orig_question": "Qual é a classificação média dos vencedores em todas as partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(matches.score) FROM matches", "score": -0.028290577698498964}]} {"index": 439, "beams": [{"orig_question": "Encontre a classificação mais alta de perdedores em todas as partidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT rankings.ranking FROM rankings ORDER BY rankings.ranking Desc LIMIT 1", "score": -1.2279097712089424}]} {"index": 440, "beams": [{"orig_question": "Qual é a melhor classificação dos perdedores em todas as partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT rankings.ranking FROM rankings ORDER BY rankings.ranking Asc LIMIT 1", "score": -0.9672132338164374}]} {"index": 441, "beams": [{"orig_question": "encontre o número de códigos de países distintos de todos os jogadores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT players.country_code) FROM players", "score": -0.009153102844720706}]} {"index": 442, "beams": [{"orig_question": "De quantos países distintos os jogadores vêm?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT players.country_code) FROM players", "score": -0.006295037526797387}]} {"index": 443, "beams": [{"orig_question": "Encontre o número de nomes distintos de perdedores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT players.first_name) FROM players", "score": -0.01420184038579464}]} {"index": 444, "beams": [{"orig_question": "Quantos nomes de perdedores diferentes existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT players.first_name) FROM players", "score": -0.005890206492040306}]} {"index": 445, "beams": [{"orig_question": "Encontre o nome do torneio que possui mais de 10 partidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name FROM players GROUP BY players.first_name HAVING Count(*) > 'terminal'", "score": -1.0476217987015843}]} {"index": 446, "beams": [{"orig_question": "Quais são os nomes dos torneios com mais de 10 partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name FROM players JOIN rankings GROUP BY players.first_name HAVING Count(*) >= 'terminal'", "score": -1.8722718190401793}]} {"index": 447, "beams": [{"orig_question": "Liste os nomes de todos os vencedores que jogaram em 2013 e 2016.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name FROM players JOIN matches WHERE matches.year = 'terminal' INTERSECT SELECT players.first_name FROM players JOIN matches WHERE matches.year = 'terminal'", "score": -0.49657021657185396}]} {"index": 448, "beams": [{"orig_question": "Quais são os nomes dos jogadores que venceram em 2013 e 2016?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name FROM players JOIN matches WHERE matches.year = 'terminal' INTERSECT SELECT players.first_name FROM players JOIN matches WHERE matches.year = 'terminal'", "score": -1.4572767323770677}]} {"index": 449, "beams": [{"orig_question": "Liste o número de todas as partidas que jogaram nos anos de 2013 ou 2016.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM players JOIN matches WHERE matches.year = 'terminal' OR matches.year = 'terminal'", "score": -0.996343229264312}]} {"index": 450, "beams": [{"orig_question": "Quantas partidas foram disputadas em 2013 ou 2016?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM matches WHERE matches.year = 'terminal' OR matches.year = 'terminal'", "score": -0.0052794707771681715}]} {"index": 451, "beams": [{"orig_question": "Qual é o código do país e o primeiro nome dos jogadores que ganharam o torneio WTA Championships e o Australian Open?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.country_code, players.first_name FROM players JOIN matches WHERE matches.tourney_name = 'terminal' INTERSECT SELECT players.country_code, players.first_name FROM players JOIN matches WHERE matches.tourney_name = 'terminal'", "score": -0.10330013472412247}]} {"index": 452, "beams": [{"orig_question": "Quais são os nomes e códigos de país dos jogadores que ganharam o WTA Championships e o Australian Open?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name, players.country_code FROM players JOIN matches WHERE matches.tourney_name = 'terminal' INTERSECT SELECT players.first_name, players.country_code FROM players JOIN matches WHERE matches.tourney_name = 'terminal'", "score": -0.03553236697621287}]} {"index": 453, "beams": [{"orig_question": "Encontre o nome e o código do país do jogador mais antigo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.country_code FROM players ORDER BY players.birth_date Asc LIMIT 1", "score": -0.15015396667877212}]} {"index": 454, "beams": [{"orig_question": "Qual é o primeiro nome e código do país do jogador mais antigo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.country_code FROM players ORDER BY players.birth_date Asc LIMIT 1", "score": -0.0675348519871477}]} {"index": 455, "beams": [{"orig_question": "Liste o nome e o sobrenome de todos os jogadores na ordem da data de nascimento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.last_name FROM players ORDER BY players.birth_date Asc", "score": -0.006499635496766132}]} {"index": 456, "beams": [{"orig_question": "Quais são os nomes completos de todos os jogadores, classificados por data de nascimento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.last_name FROM players ORDER BY players.birth_date Asc", "score": -0.01333689491309542}]} {"index": 457, "beams": [{"orig_question": "Liste o nome e o sobrenome de todos os jogadores que sobraram / L na ordem da data de nascimento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.last_name FROM players ORDER BY players.birth_date Asc", "score": -0.2339493206759471}]} {"index": 458, "beams": [{"orig_question": "Quais são os nomes completos de todos os jogadores canhotos, por ordem de data de nascimento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, players.last_name FROM players WHERE players.first_name = 'terminal' ORDER BY players.birth_date Asc", "score": -0.9708566104827696}]} {"index": 459, "beams": [{"orig_question": "Encontre o nome e o código do país do jogador que fez o maior número de turnês.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, players.country_code FROM players JOIN rankings GROUP BY rankings.player_id ORDER BY Count(*) Desc LIMIT 1", "score": -2.034209287059639}]} {"index": 460, "beams": [{"orig_question": "Qual é o nome e o código do país do jogador com mais turnês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, players.country_code FROM players JOIN rankings GROUP BY rankings.player_id ORDER BY Count(*) Desc LIMIT 1", "score": -0.5357933340583259}]} {"index": 461, "beams": [{"orig_question": "Encontre o ano com o maior número de correspondências.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT matches.year FROM matches GROUP BY matches.year ORDER BY Count(*) Desc LIMIT 1", "score": -0.0522749285773898}]} {"index": 462, "beams": [{"orig_question": "Qual ano teve mais partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT matches.year FROM matches GROUP BY matches.year ORDER BY Count(*) Desc LIMIT 1", "score": -0.010646202487805567}]} {"index": 463, "beams": [{"orig_question": "Encontre o nome e os pontos de classificação do vencedor que ganhou mais vezes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, rankings.ranking FROM players JOIN rankings ORDER BY rankings.tours Desc LIMIT 1", "score": -1.3421045327559114}]} {"index": 464, "beams": [{"orig_question": "Qual é o nome do vencedor que ganhou mais partidas e quantos pontos de classificação esse jogador tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, rankings.ranking FROM players JOIN rankings ORDER BY rankings.ranking_points Desc LIMIT 1", "score": -1.2396531561389565}]} {"index": 465, "beams": [{"orig_question": "Encontre o nome do vencedor que tem a pontuação mais alta e participou do torneio Australian Open.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT matches.loser_name FROM matches WHERE matches.tourney_name = 'terminal' ORDER BY matches.score Desc LIMIT 1", "score": -1.6590707066934485}]} {"index": 466, "beams": [{"orig_question": "Qual é o nome do vencedor com mais pontos de classificação que participou do torneio Open da Austrália?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name FROM players JOIN rankings JOIN matches WHERE matches.tourney_name = 'terminal' ORDER BY rankings.ranking_points Desc LIMIT 1", "score": -8.759280862286687}]} {"index": 467, "beams": [{"orig_question": "encontre os nomes do perdedor e do vencedor que jogou a partida com maior número de minutos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name, matches.loser_seed FROM players JOIN matches ORDER BY matches.loser_seed Desc LIMIT 1", "score": -2.055942455306649}]} {"index": 468, "beams": [{"orig_question": "Quais são os nomes do vencedor e do perdedor que jogou a partida mais longa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name, players.last_name FROM players JOIN matches ORDER BY matches.loser_hand Asc LIMIT 1", "score": -1.0923601598478854}]} {"index": 469, "beams": [{"orig_question": "Encontre a classificação média de cada jogador e seu primeiro nome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(matches.score), players.first_name FROM players JOIN matches GROUP BY players.first_name", "score": -0.6830605516443029}]} {"index": 470, "beams": [{"orig_question": "Quais são os primeiros nomes de todos os jogadores e suas classificações médias?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, Avg(rankings.ranking) FROM players JOIN rankings GROUP BY players.first_name", "score": -0.2848789871682129}]} {"index": 471, "beams": [{"orig_question": "Encontre o total de pontos de classificação para cada jogador e seu primeiro nome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.first_name, Sum(rankings.ranking_points) FROM rankings JOIN players GROUP BY players.first_name", "score": -0.5957764786944608}]} {"index": 472, "beams": [{"orig_question": "Quais são os primeiros nomes de todos os jogadores e seus pontos totais de classificação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, Sum(rankings.ranking_points) FROM players JOIN rankings GROUP BY rankings.player_id", "score": -1.5707311872392893}]} {"index": 473, "beams": [{"orig_question": "encontre o número de jogadores para cada país.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code, Count(*) FROM players GROUP BY players.country_code", "score": -0.11489720806457626}]} {"index": 474, "beams": [{"orig_question": "Quantos jogadores são de cada país?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code, Count(*) FROM players GROUP BY players.country_code", "score": -0.05752533138365834}]} {"index": 475, "beams": [{"orig_question": "encontre o código do país onde tem o maior número de jogadores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code ORDER BY Count(*) Desc LIMIT 1", "score": -0.005951045811798394}]} {"index": 476, "beams": [{"orig_question": "Qual é o código do país com mais jogadores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code ORDER BY Count(*) Desc LIMIT 1", "score": -0.0035121430305480317}]} {"index": 477, "beams": [{"orig_question": "Encontre os códigos de países com mais de 50 jogadores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code HAVING Count(*) > 'terminal'", "score": -0.09080705549013146}]} {"index": 478, "beams": [{"orig_question": "Quais são os códigos de países com mais de 50 jogadores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code FROM players GROUP BY players.country_code HAVING Count(*) > 'terminal'", "score": -0.37677338629055157}]} {"index": 479, "beams": [{"orig_question": "Encontre o número total de passeios para cada data de classificação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT rankings.ranking, Count(*) FROM rankings GROUP BY rankings.ranking", "score": -0.2539679886540398}]} {"index": 480, "beams": [{"orig_question": "Quantos tours no total houve para cada data de classificação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT rankings.ranking_date, Sum(rankings.tours) FROM rankings GROUP BY rankings.ranking", "score": -1.2604561686894158}]} {"index": 481, "beams": [{"orig_question": "Encontre o número de partidas ocorridas em cada ano.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT matches.year, Count(*) FROM matches GROUP BY matches.year", "score": -0.19295377342405118}]} {"index": 482, "beams": [{"orig_question": "Quantas partidas foram disputadas em cada ano?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT matches.year, Count(*) FROM matches GROUP BY matches.year", "score": -0.10546572864041082}]} {"index": 483, "beams": [{"orig_question": "Encontre o nome e a classificação dos 3 vencedores mais jovens em todas as partidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name, rankings.ranking FROM players JOIN rankings JOIN matches ORDER BY matches.loser_age Asc LIMIT 1", "score": -9.43199994508177}]} {"index": 484, "beams": [{"orig_question": "Quais são os nomes e as classificações dos três vencedores mais jovens em todas as partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name, rankings.ranking FROM players JOIN matches ORDER BY matches.loser_age Asc LIMIT 1", "score": -0.7621958456002105}]} {"index": 485, "beams": [{"orig_question": "Quantos vencedores diferentes participaram do campeonato WTA e eram canhotos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 31, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT matches.winner_ht) FROM players JOIN matches WHERE players.first_name = 'terminal'", "score": -0.2665463605662808}]} {"index": 486, "beams": [{"orig_question": "Encontre o número de vencedores canhotos que participaram do Campeonato WTA.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM matches WHERE matches.tourney_name = 'terminal'", "score": -0.46840788300323766}]} {"index": 487, "beams": [{"orig_question": "Encontre o nome, código do país e data de nascimento do vencedor que tem a maior pontuação em todas as partidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT players.first_name, players.country_code, players.birth_date FROM players JOIN matches ORDER BY matches.score Desc LIMIT 1", "score": -0.636322519130772}]} {"index": 488, "beams": [{"orig_question": "Qual é o nome, código do país e data de nascimento do jogador com mais pontos de classificação de vencedor em todas as partidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT players.first_name, players.country_code, players.birth_date FROM players JOIN rankings ORDER BY rankings.ranking_points Desc LIMIT 1", "score": -0.37808609104831703}]} {"index": 489, "beams": [{"orig_question": "Encontre o número de jogadores para cada tipo de mão.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code, Count(*) FROM players GROUP BY players.country_code", "score": -0.19162900994888332}]} {"index": 490, "beams": [{"orig_question": "Quantos jogadores existem para cada tipo de mão?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT players.country_code, Count(*) FROM players GROUP BY players.country_code", "score": -0.053205291798803955}]} {"index": 491, "beams": [{"orig_question": "Quantos navios acabaram sendo 'Capturados'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM battle WHERE battle.name = 'terminal'", "score": -1.6598595810937695}]} {"index": 492, "beams": [{"orig_question": "Liste o nome e a tonelagem ordenados em ordem alfabética decrescente para os nomes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT ship.name, ship.tonnage FROM ship ORDER BY ship.tonnage Desc", "score": -0.49046682528023666}]} {"index": 493, "beams": [{"orig_question": "Liste o nome, data e resultado de cada batalha.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT battle.name, battle.date, battle.result FROM battle", "score": -0.019150210217041774}]} {"index": 494, "beams": [{"orig_question": "Qual é o número máximo e mínimo de mortes causadas a cada vez?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(death.injured), Avg(death.injured) FROM death", "score": -0.8068256826081779}]} {"index": 495, "beams": [{"orig_question": "Qual é o número médio de lesões causadas a cada vez?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(death.injured), death.caused_by_ship_id FROM death GROUP BY death.caused_by_ship_id", "score": -1.7411263833055273}]} {"index": 496, "beams": [{"orig_question": "Quais são as situações de morte e ferimentos causadas pelo navio com tonelagem 't'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT ship.location, death.injured FROM ship JOIN death WHERE ship.tonnage = 'terminal'", "score": -2.0145525152765913}]} {"index": 497, "beams": [{"orig_question": "Quais são o nome e os resultados das batalhas quando o comandante búlgaro não é 'Boril'", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT battle.name, battle.result FROM battle WHERE battle.bulgarian_commander != 'terminal'", "score": -0.01649169063057343}]} {"index": 498, "beams": [{"orig_question": "Quais são os diferentes ids e nomes das batalhas que perderam qualquer nave do tipo 'Brig'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT ship.id, ship.name FROM battle JOIN ship WHERE ship.ship_type = 'terminal'", "score": -1.0340914953265496}]} {"index": 499, "beams": [{"orig_question": "Quais são os ids e nomes das batalhas que levaram a mais de 10 pessoas mortas no total.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT ship.id, ship.name FROM death JOIN ship GROUP BY ship.id HAVING Count(*) > 'terminal'", "score": -1.527030162513256}]} {"index": 500, "beams": [{"orig_question": "Qual é a identificação e o nome do navio que causou a maioria dos feridos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 18, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT ship.id, ship.name FROM ship JOIN death GROUP BY ship.id ORDER BY Sum(death.injured) Desc LIMIT 1", "score": -1.3301580130355433}]} {"index": 501, "beams": [{"orig_question": "Quais são os nomes de batalha distintos entre o comandante búlgaro 'Kaloyan' e o comandante latino 'Baldwin I'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT DISTINCT battle.name FROM ship JOIN battle WHERE battle.latin_commander = 'terminal' INTERSECT SELECT DISTINCT battle.name FROM battle WHERE battle.latin_commander = 'terminal'", "score": -2.6157110687345266}]} {"index": 502, "beams": [{"orig_question": "Quantos resultados diferentes existem para as batalhas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT death.note) FROM death", "score": -0.007572387810796499}]} {"index": 503, "beams": [{"orig_question": "Quantas batalhas não perdeu nenhum navio com tonelagem '225'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM ship WHERE ship.id NOT IN (SELECT death.caused_by_ship_id FROM death WHERE death.killed != 'terminal')", "score": -0.6475453250313876}]} {"index": 504, "beams": [{"orig_question": "Liste o nome e a data da batalha que perdeu o navio chamado 'Lettice' e o navio chamado 'HMS Atalanta'", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT battle.name, battle.date FROM battle JOIN ship WHERE ship.name = 'terminal' INTERSECT SELECT battle.name, battle.date FROM battle JOIN ship WHERE ship.name = 'terminal'", "score": -0.4506408671368263}]} {"index": 505, "beams": [{"orig_question": "Mostre nomes, resultados e comandantes búlgaros das batalhas sem navios perdidos no 'Canal da Mancha'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT battle.name, battle.result, battle.latin_commander FROM battle JOIN ship WHERE ship.disposition_of_ship != 'terminal'", "score": -2.5752549432218075}]} {"index": 506, "beams": [{"orig_question": "Quais são as notas dos eventos de morte que têm substring 'Leste'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT * FROM ship WHERE ship.location LIKE 'terminal'", "score": -1.0456042039440945}]} {"index": 507, "beams": [{"orig_question": "quais são todos os endereços, incluindo linha 1 e linha 2?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT * FROM Addresses WHERE Sections.section_name = 'terminal' EXCEPT SELECT * FROM Students WHERE Sections.section_name = 'terminal'", "score": -2.4980655735271284}]} {"index": 508, "beams": [{"orig_question": "Qual é a primeira e a segunda linha para todos os endereços?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Min(*), Addresses.line_1 FROM Addresses", "score": -3.7827301840879954}]} {"index": 509, "beams": [{"orig_question": "Quantos cursos estão listados no total?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Courses", "score": -0.0014230972155928612}]} {"index": 510, "beams": [{"orig_question": "Quantos cursos existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM Courses", "score": -0.001680707893683575}]} {"index": 511, "beams": [{"orig_question": "Como o curso de matemática é descrito?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Courses.course_description FROM Courses WHERE Courses.course_name = 'terminal'", "score": -0.0014444079933753073}]} {"index": 512, "beams": [{"orig_question": "Quais são as descrições de todos os cursos de matemática?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Courses.course_description FROM Courses WHERE Courses.course_name = 'terminal'", "score": -0.02353283576439935}]} {"index": 513, "beams": [{"orig_question": "Qual é o CEP do endereço da cidade Port Chelsea?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Addresses.zip_postcode FROM Addresses WHERE Addresses.city = 'terminal'", "score": -0.0018381222614536341}]} {"index": 514, "beams": [{"orig_question": "Qual é o código postal de Port Chelsea?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Addresses.zip_postcode FROM Addresses WHERE Addresses.city = 'terminal'", "score": -0.0003497600351636265}]} {"index": 515, "beams": [{"orig_question": "Qual departamento oferece o maior número de cursos? Lista o nome e a id do departamento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}, {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Departments.department_name, Departments.department_id FROM Departments JOIN Degree_Programs GROUP BY Departments.department_id, Departments.department_id ORDER BY Count(*) Desc LIMIT 1", "score": -1.8779176758835092}]} {"index": 516, "beams": [{"orig_question": "Qual é o nome e id do departamento com o maior número de diplomas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Departments.department_name, Degree_Programs.department_id FROM Departments JOIN Degree_Programs GROUP BY Degree_Programs.department_id ORDER BY Count(*) Desc LIMIT 1", "score": -1.0454820016088888}]} {"index": 517, "beams": [{"orig_question": "Quantos departamentos oferecem algum diploma?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT Departments.department_name) FROM Departments", "score": -0.002196178188455633}]} {"index": 518, "beams": [{"orig_question": "Quantos departamentos diferentes oferecem cursos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT Departments.department_name) FROM Departments", "score": -0.008783036537352018}]} {"index": 519, "beams": [{"orig_question": "Quantos nomes de diplomas diferentes são oferecidos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(DISTINCT Degree_Programs.degree_summary_name) FROM Degree_Programs", "score": -0.038877252489328384}]} {"index": 520, "beams": [{"orig_question": "Quantos graus diferentes são oferecidos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT Courses.course_name) FROM Courses", "score": -0.46676304936408997}]} {"index": 521, "beams": [{"orig_question": "Quantos cursos o departamento de engenharia oferece?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM Courses JOIN Degree_Programs JOIN Departments WHERE Departments.department_name = 'terminal'", "score": -0.598160415585312}]} {"index": 522, "beams": [{"orig_question": "Quantos diplomas o departamento de engenharia possui?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM Departments JOIN Degree_Programs WHERE Departments.department_name = 'terminal'", "score": -0.01449326984675281}]} {"index": 523, "beams": [{"orig_question": "Quais são os nomes e descrições de todas as seções?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Sections.section_name, Sections.section_description FROM Sections", "score": -0.10289487056434155}]} {"index": 524, "beams": [{"orig_question": "Quais são os nomes e descrições de todas as seções?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Sections.section_name, Sections.section_description FROM Sections", "score": -0.10289487056434155}]} {"index": 525, "beams": [{"orig_question": "Quais são os nomes e id dos cursos com no máximo 2 seções?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Le", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Courses.course_name, Courses.course_id FROM Courses JOIN Student_Enrolment_Courses GROUP BY Courses.course_id HAVING Count(*) <= 'terminal'", "score": -1.752559794643723}]} {"index": 526, "beams": [{"orig_question": "Quais são os nomes e ids de cada curso com menos de 2 seções?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}], "having": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Courses.course_name, Courses.course_id FROM Courses JOIN Sections GROUP BY Sections.course_id HAVING Count(*) < 'terminal'", "score": -1.0976238963012293}]} {"index": 527, "beams": [{"orig_question": "Liste o section_name em ordem lexicográfica reversa.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 28, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Semesters.semester_id FROM Semesters ORDER BY Semesters.semester_name Asc", "score": -1.147723300382495}]} {"index": 528, "beams": [{"orig_question": "Quais são os nomes das seções em ordem alfabética reversa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Addresses.state_province_county FROM Addresses ORDER BY Addresses.state_province_county Asc", "score": -0.5486517567187548}]} {"index": 529, "beams": [{"orig_question": "Qual é o semestre em que a maioria dos alunos se matriculou? Mostre o nome e o id.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Student_Enrolment.semester_id, Student_Enrolment.degree_program_id FROM Student_Enrolment JOIN Student_Enrolment_Courses GROUP BY Student_Enrolment.semester_id ORDER BY Count(*) Desc LIMIT 1", "score": -2.631589474272907}]} {"index": 530, "beams": [{"orig_question": "Para cada semestre, qual o nome e id daquele com mais alunos matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}, {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Student_Enrolment.degree_program_id, Student_Enrolment.degree_program_id FROM Students JOIN Student_Enrolment GROUP BY Student_Enrolment.degree_program_id, Student_Enrolment.degree_program_id ORDER BY Count(*) Desc LIMIT 1", "score": -2.4444605403696116}]} {"index": 531, "beams": [{"orig_question": "Qual é a descrição do departamento cujo nome tem a substring do computador?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Departments.department_description FROM Departments WHERE Departments.department_name LIKE 'terminal'", "score": -0.11271679216587671}]} {"index": 532, "beams": [{"orig_question": "Qual é a descrição do departamento para aquele cujo nome tem a palavra computador?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Departments.department_description FROM Departments WHERE Departments.department_name LIKE 'terminal'", "score": -0.0020881734471842606}]} {"index": 533, "beams": [{"orig_question": "Quem está matriculado em 2 programas de graduação em um semestre? Liste o nome, o nome do meio, o sobrenome e o id.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment WHERE Student_Enrolment.semester_id = 'terminal' INTERSECT SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment WHERE Student_Enrolment.semester_id = 'terminal'", "score": -4.219043532555574}]} {"index": 534, "beams": [{"orig_question": "Quais são o primeiro nome, o nome do meio e o sobrenome, junto com os ids, de todos os alunos que se inscreveram em 2 programas de graduação em um semestre?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment WHERE Student_Enrolment_Courses.course_id = 'terminal' INTERSECT SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment WHERE Student_Enrolment_Courses.course_id = 'terminal'", "score": -2.56900187265272}]} {"index": 535, "beams": [{"orig_question": "Quem está matriculado em um programa de bacharelado? Liste o primeiro nome, nome do meio, sobrenome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment JOIN Courses WHERE Courses.course_name = 'terminal'", "score": -0.7441029639855969}]} {"index": 536, "beams": [{"orig_question": "Quais são o primeiro nome, o nome do meio e o sobrenome de todos os inscritos em um programa de bacharelado?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment JOIN Courses WHERE Courses.course_name = 'terminal'", "score": -1.2781425295661322}]} {"index": 537, "beams": [{"orig_question": "Encontre o tipo de programa em que a maioria dos alunos está matriculada?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses GROUP BY Courses.course_name ORDER BY Count(*) Desc LIMIT 1", "score": -0.690288627287373}]} {"index": 538, "beams": [{"orig_question": "Qual é o nome do resumo do diploma com o maior número de alunos matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Students.first_name FROM Students JOIN Student_Enrolment GROUP BY Student_Enrolment.degree_program_id ORDER BY Count(*) Desc LIMIT 1", "score": -0.8215177085367031}]} {"index": 539, "beams": [{"orig_question": "Encontre o programa no qual o maior número de alunos está matriculado. Liste a id e o resumo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Student_Enrolment_Courses.course_id, Courses.other_details FROM Courses JOIN Student_Enrolment_Courses GROUP BY Student_Enrolment_Courses.course_id ORDER BY Count(*) Desc LIMIT 1", "score": -0.7518163579516113}]} {"index": 540, "beams": [{"orig_question": "Qual é o id do programa e o resumo do curso que tem mais alunos matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Student_Enrolment_Courses.course_id, Courses.other_details FROM Courses JOIN Student_Enrolment_Courses GROUP BY Student_Enrolment_Courses.course_id ORDER BY Count(*) Desc LIMIT 1", "score": -0.7696363572322298}]} {"index": 541, "beams": [{"orig_question": "Qual aluno se inscreveu mais vezes em algum programa? Liste a id, nome, nome do meio, sobrenome, o número de matrículas e id do aluno.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.student_id, Students.middle_name, Students.middle_name, Students.last_name FROM Student_Enrolment JOIN Students GROUP BY Student_Enrolment.student_id ORDER BY Count(*) Desc LIMIT 1", "score": -2.5380807183682776}]} {"index": 542, "beams": [{"orig_question": "Qual é o nome, o nome do meio e o sobrenome, junto com o id e o número de matrículas, do aluno que mais se inscreveu em algum programa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students JOIN Student_Enrolment GROUP BY Student_Enrolment.student_id ORDER BY Count(*) Desc LIMIT 1", "score": -0.5283442314830538}]} {"index": 543, "beams": [{"orig_question": "Quais semestres não tem nenhum aluno matriculado? Liste o nome do semestre.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Courses.course_name FROM Courses EXCEPT SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses", "score": -0.11275493646098766}]} {"index": 544, "beams": [{"orig_question": "Qual é o nome do semestre sem alunos matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Semesters.semester_name FROM Semesters EXCEPT SELECT Semesters.semester_name FROM Semesters JOIN Student_Enrolment", "score": -0.06294215703382378}]} {"index": 545, "beams": [{"orig_question": "Quais são os nomes de todos os cursos em que os alunos estão matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses", "score": -0.04143751276387775}]} {"index": 546, "beams": [{"orig_question": "Quais são os nomes de todos os cursos que têm alguns alunos matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}], "having": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses GROUP BY Courses.course_name HAVING Count(*) = 'terminal'", "score": -0.8577103519052116}]} {"index": 547, "beams": [{"orig_question": "Qual é o nome do curso com maior número de matrículas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses GROUP BY Courses.course_name ORDER BY Count(*) Desc LIMIT 1", "score": -0.06085742282175488}]} {"index": 548, "beams": [{"orig_question": "Qual é o nome do curso com mais alunos matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Courses.course_name FROM Courses JOIN Student_Enrolment_Courses GROUP BY Courses.course_name ORDER BY Count(*) Desc LIMIT 1", "score": -0.41469475209260054}]} {"index": 549, "beams": [{"orig_question": "Encontre o sobrenome dos alunos que moram atualmente no estado da Carolina do Norte, mas não se inscreveram em nenhum programa de graduação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.last_name FROM Students WHERE Students.student_id IN (SELECT Student_Enrolment.student_id FROM Addresses WHERE Addresses.state_province_county = 'terminal' EXCEPT SELECT Student_Enrolment.student_id FROM Addresses JOIN Student_Enrolment WHERE Addresses.state_province_county = 'terminal')", "score": -4.802480198211583}]} {"index": 550, "beams": [{"orig_question": "Quais são os sobrenomes dos alunos que moram na Carolina do Norte, mas não se inscreveram em nenhum programa de graduação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.last_name FROM Students WHERE Students.student_id IN (SELECT Student_Enrolment.student_id FROM Addresses WHERE Addresses.state_province_county = 'terminal')", "score": -2.5435857988049406}]} {"index": 551, "beams": [{"orig_question": "Mostre a data e id da transcrição com pelo menos 2 resultados do curso.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}, {"_type": "Table", "table_id": 10}]}}, "inferred_code": "SELECT Transcripts.transcript_date, Transcript_Contents.transcript_id FROM Transcripts JOIN Transcript_Contents GROUP BY Transcript_Contents.transcript_id HAVING Count(*) >= 'terminal'", "score": -1.6627372624352574}]} {"index": 552, "beams": [{"orig_question": "Qual é a data e id da transcrição com pelo menos 2 cursos listados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 52, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 52, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}, {"_type": "Table", "table_id": 10}]}}, "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.transcript_id FROM Transcripts JOIN Transcript_Contents GROUP BY Transcripts.transcript_id HAVING Count(*) >= 'terminal'", "score": -0.8509583231061626}]} {"index": 553, "beams": [{"orig_question": "Qual é o número de telefone do homem com o primeiro nome Timmothy e o sobrenome Ward?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.cell_mobile_number FROM Students WHERE Students.first_name = 'terminal' AND Students.last_name = 'terminal'", "score": -0.07196620676585752}]} {"index": 554, "beams": [{"orig_question": "Qual é o número do celular do aluno chamado Timmothy Ward?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.cell_mobile_number FROM Students WHERE Students.first_name = 'terminal' AND Students.last_name = 'terminal'", "score": -0.0013243827759126248}]} {"index": 555, "beams": [{"orig_question": "Quem é o primeiro aluno a se registrar? Liste o nome, o nome do meio e o sobrenome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.first_name Asc LIMIT 1", "score": -1.0833608983975864}]} {"index": 556, "beams": [{"orig_question": "Qual é o nome, nome do meio e sobrenome do primeiro aluno a se registrar?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.first_name Asc LIMIT 1", "score": -1.0458610185159998}]} {"index": 557, "beams": [{"orig_question": "Quem é o primeiro graduado da escola? Liste o nome, o nome do meio e o sobrenome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students ORDER BY Students.date_first_registered Asc LIMIT 1", "score": -0.9668360030113874}]} {"index": 558, "beams": [{"orig_question": "Qual é o nome, nome do meio e sobrenome do primeiro graduado da escola?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.first_name, Students.middle_name, Students.last_name FROM Students WHERE Students.student_id = 'terminal'", "score": -0.14466478401618588}]} {"index": 559, "beams": [{"orig_question": "Cujo endereço permanente é diferente de seu endereço atual? Liste seu primeiro nome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.first_name FROM Students", "score": -1.21225705742836}]} {"index": 560, "beams": [{"orig_question": "Qual é o primeiro nome do aluno cujo endereço permanente é diferente do atual?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Students.first_name FROM Students ORDER BY Students.email_address Asc LIMIT 1", "score": -0.6561372035046134}]} {"index": 561, "beams": [{"orig_question": "Qual endereço contém o maior número de alunos atualmente? Liste a identificação do endereço e todas as linhas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Students.email_address, Count(*) FROM Students JOIN Student_Enrolment GROUP BY Students.email_address ORDER BY Count(*) Desc LIMIT 1", "score": -1.5334128625690937}]} {"index": 562, "beams": [{"orig_question": "Qual é o id, linha 1 e linha 2 do endereço com mais alunos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Students.current_address_id, Addresses.line_3, Students.permanent_address_id FROM Students JOIN Addresses GROUP BY Students.current_address_id ORDER BY Count(*) Desc LIMIT 1", "score": -1.9086118498817086}]} {"index": 563, "beams": [{"orig_question": "Em média, quando as transcrições foram impressas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Avg(Students.date_first_registered) FROM Students", "score": -1.4193116128444672}]} {"index": 564, "beams": [{"orig_question": "Qual é a data média de transcrição?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Avg(Transcripts.transcript_date) FROM Transcripts", "score": -0.018723581400990952}]} {"index": 565, "beams": [{"orig_question": "Quando a primeira transcrição é lançada? Liste a data e os detalhes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 54, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.other_details FROM Transcripts ORDER BY Transcripts.transcript_date Asc LIMIT 1", "score": -1.2994133832389707}]} {"index": 566, "beams": [{"orig_question": "Qual é a primeira data de lançamento de uma transcrição e quais detalhes você pode me dizer?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 54, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 54, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.other_details FROM Transcripts ORDER BY Transcripts.other_details Asc LIMIT 1", "score": -0.5015273254102794}]} {"index": 567, "beams": [{"orig_question": "Quantas transcrições são lançadas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Count(*) FROM Transcripts", "score": -0.03619195222563576}]} {"index": 568, "beams": [{"orig_question": "Quantas transcrições estão listadas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Count(*) FROM Transcripts", "score": -0.013323625375051051}]} {"index": 569, "beams": [{"orig_question": "Qual é a data de lançamento da última transcrição?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Transcripts.transcript_date FROM Transcripts ORDER BY Transcripts.transcript_date Desc LIMIT 1", "score": -0.21939661642227293}]} {"index": 570, "beams": [{"orig_question": "Quando foi lançada a última transcrição?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 52, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Transcripts.transcript_id FROM Transcripts ORDER BY Transcripts.transcript_date Desc LIMIT 1", "score": -0.9142157693277113}]} {"index": 571, "beams": [{"orig_question": "Quantas vezes, no máximo, um resultado de inscrição em um curso pode ser exibido em diferentes transcrições? Mostre também o id de inscrição no curso.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 10}]}}, "inferred_code": "SELECT Count(*), Transcript_Contents.transcript_id FROM Courses JOIN Transcript_Contents GROUP BY Transcript_Contents.transcript_id ORDER BY Count(*) Desc", "score": -3.657088626874611}]} {"index": 572, "beams": [{"orig_question": "Qual é o número máximo de vezes que um curso aparece em transcrições diferentes e qual é a id de inscrição desse curso?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 50, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Student_Enrolment_Courses.course_id, Count(*) FROM Courses JOIN Sections GROUP BY Transcript_Contents.transcript_id ORDER BY Count(*) Desc LIMIT 1", "score": -1.6629407294094563}]} {"index": 573, "beams": [{"orig_question": "Mostre a data da transcrição que Mostre o menor número de resultados, liste também o id.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 10}, {"_type": "Table", "table_id": 9}]}}, "inferred_code": "SELECT Transcript_Contents.transcript_id, Transcripts.transcript_date FROM Transcript_Contents JOIN Transcripts GROUP BY Transcript_Contents.transcript_id ORDER BY Count(*) Asc LIMIT 1", "score": -1.670448238030076}]} {"index": 574, "beams": [{"orig_question": "Qual é a data e id da transcrição com o menor número de resultados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 53, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 52, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 56, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 9}, {"_type": "Table", "table_id": 10}]}}, "inferred_code": "SELECT Transcripts.transcript_date, Transcripts.transcript_id FROM Transcripts JOIN Transcript_Contents GROUP BY Transcript_Contents.transcript_id ORDER BY Count(*) Asc LIMIT 1", "score": -1.7080883979797363}]} {"index": 575, "beams": [{"orig_question": "Encontre o semestre em que os alunos de mestrado e de bacharelado foram matriculados.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 8}]}}, "inferred_code": "SELECT Student_Enrolment.semester_id FROM Courses JOIN Student_Enrolment_Courses WHERE Courses.course_name = 'terminal' INTERSECT SELECT Student_Enrolment.semester_id FROM Courses JOIN Student_Enrolment_Courses WHERE Courses.course_name = 'terminal'", "score": -3.0983326137065887}]} {"index": 576, "beams": [{"orig_question": "Qual é o id do semestre que teve alunos de mestrado e de bacharelado matriculados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Student_Enrolment.semester_id FROM Student_Enrolment WHERE Student_Enrolment.student_id = 'terminal' INTERSECT SELECT Student_Enrolment.semester_id FROM Student_Enrolment WHERE Student_Enrolment.student_id = 'terminal'", "score": -0.5957605633884668}]} {"index": 577, "beams": [{"orig_question": "Em quantos endereços diferentes os alunos moram atualmente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Count(DISTINCT Students.current_address_id) FROM Students", "score": -0.629644678439945}]} {"index": 578, "beams": [{"orig_question": "Quais são os diferentes endereços onde os alunos moram?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT DISTINCT Students.email_address FROM Students JOIN Addresses", "score": -0.4303178172558546}]} {"index": 579, "beams": [{"orig_question": "Liste todos os detalhes do aluno em ordem lexicográfica reversa.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT * FROM Student_Enrolment JOIN Semesters ORDER BY Semesters.semester_name Asc", "score": -0.9555926360189915}]} {"index": 580, "beams": [{"orig_question": "Que outros detalhes você pode me dar sobre os alunos em ordem alfabética reversa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 48, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 48, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Student_Enrolment.other_details FROM Student_Enrolment ORDER BY Student_Enrolment.other_details Asc", "score": -0.4090045550838113}]} {"index": 581, "beams": [{"orig_question": "Descreva a seção h.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Addresses.state_province_county FROM Addresses JOIN Sections WHERE Sections.section_name = 'terminal'", "score": -5.523969948291779}]} {"index": 582, "beams": [{"orig_question": "Qual é a descrição da seção chamada h?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Sections.section_description FROM Sections WHERE Sections.section_name = 'terminal'", "score": -0.02367824497014226}]} {"index": 583, "beams": [{"orig_question": "Encontre o primeiro nome dos alunos que moram permanentemente no país Haiti ou possuem o número do celular 09700166582.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Students.first_name FROM Students JOIN Addresses WHERE Addresses.country = 'terminal' OR Students.cell_mobile_number = 'terminal'", "score": -0.05524892568030282}]} {"index": 584, "beams": [{"orig_question": "Quais são os primeiros nomes dos alunos que moram permanentemente no Haiti ou têm o número do celular 09700166582?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Students.first_name FROM Students JOIN Addresses WHERE Addresses.country = 'terminal' OR Students.cell_mobile_number = 'terminal'", "score": -0.20429670432531566}]} {"index": 585, "beams": [{"orig_question": "Liste o título de todos os desenhos em ordem alfabética.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon ORDER BY Cartoon.Title Asc", "score": -0.0025222852345905267}]} {"index": 586, "beams": [{"orig_question": "Quais são os títulos dos desenhos animados classificados em ordem alfabética?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon ORDER BY Cartoon.Title Asc", "score": -0.046955009194789454}]} {"index": 587, "beams": [{"orig_question": "Liste todos os desenhos animados dirigidos por \"Ben Jones\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = 'terminal'", "score": -0.0014992685734114275}]} {"index": 588, "beams": [{"orig_question": "Quais são os nomes de todos os desenhos animados dirigidos por Ben Jones?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = 'terminal'", "score": -0.003962747907280573}]} {"index": 589, "beams": [{"orig_question": "Quantos desenhos animados foram escritos por \"Joseph Kuhr\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT Cartoon.Title) FROM Cartoon WHERE Cartoon.Written_by = 'terminal'", "score": -0.14768241345814204}]} {"index": 590, "beams": [{"orig_question": "Qual é o número de desenhos animados escritos por Joseph Kuhr?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT Cartoon.Title) FROM Cartoon WHERE Cartoon.Written_by = 'terminal'", "score": -0.530985295766186}]} {"index": 591, "beams": [{"orig_question": "liste todos os títulos de desenhos animados e seus diretores ordenados por data de exibição", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title, Cartoon.Directed_by FROM TV_series JOIN Cartoon ORDER BY TV_series.Air_Date Asc", "score": -2.2406616862863302}]} {"index": 592, "beams": [{"orig_question": "Qual é o nome e os diretores de todos os desenhos animados que são pedidos por data de exibição?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Cartoon.Title, Cartoon.Directed_by FROM Cartoon JOIN TV_series ORDER BY TV_series.Air_Date Asc", "score": -2.2197750107734464}]} {"index": 593, "beams": [{"orig_question": "Liste o título de todos os desenhos animados dirigidos por \"Ben Jones\" ou \"Brandon Vietti\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = 'terminal' OR Cartoon.Directed_by = 'terminal'", "score": -0.001985778822586326}]} {"index": 594, "beams": [{"orig_question": "Quais são os títulos de todos os desenhos animados dirigidos por Ben Jones ou Brandon Vietti?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon WHERE Cartoon.Directed_by = 'terminal' OR Cartoon.Directed_by = 'terminal'", "score": -0.0014891598000019712}]} {"index": 595, "beams": [{"orig_question": "Qual país tem mais canais de TV? Liste o país e o número de canais de TV que possui.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Country, Count(*) FROM TV_Channel GROUP BY TV_Channel.Country ORDER BY Count(*) Desc LIMIT 1", "score": -0.01457254740488878}]} {"index": 596, "beams": [{"orig_question": "Qual é o país com mais canais de TV e quantos tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Country, Count(*) FROM TV_Channel GROUP BY TV_Channel.Country ORDER BY Count(*) Desc LIMIT 1", "score": -0.005788968556316831}]} {"index": 597, "beams": [{"orig_question": "Liste o número de nomes e conteúdos de séries diferentes na tabela de canais de TV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": true}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT TV_Channel.series_name), Count(DISTINCT TV_Channel.Content) FROM TV_Channel", "score": -0.749192870396655}]} {"index": 598, "beams": [{"orig_question": "Quantas séries e conteúdos diferentes estão listados na tabela de canais de TV?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": true}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT TV_Channel.Content), Count(DISTINCT TV_Channel.Content) FROM TV_Channel", "score": -0.45769722157274373}]} {"index": 599, "beams": [{"orig_question": "Qual é o conteúdo do Canal de TV com o nome de série \"Sky Radio\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Content FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.0006165468103063176}]} {"index": 600, "beams": [{"orig_question": "Qual é o conteúdo da série Sky Radio?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Content FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.0008800223040381638}]} {"index": 601, "beams": [{"orig_question": "Qual é a Opção de Pacote de Canal de TV com o nome de série \"Sky Radio\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -1.033765910193324}]} {"index": 602, "beams": [{"orig_question": "Quais são as opções de pacote dos canais de TV cujos nomes de série são Sky Radio?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Content FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.13442131863030227}]} {"index": 603, "beams": [{"orig_question": "Quantos canais de TV usando o idioma inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM TV_Channel WHERE TV_Channel.Language = 'terminal'", "score": -0.01257978095964063}]} {"index": 604, "beams": [{"orig_question": "Quantos canais de TV usam o idioma inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM TV_Channel WHERE TV_Channel.Language = 'terminal'", "score": -0.1273168096668087}]} {"index": 605, "beams": [{"orig_question": "Liste o idioma usado com o menor número de canais de TV. Lista o idioma e o número de canais de TV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language ORDER BY Count(*) Asc LIMIT 1", "score": -0.4959051040932536}]} {"index": 606, "beams": [{"orig_question": "Quais são os idiomas usados pelo menor número de canais de TV e quantos canais os usam?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language ORDER BY Count(*) Asc LIMIT 1", "score": -0.060161340865306556}]} {"index": 607, "beams": [{"orig_question": "Liste cada idioma e o número de canais de TV que o utilizam.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language", "score": -0.01789419070245657}]} {"index": 608, "beams": [{"orig_question": "Para cada idioma, liste o número de canais de TV que o utilizam.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Language, Count(*) FROM TV_Channel GROUP BY TV_Channel.Language", "score": -0.14188907947618645}]} {"index": 609, "beams": [{"orig_question": "Qual é o canal de TV que Mostre o desenho animado \"The Rise of the Blue Beetle!\"? Liste o nome da série do canal de TV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.619022287959524}]} {"index": 610, "beams": [{"orig_question": "Qual é o nome da série do canal de TV que Mostre o desenho animado \"The Rise of the Blue Beetle\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_series.Episode FROM TV_series JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.05158911676335265}]} {"index": 611, "beams": [{"orig_question": "Liste o título de todos os desenhos animados exibidos no canal de TV com o nome da série \"Sky Radio\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.05405648678424768}]} {"index": 612, "beams": [{"orig_question": "Qual o título de todos os desenhos animados que estão no canal de TV com o nome da série \"Sky Radio\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Cartoon.Title FROM Cartoon JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.02614218621602049}]} {"index": 613, "beams": [{"orig_question": "Liste o episódio de todas as séries de TV classificadas por classificação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_series JOIN TV_Channel ORDER BY TV_series.Rating Asc", "score": -2.7741754783301076}]} {"index": 614, "beams": [{"orig_question": "Quais são todos os episódios ordenados por classificações?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT TV_series.Rating FROM TV_series ORDER BY TV_series.Rating Asc", "score": -0.8972528049089306}]} {"index": 615, "beams": [{"orig_question": "Liste as 3 principais séries de TV com classificação mais alta. Liste o episódio e a classificação da série de TV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT TV_series.Viewers_m, TV_series.Rating FROM TV_series ORDER BY TV_series.Rating Desc LIMIT 1", "score": -0.4562092184496578}]} {"index": 616, "beams": [{"orig_question": "Quais são os três episódios mais bem avaliados na tabela de séries de TV e quais foram essas avaliações?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT TV_series.Rating, TV_series.Rating FROM TV_series ORDER BY TV_series.Rating Asc LIMIT 1", "score": -1.967318443406839}]} {"index": 617, "beams": [{"orig_question": "Qual é a participação mínima e máxima de séries de TV?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Min(TV_series.Rating), Min(TV_series.Rating) FROM TV_series JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.46046261226729257}]} {"index": 618, "beams": [{"orig_question": "Qual é a participação máxima e mínima para a série de TV?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Max(TV_series.Rating), Min(TV_series.Rating) FROM TV_series", "score": -0.1369398133829236}]} {"index": 619, "beams": [{"orig_question": "Qual é a data de exibição da série de TV com o episódio \"A Love of a Lifetime\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_series.Air_Date FROM TV_series JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.2260004565159761}]} {"index": 620, "beams": [{"orig_question": "Quando o episódio \"A Love of a Lifetime\" foi ao ar?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT TV_series.Air_Date FROM TV_series WHERE TV_series.Episode = 'terminal'", "score": -0.009456078998709927}]} {"index": 621, "beams": [{"orig_question": "O que é o Weekly Rank da série de TV com o episódio \"A Love of a Lifetime\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_series.Weekly_Rank FROM TV_series JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal' AND TV_Channel.series_name = 'terminal'", "score": -1.2671312085582258}]} {"index": 622, "beams": [{"orig_question": "Qual é a classificação semanal para o episódio \"A Love of a Lifetime\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT TV_series.Rating FROM TV_series WHERE TV_series.Episode = 'terminal'", "score": -0.017693073132249992}]} {"index": 623, "beams": [{"orig_question": "Qual é o canal de TV da série de TV com o episódio \"A Love of a Lifetime\"? Liste o nome da série do canal de TV.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_series JOIN TV_Channel WHERE TV_series.Episode = 'terminal'", "score": -0.5006906002527103}]} {"index": 624, "beams": [{"orig_question": "Qual é o nome da série que tem o episódio \"A Love of a Lifetime\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.series_name FROM TV_series JOIN TV_Channel WHERE TV_series.Episode = 'terminal'", "score": -2.0703557330416515}]} {"index": 625, "beams": [{"orig_question": "Liste o Episódio de todas as séries de TV exibidas no Canal de TV com o nome da série \"Sky Radio\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.6678194550913759}]} {"index": 626, "beams": [{"orig_question": "Qual é o episódio da série de TV chamada \"Sky Radio\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.25304050089471275}]} {"index": 627, "beams": [{"orig_question": "Encontre o número de desenhos animados dirigidos por cada um dos diretores listados.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Directed_by, Count(*) FROM Cartoon GROUP BY Cartoon.Directed_by", "score": -0.12396045583102477}]} {"index": 628, "beams": [{"orig_question": "Quantos desenhos animados cada diretor criou?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Directed_by, Count(*) FROM Cartoon GROUP BY Cartoon.Directed_by", "score": -0.11560837279807856}]} {"index": 629, "beams": [{"orig_question": "Encontre o código de produção e o canal do desenho animado exibido mais recentemente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Cartoon.Production_code, Cartoon.Channel FROM Cartoon JOIN TV_series ORDER BY TV_series.Air_Date Desc LIMIT 1", "score": -5.603688328934368}]} {"index": 630, "beams": [{"orig_question": "Qual é o código e canal de produção do cartoon mais recente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Cartoon.Production_code, Cartoon.Channel FROM Cartoon ORDER BY Cartoon.Original_air_date Desc LIMIT 1", "score": -0.037349493563851865}]} {"index": 631, "beams": [{"orig_question": "Encontre a escolha do pacote e o nome da série do canal de TV que possui TV de alta definição.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_series.id, TV_series.Episode FROM TV_series JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -0.5109771362526772}]} {"index": 632, "beams": [{"orig_question": "Quais são as opções de pacote e o nome da série para o canal de TV que suporta TV de alta definição?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_series.Episode, TV_series.Episode FROM TV_series JOIN TV_Channel WHERE TV_Channel.series_name = 'terminal'", "score": -1.1304588235793744}]} {"index": 633, "beams": [{"orig_question": "quais canais de TV de quais países estão exibindo algum cartoon escrito por Todd Casey?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT DISTINCT TV_Channel.Country FROM Cartoon JOIN TV_Channel WHERE Cartoon.Written_by = 'terminal'", "score": -0.5412290635983936}]} {"index": 634, "beams": [{"orig_question": "Quais são os países que têm desenhos animados na TV escritos por Todd Casey?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Country FROM Cartoon JOIN TV_Channel WHERE Cartoon.Written_by = 'terminal'", "score": -0.04267597080979613}]} {"index": 635, "beams": [{"orig_question": "quais canais de TV de países não estão exibindo nenhum desenho animado escrito por Todd Casey?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel EXCEPT SELECT Cartoon.Channel FROM Cartoon WHERE Cartoon.Written_by = 'terminal'", "score": -0.4818076158990152}]} {"index": 636, "beams": [{"orig_question": "Quais são os países que não estão exibindo desenhos animados escritos por Todd Casey?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Country FROM TV_Channel EXCEPT SELECT TV_Channel.Country FROM Cartoon JOIN TV_Channel WHERE Cartoon.Written_by = 'terminal'", "score": -0.06066804701686124}]} {"index": 637, "beams": [{"orig_question": "Encontre o nome da série e o país do canal de TV que está exibindo alguns desenhos animados dirigidos por Ben Jones e Michael Chang?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.series_name, TV_Channel.Country FROM Cartoon JOIN TV_Channel WHERE Cartoon.Directed_by = 'terminal' AND Cartoon.Directed_by = 'terminal'", "score": -2.62139711371492}]} {"index": 638, "beams": [{"orig_question": "Qual é o nome da série e o país de todos os canais de TV que exibem desenhos animados dirigidos por Ben Jones e desenhos animados dirigidos por Michael Chang?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.series_name, TV_Channel.Country FROM Cartoon JOIN TV_Channel WHERE Cartoon.Directed_by = 'terminal' INTERSECT SELECT TV_Channel.series_name, TV_Channel.Country FROM Cartoon JOIN TV_Channel WHERE Cartoon.Directed_by = 'terminal'", "score": -0.2758378760627238}]} {"index": 639, "beams": [{"orig_question": "encontre a proporção de pixel e a nação dos canais de TV que não usam o inglês.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV, TV_Channel.Pixel_aspect_ratio_PAR FROM TV_Channel EXCEPT SELECT TV_Channel.Hight_definition_TV, TV_Channel.Pixel_aspect_ratio_PAR FROM TV_Channel WHERE TV_Channel.Language = 'terminal'", "score": -2.8806069034762913}]} {"index": 640, "beams": [{"orig_question": "Qual é a proporção do pixel e o país de origem de todos os canais de TV que não usam o inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV, TV_Channel.Country FROM TV_Channel WHERE TV_Channel.Language = 'terminal' EXCEPT SELECT TV_Channel.Hight_definition_TV, TV_Channel.Country FROM TV_Channel WHERE TV_Channel.Language = 'terminal'", "score": -2.01324304069567}]} {"index": 641, "beams": [{"orig_question": "localize o id dos canais de tv que vêm de países onde possuam mais de dois canais de tv", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.id FROM TV_Channel WHERE TV_Channel.Pay_per_view_PPV > 'terminal' GROUP BY TV_Channel.Hight_definition_TV HAVING Count(*) > 'terminal'", "score": -1.9351246848818846}]} {"index": 642, "beams": [{"orig_question": "Quais são os ids de todos os canais de TV que possuem mais de 2 canais de TV?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel GROUP BY TV_Channel.Hight_definition_TV HAVING Count(*) > 'terminal'", "score": -0.3062676980625767}]} {"index": 643, "beams": [{"orig_question": "encontre o id dos canais de TV que não reproduzem nenhum desenho animado dirigido por Ben Jones.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.id FROM TV_Channel EXCEPT SELECT Cartoon.id FROM Cartoon WHERE Cartoon.Directed_by = 'terminal'", "score": -1.5176147014135495}]} {"index": 644, "beams": [{"orig_question": "Quais são os ids dos canais de TV que não possuem cartuns dirigidos por Ben Jones?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.id FROM TV_Channel EXCEPT SELECT Cartoon.id FROM Cartoon JOIN TV_Channel WHERE Cartoon.Directed_by = 'terminal'", "score": -0.8953317178529687}]} {"index": 645, "beams": [{"orig_question": "encontre a opção de pacote do canal de tv que não possui desenho animado dirigido por Ben Jones.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Content FROM TV_Channel EXCEPT SELECT TV_Channel.Content FROM Cartoon JOIN TV_Channel WHERE Cartoon.Directed_by = 'terminal'", "score": -1.532886757657252}]} {"index": 646, "beams": [{"orig_question": "Quais são as opções de pacote de todos os canais de TV que não estão exibindo nenhum desenho animado dirigido por Ben Jones?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT TV_Channel.Hight_definition_TV FROM TV_Channel EXCEPT SELECT TV_Channel.Hight_definition_TV FROM Cartoon JOIN TV_Channel WHERE Cartoon.Directed_by = 'terminal'", "score": -0.9267064387095161}]} {"index": 647, "beams": [{"orig_question": "Quantos jogadores de pôquer existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM poker_player", "score": -0.006987490691244602}]} {"index": 648, "beams": [{"orig_question": "Conte o número de jogadores de pôquer.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM poker_player", "score": -0.005791431060060859}]} {"index": 649, "beams": [{"orig_question": "Liste os ganhos dos jogadores de pôquer em ordem decrescente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT poker_player.Best_Finish FROM poker_player ORDER BY poker_player.Best_Finish Desc", "score": -0.21834180392761482}]} {"index": 650, "beams": [{"orig_question": "Quais são os ganhos dos jogadores de pôquer, ordenados em ordem decrescente por valor?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT poker_player.Best_Finish FROM poker_player ORDER BY poker_player.Best_Finish Desc", "score": -0.12480591342318803}]} {"index": 651, "beams": [{"orig_question": "Liste as mesas finais feitas e os melhores resultados dos jogadores de pôquer.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT poker_player.Earnings, poker_player.Final_Table_Made FROM poker_player", "score": -0.7637226895894855}]} {"index": 652, "beams": [{"orig_question": "Quais são as mesas finais feitas e os melhores resultados para todos os jogadores de pôquer?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Max(poker_player.Final_Table_Made), people.Name FROM poker_player JOIN people", "score": -0.7098867259919359}]} {"index": 653, "beams": [{"orig_question": "Qual é a média de ganhos dos jogadores de pôquer?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(poker_player.Best_Finish) FROM poker_player", "score": -0.05931632645661011}]} {"index": 654, "beams": [{"orig_question": "Retorna os ganhos médios de todos os jogadores de pôquer.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(poker_player.Best_Finish) FROM poker_player", "score": -0.061702912993496284}]} {"index": 655, "beams": [{"orig_question": "Qual é a classificação de dinheiro do jogador de pôquer com os maiores ganhos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player ORDER BY poker_player.Best_Finish Desc LIMIT 1", "score": -0.1895868998781225}]} {"index": 656, "beams": [{"orig_question": "Retorne a classificação de dinheiro do jogador com os maiores ganhos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT poker_player.Final_Table_Made FROM poker_player ORDER BY poker_player.Final_Table_Made Desc LIMIT 1", "score": -1.1798273023414367}]} {"index": 657, "beams": [{"orig_question": "Qual é o número máximo de mesas finais feitas entre jogadores de pôquer com ganhos inferiores a 200.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people WHERE people.Height < 'terminal'", "score": -1.7708402710122755}]} {"index": 658, "beams": [{"orig_question": "Retorne o máximo de mesas finais feitas em todos os jogadores de pôquer com ganhos abaixo de 200.000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality FROM poker_player JOIN people WHERE poker_player.Final_Table_Made < 'terminal'", "score": -1.6374256167036947}]} {"index": 659, "beams": [{"orig_question": "Quais são os nomes dos jogadores de pôquer?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people", "score": -0.008002756534551736}]} {"index": 660, "beams": [{"orig_question": "Retorne os nomes de todos os jogadores de pôquer.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people", "score": -0.010061371785013762}]} {"index": 661, "beams": [{"orig_question": "Quais são os nomes dos jogadores de pôquer cujos ganhos são superiores a 300.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people WHERE poker_player.Earnings > 'terminal'", "score": -0.2643173726091774}]} {"index": 662, "beams": [{"orig_question": "Dê os nomes dos jogadores de pôquer com ganhos acima de 300.000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people WHERE poker_player.Earnings > 'terminal'", "score": -0.24502160175688203}]} {"index": 663, "beams": [{"orig_question": "Liste os nomes dos jogadores de pôquer ordenados pelas mesas finais feitas em ordem crescente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people ORDER BY poker_player.Final_Table_Made Asc", "score": -0.22527312843158143}]} {"index": 664, "beams": [{"orig_question": "Quais são os nomes dos jogadores de pôquer, ordenados de acordo com o número de mesas finais que fizeram?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people ORDER BY people.Name Asc", "score": -1.0195818394283833}]} {"index": 665, "beams": [{"orig_question": "Qual é a data de nascimento do jogador de pôquer com os menores ganhos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Birth_Date FROM poker_player JOIN people ORDER BY poker_player.Best_Finish Asc LIMIT 1", "score": -0.07384795817779377}]} {"index": 666, "beams": [{"orig_question": "Retorne a data de nascimento do jogador de pôquer com os menores ganhos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Birth_Date FROM poker_player JOIN people ORDER BY poker_player.Best_Finish Asc LIMIT 1", "score": -0.22750412519053498}]} {"index": 667, "beams": [{"orig_question": "Qual é a classificação de dinheiro do jogador de pôquer mais alto?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player JOIN people ORDER BY people.Height Desc LIMIT 1", "score": -0.04999903118550719}]} {"index": 668, "beams": [{"orig_question": "Retorne a classificação de dinheiro do jogador de pôquer com a maior altura.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT poker_player.Money_Rank FROM poker_player JOIN people ORDER BY people.Height Desc LIMIT 1", "score": -0.26086651707692}]} {"index": 669, "beams": [{"orig_question": "Qual é o ganho médio de jogadores de pôquer com altura superior a 200?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(poker_player.Best_Finish) FROM poker_player JOIN people WHERE people.Height > 'terminal'", "score": -0.48841862997505814}]} {"index": 670, "beams": [{"orig_question": "Dê os ganhos médios de jogadores de pôquer com mais de 200 anos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Avg(poker_player.Best_Finish) FROM poker_player JOIN people WHERE people.Height > 'terminal'", "score": -1.0761760783498175}]} {"index": 671, "beams": [{"orig_question": "Quais são os nomes dos jogadores de pôquer em ordem decrescente de ganhos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people ORDER BY poker_player.Best_Finish Desc", "score": -0.501178274209451}]} {"index": 672, "beams": [{"orig_question": "Retorne os nomes dos jogadores de pôquer classificados por seus ganhos decrescentes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM poker_player JOIN people ORDER BY poker_player.Final_Table_Made Desc", "score": -1.1247070763965894}]} {"index": 673, "beams": [{"orig_question": "Quais são as diferentes nacionalidades de pessoas e o número correspondente de pessoas de cada nação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality, Count(*) FROM people GROUP BY people.Nationality", "score": -0.009228415807228885}]} {"index": 674, "beams": [{"orig_question": "Quantas pessoas existem de cada nacionalidade?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality, Count(*) FROM people GROUP BY people.Nationality", "score": -0.0074396012104216425}]} {"index": 675, "beams": [{"orig_question": "Qual é a nacionalidade mais comum das pessoas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality ORDER BY Count(*) Desc LIMIT 1", "score": -0.005476707922071}]} {"index": 676, "beams": [{"orig_question": "Forneça a nacionalidade mais comum a todas as pessoas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality ORDER BY Count(*) Desc LIMIT 1", "score": -0.004153129158453339}]} {"index": 677, "beams": [{"orig_question": "Quais são as nacionalidades que são compartilhadas por pelo menos duas pessoas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality HAVING Count(*) >= 'terminal'", "score": -0.015213237076295627}]} {"index": 678, "beams": [{"orig_question": "Retorne as nacionalidades para as quais há duas ou mais pessoas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Nationality FROM people GROUP BY people.Nationality HAVING Count(*) >= 'terminal'", "score": -0.019231314895932883}]} {"index": 679, "beams": [{"orig_question": "Liste os nomes e datas de nascimento das pessoas em ordem alfabética crescente de nome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name, people.Birth_Date FROM people ORDER BY people.Name Asc", "score": -0.07110812047972104}]} {"index": 680, "beams": [{"orig_question": "Quais são os nomes e datas de nascimento das pessoas, ordenados por seus nomes em ordem alfabética?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name, people.Birth_Date FROM people ORDER BY people.Name Asc", "score": -0.008586803208345373}]} {"index": 681, "beams": [{"orig_question": "Mostre os nomes de pessoas cuja nacionalidade não seja \"Rússia\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM people WHERE people.Nationality != 'terminal'", "score": -0.002783171393843986}]} {"index": 682, "beams": [{"orig_question": "Quais são os nomes de pessoas que não são da Rússia?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM people WHERE people.Nationality != 'terminal'", "score": -0.001484036398551325}]} {"index": 683, "beams": [{"orig_question": "Liste os nomes de pessoas que não são jogadores de pôquer.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM people WHERE people.People_ID NOT IN (SELECT poker_player.People_ID FROM poker_player)", "score": -0.12945837149027284}]} {"index": 684, "beams": [{"orig_question": "Quais são os nomes das pessoas que não jogam poker?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT people.Name FROM people WHERE people.People_ID NOT IN (SELECT poker_player.People_ID FROM poker_player)", "score": -0.4796487186901004}]} {"index": 685, "beams": [{"orig_question": "Quantas nacionalidades distintas existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT people.Nationality) FROM people", "score": -0.0020875802392765763}]} {"index": 686, "beams": [{"orig_question": "Conte o número de diferentes nacionalidades.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(DISTINCT people.Nationality) FROM people", "score": -0.005026131686463486}]} {"index": 687, "beams": [{"orig_question": "Quantos estados existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT AREA_CODE_STATE.state) FROM AREA_CODE_STATE", "score": -0.4293437455780804}]} {"index": 688, "beams": [{"orig_question": "Liste os números e nomes dos competidores, ordenados por nomes decrescentes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT VOTES.state, CONTESTANTS.contestant_name FROM VOTES JOIN CONTESTANTS ORDER BY VOTES.created Desc", "score": -1.025668600690551}]} {"index": 689, "beams": [{"orig_question": "Liste os ids dos votos, números de telefone e estados de todos os votos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT VOTES.vote_id, VOTES.phone_number, VOTES.state FROM VOTES", "score": -0.6266429338347734}]} {"index": 690, "beams": [{"orig_question": "Quais são os valores máximo e mínimo dos códigos de área?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(AREA_CODE_STATE.area_code), Min(VOTES.created) FROM AREA_CODE_STATE JOIN VOTES", "score": -5.610061940737069}]} {"index": 691, "beams": [{"orig_question": "Qual é a última data de criação de votos do estado 'CA'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(VOTES.created) FROM VOTES WHERE VOTES.state = 'terminal'", "score": -0.6395755688718054}]} {"index": 692, "beams": [{"orig_question": "Quais são os nomes dos concorrentes cujos nomes não são 'Jessie Alloway'", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT * FROM VOTES JOIN CONTESTANTS WHERE CONTESTANTS.contestant_name != 'terminal'", "score": -0.42511418647973187}]} {"index": 693, "beams": [{"orig_question": "Quais são os estados distintos e tempo de criação de todos os votos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT DISTINCT VOTES.state, VOTES.created FROM VOTES", "score": -0.052393777208635584}]} {"index": 694, "beams": [{"orig_question": "Quais são os números e nomes dos concorrentes que tiveram pelo menos dois votos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT VOTES.state, CONTESTANTS.contestant_name FROM VOTES JOIN CONTESTANTS GROUP BY VOTES.state HAVING Count(*) >= 'terminal'", "score": -3.39133765315637}]} {"index": 695, "beams": [{"orig_question": "De todos os concorrentes que foram votados, qual é o número de concorrentes e o nome do concorrente que obteve menos votos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT CONTESTANTS.contestant_name, Count(*) FROM VOTES JOIN CONTESTANTS GROUP BY CONTESTANTS.contestant_name ORDER BY Count(*) Asc LIMIT 1", "score": -0.6329795195633778}]} {"index": 696, "beams": [{"orig_question": "Qual é o número de votos do estado 'NY' ou 'CA'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM VOTES WHERE VOTES.state = 'terminal' OR VOTES.state = 'terminal'", "score": -0.10282416921108961}]} {"index": 697, "beams": [{"orig_question": "Quantos concorrentes não foram votados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM VOTES WHERE VOTES.state NOT IN (SELECT * FROM VOTES)", "score": -3.4143487302644644}]} {"index": 698, "beams": [{"orig_question": "Qual é o código de área em que mais votou?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT AREA_CODE_STATE.area_code FROM AREA_CODE_STATE JOIN VOTES GROUP BY AREA_CODE_STATE.area_code ORDER BY Count(*) Desc LIMIT 1", "score": -0.24870244978228584}]} {"index": 699, "beams": [{"orig_question": "Quais são as datas de criação, estados e números de telefone dos votos para o competidor chamado 'Tabatha Gehling'?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT VOTES.created, VOTES.state, VOTES.phone_number FROM VOTES JOIN CONTESTANTS WHERE CONTESTANTS.contestant_name = 'terminal'", "score": -2.1886608893255186}]} {"index": 700, "beams": [{"orig_question": "Liste os códigos de área nos quais os eleitores votaram tanto na concorrente 'Tabatha Gehling' quanto na concorrente 'Kelly Clauss'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT AREA_CODE_STATE.area_code FROM VOTES JOIN AREA_CODE_STATE JOIN CONTESTANTS WHERE CONTESTANTS.contestant_name = 'terminal' INTERSECT SELECT AREA_CODE_STATE.area_code FROM VOTES JOIN AREA_CODE_STATE JOIN CONTESTANTS WHERE CONTESTANTS.contestant_name = 'terminal'", "score": -0.06272331105523676}]} {"index": 701, "beams": [{"orig_question": "Retorne os nomes dos competidores cujos nomes contêm a substring 'Al'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT CONTESTANTS.contestant_name FROM VOTES JOIN CONTESTANTS WHERE CONTESTANTS.contestant_name LIKE 'terminal'", "score": -0.6722446518833749}]} {"index": 702, "beams": [{"orig_question": "Quais são os nomes de todos os países que se tornaram independentes após 1950?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.IndepYear > 'terminal'", "score": -0.2582774276334021}]} {"index": 703, "beams": [{"orig_question": "Dê os nomes das nações que foram fundadas depois de 1950.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.IndepYear > 'terminal'", "score": -0.11138350266355701}]} {"index": 704, "beams": [{"orig_question": "Quantos países têm uma república como forma de governo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country", "score": -0.6613761694316054}]} {"index": 705, "beams": [{"orig_question": "Quantos países têm governos que são repúblicas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country", "score": -0.00879901263397187}]} {"index": 706, "beams": [{"orig_question": "Qual é a superfície total dos países da região do Caribe?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Sum(country.Continent) FROM country WHERE country.Region = 'terminal'", "score": -0.13868064320377016}]} {"index": 707, "beams": [{"orig_question": "Quanta área de superfície os países do Caribe cobrem juntos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Sum(country.SurfaceArea) FROM country WHERE country.Continent = 'terminal'", "score": -0.6371822643559355}]} {"index": 708, "beams": [{"orig_question": "Em que continente está Anguila?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Population FROM country WHERE country.Name = 'terminal'", "score": -1.044807832686729}]} {"index": 709, "beams": [{"orig_question": "Qual é o nome do continente ao qual Anguila pertence?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.Code2 = 'terminal'", "score": -0.14960516826215553}]} {"index": 710, "beams": [{"orig_question": "Em que região está localizada a cidade Cabul?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT country.Region FROM country JOIN city WHERE city.Name = 'terminal'", "score": -1.0782162906543817}]} {"index": 711, "beams": [{"orig_question": "Em que região fica Cabul?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT country.Region FROM country JOIN city WHERE city.Name = 'terminal'", "score": -1.1088955915474799}]} {"index": 712, "beams": [{"orig_question": "Qual idioma é o mais popular em Aruba?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM country JOIN city WHERE country.LocalName = 'terminal' GROUP BY country.Name ORDER BY Count(*) Desc LIMIT 1", "score": -3.60896779660834}]} {"index": 713, "beams": [{"orig_question": "Qual idioma é falado predominantemente em Aruba?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.LocalName = 'terminal'", "score": -0.3187195111095207}]} {"index": 714, "beams": [{"orig_question": "Qual é a população e a expectativa de vida no Brasil?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Population, country.IndepYear FROM country", "score": -1.2879271519341273}]} {"index": 715, "beams": [{"orig_question": "Dê-me a população do Brasil e as expectativas de vida.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Population, country.IndepYear FROM country", "score": -0.10185138860833831}]} {"index": 716, "beams": [{"orig_question": "Quais são a região e população de Angola?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Region, country.Population FROM country WHERE country.Name = 'terminal'", "score": -0.14788598742438808}]} {"index": 717, "beams": [{"orig_question": "A que região pertence Angola e qual é a sua população?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Region, country.Population FROM country WHERE country.Name = 'terminal'", "score": -0.25482358445844966}]} {"index": 718, "beams": [{"orig_question": "Qual é a expectativa de vida média para os países da região da África Central?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.GNPOld) FROM country WHERE country.Region = 'terminal'", "score": -0.5487258109451432}]} {"index": 719, "beams": [{"orig_question": "Qual é a expectativa de vida média das pessoas na África Central?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Avg(countrylanguage.Language) FROM country JOIN countrylanguage WHERE country.Region = 'terminal'", "score": -4.366266879093018}]} {"index": 720, "beams": [{"orig_question": "Qual é o nome do país com a menor expectativa de vida da Ásia?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE country.Continent IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = (SELECT Min(countrylanguage.Language) FROM countrylanguage))", "score": -2.9690957071725137}]} {"index": 721, "beams": [{"orig_question": "Dê o nome do país da Ásia com a menor expectativa de vida.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE country.Continent = 'terminal' AND country.Population = (SELECT Min(countrylanguage.Language) FROM countrylanguage WHERE countrylanguage.CountryCode = 'terminal')", "score": -3.6667724028229145}]} {"index": 722, "beams": [{"orig_question": "Qual é a população total e o PIB máximo na Ásia?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Sum(country.Population), Sum(country.GNP) FROM country WHERE country.LocalName = 'terminal'", "score": -1.4882766030495986}]} {"index": 723, "beams": [{"orig_question": "Quantas pessoas vivem na Ásia e qual é o maior PIB entre elas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(country.GNP), Count(*) FROM country WHERE country.LocalName = 'terminal'", "score": -2.750371802587324}]} {"index": 724, "beams": [{"orig_question": "Qual é a expectativa de vida média em países africanos que são repúblicas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.IndepYear) FROM country WHERE country.LocalName = 'terminal'", "score": -0.7763076519477181}]} {"index": 725, "beams": [{"orig_question": "Dê a expectativa de vida média para os países da África que são repúblicas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(country.GNPOld) FROM country JOIN city WHERE city.Name = 'terminal'", "score": -0.6861834041774273}]} {"index": 726, "beams": [{"orig_question": "Qual é a área de superfície total dos continentes Ásia e Europa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Sum(country.SurfaceArea) FROM country WHERE country.Population = 'terminal' INTERSECT SELECT country.SurfaceArea FROM country WHERE country.Population = 'terminal'", "score": -1.3078313713194802}]} {"index": 727, "beams": [{"orig_question": "Forneça a área de superfície total coberta por países da Ásia ou Europa.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.SurfaceArea FROM country WHERE country.Population = 'terminal' OR country.Population = 'terminal'", "score": -1.8396882129018195}]} {"index": 728, "beams": [{"orig_question": "Quantas pessoas vivem no distrito de Gelderland?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Population FROM city WHERE city.District = 'terminal'", "score": -0.2457934766388803}]} {"index": 729, "beams": [{"orig_question": "Qual é a população total do distrito de Gelderland?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Sum(city.Population) FROM city WHERE city.Name = 'terminal'", "score": -0.5124166602417972}]} {"index": 730, "beams": [{"orig_question": "Qual é o PIB médio e a população total em todas as nações cujo governo é território dos EUA?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.GNP), Avg(country.Population) FROM country WHERE country.Region = 'terminal'", "score": -1.2862577218038496}]} {"index": 731, "beams": [{"orig_question": "Forneça o PIB médio e a população total das nações consideradas território dos EUA.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.GNP), Avg(country.Population) FROM country WHERE country.Region = 'terminal'", "score": -0.8659987891733181}]} {"index": 732, "beams": [{"orig_question": "Quantas línguas únicas são faladas no mundo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM countrylanguage", "score": -0.007151341298595071}]} {"index": 733, "beams": [{"orig_question": "Qual é o número de idiomas distintos usados em todo o mundo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT country.Name) FROM country", "score": -0.8905262425541878}]} {"index": 734, "beams": [{"orig_question": "Quantos tipos de governo existem na África?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country", "score": -0.04409822236630134}]} {"index": 735, "beams": [{"orig_question": "Quantas formas diferentes de governo existem na África?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(DISTINCT country.GovernmentForm) FROM country", "score": -0.03602496528674237}]} {"index": 736, "beams": [{"orig_question": "Qual é o número total de idiomas usados em Aruba?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country WHERE country.LocalName = 'terminal'", "score": -0.10816751630045474}]} {"index": 737, "beams": [{"orig_question": "Quantos idiomas são falados em Aruba?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country WHERE country.Name = 'terminal'", "score": -0.3744062226032838}]} {"index": 738, "beams": [{"orig_question": "Quantas línguas oficiais o Afeganistão tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM country JOIN countrylanguage WHERE country.GovernmentForm = 'terminal'", "score": -0.712917204014957}]} {"index": 739, "beams": [{"orig_question": "Quantas línguas oficiais são faladas no Afeganistão?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM countrylanguage JOIN country WHERE country.Population = 'terminal'", "score": -1.3951617269776762}]} {"index": 740, "beams": [{"orig_question": "Qual é o nome do país que fala o maior número de línguas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage GROUP BY countrylanguage.CountryCode ORDER BY Count(*) Desc LIMIT 1", "score": -1.0291626134276157}]} {"index": 741, "beams": [{"orig_question": "Dê o nome da nação que usa a maior quantidade de línguas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage GROUP BY country.Name ORDER BY Count(*) Desc LIMIT 1", "score": -0.4695184788215556}]} {"index": 742, "beams": [{"orig_question": "Qual continente tem as mais diversas línguas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Population FROM country JOIN countrylanguage GROUP BY country.Name ORDER BY Count(*) Desc LIMIT 1", "score": -1.4548412506810564}]} {"index": 743, "beams": [{"orig_question": "Qual continente fala mais línguas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage GROUP BY countrylanguage.CountryCode ORDER BY Count(*) Desc LIMIT 1", "score": -0.908312340530756}]} {"index": 744, "beams": [{"orig_question": "Quantos países falam inglês e holandês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, Count(*) FROM country WHERE countrylanguage.Language = 'terminal' INTERSECT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -2.8512694400560576}]} {"index": 745, "beams": [{"orig_question": "Qual é o número de nações que usam o inglês e o holandês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM countrylanguage", "score": -0.8873196984641254}]} {"index": 746, "beams": [{"orig_question": "Quais são os nomes das nações que falam inglês e francês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal' INTERSECT SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.10630861751269549}]} {"index": 747, "beams": [{"orig_question": "Dê os nomes de nações que falam inglês e francês.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal' INTERSECT SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.11103518286836334}]} {"index": 748, "beams": [{"orig_question": "Quais são os nomes das nações onde o inglês e o francês são línguas oficiais?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal' INTERSECT SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.18555663509323495}]} {"index": 749, "beams": [{"orig_question": "Dê nomes de países com inglês e francês como línguas oficiais.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal' INTERSECT SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.04434012607089244}]} {"index": 750, "beams": [{"orig_question": "Qual é o número de continentes distintos onde o chinês é falado?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(DISTINCT countrylanguage.CountryCode) FROM countrylanguage", "score": -0.16875824239104986}]} {"index": 751, "beams": [{"orig_question": "Quantos continentes falam chinês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country", "score": -0.18104452703846619}]} {"index": 752, "beams": [{"orig_question": "Quais são as regiões que usam inglês ou holandês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Region FROM country WHERE country.Continent = 'terminal' OR country.Continent = 'terminal'", "score": -1.0791445081813436}]} {"index": 753, "beams": [{"orig_question": "Quais regiões falam holandês ou inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Region FROM country WHERE country.Continent = 'terminal' OR country.Continent = 'terminal'", "score": -0.7076612900127657}]} {"index": 754, "beams": [{"orig_question": "Quais são os países onde o inglês ou o holandês é o idioma oficial?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal' OR countrylanguage.Language = 'terminal'", "score": -0.4843672814895399}]} {"index": 755, "beams": [{"orig_question": "Quais países têm o inglês ou o holandês como idioma oficial?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal' OR countrylanguage.Language = 'terminal'", "score": -1.188511765212752}]} {"index": 756, "beams": [{"orig_question": "Qual idioma é o mais popular no continente asiático?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT country.Name FROM country JOIN city WHERE country.Population = 'terminal' GROUP BY country.Name ORDER BY Count(*) Desc LIMIT 1", "score": -1.3197177981492132}]} {"index": 757, "beams": [{"orig_question": "Qual é o idioma usado pelo maior número de nações asiáticas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage GROUP BY country.Name ORDER BY Count(*) Desc LIMIT 1", "score": -1.332992827432463}]} {"index": 758, "beams": [{"orig_question": "Quais línguas são faladas por apenas um país nos governos da república?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}], "having": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countrylanguage.Language FROM countrylanguage JOIN country GROUP BY countrylanguage.Language HAVING Count(*) = 'terminal'", "score": -0.8307897366321413}]} {"index": 759, "beams": [{"orig_question": "Quais línguas são usadas apenas por um único país com um governo republicano?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT countrylanguage.Language FROM countrylanguage", "score": -1.4081842005252838}]} {"index": 760, "beams": [{"orig_question": "Encontre a cidade com a maior população que usa o inglês.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM city WHERE city.Population = (SELECT Max(city.Population) FROM city WHERE city.CountryCode = 'terminal') AND city.CountryCode = 'terminal'", "score": -1.8149273210292165}]} {"index": 761, "beams": [{"orig_question": "Qual é a cidade mais populosa que fala inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM city WHERE city.Population = (SELECT Max(city.Population) FROM city)", "score": -0.09703358956448227}]} {"index": 762, "beams": [{"orig_question": "Encontre o nome, a população e a expectativa de vida do país asiático com a maior área?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, country.Population, country.IndepYear FROM country WHERE country.SurfaceArea = (SELECT Max(country.SurfaceArea) FROM country)", "score": -2.44566704367719}]} {"index": 763, "beams": [{"orig_question": "Qual é o nome, população e expectativa de vida do maior país asiático por terra?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, country.Population, country.IndepYear FROM country WHERE country.GovernmentForm = 'terminal' ORDER BY country.GNPOld Desc LIMIT 1", "score": -1.7816999517090153}]} {"index": 764, "beams": [{"orig_question": "Qual é a expectativa de vida média nos países onde o inglês não é a língua oficial?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.GNPOld) FROM country WHERE country.Capital NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal')", "score": -1.5022263316241151}]} {"index": 765, "beams": [{"orig_question": "Forneça a expectativa de vida média de países nos quais o inglês não é a língua oficial.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.GNPOld) FROM country WHERE country.Capital NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal')", "score": -1.718540653513628}]} {"index": 766, "beams": [{"orig_question": "Qual é o número total de pessoas que vivem em nações que não usam o inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Sum(country.Population) FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal')", "score": -1.2831157394684851}]} {"index": 767, "beams": [{"orig_question": "Quantas pessoas vivem em países que não falam inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country WHERE country.Code NOT IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal')", "score": -0.20678145120654534}]} {"index": 768, "beams": [{"orig_question": "Qual é a língua oficial falada no país cujo chefe de estado é Beatrix?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT countrylanguage.Language FROM countrylanguage JOIN country WHERE country.HeadOfState = 'terminal'", "score": -1.2214941792190075}]} {"index": 769, "beams": [{"orig_question": "Qual é a língua oficial do país cujo chefe de estado é Beatrix.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT countrylanguage.Language FROM country JOIN countrylanguage WHERE country.HeadOfState = 'terminal'", "score": -7.372356745414436}]} {"index": 770, "beams": [{"orig_question": "Qual é o número total de línguas oficiais exclusivas faladas nos países fundados antes de 1930?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country WHERE country.IndepYear < 'terminal'", "score": -1.5101088203955442}]} {"index": 771, "beams": [{"orig_question": "Para os países fundados antes de 1930, qual é o número total de línguas oficiais distintas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(DISTINCT countrylanguage.Language) FROM country JOIN countrylanguage WHERE country.IndepYear < 'terminal'", "score": -7.255382195578022}]} {"index": 772, "beams": [{"orig_question": "Quais são os países com maior superfície do que qualquer país da Europa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.Region > (SELECT country.Region FROM country)", "score": -1.5279547814279795}]} {"index": 773, "beams": [{"orig_question": "Quais países têm maior área do que qualquer país da Europa?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.SurfaceArea FROM country WHERE country.SurfaceArea > (SELECT Max(country.SurfaceArea) FROM country)", "score": -1.49852556025143}]} {"index": 774, "beams": [{"orig_question": "Quais são os países africanos que têm menos população do que qualquer país da Ásia?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.Population < (SELECT Min(country.Population) FROM country WHERE country.GovernmentForm = 'terminal')", "score": -0.4495009712409157}]} {"index": 775, "beams": [{"orig_question": "Quais países africanos têm uma população menor do que qualquer país da Ásia?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT country.Name FROM country JOIN city WHERE country.Population < (SELECT Min(country.Population) FROM country JOIN city WHERE city.Name = 'terminal')", "score": -2.03310423810035}]} {"index": 776, "beams": [{"orig_question": "Quais países asiáticos têm uma população maior do que qualquer país da África?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM countrylanguage JOIN country WHERE country.Population > (SELECT Avg(country.Population) FROM countrylanguage JOIN country WHERE city.Name = 'terminal')", "score": -1.564745415467769}]} {"index": 777, "beams": [{"orig_question": "Quais são os países asiáticos que têm uma população maior que a de qualquer país da África?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.Population > (SELECT Avg(country.Population) FROM country WHERE country.GovernmentForm = 'terminal')", "score": -1.030567066569347}]} {"index": 778, "beams": [{"orig_question": "Quais são os códigos de país para países que não falam inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Code FROM country EXCEPT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.22497740161611546}]} {"index": 779, "beams": [{"orig_question": "Retorne os códigos de país para países que não falam inglês.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Code FROM country EXCEPT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.44748918464802045}]} {"index": 780, "beams": [{"orig_question": "Quais são os códigos dos países onde as pessoas usam outros idiomas além do inglês?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "union": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Code FROM country WHERE countrylanguage.Language > 'terminal' UNION SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -2.093449966529988}]} {"index": 781, "beams": [{"orig_question": "Forneça os códigos dos países nos quais as pessoas falam línguas que não o inglês.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Code FROM country JOIN countrylanguage WHERE countrylanguage.Language != 'terminal'", "score": -0.6269694499351317}]} {"index": 782, "beams": [{"orig_question": "Quais são os códigos dos países que não falam inglês e cujas formas de governo não são República?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Code FROM country WHERE country.Code2 = 'terminal' EXCEPT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -1.5108514289895538}]} {"index": 783, "beams": [{"orig_question": "Retorne os códigos de países que não falam inglês e não têm repúblicas para governos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Code FROM country WHERE country.LocalName = 'terminal' EXCEPT SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -0.6714111305045662}]} {"index": 784, "beams": [{"orig_question": "Quais cidades estão em países europeus onde o inglês não é o idioma oficial?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM city WHERE city.CountryCode IN (SELECT countrylanguage.CountryCode FROM countrylanguage WHERE countrylanguage.Language = 'terminal')", "score": -0.9947832361795008}]} {"index": 785, "beams": [{"orig_question": "Quais são os nomes das cidades na Europa em que o inglês não é a língua oficial?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 3}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM city WHERE countrylanguage.Language = 'terminal' EXCEPT SELECT country.LocalName FROM city JOIN countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -2.5001372990664095}]} {"index": 786, "beams": [{"orig_question": "Quais cidades exclusivas estão em países asiáticos onde o chinês é o idioma oficial?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM country JOIN city WHERE country.GovernmentForm = 'terminal' AND country.GovernmentForm = 'terminal'", "score": -2.017887180496473}]} {"index": 787, "beams": [{"orig_question": "Retorne os diferentes nomes de cidades que estão na Ásia e para as quais o chinês é o idioma oficial.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT DISTINCT city.Name FROM city JOIN country WHERE country.LocalName = 'terminal'", "score": -0.23666065485394938}]} {"index": 788, "beams": [{"orig_question": "Qual é o nome, ano de independência e área de superfície do país com a menor população?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, country.IndepYear, country.SurfaceArea FROM country ORDER BY country.Population Asc LIMIT 1", "score": -0.8974752350477502}]} {"index": 789, "beams": [{"orig_question": "Forneça o nome, o ano da independência e a área do país com a população mais baixa.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, country.IndepYear, country.SurfaceArea FROM country ORDER BY country.Population Asc LIMIT 1", "score": -0.9986089911908493}]} {"index": 790, "beams": [{"orig_question": "Qual é a população, nome e líder do país com a maior área?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Population, country.Name, country.SurfaceArea FROM country ORDER BY country.Region Desc LIMIT 1", "score": -1.2334706673714209}]} {"index": 791, "beams": [{"orig_question": "Forneça o nome, a população e o chefe de estado do país que possui a maior área.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, country.Population, country.SurfaceArea FROM country ORDER BY country.SurfaceArea Desc LIMIT 1", "score": -0.4578747246250572}]} {"index": 792, "beams": [{"orig_question": "Retorne o nome do país e o número de idiomas falados para cada país que fala pelo menos 3 idiomas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name, Count(*) FROM country JOIN countrylanguage GROUP BY countrylanguage.CountryCode HAVING Count(*) >= 'terminal'", "score": -1.2080109292528505}]} {"index": 793, "beams": [{"orig_question": "Quais são os nomes dos países que falam mais de 2 idiomas, bem como quantos idiomas falam?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name, Count(*) FROM country JOIN countrylanguage GROUP BY countrylanguage.CountryCode HAVING Count(*) > 'terminal'", "score": -0.7485087426903192}]} {"index": 794, "beams": [{"orig_question": "Encontre o número de cidades em cada distrito cuja população é maior do que a população média das cidades?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*), city.District FROM city WHERE city.Population > (SELECT Avg(city.Population) FROM city)", "score": -0.07657502003394256}]} {"index": 795, "beams": [{"orig_question": "Quantas cidades em cada distrito têm uma população acima da média da população em todas as cidades?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*), city.District FROM city WHERE city.Population > (SELECT Avg(city.Population) FROM city)", "score": -0.17868216690794725}]} {"index": 796, "beams": [{"orig_question": "Encontre o nome do formulário de governo e a população total para cada formulário de governo cuja expectativa média de vida seja superior a 72.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name, country.Population FROM country WHERE country.GNPOld > 'terminal' GROUP BY country.GovernmentForm", "score": -1.671858103478371}]} {"index": 797, "beams": [{"orig_question": "Quais são as diferentes formas de governo e qual é a população total de cada para formas de governo que têm uma expectativa de vida média superior a 72?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Avg(country.Population), country.IndepYear FROM city JOIN country WHERE country.Population > 'terminal' GROUP BY city.Name", "score": -2.5129871256649494}]} {"index": 798, "beams": [{"orig_question": "Encontre a esperança média de vida e a população total para cada continente onde a esperança média de vida é inferior a 72?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Avg(country.LifeExpectancy), country.Population FROM country JOIN countrylanguage WHERE country.Population < 'terminal' GROUP BY countrylanguage.CountryCode", "score": -2.9061100594699383}]} {"index": 799, "beams": [{"orig_question": "Quais são os diferentes continentes e a população total e a esperança média de vida correspondente a cada um, para continentes que têm uma esperança média de vida inferior a 72?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 17, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.GovernmentForm, country.Population, country.Population FROM country WHERE country.GNPOld < 'terminal'", "score": -2.1297762534959475}]} {"index": 800, "beams": [{"orig_question": "Quais são os nomes e áreas dos países com as 5 maiores áreas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.LocalName, country.SurfaceArea FROM country ORDER BY country.SurfaceArea Desc LIMIT 1", "score": -0.7017096616209528}]} {"index": 801, "beams": [{"orig_question": "Retorne os nomes e áreas de superfície dos 5 maiores países.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.LocalName, country.SurfaceArea FROM country ORDER BY country.SurfaceArea Desc LIMIT 1", "score": -1.5131018087186021}]} {"index": 802, "beams": [{"orig_question": "Quais são os nomes dos países com as 3 maiores populações?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Desc LIMIT 1", "score": -0.11919170084362918}]} {"index": 803, "beams": [{"orig_question": "Retorne os nomes dos 3 países mais populosos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Desc LIMIT 1", "score": -0.10734135789971333}]} {"index": 804, "beams": [{"orig_question": "Quais são os nomes das nações com as 3 populações mais baixas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Asc LIMIT 1", "score": -0.11637460337988159}]} {"index": 805, "beams": [{"orig_question": "Retorne os nomes dos 3 países com menos pessoas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country ORDER BY country.Population Asc LIMIT 1", "score": -0.09737736872921232}]} {"index": 806, "beams": [{"orig_question": "quantos países existem na ásia?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country", "score": -0.043424558451079065}]} {"index": 807, "beams": [{"orig_question": "Conte o número de países da Ásia.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country", "score": -0.41730665779687115}]} {"index": 808, "beams": [{"orig_question": "Quais são os nomes dos países que estão no continente europeu e têm uma população de 80.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.GovernmentForm = 'terminal' AND country.Population >= 'terminal'", "score": -1.862531907565426}]} {"index": 809, "beams": [{"orig_question": "Dê os nomes dos países que estão na Europa e têm uma população igual a 80.000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Name FROM country WHERE country.Population >= 'terminal'", "score": -0.800923545668411}]} {"index": 810, "beams": [{"orig_question": "Qual é a população total e a área média dos países do continente da América do Norte cuja área é maior que 3.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Population, country.SurfaceArea FROM country WHERE country.SurfaceArea > 'terminal' AND country.SurfaceArea > 'terminal'", "score": -1.9677516669034958}]} {"index": 811, "beams": [{"orig_question": "Dê a população total e a área de superfície média correspondentes aos países da América do Norte que têm uma área de superfície superior a 3.000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Population, country.Region FROM country WHERE country.Continent > 'terminal'", "score": -2.241521208663471}]} {"index": 812, "beams": [{"orig_question": "Quais são as cidades cuja população está entre 160000 e 900000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM city WHERE city.Population BETWEEN 'terminal' AND 'terminal'", "score": -0.24464675717172213}]} {"index": 813, "beams": [{"orig_question": "Retorne os nomes das cidades com uma população entre 160000 e 900000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Between", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}, "val2": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT city.Name FROM city WHERE city.Population BETWEEN 'terminal' AND 'terminal'", "score": -0.01143790245987475}]} {"index": 814, "beams": [{"orig_question": "Qual idioma é falado pelo maior número de países?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage GROUP BY country.Name ORDER BY Count(*) Desc LIMIT 1", "score": -0.5918683145082468}]} {"index": 815, "beams": [{"orig_question": "Forneça o idioma falado na maioria dos países.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Name FROM country JOIN countrylanguage GROUP BY country.GovernmentForm ORDER BY Count(*) Desc LIMIT 1", "score": -0.4718664818783509}]} {"index": 816, "beams": [{"orig_question": "Qual é o idioma falado pela maior porcentagem de pessoas em cada país?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT country.Name FROM country JOIN city GROUP BY city.Name ORDER BY Sum(country.Population) Desc LIMIT 1", "score": -1.4709038408473134}]} {"index": 817, "beams": [{"orig_question": "Quais são os códigos de país dos diferentes países e quais são os idiomas falados pela maior porcentagem de pessoas em cada um?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 5, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT country.Code, countrylanguage.Language FROM country JOIN city GROUP BY city.CountryCode ORDER BY Sum(city.Population) Desc LIMIT 1", "score": -3.003758430480957}]} {"index": 818, "beams": [{"orig_question": "Qual é o número total de países onde o espanhol é falado pela maior porcentagem de pessoas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Count(*) FROM country ORDER BY country.Population Desc LIMIT 1", "score": -0.5807085354463197}]} {"index": 819, "beams": [{"orig_question": "Conte o número de países nos quais o espanhol é a língua predominantemente falada.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Count(*) FROM countrylanguage", "score": -0.5577994156628847}]} {"index": 820, "beams": [{"orig_question": "Quais são os códigos dos países onde o espanhol é falado pela maior porcentagem de pessoas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT country.Code FROM country ORDER BY country.Population Desc LIMIT 1", "score": -0.581189515767619}]} {"index": 821, "beams": [{"orig_question": "Retorne os códigos dos países nos quais o espanhol é o idioma predominantemente falado.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 24, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT country.Code FROM country JOIN countrylanguage WHERE countrylanguage.Language = 'terminal'", "score": -1.5205744712729938}]} {"index": 822, "beams": [{"orig_question": "Quantos condutores existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM conductor", "score": -0.0025537757319398224}]} {"index": 823, "beams": [{"orig_question": "Conte o número de condutores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM conductor", "score": -0.003990461176726967}]} {"index": 824, "beams": [{"orig_question": "Liste os nomes dos regentes em ordem crescente de idade.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Age Asc", "score": -0.0049099070456577465}]} {"index": 825, "beams": [{"orig_question": "Quais são os nomes dos regentes, ordenados por idade?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Age Asc", "score": -0.014111708652308153}]} {"index": 826, "beams": [{"orig_question": "Quais são os nomes dos regentes cujas nacionalidades não são \"EUA\"?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor WHERE conductor.Nationality != 'terminal'", "score": -0.0026162481098879198}]} {"index": 827, "beams": [{"orig_question": "Retorne os nomes dos condutores que não possuam a nacionalidade \"USA\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor WHERE conductor.Nationality != 'terminal'", "score": -0.0022641389518867072}]} {"index": 828, "beams": [{"orig_question": "Quais são as gravadoras de orquestras em ordem decrescente de anos em que foram fundadas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Record_Company FROM orchestra ORDER BY orchestra.Year_of_Founded Desc", "score": -0.01005236276978394}]} {"index": 829, "beams": [{"orig_question": "Devolva as gravadoras de orquestras, classificadas de acordo com os anos em que foram fundadas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Record_Company FROM orchestra ORDER BY orchestra.Year_of_Founded Asc", "score": -0.15771475713700056}]} {"index": 830, "beams": [{"orig_question": "Qual é a média de atendimento aos shows?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Avg(show.Attendance) FROM show", "score": -0.02983230192330666}]} {"index": 831, "beams": [{"orig_question": "Retorne a participação média em todos os shows.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 23, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Avg(show.Attendance) FROM show", "score": -0.004466497164685279}]} {"index": 832, "beams": [{"orig_question": "Quais são as cotas máxima e mínima de apresentações cujo tipo não seja \"Final ao vivo\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(performance.Share), Min(performance.Share) FROM performance WHERE performance.Type != 'terminal'", "score": -0.022439650107116904}]} {"index": 833, "beams": [{"orig_question": "Devolva as cotas máximas e mínimas para atuações que não possuam o tipo \"Final ao vivo\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 18, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Max(performance.Share), Min(performance.Share) FROM performance WHERE performance.Type != 'terminal'", "score": -0.029220025360586988}]} {"index": 834, "beams": [{"orig_question": "Quantas nacionalidades diferentes os regentes têm?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT conductor.Nationality) FROM conductor", "score": -0.004733250854769722}]} {"index": 835, "beams": [{"orig_question": "Conte o número de diferentes nacionalidades de regentes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": true}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(DISTINCT conductor.Nationality) FROM conductor", "score": -0.008498978393618017}]} {"index": 836, "beams": [{"orig_question": "Liste os nomes dos regentes em ordem decrescente de anos de trabalho.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc", "score": -0.04058475757483393}]} {"index": 837, "beams": [{"orig_question": "Quais são os nomes dos maestros, classificados em ordem decrescente pelo número de anos em que trabalharam?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc", "score": -0.051212651655077934}]} {"index": 838, "beams": [{"orig_question": "Liste o nome do maestro com mais anos de trabalho.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc LIMIT 1", "score": -0.0307807042991044}]} {"index": 839, "beams": [{"orig_question": "Qual é o nome do maestro que trabalhou o maior número de anos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor ORDER BY conductor.Year_of_Work Desc LIMIT 1", "score": -0.46943462500348687}]} {"index": 840, "beams": [{"orig_question": "Mostre os nomes dos maestros e das orquestras que dirigiram.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT conductor.Name, orchestra.Orchestra FROM orchestra JOIN conductor JOIN performance", "score": -1.4101723954081535}]} {"index": 841, "beams": [{"orig_question": "Quais são os nomes dos regentes, bem como das orquestras correspondentes que eles dirigiram?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT conductor.Name, orchestra.Orchestra FROM orchestra JOIN conductor JOIN performance", "score": -1.3771700542420149}]} {"index": 842, "beams": [{"orig_question": "Mostre os nomes dos maestros que dirigiram mais de uma orquestra.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM orchestra JOIN conductor GROUP BY orchestra.Conductor_ID HAVING Count(*) > 'terminal'", "score": -0.232077850884707}]} {"index": 843, "beams": [{"orig_question": "Quais são os nomes dos maestros que regeram em mais de uma orquestra?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra GROUP BY orchestra.Conductor_ID HAVING Count(*) > 'terminal'", "score": -0.7304271183111268}]} {"index": 844, "beams": [{"orig_question": "Mostre o nome do maestro que regeu o maior número de orquestras.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra GROUP BY orchestra.Conductor_ID ORDER BY Count(*) Desc LIMIT 1", "score": -0.28740404278403275}]} {"index": 845, "beams": [{"orig_question": "Qual é o nome do maestro que dirigiu mais orquestras?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT conductor.Name FROM conductor JOIN orchestra GROUP BY conductor.Name ORDER BY Count(*) Desc LIMIT 1", "score": -1.28020738095438}]} {"index": 846, "beams": [{"orig_question": "Indique o nome do maestro que regeu orquestras fundadas depois de 2008.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM orchestra JOIN conductor WHERE orchestra.Year_of_Founded > 'terminal'", "score": -0.36444171652692603}]} {"index": 847, "beams": [{"orig_question": "Quais são os nomes dos maestros que regeram orquestras fundadas após o ano de 2008?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT conductor.Name FROM orchestra JOIN conductor JOIN performance WHERE orchestra.Year_of_Founded = 'terminal' OR orchestra.Year_of_Founded > 'terminal'", "score": -1.6935713484126609}]} {"index": 848, "beams": [{"orig_question": "Por favor, mostre as diferentes gravadoras e o número correspondente de orquestras.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Record_Company, Count(*) FROM orchestra GROUP BY orchestra.Record_Company", "score": -0.005030668355175294}]} {"index": 849, "beams": [{"orig_question": "Quantas orquestras cada gravadora administra?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Orchestra, Count(*) FROM orchestra GROUP BY orchestra.Orchestra", "score": -0.28753453596436884}]} {"index": 850, "beams": [{"orig_question": "Por favor, mostre os formatos de registro das orquestras em ordem crescente de contagem.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Orchestra FROM orchestra ORDER BY orchestra.Orchestra Asc", "score": -0.18466885411180556}]} {"index": 851, "beams": [{"orig_question": "Quais são os principais formatos de registro de orquestras, classificados por sua frequência?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT performance.Type FROM performance JOIN orchestra GROUP BY performance.Type ORDER BY Count(*) Desc", "score": -0.5963546391576529}]} {"index": 852, "beams": [{"orig_question": "Liste a gravadora compartilhada pelo maior número de orquestras.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Orchestra FROM orchestra GROUP BY orchestra.Orchestra ORDER BY Count(*) Desc LIMIT 1", "score": -1.3471844988380326}]} {"index": 853, "beams": [{"orig_question": "Qual é a gravadora utilizada pelo maior número de orquestras?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT conductor.Nationality FROM conductor JOIN orchestra GROUP BY conductor.Nationality ORDER BY Count(*) Desc LIMIT 1", "score": -0.9265216416024487}]} {"index": 854, "beams": [{"orig_question": "Liste os nomes das orquestras que não têm apresentação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Name FROM conductor WHERE conductor.Conductor_ID NOT IN (SELECT performance.Orchestra_ID FROM performance)", "score": -0.8013641303404029}]} {"index": 855, "beams": [{"orig_question": "Quais são as orquestras que não realizam apresentações?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Orchestra FROM orchestra WHERE orchestra.Orchestra_ID NOT IN (SELECT performance.Orchestra_ID FROM performance)", "score": -0.16815221903379296}]} {"index": 856, "beams": [{"orig_question": "Mostre as gravadoras compartilhadas por orquestras fundadas antes de 2003 e depois de 2003.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT orchestra.Record_Company FROM orchestra JOIN conductor WHERE orchestra.Year_of_Founded < 'terminal' INTERSECT SELECT orchestra.Record_Company FROM orchestra WHERE orchestra.Year_of_Founded > 'terminal'", "score": -1.6630561240017414}]} {"index": 857, "beams": [{"orig_question": "Quais são as gravadoras usadas pelas orquestras fundadas antes de 2003 e pelas fundadas depois de 2003?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT conductor.Nationality FROM orchestra JOIN conductor WHERE orchestra.Year_of_Founded < 'terminal' INTERSECT SELECT conductor.Nationality FROM orchestra WHERE orchestra.Year_of_Founded > 'terminal'", "score": -2.9804128259411016}]} {"index": 858, "beams": [{"orig_question": "Encontre o número de orquestras cujo formato de gravação é \"CD\" ou \"DVD\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM performance JOIN orchestra WHERE performance.Type = 'terminal' OR performance.Type = 'terminal'", "score": -0.3230873114662245}]} {"index": 859, "beams": [{"orig_question": "Conte o número de orquestras que têm CD ou DVD como formato de registro.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 14, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM performance JOIN orchestra WHERE performance.Type = 'terminal' OR performance.Type = 'terminal'", "score": -0.2495040757348761}]} {"index": 860, "beams": [{"orig_question": "Mostre os anos em que foram fundadas orquestras que deram mais de uma apresentação.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Year_of_Founded FROM orchestra GROUP BY orchestra.Year_of_Founded HAVING Count(*) > 'terminal'", "score": -0.34828669601120055}]} {"index": 861, "beams": [{"orig_question": "O que são anos de fundação para orquestras que tiveram mais de uma apresentação?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT orchestra.Year_of_Founded FROM conductor JOIN orchestra GROUP BY orchestra.Year_of_Founded HAVING Count(*) > 'terminal'", "score": -0.766654315055348}]} {"index": 862, "beams": [{"orig_question": "Quantos alunos do ensino médio existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Highschooler WHERE Highschooler.grade = 'terminal'", "score": -0.4701600515982136}]} {"index": 863, "beams": [{"orig_question": "Conte o número de alunos do ensino médio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Highschooler WHERE Highschooler.grade = 'terminal'", "score": -0.21597104851389304}]} {"index": 864, "beams": [{"orig_question": "Mostre os nomes e as notas de cada aluno do ensino médio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name, Highschooler.grade FROM Highschooler WHERE Highschooler.ID = 'terminal'", "score": -0.8242102812740768}]} {"index": 865, "beams": [{"orig_question": "Quais são os nomes e as notas de cada aluno do ensino médio?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name, Highschooler.grade FROM Highschooler WHERE Highschooler.grade = 'terminal'", "score": -0.5957649329668584}]} {"index": 866, "beams": [{"orig_question": "Mostre todas as notas dos alunos do ensino médio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.name = 'terminal'", "score": -1.3868269487284124}]} {"index": 867, "beams": [{"orig_question": "Qual é a nota de cada aluno do ensino médio?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(Highschooler.grade) FROM Highschooler WHERE Highschooler.name = 'terminal'", "score": -1.137990552932024}]} {"index": 868, "beams": [{"orig_question": "Em que série Kyle está?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.name = 'terminal'", "score": -0.3421057164067065}]} {"index": 869, "beams": [{"orig_question": "Devolva a nota para o aluno do ensino médio chamado Kyle.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.name = 'terminal'", "score": -0.025195232850812488}]} {"index": 870, "beams": [{"orig_question": "Mostre os nomes de todos os alunos do ensino médio da 10ª série.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade = 'terminal'", "score": -0.0526171420551691}]} {"index": 871, "beams": [{"orig_question": "Quais são os nomes de todos os alunos do ensino médio na 10ª série?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade = 'terminal'", "score": -0.016936030797296553}]} {"index": 872, "beams": [{"orig_question": "Mostre a identidade de um estudante do ensino médio chamado Kyle.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Friend.student_id FROM Friend JOIN Highschooler WHERE Highschooler.name = 'terminal'", "score": -2.4189638870884664}]} {"index": 873, "beams": [{"orig_question": "Qual é a id do Kyle?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.ID FROM Highschooler WHERE Highschooler.name = 'terminal'", "score": -0.0005389445450418862}]} {"index": 874, "beams": [{"orig_question": "Quantos alunos do ensino médio há na 9ª ou 10ª série?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Highschooler WHERE Highschooler.grade = 'terminal' OR Highschooler.grade = 'terminal'", "score": -0.20484654895108179}]} {"index": 875, "beams": [{"orig_question": "Conte o número de alunos do ensino médio na 9ª ou 10ª séries.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Highschooler WHERE Highschooler.grade = 'terminal' OR Highschooler.grade = 'terminal'", "score": -0.029095361994222912}]} {"index": 876, "beams": [{"orig_question": "Mostre o número de alunos do ensino médio para cada série.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*), Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade", "score": -0.10889607144054025}]} {"index": 877, "beams": [{"orig_question": "Quantos alunos do ensino médio há em cada série?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": true}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(DISTINCT Highschooler.grade), Highschooler.grade FROM Friend JOIN Highschooler GROUP BY Highschooler.grade", "score": -1.3072284452791791}]} {"index": 878, "beams": [{"orig_question": "Qual série tem mais alunos do ensino médio?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE * < 'terminal' GROUP BY Highschooler.grade ORDER BY Count(*) Desc LIMIT 1", "score": -2.386840721592307}]} {"index": 879, "beams": [{"orig_question": "Retorna a série com o maior número de alunos do ensino médio.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade = (SELECT Highschooler.grade FROM Highschooler GROUP BY Highschooler.grade ORDER BY Count(*) Desc LIMIT 1)", "score": -0.8222215487621725}]} {"index": 880, "beams": [{"orig_question": "Mostre-me todas as notas com pelo menos 4 alunos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.grade FROM Friend JOIN Highschooler GROUP BY Highschooler.grade HAVING Count(*) >= 'terminal'", "score": -0.500248268235282}]} {"index": 881, "beams": [{"orig_question": "Quais séries têm 4 ou mais alunos do ensino médio?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT * FROM Friend JOIN Highschooler WHERE Highschooler.grade LIKE 'terminal'", "score": -2.289142833906226}]} {"index": 882, "beams": [{"orig_question": "Mostre as IDs dos alunos e os números de amigos correspondentes a cada um.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Friend.student_id, Count(*) FROM Friend GROUP BY Friend.student_id", "score": -0.1467655072915477}]} {"index": 883, "beams": [{"orig_question": "Quantos amigos cada aluno tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*), Friend.friend_id FROM Friend GROUP BY Friend.friend_id", "score": -1.7337344291154295}]} {"index": 884, "beams": [{"orig_question": "Mostre os nomes dos alunos do ensino médio e seu número correspondente de amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name, Avg(*) FROM Friend JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Friend.student_id", "score": -0.9098887006257428}]} {"index": 885, "beams": [{"orig_question": "Quais são os nomes dos alunos do ensino médio e quantos amigos cada um tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name, Avg(*) FROM Friend JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Highschooler.name", "score": -0.7097448984220591}]} {"index": 886, "beams": [{"orig_question": "Qual é o nome do colegial que tem o maior número de amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler GROUP BY Highschooler.name ORDER BY Count(*) Desc LIMIT 1", "score": -0.899550952359391}]} {"index": 887, "beams": [{"orig_question": "Retorne o nome do aluno do ensino médio com mais amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Avg"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend WHERE Highschooler.grade = 'terminal' GROUP BY Friend.student_id ORDER BY Avg(*) Desc LIMIT 1", "score": -1.6432173672837962}]} {"index": 888, "beams": [{"orig_question": "Mostre os nomes de alunos do ensino médio que tenham pelo menos 3 amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Friend.student_id HAVING Count(*) >= 'terminal'", "score": -0.712766938338973}]} {"index": 889, "beams": [{"orig_question": "Quais são os nomes de alunos do ensino médio que têm 3 ou mais amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Friend.student_id HAVING Count(*) >= 'terminal'", "score": -0.4226552805339452}]} {"index": 890, "beams": [{"orig_question": "Mostre os nomes de todos os amigos do colegial Kyle.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend WHERE Highschooler.name = 'terminal'", "score": -2.106753991683945}]} {"index": 891, "beams": [{"orig_question": "Retorne os nomes dos amigos do estudante Kyle.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler WHERE Highschooler.name = 'terminal'", "score": -2.1576159892169926}]} {"index": 892, "beams": [{"orig_question": "Quantos amigos o estudante do ensino médio Kyle tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "And", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Friend JOIN Highschooler WHERE Highschooler.name = 'terminal' AND Highschooler.grade = 'terminal'", "score": -0.9460864242573734}]} {"index": 893, "beams": [{"orig_question": "Conte quantos amigos Kyle tem.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Friend JOIN Highschooler WHERE Highschooler.name = 'terminal'", "score": -0.35433563031119775}]} {"index": 894, "beams": [{"orig_question": "Mostre ids de todos os alunos que não têm amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.ID FROM Highschooler EXCEPT SELECT Friend.student_id FROM Friend", "score": -0.4105947307543829}]} {"index": 895, "beams": [{"orig_question": "Quais são os ids dos alunos do ensino médio que não têm amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.ID FROM Highschooler WHERE Highschooler.grade = 'terminal' EXCEPT SELECT Friend.student_id FROM Friend WHERE Highschooler.grade = 'terminal'", "score": -1.0428940472193062}]} {"index": 896, "beams": [{"orig_question": "Mostre os nomes de todos os alunos do ensino médio que não têm amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend WHERE Highschooler.grade = 'terminal')", "score": -1.3067523001591255}]} {"index": 897, "beams": [{"orig_question": "Quais são os nomes dos alunos que não têm amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend)", "score": -0.29810065390461205}]} {"index": 898, "beams": [{"orig_question": "Mostre as identidades de alunos do ensino médio que têm amigos e também são queridos por outras pessoas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Friend.student_id FROM Friend WHERE Friend.friend_id IN (SELECT Friend.student_id FROM Friend WHERE Highschooler.grade = 'terminal' INTERSECT SELECT Friend.student_id FROM Friend WHERE Highschooler.grade = 'terminal')", "score": -4.783777765929699}]} {"index": 899, "beams": [{"orig_question": "Quais são os ids dos alunos que têm amigos e são apreciados?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.ID FROM Highschooler WHERE Highschooler.name = 'terminal' INTERSECT SELECT Friend.student_id FROM Highschooler JOIN Friend WHERE Highschooler.name = 'terminal'", "score": -1.1183396727428772}]} {"index": 900, "beams": [{"orig_question": "Mostre o nome de todos os alunos que têm amigos e também são queridos por outra pessoa.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend WHERE Friend.friend_id = 'terminal' INTERSECT SELECT Highschooler.name FROM Highschooler JOIN Friend WHERE Friend.friend_id = 'terminal'", "score": -1.98196792108115}]} {"index": 901, "beams": [{"orig_question": "Quais são os nomes de alunos do ensino médio que têm amigos e são queridos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Highschooler.name FROM Highschooler JOIN Friend WHERE Highschooler.grade > 'terminal' INTERSECT SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade = 'terminal'", "score": -2.400869654637063}]} {"index": 902, "beams": [{"orig_question": "Conte o número de curtidas para cada id de aluno.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Likes.liked_id, Count(*) FROM Likes GROUP BY Likes.liked_id", "score": -1.0282959297764975}]} {"index": 903, "beams": [{"orig_question": "Quantas curtidas correspondem a cada id de aluno?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Likes.student_id, Count(*) FROM Likes GROUP BY Likes.liked_id", "score": -0.9592193313292228}]} {"index": 904, "beams": [{"orig_question": "Mostre os nomes dos alunos do ensino médio que curtiram e o número de curtidas de cada um.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name, Avg(*) FROM Likes JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Highschooler.name", "score": -0.8885908095307968}]} {"index": 905, "beams": [{"orig_question": "Quais são os nomes dos alunos do ensino médio que têm curtidas e quantas curtidas cada um tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name, Avg(*) FROM Likes JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Highschooler.name", "score": -1.043176608021895}]} {"index": 906, "beams": [{"orig_question": "Qual é o nome do aluno do ensino médio que tem o maior número de curtidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Avg"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Likes JOIN Highschooler WHERE Highschooler.grade = 'terminal' GROUP BY Highschooler.name ORDER BY Avg(*) Desc LIMIT 1", "score": -0.6276375435372756}]} {"index": 907, "beams": [{"orig_question": "Dê o nome do aluno que gostou mais.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler GROUP BY Highschooler.name ORDER BY Count(*) Desc LIMIT 1", "score": -1.0109494476417922}]} {"index": 908, "beams": [{"orig_question": "Mostre os nomes dos alunos que têm pelo menos 2 curtidas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Likes JOIN Highschooler GROUP BY Likes.student_id HAVING Count(*) >= 'terminal'", "score": -0.8034084163036823}]} {"index": 909, "beams": [{"orig_question": "Quais são os nomes dos alunos que têm 2 ou mais curtidas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 6, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Likes JOIN Highschooler GROUP BY Likes.student_id HAVING Count(*) >= 'terminal'", "score": -0.3327507541835075}]} {"index": 910, "beams": [{"orig_question": "Mostre os nomes dos alunos que têm nota superior a 5 e têm pelo menos 2 amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler WHERE Highschooler.grade > 'terminal' INTERSECT SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade > 'terminal'", "score": -1.5770404392860655}]} {"index": 911, "beams": [{"orig_question": "Quais são os nomes dos alunos do ensino médio que têm nota acima de 5 e têm 2 ou mais amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.name FROM Friend JOIN Highschooler WHERE Highschooler.grade > 'terminal' INTERSECT SELECT Highschooler.name FROM Highschooler WHERE Highschooler.grade > 'terminal'", "score": -1.3879324641893618}]} {"index": 912, "beams": [{"orig_question": "Quantas curtidas o Kyle tem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Likes JOIN Highschooler WHERE Highschooler.name = 'terminal'", "score": -0.036312296854248416}]} {"index": 913, "beams": [{"orig_question": "Retorne o número de curtidas que o aluno do ensino médio chamado Kyle tem.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 2}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(*) FROM Likes JOIN Highschooler WHERE Highschooler.name = 'terminal'", "score": -0.7373518851163681}]} {"index": 914, "beams": [{"orig_question": "Encontre a nota média de todos os alunos que têm alguns amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(Highschooler.grade) FROM Friend JOIN Highschooler WHERE Friend.friend_id = 'terminal'", "score": -1.407520725748327}]} {"index": 915, "beams": [{"orig_question": "Qual é a nota média de alunos que têm amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Avg(Highschooler.grade) FROM Friend JOIN Highschooler WHERE Friend.student_id = 'terminal'", "score": -1.4365067946901036}]} {"index": 916, "beams": [{"orig_question": "Encontre a nota mínima de alunos que não têm amigos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Min(Highschooler.grade) FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend)", "score": -1.0564458187436685}]} {"index": 917, "beams": [{"orig_question": "Qual é a nota mais baixa dos alunos que não têm amigos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Highschooler.grade FROM Highschooler WHERE Highschooler.ID NOT IN (SELECT Friend.student_id FROM Friend WHERE Friend.friend_id = 'terminal')", "score": -1.6369990531238727}]} {"index": 918, "beams": [{"orig_question": "Em quais estados moram proprietários e profissionais?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "union": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.state FROM Professionals UNION SELECT Professionals.state FROM Professionals", "score": -0.6026391562481876}]} {"index": 919, "beams": [{"orig_question": "Encontre os estados onde vivem proprietários e profissionais.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "union": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.state FROM Professionals UNION SELECT Professionals.state FROM Professionals", "score": -0.4044862347182061}]} {"index": 920, "beams": [{"orig_question": "Qual é a idade média dos cães que realizaram algum tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "score": -0.012396096462907735}]} {"index": 921, "beams": [{"orig_question": "Encontre a idade média dos cães que realizaram o tratamento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "score": -0.0030175430365488864}]} {"index": 922, "beams": [{"orig_question": "Quais profissionais residem no estado de Indiana ou já realizaram tratamento em mais de 2 tratamentos? Liste sua identidade, sobrenome e telefone celular.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 36, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.street, Professionals.last_name, Professionals.cell_number FROM Professionals JOIN Treatments WHERE Professionals.state = 'terminal' GROUP BY Professionals.street HAVING Count(*) > 'terminal'", "score": -2.700185000314029}]} {"index": 923, "beams": [{"orig_question": "Encontre a identidade, o sobrenome e o celular dos profissionais que residem no estado de Indiana ou realizaram mais de dois tratamentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Professionals.last_name, Professionals.last_name, Professionals.cell_number FROM Professionals JOIN Owners WHERE Professionals.state = 'terminal' OR Professionals.cell_number > 'terminal' GROUP BY Owners.owner_id HAVING Count(*) > 'terminal'", "score": -6.4509547213092375}]} {"index": 924, "beams": [{"orig_question": "Quais cães não custaram ao dono mais do que 1000 para tratamento? Liste os nomes dos cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.name FROM Dogs WHERE Treatments.cost_of_treatment > 'terminal' EXCEPT SELECT Dogs.name FROM Dogs JOIN Treatments WHERE Treatments.cost_of_treatment > 'terminal'", "score": -2.960092418186832}]} {"index": 925, "beams": [{"orig_question": "Quais são os nomes dos cães para os quais o dono não gastou mais de 1000 em tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 7}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.name FROM Dogs WHERE Dogs.owner_id NOT IN (SELECT Owners.first_name FROM Dogs JOIN Treatments GROUP BY Dogs.owner_id HAVING Count(*) > 'terminal')", "score": -5.1271771769970655}]} {"index": 926, "beams": [{"orig_question": "Quais nomes próprios são usados para profissionais ou proprietários, mas não são usados como nomes de cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.first_name FROM Professionals WHERE Professionals.role_code = 'terminal' EXCEPT SELECT Professionals.first_name FROM Professionals WHERE Professionals.role_code = 'terminal'", "score": -0.48840528110076775}]} {"index": 927, "beams": [{"orig_question": "Encontre os primeiros nomes que são usados para profissionais ou proprietários, mas não são usados como nomes de cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.first_name FROM Professionals WHERE Professionals.role_code != 'terminal' EXCEPT SELECT Professionals.first_name FROM Professionals WHERE Professionals.role_code = 'terminal'", "score": -0.8193701419349964}]} {"index": 928, "beams": [{"orig_question": "Qual profissional não operou nenhum tratamento em cães? Liste a id, a função e o e-mail do profissional.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 5}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.professional_id, Professionals.email_address, Professionals.home_phone FROM Professionals EXCEPT SELECT Professionals.professional_id, Professionals.email_address, Professionals.home_phone FROM Professionals JOIN Dogs WHERE Professionals.zip_code = 'terminal'", "score": -3.4301140892202966}]} {"index": 929, "beams": [{"orig_question": "Indique-me o id, cargo e email dos profissionais que não realizaram nenhum tratamento em cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.professional_id, Professionals.email_address, Professionals.home_phone FROM Professionals JOIN Treatments EXCEPT SELECT Professionals.professional_id, Professionals.email_address, Professionals.home_phone FROM Professionals JOIN Treatments WHERE Dogs.name = 'terminal'", "score": -3.2857979013351724}]} {"index": 930, "beams": [{"orig_question": "Qual dono tem mais cachorros? Liste a id do proprietário, nome e sobrenome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 19, "is_distinct": false}, {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Professionals.professional_id, Professionals.first_name, Professionals.last_name FROM Professionals JOIN Owners GROUP BY Owners.cell_number, Professionals.last_name ORDER BY Count(*) Desc LIMIT 1", "score": -1.9493296267464686}]} {"index": 931, "beams": [{"orig_question": "Retorne a identificação do proprietário, nome e sobrenome do proprietário que tem mais cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments GROUP BY Professionals.professional_id ORDER BY Count(*) Desc LIMIT 1", "score": -1.2429425048467166}]} {"index": 932, "beams": [{"orig_question": "Quais profissionais fizeram pelo menos dois tratamentos? Liste a identidade, a função e o nome do profissional.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.role_code, Professionals.first_name, Professionals.first_name FROM Professionals JOIN Treatments GROUP BY Professionals.professional_id HAVING Count(*) >= 'terminal'", "score": -1.290059478837037}]} {"index": 933, "beams": [{"orig_question": "Qual é a identidade, função e nome dos profissionais que realizaram dois ou mais tratamentos?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.role_code, Professionals.first_name, Treatments.professional_id FROM Professionals JOIN Treatments GROUP BY Treatments.professional_id HAVING Count(*) >= 'terminal'", "score": -1.3530715164961222}]} {"index": 934, "beams": [{"orig_question": "Qual é o nome da raça com mais cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 16, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Owners.first_name FROM Owners GROUP BY Owners.zip_code ORDER BY Count(*) Desc LIMIT 1", "score": -0.7405552553536836}]} {"index": 935, "beams": [{"orig_question": "Qual raça a maioria dos cães tem? Dê-me o nome da raça.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Dogs.name FROM Dogs JOIN Professionals GROUP BY Professionals.role_code ORDER BY Count(*) Desc LIMIT 1", "score": -2.0903565217740834}]} {"index": 936, "beams": [{"orig_question": "Qual proprietário pagou mais tratamentos em seus cães? Liste a id do proprietário e o sobrenome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}, {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.professional_id, Professionals.last_name FROM Professionals JOIN Treatments GROUP BY Professionals.professional_id, Professionals.last_name ORDER BY Count(*) Desc LIMIT 1", "score": -0.2956663208315149}]} {"index": 937, "beams": [{"orig_question": "Diga-me a identidade do dono e o sobrenome do dono que mais gastou no tratamento de seus cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Owners.first_name, Owners.last_name FROM Dogs JOIN Owners JOIN Professionals GROUP BY Dogs.owner_id ORDER BY Count(*) Desc LIMIT 1", "score": -2.518765762739349}]} {"index": 938, "beams": [{"orig_question": "Qual é a descrição do tipo de tratamento que custa menos dinheiro no total?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 49, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments GROUP BY Treatments.treatment_type_code ORDER BY Sum(Treatments.cost_of_treatment) Asc LIMIT 1", "score": -0.12356120904360068}]} {"index": 939, "beams": [{"orig_question": "Dê-me a descrição do tipo de tratamento cujo custo total é o mais baixo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 49, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments GROUP BY Treatments.treatment_type_code ORDER BY Sum(Treatments.cost_of_treatment) Asc LIMIT 1", "score": -0.0498562017128279}]} {"index": 940, "beams": [{"orig_question": "Qual proprietário pagou a maior quantia de dinheiro no total por seus cães? Mostre o ID do proprietário e o código postal.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 22, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 32, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.abandoned_yn, Professionals.zip_code FROM Professionals JOIN Dogs GROUP BY Dogs.abandoned_yn ORDER BY Sum(Dogs.date_departed) Desc LIMIT 1", "score": -4.031348027288914}]} {"index": 941, "beams": [{"orig_question": "Encontre a identificação do proprietário e o código postal do proprietário que gastou mais dinheiro no total com seus cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 39, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Sum"}, "col_id": 49, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.email_address, Professionals.zip_code FROM Professionals JOIN Treatments GROUP BY Professionals.professional_id ORDER BY Sum(Treatments.cost_of_treatment) Desc LIMIT 1", "score": -0.7651363670593128}]} {"index": 942, "beams": [{"orig_question": "Quais profissionais realizaram pelo menos dois tipos de tratamento? Liste a identificação profissional e o telefone celular.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.professional_id, Professionals.home_phone FROM Professionals JOIN Treatments GROUP BY Treatments.professional_id HAVING Count(*) >= 'terminal'", "score": -2.0712210087676795}]} {"index": 943, "beams": [{"orig_question": "Encontre o id e o celular dos profissionais que operam dois ou mais tipos de tratamentos.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}], "having": {"_type": "Ge", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.professional_id, Count(*) FROM Treatments GROUP BY Treatments.professional_id HAVING Count(*) >= 'terminal'", "score": -0.7897510520892794}]} {"index": 944, "beams": [{"orig_question": "Quais são o nome e o sobrenome dos profissionais que fizeram tratamento com custo abaixo da média?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments WHERE Treatments.cost_of_treatment < (SELECT Avg(Treatments.cost_of_treatment) FROM Treatments)", "score": -0.008597632879173034}]} {"index": 945, "beams": [{"orig_question": "Quais profissionais operaram um tratamento que custa menos que a média? Dê-me seus primeiros nomes e sobrenomes.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments WHERE Treatments.cost_of_treatment < (SELECT Avg(Treatments.cost_of_treatment) FROM Treatments)", "score": -0.25539114442653954}]} {"index": 946, "beams": [{"orig_question": "Liste a data de cada tratamento, juntamente com o nome do profissional que o operou.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.date_departed, Professionals.last_name FROM Professionals JOIN Dogs", "score": -4.426533814519644}]} {"index": 947, "beams": [{"orig_question": "Quais são a data e o primeiro nome do operador de cada tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.email_address, Professionals.first_name FROM Professionals", "score": -1.363390929531306}]} {"index": 948, "beams": [{"orig_question": "Liste o custo de cada tratamento e a descrição do tipo de tratamento correspondente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.cost_of_treatment, Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments", "score": -0.04014523542718962}]} {"index": 949, "beams": [{"orig_question": "Quais são os custos e a descrição do tipo de tratamento de cada tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatment_Types.treatment_type_code, Treatment_Types.treatment_type_description FROM Treatment_Types JOIN Treatments", "score": -1.1567927141441032}]} {"index": 950, "beams": [{"orig_question": "Liste o nome e o sobrenome de cada dono e o tamanho do nome do cachorro.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name, Owners.last_name FROM Professionals JOIN Owners", "score": -5.914986006915562}]} {"index": 951, "beams": [{"orig_question": "Quais são o nome, o sobrenome de cada dono e o tamanho do cachorro?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name, Professionals.last_name FROM Professionals", "score": -0.41256921330929686}]} {"index": 952, "beams": [{"orig_question": "Liste pares do primeiro nome do proprietário e do nome dos cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Owners.first_name, Dogs.name FROM Owners JOIN Dogs", "score": -3.6062354147434235}]} {"index": 953, "beams": [{"orig_question": "Qual é o primeiro nome de cada proprietário e o nome de seus cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Professionals.first_name, Dogs.name FROM Professionals JOIN Dogs", "score": -1.3402894958853722}]} {"index": 954, "beams": [{"orig_question": "Liste os nomes dos cães da raça mais rara e as datas de tratamento deles.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Dogs JOIN Professionals ORDER BY Dogs.date_departed Desc LIMIT 1", "score": -9.391711384057999}]} {"index": 955, "beams": [{"orig_question": "Quais cães são da raça mais rara? Mostre seus nomes e datas de tratamento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 32, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.name, Dogs.date_departed FROM Dogs ORDER BY Dogs.date_departed Desc LIMIT 1", "score": -2.2141747085843235}]} {"index": 956, "beams": [{"orig_question": "Quais cães são propriedade de alguém que mora na Virgínia? Liste o primeiro nome do dono e o nome do cachorro.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Owners.first_name, Dogs.name FROM Owners JOIN Dogs JOIN Professionals WHERE Owners.state = 'terminal'", "score": -3.9063844438642263}]} {"index": 957, "beams": [{"orig_question": "Encontre os primeiros nomes dos proprietários que vivem na Virgínia e os nomes dos cães que possuem.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Owners.first_name, Owners.last_name FROM Owners WHERE Owners.state = 'terminal'", "score": -1.6479351818561554}]} {"index": 958, "beams": [{"orig_question": "Quais são as datas de chegada e saída dos cães que passaram por tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Dogs.date_of_birth, Treatments.cost_of_treatment FROM Dogs JOIN Treatments", "score": -1.7185422042384744}]} {"index": 959, "beams": [{"orig_question": "Encontre a data de chegada e a data de partida dos cães que receberam o tratamento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 31, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.date_of_birth, Dogs.date_adopted FROM Dogs", "score": -0.20952744684836944}]} {"index": 960, "beams": [{"orig_question": "Liste o sobrenome do dono do cão mais novo.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Professionals.last_name FROM Professionals JOIN Dogs WHERE Dogs.age = (SELECT Min(Dogs.age) FROM Dogs)", "score": -0.6353519273870916}]} {"index": 961, "beams": [{"orig_question": "Quem é o dono do cachorro mais novo? Dê-me seu sobrenome.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Min"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Professionals.last_name FROM Professionals JOIN Dogs WHERE Dogs.age = (SELECT Min(Dogs.age) FROM Dogs)", "score": -1.3587905997628624}]} {"index": 962, "beams": [{"orig_question": "Liste os e-mails dos profissionais que moram no estado do Havaí ou no estado de Wisconsin.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.email_address FROM Professionals WHERE Professionals.state = 'terminal' OR Professionals.state = 'terminal'", "score": -0.049510653712786734}]} {"index": 963, "beams": [{"orig_question": "Quais são os e-mails dos profissionais que moram no estado do Havaí ou no estado de Wisconsin?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.email_address FROM Professionals WHERE Professionals.state = 'terminal' OR Professionals.state = 'terminal'", "score": -0.09023709781467915}]} {"index": 964, "beams": [{"orig_question": "Quais são as datas de chegada e partida de todos os cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 30, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.date_of_birth, Dogs.date_arrived FROM Dogs", "score": -1.2145496010728039}]} {"index": 965, "beams": [{"orig_question": "Liste a data de chegada e a data de saída para todos os cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 27, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 31, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.date_of_birth, Dogs.date_adopted FROM Dogs", "score": -1.0642003416905936}]} {"index": 966, "beams": [{"orig_question": "Quantos cães passaram por algum tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Dogs", "score": -0.19656815938651562}]} {"index": 967, "beams": [{"orig_question": "Conte o número de cães que passaram por um tratamento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Dogs", "score": -0.5923289796337485}]} {"index": 968, "beams": [{"orig_question": "Quantos profissionais já realizaram algum tratamento em cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Professionals JOIN Treatments JOIN Dogs WHERE Dogs.name = 'terminal'", "score": -1.3313895430910634}]} {"index": 969, "beams": [{"orig_question": "Encontre o número de profissionais que já trataram de cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Count(*) FROM Professionals", "score": -0.07281123660504818}]} {"index": 970, "beams": [{"orig_question": "Quais profissionais moram em uma cidade que contém a substring 'Oeste'? Liste sua função, rua, cidade e estado.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.role_code, Professionals.city, Professionals.state FROM Professionals WHERE Professionals.role_code LIKE 'terminal'", "score": -2.1937790866941143}]} {"index": 971, "beams": [{"orig_question": "Encontre a função, rua, cidade e estado dos profissionais que vivem em uma cidade que contém o substring 'Oeste'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 34, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 37, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.role_code, Professionals.city, Professionals.state FROM Professionals WHERE Professionals.first_name = 'terminal'", "score": -1.631445550970966}]} {"index": 972, "beams": [{"orig_question": "Quais proprietários vivem no estado cujo nome contém a substring 'Norte'? Liste seu nome, sobrenome e e-mail.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.email_address, Professionals.home_phone FROM Professionals WHERE Professionals.state LIKE 'terminal'", "score": -1.766178922727704}]} {"index": 973, "beams": [{"orig_question": "Retorne o nome, o sobrenome e o e-mail dos proprietários que vivem em um estado cujo nome contém a substring 'Norte'.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 12, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Like", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 38, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Owners.first_name, Owners.last_name, Professionals.home_phone FROM Owners JOIN Professionals WHERE Professionals.state LIKE 'terminal'", "score": -9.516489297151566}]} {"index": 974, "beams": [{"orig_question": "Quantos cães têm idade abaixo da média?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.age < (SELECT Avg(Dogs.age) FROM Dogs)", "score": -0.04993611259851605}]} {"index": 975, "beams": [{"orig_question": "Conte o número de cães de uma idade abaixo da média.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.age < (SELECT Avg(Dogs.age) FROM Dogs)", "score": -0.036900138307828456}]} {"index": 976, "beams": [{"orig_question": "Quanto custa o tratamento mais recente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 48, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 48, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.date_of_treatment FROM Treatments ORDER BY Treatments.date_of_treatment Asc LIMIT 1", "score": -1.5642068572342396}]} {"index": 977, "beams": [{"orig_question": "Mostre-me o custo do tratamento realizado mais recentemente.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.cost_of_treatment FROM Treatments ORDER BY Treatments.cost_of_treatment Desc LIMIT 1", "score": -1.008036364801228}]} {"index": 978, "beams": [{"orig_question": "Quantos cães não passaram por nenhum tratamento?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.dog_id NOT IN (SELECT Dogs.owner_id FROM Dogs)", "score": -1.6224134569056332}]} {"index": 979, "beams": [{"orig_question": "Diga-me quantos cães não receberam nenhum tratamento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 20, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 45, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Count(*) FROM Dogs WHERE Dogs.dog_id NOT IN (SELECT Treatments.dog_id FROM Dogs)", "score": -1.7791537400335073}]} {"index": 980, "beams": [{"orig_question": "Quantos proprietários temporariamente não têm cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Count(*) FROM Professionals WHERE Professionals.cell_number NOT IN (SELECT Dogs.owner_id FROM Dogs)", "score": -0.7982400814071298}]} {"index": 981, "beams": [{"orig_question": "Encontre o número de proprietários que não possuem nenhum cachorro no momento.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 21, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Count(*) FROM Professionals WHERE Professionals.professional_id NOT IN (SELECT Dogs.owner_id FROM Dogs)", "score": -0.036011434509418905}]} {"index": 982, "beams": [{"orig_question": "Quantos profissionais não operaram nenhum tratamento em cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Count(*) FROM Professionals WHERE Professionals.professional_id NOT IN (SELECT Treatments.professional_id FROM Treatments)", "score": -0.05952389442427375}]} {"index": 983, "beams": [{"orig_question": "Encontre o número de profissionais que não trataram nenhum cão.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 33, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 46, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Count(*) FROM Professionals WHERE Professionals.professional_id NOT IN (SELECT Treatments.professional_id FROM Treatments)", "score": -0.018292864205932347}]} {"index": 984, "beams": [{"orig_question": "Liste o nome do cão, idade e peso dos cães que foram abandonados? 1 significa sim e 0 significa não.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 4}, {"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Dogs.name, Dogs.age, Dogs.weight FROM Owners JOIN Dogs WHERE Breeds.breed_name = 'terminal' INTERSECT SELECT Dogs.name, Dogs.age, Dogs.weight FROM Owners JOIN Dogs WHERE Breeds.breed_name = 'terminal'", "score": -5.360143970756319}]} {"index": 985, "beams": [{"orig_question": "Qual é o nome do cão, idade e peso dos cães que foram abandonados? Observe que 1 significa sim e 0 significa não nas tabelas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "except": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 25, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 29, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 11, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}, {"_type": "Table", "table_id": 4}]}}, "inferred_code": "SELECT Dogs.name, Dogs.age, Dogs.weight FROM Dogs JOIN Owners WHERE Treatments.cost_of_treatment = 'terminal' EXCEPT SELECT Dogs.name, Dogs.age, Dogs.weight FROM Dogs JOIN Owners WHERE Owners.first_name = 'terminal'", "score": -3.6057365545711875}]} {"index": 986, "beams": [{"orig_question": "Qual é a idade média de todos os cães?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "score": -0.002329763412490138}]} {"index": 987, "beams": [{"orig_question": "Calcule a idade média de todos os cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Avg"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Avg(Dogs.age) FROM Dogs", "score": -0.003980855984991649}]} {"index": 988, "beams": [{"orig_question": "Qual é a idade do cachorro mais velho?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Max(Dogs.age) FROM Dogs", "score": -0.6718218707246706}]} {"index": 989, "beams": [{"orig_question": "Diga-me a idade do cão mais velho.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 26, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 5}]}}, "inferred_code": "SELECT Max(Dogs.age) FROM Dogs", "score": -0.5667151585034844}]} {"index": 990, "beams": [{"orig_question": "Quanto custa cada tipo de cobrança? Liste o tipo e o valor da cobrança.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.treatment_type_code, Max(Treatments.cost_of_treatment) FROM Treatments GROUP BY Treatments.treatment_type_code", "score": -0.14328652367976247}]} {"index": 991, "beams": [{"orig_question": "Liste cada tipo de cobrança e seu valor.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.treatment_type_code, Count(*) FROM Treatments GROUP BY Treatments.treatment_type_code", "score": -0.19413726055063307}]} {"index": 992, "beams": [{"orig_question": "Quanto custa o tipo de cobrança mais caro?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.treatment_type_code FROM Treatments ORDER BY Treatments.cost_of_treatment Desc LIMIT 1", "score": -0.46484069550206186}]} {"index": 993, "beams": [{"orig_question": "Qual é o valor da cobrança do tipo de cobrança mais caro?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 47, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 49, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Treatments.treatment_type_code FROM Treatments ORDER BY Treatments.cost_of_treatment Desc LIMIT 1", "score": -0.7617429130368691}]} {"index": 994, "beams": [{"orig_question": "Liste o e-mail, telefone celular e telefone residencial de todos os profissionais.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.email_address, Professionals.home_phone, Professionals.cell_number FROM Professionals", "score": -0.030921232866489845}]} {"index": 995, "beams": [{"orig_question": "Quais são o e-mail, celular e telefone residencial de cada profissional?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 41, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 42, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 43, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.email_address, Professionals.home_phone, Professionals.cell_number FROM Professionals", "score": -0.03650774870015994}]} {"index": 996, "beams": [{"orig_question": "Quais são todas as combinações possíveis de tipo de raça e tipo de tamanho?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 7}, {"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Treatment_Types.treatment_type_code, Treatment_Types.treatment_type_description FROM Treatments JOIN Treatment_Types", "score": -1.0937905171886086}]} {"index": 997, "beams": [{"orig_question": "Encontre o tipo distinto de raça e combinações de tipo de tamanho para cães.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT DISTINCT Treatment_Types.treatment_type_code, Treatment_Types.treatment_type_description FROM Treatment_Types", "score": -0.5119657600298524}]} {"index": 998, "beams": [{"orig_question": "Liste o primeiro nome de todos os profissionais junto com a descrição do tratamento que realizaram.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}, {"_type": "Table", "table_id": 7}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals JOIN Treatments", "score": -0.9108253796839563}]} {"index": 999, "beams": [{"orig_question": "Qual o primeiro nome de cada profissional e a descrição do tratamento realizado?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 35, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 40, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 6}]}}, "inferred_code": "SELECT Professionals.first_name, Professionals.last_name FROM Professionals", "score": -0.2177547041355865}]} {"index": 1000, "beams": [{"orig_question": "Quantos cantores existem?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM singer", "score": -0.08357452173368074}]} {"index": 1001, "beams": [{"orig_question": "Qual é a contagem de cantores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Count(*) FROM song", "score": -0.439905834995443}]} {"index": 1002, "beams": [{"orig_question": "Liste os nomes dos cantores em ordem crescente de patrimônio líquido.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer ORDER BY singer.Birth_Year Asc", "score": -0.04781219227879774}]} {"index": 1003, "beams": [{"orig_question": "Quais são os nomes dos cantores ordenados por patrimônio líquido crescente?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Asc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}]}, "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer ORDER BY singer.Birth_Year Asc", "score": -0.644606763496995}]} {"index": 1004, "beams": [{"orig_question": "Quais são o ano de nascimento e a cidadania dos cantores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Birth_Year, song.Highest_Position FROM singer JOIN song", "score": -0.1752253410886624}]} {"index": 1005, "beams": [{"orig_question": "Quais são os anos de nascimento e a cidadania dos cantores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Birth_Year, singer.Citizenship FROM singer", "score": -0.6473173381018569}]} {"index": 1006, "beams": [{"orig_question": "Liste o nome de cantores cuja cidadania não seja \"França\".", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Citizenship != 'terminal'", "score": -0.5494635920040309}]} {"index": 1007, "beams": [{"orig_question": "Quais são os nomes dos cantores que não são cidadãos franceses?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 5, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Citizenship != 'terminal'", "score": -0.04349603155014847}]} {"index": 1008, "beams": [{"orig_question": "Mostre o nome dos cantores cujo ano de nascimento é 1948 ou 1949?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer JOIN song WHERE singer.Birth_Year = 'terminal' OR singer.Birth_Year = 'terminal'", "score": -0.10859179221915838}]} {"index": 1009, "beams": [{"orig_question": "Quais são os nomes dos cantores cujos anos de nascimento são 1948 ou 1949?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Birth_Year = 'terminal' OR singer.Birth_Year = 'terminal'", "score": -0.6051137223257683}]} {"index": 1010, "beams": [{"orig_question": "Qual é o nome da cantora com maior patrimônio líquido?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer JOIN song ORDER BY song.Title Desc LIMIT 1", "score": -0.4656117130361963}]} {"index": 1011, "beams": [{"orig_question": "Qual é o nome da cantora que mais vale?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer JOIN song GROUP BY singer.Name ORDER BY Count(*) Desc LIMIT 1", "score": -0.04997330209153006}]} {"index": 1012, "beams": [{"orig_question": "Mostre as diferentes cidadanias dos cantores e o número de cantores de cada cidadania.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position, Count(*) FROM song GROUP BY song.Highest_Position", "score": -0.06412952186656184}]} {"index": 1013, "beams": [{"orig_question": "Para cada cidadania, quantos cantores são desse país?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position, Count(*) FROM song GROUP BY song.Highest_Position", "score": -0.05997317198534802}]} {"index": 1014, "beams": [{"orig_question": "Por favor, mostre a cidadania mais comum dos cantores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position FROM song GROUP BY song.Highest_Position ORDER BY Count(*) Desc LIMIT 1", "score": -0.0060308255669951905}]} {"index": 1015, "beams": [{"orig_question": "Qual é a cidadania cantora mais comum?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "order_by": {"_type": "order_by", "order": {"_type": "Desc"}, "val_units": [{"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}]}, "limit": true}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position FROM song GROUP BY song.Highest_Position ORDER BY Count(*) Desc LIMIT 1", "score": -0.06763760405010544}]} {"index": 1016, "beams": [{"orig_question": "Mostre diferentes nacionalidades e o patrimônio líquido máximo dos cantores de cada cidadania.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Max"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position, Max(*) FROM song GROUP BY song.Highest_Position", "score": -0.20000728138253976}]} {"index": 1017, "beams": [{"orig_question": "Para cada cidadania, qual é o patrimônio líquido máximo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position, Sum(singer.Birth_Year) FROM singer JOIN song GROUP BY song.Highest_Position", "score": -0.7454972337000001}]} {"index": 1018, "beams": [{"orig_question": "Mostre os títulos das canções e os nomes dos cantores.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT song.Title, singer.Name FROM song JOIN singer", "score": -0.08639866471185087}]} {"index": 1019, "beams": [{"orig_question": "Quais são os títulos das músicas e os nomes dos cantores?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}, {"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT song.Title, singer.Name FROM song JOIN singer", "score": -0.07539532222654088}]} {"index": 1020, "beams": [{"orig_question": "Mostre nomes distintos de cantores que possuem músicas com vendas acima de 300.000.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT singer.Name FROM singer JOIN song WHERE song.Sales > 'terminal'", "score": -0.02164934235542404}]} {"index": 1021, "beams": [{"orig_question": "quais são os diferentes nomes dos cantores que têm vendas acima de 300.000?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": true, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT DISTINCT song.Title FROM song WHERE song.Sales > 'terminal'", "score": -0.8154627149342275}]} {"index": 1022, "beams": [{"orig_question": "Mostre os nomes dos cantores que possuem mais de uma música.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer JOIN song GROUP BY singer.Name HAVING Count(*) > 'terminal'", "score": -0.08812249452603282}]} {"index": 1023, "beams": [{"orig_question": "Quais são os nomes dos cantores que possuem mais de uma música?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}], "having": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "Count"}, "col_id": 0, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name FROM singer JOIN song GROUP BY singer.Name HAVING Count(*) > 'terminal'", "score": -0.057053943193750456}]} {"index": 1024, "beams": [{"orig_question": "Mostre os nomes dos cantores e as vendas totais de suas músicas.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name, Sum(song.Sales) FROM singer JOIN song GROUP BY singer.Name", "score": -0.02921432614493824}]} {"index": 1025, "beams": [{"orig_question": "Para cada nome de cantor, qual é o total de vendas de suas músicas?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}, {"_type": "agg", "agg_id": {"_type": "Sum"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 9, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby", "group_by": [{"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}]}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT singer.Name, Sum(song.Sales) FROM singer JOIN song GROUP BY singer.Name", "score": -0.38227043743154354}]} {"index": 1026, "beams": [{"orig_question": "Liste o nome dos cantores que não possuem nenhuma música.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Not", "c": {"_type": "In", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 1, "is_distinct": false}}, "val1": {"_type": "ValSql", "s": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 8, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Singer_ID NOT IN (SELECT song.Singer_ID FROM song)", "score": -0.11527240824921137}]} {"index": 1027, "beams": [{"orig_question": "Qual é a armadilha de cada canto que não tem nenhuma canção?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Ne", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position FROM singer JOIN song WHERE singer.Name != 'terminal'", "score": -0.4892973409878323}]} {"index": 1028, "beams": [{"orig_question": "Mostre a cidadania compartilhada por cantores com ano de nascimento anterior a 1945 e posterior a 1955.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 10, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT song.Highest_Position FROM singer JOIN song WHERE singer.Birth_Year < 'terminal' INTERSECT SELECT singer.Name FROM singer JOIN song WHERE singer.Birth_Year < 'terminal'", "score": -2.8933847557636625}]} {"index": 1029, "beams": [{"orig_question": "Quais são as cidadanias compartilhadas por cantores com um ano de nascimento antes de 1945 e depois de 1955?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu", "intersect": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Lt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT singer.Name FROM singer WHERE singer.Birth_Year < 'terminal' INTERSECT SELECT singer.Name FROM singer WHERE singer.Birth_Year < 'terminal'", "score": -2.1832244978286326}]} {"index": 1030, "beams": [{"orig_question": "Quantos recursos disponíveis existem no total?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "Count"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 0, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where"}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}]}}, "inferred_code": "SELECT Count(*) FROM Ref_Feature_Types", "score": -0.023844478651881218}]} {"index": 1031, "beams": [{"orig_question": "Qual é o nome do tipo de recurso do recurso AirCon?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 2, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 7, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 0}, {"_type": "Table", "table_id": 2}]}}, "inferred_code": "SELECT Ref_Feature_Types.feature_type_name FROM Ref_Feature_Types JOIN Other_Available_Features WHERE Other_Available_Features.feature_name = 'terminal'", "score": -0.045754851795209106}]} {"index": 1032, "beams": [{"orig_question": "Mostre as descrições de tipo de propriedade das propriedades pertencentes a esse código.", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 4, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Eq", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 3, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 1}]}}, "inferred_code": "SELECT Ref_Property_Types.property_type_description FROM Ref_Property_Types WHERE Ref_Property_Types.property_type_code = 'terminal'", "score": -0.3472486282093996}]} {"index": 1033, "beams": [{"orig_question": "Quais são os nomes das propriedades que são casas ou apartamentos com mais de 1 cômodo?", "model_output": {"_type": "sql", "select": {"_type": "select", "is_distinct": false, "aggs": [{"_type": "agg", "agg_id": {"_type": "NoneAggOp"}, "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 13, "is_distinct": false}}}]}, "sql_where": {"_type": "sql_where", "where": {"_type": "Or", "left": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}, "right": {"_type": "Gt", "val_unit": {"_type": "Column", "col_unit1": {"_type": "col_unit", "agg_id": {"_type": "NoneAggOp"}, "col_id": 15, "is_distinct": false}}, "val1": {"_type": "Terminal"}}}}, "sql_groupby": {"_type": "sql_groupby"}, "sql_orderby": {"_type": "sql_orderby", "limit": false}, "sql_ieu": {"_type": "sql_ieu"}, "from": {"_type": "from", "table_units": [{"_type": "Table", "table_id": 3}]}}, "inferred_code": "SELECT Properties.property_name FROM Properties WHERE Properties.room_count > 'terminal' OR Properties.room_count > 'terminal'", "score": -0.852516066725002}]}