prompt
listlengths
2
2
data_source
large_stringclasses
6 values
env_kwargs
large_stringlengths
1.47k
126k
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"enrolled_in": [{"stuid": 1001, "cid": "550.681", "grade": "A-"}, {"stuid": 1001, "cid": "600.303", "grade": "B"}, {"stuid": 1001, "cid": "600.315", "grade": "B+"}, {"stuid": 1001, "cid": "600.337", "grade": "A"}, {"stuid": 1001, "cid": "600.461", "grade": "B-"}, {"stuid": 1001, "cid": "600.465", "grade": "B"}, {"stuid": 1002, "cid": "520.213", "grade": "B+"}, {"stuid": 1002, "cid": "600.211", "grade": "C"}, {"stuid": 1002, "cid": "600.303", "grade": "C+"}, {"stuid": 1002, "cid": "600.337", "grade": "A"}, {"stuid": 1002, "cid": "600.463", "grade": "B"}, {"stuid": 1002, "cid": "600.465", "grade": "B+"}, {"stuid": 1003, "cid": "600.333", "grade": "B"}, {"stuid": 1003, "cid": "600.337", "grade": "B"}, {"stuid": 1003, "cid": "600.415", "grade": "B"}, {"stuid": 1003, "cid": "600.461", "grade": "B+"}, {"stuid": 1003, "cid": "600.465", "grade": "B"}, {"stuid": 1004, "cid": "600.303", "grade": "C-"}, {"stuid": 1004, "cid": "600.415", "grade": "C-"}, {"stuid": 1004, "cid": "600.437", "grade": "C-"}, {"stuid": 1004, "cid": "600.445", "grade": "A-"}, {"stuid": 1004, "cid": "600.461", "grade": "C"}, {"stuid": 1004, "cid": "600.463", "grade": "A+"}, {"stuid": 1004, "cid": "600.465", "grade": "A"}, {"stuid": 1005, "cid": "600.103", "grade": "A"}, {"stuid": 1005, "cid": "600.107", "grade": "C+"}, {"stuid": 1005, "cid": "600.113", "grade": "C"}, {"stuid": 1005, "cid": "600.227", "grade": "A"}, {"stuid": 1005, "cid": "600.303", "grade": "B"}, {"stuid": 1006, "cid": "550.420", "grade": "B"}, {"stuid": 1006, "cid": "600.107", "grade": "B+"}, {"stuid": 1006, "cid": "600.227", "grade": "B-"}, {"stuid": 1006, "cid": "600.232", "grade": "C-"}, {"stuid": 1006, "cid": "600.303", "grade": "A-"}, {"stuid": 1006, "cid": "600.315", "grade": "A"}, {"stuid": 1007, "cid": "550.420", "grade": "A"}, {"stuid": 1007, "cid": "600.113", "grade": "A-"}, {"stuid": 1007, "cid": "600.227", "grade": "C+"}, {"stuid": 1007, "cid": "600.315", "grade": "A"}, {"stuid": 1007, "cid": "600.333", "grade": "A-"}, {"stuid": 1007, "cid": "600.337", "grade": "C"}, {"stuid": 1008, "cid": "600.415", "grade": "A+"}, {"stuid": 1008, "cid": "600.463", "grade": "B"}, {"stuid": 1008, "cid": "600.465", "grade": "B"}, {"stuid": 1008, "cid": "600.657", "grade": "B"}, {"stuid": 1008, "cid": "600.787", "grade": "B"}, {"stuid": 1009, "cid": "550.413", "grade": "B+"}, {"stuid": 1009, "cid": "550.471", "grade": "C"}, {"stuid": 1009, "cid": "550.620", "grade": "A-"}, {"stuid": 1009, "cid": "550.626", "grade": "B"}, {"stuid": 1009, "cid": "550.671", "grade": "C"}, {"stuid": 1009, "cid": "550.681", "grade": "A"}, {"stuid": 1009, "cid": "550.661", "grade": "B-"}, {"stuid": 1009, "cid": "550.631", "grade": "A-"}, {"stuid": 1010, "cid": "550.291", "grade": "A"}, {"stuid": 1010, "cid": "550.310", "grade": "A"}, {"stuid": 1010, "cid": "550.413", "grade": "C+"}, {"stuid": 1010, "cid": "550.420", "grade": "A"}, {"stuid": 1010, "cid": "550.471", "grade": "A"}, {"stuid": 1010, "cid": "600.107", "grade": "B+"}, {"stuid": 1011, "cid": "520.213", "grade": "B"}, {"stuid": 1011, "cid": "520.345", "grade": "B"}, {"stuid": 1011, "cid": "520.349", "grade": "A"}, {"stuid": 1011, "cid": "520.353", "grade": "A-"}, {"stuid": 1011, "cid": "550.420", "grade": "B"}, {"stuid": 1011, "cid": "600.415", "grade": "B+"}, {"stuid": 1012, "cid": "050.109", "grade": "B-"}, {"stuid": 1012, "cid": "050.203", "grade": "B-"}, {"stuid": 1012, "cid": "050.325", "grade": "A-"}, {"stuid": 1012, "cid": "600.107", "grade": "A"}, {"stuid": 1012, "cid": "600.315", "grade": "B"}, {"stuid": 1014, "cid": "600.107", "grade": "A"}, {"stuid": 1014, "cid": "600.227", "grade": "A"}, {"stuid": 1014, "cid": "600.232", "grade": "A"}, {"stuid": 1014, "cid": "600.315", "grade": "A+"}, {"stuid": 1014, "cid": "600.445", "grade": "B"}, {"stuid": 1014, "cid": "600.461", "grade": "B"}, {"stuid": 1014, "cid": "600.463", "grade": "B"}, {"stuid": 1015, "cid": "550.420", "grade": "A"}, {"stuid": 1015, "cid": "600.227", "grade": "A+"}, {"stuid": 1015, "cid": "600.303", "grade": "A"}, {"stuid": 1015, "cid": "600.315", "grade": "C-"}, {"stuid": 1015, "cid": "600.333", "grade": "A"}, {"stuid": 1016, "cid": "050.109", "grade": "B-"}, {"stuid": 1016, "cid": "050.203", "grade": "D-"}, {"stuid": 1016, "cid": "050.325", "grade": "A"}, {"stuid": 1016, "cid": "050.821", "grade": "A"}, {"stuid": 1016, "cid": "550.420", "grade": "A-"}, {"stuid": 1016, "cid": "600.107", "grade": "B+"}, {"stuid": 1016, "cid": "600.315", "grade": "B-"}, {"stuid": 1017, "cid": "050.427", "grade": "B"}, {"stuid": 1017, "cid": "050.670", "grade": "B"}, {"stuid": 1017, "cid": "050.802", "grade": "C"}, {"stuid": 1017, "cid": "550.681", "grade": "B"}, {"stuid": 1017, "cid": "600.109", "grade": "A-"}, {"stuid": 1017, "cid": "600.461", "grade": "A"}, {"stuid": 1017, "cid": "600.465", "grade": "C"}, {"stuid": 1018, "cid": "520.213", "grade": "A-"}, {"stuid": 1018, "cid": "600.211", "grade": "A"}, {"stuid": 1018, "cid": "600.303", "grade": "A"}, {"stuid": 1018, "cid": "600.337", "grade": "C-"}, {"stuid": 1018, "cid": "600.463", "grade": "B"}, {"stuid": 1018, "cid": "600.465", "grade": "B"}, {"stuid": 1019, "cid": "600.103", "grade": "B"}, {"stuid": 1019, "cid": "600.107", "grade": "B"}, {"stuid": 1019, "cid": "600.113", "grade": "D+"}, {"stuid": 1019, "cid": "600.227", "grade": "A"}, {"stuid": 1019, "cid": "600.303", "grade": "A"}, {"stuid": 1020, "cid": "600.333", "grade": "A"}, {"stuid": 1020, "cid": "600.337", "grade": "A"}, {"stuid": 1020, "cid": "600.415", "grade": "A"}, {"stuid": 1020, "cid": "600.461", "grade": "A"}, {"stuid": 1020, "cid": "600.465", "grade": "A"}, {"stuid": 1021, "cid": "600.303", "grade": "B-"}, {"stuid": 1021, "cid": "600.303", "grade": "B"}, {"stuid": 1021, "cid": "600.415", "grade": "B"}, {"stuid": 1021, "cid": "600.437", "grade": "B"}, {"stuid": 1021, "cid": "600.437", "grade": "B"}, {"stuid": 1021, "cid": "600.445", "grade": "B-"}, {"stuid": 1021, "cid": "600.445", "grade": "C"}, {"stuid": 1021, "cid": "600.463", "grade": "A"}, {"stuid": 1021, "cid": "600.463", "grade": "B"}, {"stuid": 1022, "cid": "550.420", "grade": "B"}, {"stuid": 1022, "cid": "550.420", "grade": "B+"}, {"stuid": 1022, "cid": "600.107", "grade": "A"}, {"stuid": 1022, "cid": "600.227", "grade": "A"}, {"stuid": 1022, "cid": "600.227", "grade": "A"}, {"stuid": 1022, "cid": "600.232", "grade": "B"}, {"stuid": 1022, "cid": "600.303", "grade": "B"}, {"stuid": 1022, "cid": "600.315", "grade": "D"}, {"stuid": 1022, "cid": "600.461", "grade": "A"}, {"stuid": 1023, "cid": "600.113", "grade": "A-"}, {"stuid": 1023, "cid": "600.315", "grade": "B"}, {"stuid": 1023, "cid": "600.333", "grade": "B"}, {"stuid": 1023, "cid": "600.337", "grade": "B+"}, {"stuid": 1023, "cid": "600.463", "grade": "A"}, {"stuid": 1023, "cid": "600.465", "grade": "A"}, {"stuid": 1023, "cid": "600.657", "grade": "B"}, {"stuid": 1023, "cid": "600.787", "grade": "B"}, {"stuid": 1024, "cid": "550.291", "grade": "B"}, {"stuid": 1024, "cid": "550.413", "grade": "C"}, {"stuid": 1024, "cid": "550.471", "grade": "A-"}, {"stuid": 1024, "cid": "550.620", "grade": "A"}, {"stuid": 1024, "cid": "550.626", "grade": "B"}, {"stuid": 1024, "cid": "550.671", "grade": "B"}, {"stuid": 1024, "cid": "550.681", "grade": "B"}, {"stuid": 1024, "cid": "600.415", "grade": "B"}, {"stuid": 1025, "cid": "520.213", "grade": "A"}, {"stuid": 1025, "cid": "520.345", "grade": "A+"}, {"stuid": 1025, "cid": "550.310", "grade": "A"}, {"stuid": 1025, "cid": "550.413", "grade": "A"}, {"stuid": 1025, "cid": "550.420", "grade": "C"}, {"stuid": 1025, "cid": "550.471", "grade": "B"}, {"stuid": 1025, "cid": "600.107", "grade": "B"}, {"stuid": 1026, "cid": "520.349", "grade": "A"}, {"stuid": 1026, "cid": "520.353", "grade": "A"}, {"stuid": 1026, "cid": "600.303", "grade": "A"}, {"stuid": 1026, "cid": "600.437", "grade": "A"}, {"stuid": 1026, "cid": "600.445", "grade": "A"}, {"stuid": 1026, "cid": "600.463", "grade": "B-"}, {"stuid": 1027, "cid": "600.107", "grade": "B"}, {"stuid": 1027, "cid": "600.227", "grade": "B"}, {"stuid": 1027, "cid": "600.232", "grade": "B"}, {"stuid": 1027, "cid": "600.303", "grade": "B"}, {"stuid": 1027, "cid": "600.315", "grade": "B-"}, {"stuid": 1027, "cid": "600.461", "grade": "B-"}, {"stuid": 1027, "cid": "600.463", "grade": "B"}, {"stuid": 1028, "cid": "550.420", "grade": "B+"}, {"stuid": 1028, "cid": "600.227", "grade": "A"}, {"stuid": 1028, "cid": "600.315", "grade": "A+"}, {"stuid": 1028, "cid": "600.333", "grade": "A"}, {"stuid": 1028, "cid": "600.337", "grade": "A+"}, {"stuid": 1029, "cid": "550.413", "grade": "C-"}, {"stuid": 1029, "cid": "550.471", "grade": "A"}, {"stuid": 1029, "cid": "550.620", "grade": "B-"}, {"stuid": 1029, "cid": "550.671", "grade": "A-"}, {"stuid": 1029, "cid": "600.113", "grade": "B-"}, {"stuid": 1029, "cid": "600.463", "grade": "A+"}, {"stuid": 1030, "cid": "520.345", "grade": "B"}, {"stuid": 1030, "cid": "550.291", "grade": "B"}, {"stuid": 1030, "cid": "550.310", "grade": "B-"}, {"stuid": 1030, "cid": "550.413", "grade": "B-"}, {"stuid": 1030, "cid": "550.420", "grade": "B"}, {"stuid": 1030, "cid": "550.471", "grade": "B+"}, {"stuid": 1030, "cid": "600.107", "grade": "B"}, {"stuid": 1031, "cid": "520.213", "grade": "B+"}, {"stuid": 1031, "cid": "520.349", "grade": "B"}, {"stuid": 1031, "cid": "520.353", "grade": "C"}, {"stuid": 1031, "cid": "600.437", "grade": "A+"}, {"stuid": 1032, "cid": "550.420", "grade": "A-"}, {"stuid": 1032, "cid": "550.420", "grade": "D-"}, {"stuid": 1032, "cid": "600.232", "grade": "A-"}, {"stuid": 1032, "cid": "600.303", "grade": "A"}, {"stuid": 1032, "cid": "600.315", "grade": "A"}, {"stuid": 1033, "cid": "600.113", "grade": "A"}, {"stuid": 1033, "cid": "600.227", "grade": "A"}, {"stuid": 1033, "cid": "600.315", "grade": "A"}, {"stuid": 1033, "cid": "600.333", "grade": "A"}, {"stuid": 1033, "cid": "600.337", "grade": "B"}, {"stuid": 1034, "cid": "050.109", "grade": "B+"}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load college_3__enrolled_in data\nenrolled_in = load(\"enrolled_in\")\n\nfiltered_enrolled_in = enrolled_in\n |> filter(cid == \"550.631\")\n\nsummary = filtered_enrolled_in\n |> group_by(cid)\n |> aggregate(total_stuid: sum(stuid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_3__enrolled_in data\nenrolled_in = load(\"enrolled_in\")\n\nfiltered_enrolled_in = enrolled_in\n |> filter(cid != \"550.631\")\n\nsummary = filtered_enrolled_in\n |> group_by(cid)\n |> aggregate(total_stuid: sum(stuid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"cid": "550.631", "total_stuid": 1009, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '!='", "line_num": 5, "original": "|> filter(cid == \"550.631\")", "mutated": "|> filter(cid != \"550.631\")"}], "difficulty": "easy", "domain": "college_3__enrolled_in", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"weather": [{"date": "8/29/2013", "max_temperature_f": 74, "mean_temperature_f": 68, "min_temperature_f": 61, "max_dew_point_f": 61, "mean_dew_point_f": 58, "min_dew_point_f": 56, "max_humidity": 93, "mean_humidity": 75, "min_humidity": 57, "max_sea_level_pressure_inches": 30.07, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 286, "zip_code": 94107}, {"date": "8/30/2013", "max_temperature_f": 78, "mean_temperature_f": 69, "min_temperature_f": 60, "max_dew_point_f": 61, "mean_dew_point_f": 58, "min_dew_point_f": 56, "max_humidity": 90, "mean_humidity": 70, "min_humidity": 50, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 30, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 35, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 291, "zip_code": 94107}, {"date": "8/31/2013", "max_temperature_f": 71, "mean_temperature_f": 64, "min_temperature_f": 57, "max_dew_point_f": 57, "mean_dew_point_f": 56, "min_dew_point_f": 54, "max_humidity": 93, "mean_humidity": 75, "min_humidity": 57, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.92, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 15, "max_gust_speed_mph": 31, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 284, "zip_code": 94107}, {"date": "9/1/2013", "max_temperature_f": 74, "mean_temperature_f": 66, "min_temperature_f": 58, "max_dew_point_f": 60, "mean_dew_point_f": 56, "min_dew_point_f": 53, "max_humidity": 87, "mean_humidity": 68, "min_humidity": 49, "max_sea_level_pressure_inches": 29.96, "mean_sea_level_pressure_inches": 29.93, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 29, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 284, "zip_code": 94107}, {"date": "9/2/2013", "max_temperature_f": 75, "mean_temperature_f": 69, "min_temperature_f": 62, "max_dew_point_f": 61, "mean_dew_point_f": 60, "min_dew_point_f": 58, "max_humidity": 93, "mean_humidity": 77, "min_humidity": 61, "max_sea_level_pressure_inches": 29.97, "mean_sea_level_pressure_inches": 29.94, "min_sea_level_pressure_inches": 29.9, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 6, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 277, "zip_code": 94107}, {"date": "9/3/2013", "max_temperature_f": 73, "mean_temperature_f": 67, "min_temperature_f": 60, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 51, "max_humidity": 84, "mean_humidity": 65, "min_humidity": 46, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.95, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 15, "max_gust_speed_mph": 31, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 276, "zip_code": 94107}, {"date": "9/4/2013", "max_temperature_f": 74, "mean_temperature_f": 68, "min_temperature_f": 61, "max_dew_point_f": 59, "mean_dew_point_f": 57, "min_dew_point_f": 56, "max_humidity": 90, "mean_humidity": 72, "min_humidity": 53, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 30.01, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 19, "max_gust_speed_mph": 35, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 269, "zip_code": 94107}, {"date": "9/5/2013", "max_temperature_f": 72, "mean_temperature_f": 66, "min_temperature_f": 60, "max_dew_point_f": 57, "mean_dew_point_f": 56, "min_dew_point_f": 54, "max_humidity": 90, "mean_humidity": 74, "min_humidity": 57, "max_sea_level_pressure_inches": 30.04, "mean_sea_level_pressure_inches": 30, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 31, "mean_wind_speed_mph": 21, "max_gust_speed_mph": 37, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 270, "zip_code": 94107}, {"date": "9/6/2013", "max_temperature_f": 85, "mean_temperature_f": 71, "min_temperature_f": 56, "max_dew_point_f": 57, "mean_dew_point_f": 51, "min_dew_point_f": 45, "max_humidity": 86, "mean_humidity": 58, "min_humidity": 29, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.92, "min_sea_level_pressure_inches": 29.83, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 287, "zip_code": 94107}, {"date": "9/7/2013", "max_temperature_f": 88, "mean_temperature_f": 73, "min_temperature_f": 58, "max_dew_point_f": 64, "mean_dew_point_f": 54, "min_dew_point_f": 46, "max_humidity": 86, "mean_humidity": 59, "min_humidity": 31, "max_sea_level_pressure_inches": 29.88, "mean_sea_level_pressure_inches": 29.85, "min_sea_level_pressure_inches": 29.81, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 305, "zip_code": 94107}, {"date": "9/8/2013", "max_temperature_f": 74, "mean_temperature_f": 65, "min_temperature_f": 56, "max_dew_point_f": 58, "mean_dew_point_f": 54, "min_dew_point_f": 52, "max_humidity": 86, "mean_humidity": 70, "min_humidity": 53, "max_sea_level_pressure_inches": 29.88, "mean_sea_level_pressure_inches": 29.83, "min_sea_level_pressure_inches": 29.76, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 31, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 299, "zip_code": 94107}, {"date": "9/9/2013", "max_temperature_f": 76, "mean_temperature_f": 66, "min_temperature_f": 55, "max_dew_point_f": 58, "mean_dew_point_f": 55, "min_dew_point_f": 52, "max_humidity": 90, "mean_humidity": 70, "min_humidity": 50, "max_sea_level_pressure_inches": 29.82, "mean_sea_level_pressure_inches": 29.77, "min_sea_level_pressure_inches": 29.72, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 303, "zip_code": 94107}, {"date": "9/10/2013", "max_temperature_f": 74, "mean_temperature_f": 66, "min_temperature_f": 57, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 54, "max_humidity": 93, "mean_humidity": 73, "min_humidity": 53, "max_sea_level_pressure_inches": 29.91, "mean_sea_level_pressure_inches": 29.82, "min_sea_level_pressure_inches": 29.76, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 230, "zip_code": 94107}, {"date": "9/11/2013", "max_temperature_f": 74, "mean_temperature_f": 68, "min_temperature_f": 62, "max_dew_point_f": 57, "mean_dew_point_f": 55, "min_dew_point_f": 54, "max_humidity": 78, "mean_humidity": 68, "min_humidity": 57, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.97, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 219, "zip_code": 94107}, {"date": "9/12/2013", "max_temperature_f": 71, "mean_temperature_f": 65, "min_temperature_f": 59, "max_dew_point_f": 58, "mean_dew_point_f": 57, "min_dew_point_f": 55, "max_humidity": 84, "mean_humidity": 73, "min_humidity": 61, "max_sea_level_pressure_inches": 29.99, "mean_sea_level_pressure_inches": 29.95, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 7, "events": "Fog", "wind_dir_degrees": 268, "zip_code": 94107}, {"date": "9/13/2013", "max_temperature_f": 66, "mean_temperature_f": 62, "min_temperature_f": 57, "max_dew_point_f": 55, "mean_dew_point_f": 54, "min_dew_point_f": 54, "max_humidity": 93, "mean_humidity": 80, "min_humidity": 67, "max_sea_level_pressure_inches": 29.92, "mean_sea_level_pressure_inches": 29.87, "min_sea_level_pressure_inches": 29.8, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 30, "mean_wind_speed_mph": 15, "max_gust_speed_mph": 37, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 271, "zip_code": 94107}, {"date": "9/14/2013", "max_temperature_f": 66, "mean_temperature_f": 62, "min_temperature_f": 57, "max_dew_point_f": 55, "mean_dew_point_f": 54, "min_dew_point_f": 53, "max_humidity": 87, "mean_humidity": 77, "min_humidity": 67, "max_sea_level_pressure_inches": 29.86, "mean_sea_level_pressure_inches": 29.81, "min_sea_level_pressure_inches": 29.77, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 16, "max_gust_speed_mph": 33, "precipitation_inches": 0, "cloud_cover": 7, "events": "", "wind_dir_degrees": 265, "zip_code": 94107}, {"date": "9/15/2013", "max_temperature_f": 73, "mean_temperature_f": 66, "min_temperature_f": 58, "max_dew_point_f": 59, "mean_dew_point_f": 55, "min_dew_point_f": 52, "max_humidity": 90, "mean_humidity": 72, "min_humidity": 53, "max_sea_level_pressure_inches": 29.88, "mean_sea_level_pressure_inches": 29.85, "min_sea_level_pressure_inches": 29.81, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 6, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 276, "zip_code": 94107}, {"date": "9/16/2013", "max_temperature_f": 71, "mean_temperature_f": 65, "min_temperature_f": 59, "max_dew_point_f": 58, "mean_dew_point_f": 55, "min_dew_point_f": 53, "max_humidity": 90, "mean_humidity": 74, "min_humidity": 57, "max_sea_level_pressure_inches": 29.91, "mean_sea_level_pressure_inches": 29.87, "min_sea_level_pressure_inches": 29.81, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 6, "max_wind_speed_mph": 31, "mean_wind_speed_mph": 16, "max_gust_speed_mph": 39, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 274, "zip_code": 94107}, {"date": "9/17/2013", "max_temperature_f": 68, "mean_temperature_f": 63, "min_temperature_f": 57, "max_dew_point_f": 55, "mean_dew_point_f": 53, "min_dew_point_f": 50, "max_humidity": 86, "mean_humidity": 72, "min_humidity": 58, "max_sea_level_pressure_inches": 29.91, "mean_sea_level_pressure_inches": 29.87, "min_sea_level_pressure_inches": 29.84, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 39, "mean_wind_speed_mph": 22, "max_gust_speed_mph": 51, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 270, "zip_code": 94107}, {"date": "9/18/2013", "max_temperature_f": 78, "mean_temperature_f": 66, "min_temperature_f": 54, "max_dew_point_f": 55, "mean_dew_point_f": 49, "min_dew_point_f": 47, "max_humidity": 78, "mean_humidity": 60, "min_humidity": 41, "max_sea_level_pressure_inches": 29.92, "mean_sea_level_pressure_inches": 29.88, "min_sea_level_pressure_inches": 29.85, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 278, "zip_code": 94107}, {"date": "9/19/2013", "max_temperature_f": 80, "mean_temperature_f": 67, "min_temperature_f": 54, "max_dew_point_f": 56, "mean_dew_point_f": 50, "min_dew_point_f": 46, "max_humidity": 77, "mean_humidity": 58, "min_humidity": 38, "max_sea_level_pressure_inches": 29.87, "mean_sea_level_pressure_inches": 29.82, "min_sea_level_pressure_inches": 29.76, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 33, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 297, "zip_code": 94107}, {"date": "9/20/2013", "max_temperature_f": 73, "mean_temperature_f": 65, "min_temperature_f": 56, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 50, "max_humidity": 87, "mean_humidity": 70, "min_humidity": 53, "max_sea_level_pressure_inches": 29.88, "mean_sea_level_pressure_inches": 29.84, "min_sea_level_pressure_inches": 29.79, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 248, "zip_code": 94107}, {"date": "9/21/2013", "max_temperature_f": 68, "mean_temperature_f": 63, "min_temperature_f": 58, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 53, "max_humidity": 90, "mean_humidity": 75, "min_humidity": 59, "max_sea_level_pressure_inches": 29.91, "mean_sea_level_pressure_inches": 29.85, "min_sea_level_pressure_inches": 29.82, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 2, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 28, "precipitation_inches": 0.23, "cloud_cover": 6, "events": "Rain", "wind_dir_degrees": 218, "zip_code": 94107}, {"date": "9/22/2013", "max_temperature_f": 70, "mean_temperature_f": 63, "min_temperature_f": 55, "max_dew_point_f": 55, "mean_dew_point_f": 53, "min_dew_point_f": 49, "max_humidity": 93, "mean_humidity": 70, "min_humidity": 47, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.97, "min_sea_level_pressure_inches": 29.92, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 35, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 292, "zip_code": 94107}, {"date": "9/23/2013", "max_temperature_f": 78, "mean_temperature_f": 68, "min_temperature_f": 57, "max_dew_point_f": 58, "mean_dew_point_f": 54, "min_dew_point_f": 50, "max_humidity": 78, "mean_humidity": 64, "min_humidity": 50, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.99, "min_sea_level_pressure_inches": 29.95, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 294, "zip_code": 94107}, {"date": "9/24/2013", "max_temperature_f": 71, "mean_temperature_f": 65, "min_temperature_f": 58, "max_dew_point_f": 54, "mean_dew_point_f": 52, "min_dew_point_f": 50, "max_humidity": 78, "mean_humidity": 66, "min_humidity": 53, "max_sea_level_pressure_inches": 30.01, "mean_sea_level_pressure_inches": 29.97, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 36, "mean_wind_speed_mph": 19, "max_gust_speed_mph": 43, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 277, "zip_code": 94107}, {"date": "9/25/2013", "max_temperature_f": 67, "mean_temperature_f": 62, "min_temperature_f": 56, "max_dew_point_f": 51, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 83, "mean_humidity": 64, "min_humidity": 45, "max_sea_level_pressure_inches": 29.95, "mean_sea_level_pressure_inches": 29.91, "min_sea_level_pressure_inches": 29.84, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 35, "mean_wind_speed_mph": 20, "max_gust_speed_mph": 45, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 281, "zip_code": 94107}, {"date": "9/26/2013", "max_temperature_f": 71, "mean_temperature_f": 62, "min_temperature_f": 53, "max_dew_point_f": 46, "mean_dew_point_f": 43, "min_dew_point_f": 38, "max_humidity": 72, "mean_humidity": 53, "min_humidity": 33, "max_sea_level_pressure_inches": 29.99, "mean_sea_level_pressure_inches": 29.92, "min_sea_level_pressure_inches": 29.85, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 29, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 281, "zip_code": 94107}, {"date": "9/27/2013", "max_temperature_f": 78, "mean_temperature_f": 66, "min_temperature_f": 54, "max_dew_point_f": 47, "mean_dew_point_f": 41, "min_dew_point_f": 34, "max_humidity": 67, "mean_humidity": 46, "min_humidity": 25, "max_sea_level_pressure_inches": 30.11, "mean_sea_level_pressure_inches": 30.06, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 279, "zip_code": 94107}, {"date": "9/28/2013", "max_temperature_f": 78, "mean_temperature_f": 66, "min_temperature_f": 53, "max_dew_point_f": 55, "mean_dew_point_f": 48, "min_dew_point_f": 38, "max_humidity": 84, "mean_humidity": 60, "min_humidity": 35, "max_sea_level_pressure_inches": 30.1, "mean_sea_level_pressure_inches": 30.06, "min_sea_level_pressure_inches": 30.02, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 28, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 32, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 296, "zip_code": 94107}, {"date": "9/29/2013", "max_temperature_f": 75, "mean_temperature_f": 66, "min_temperature_f": 57, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 53, "max_humidity": 87, "mean_humidity": 70, "min_humidity": 53, "max_sea_level_pressure_inches": 30.11, "mean_sea_level_pressure_inches": 30.09, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 16, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 253, "zip_code": 94107}, {"date": "9/30/2013", "max_temperature_f": 73, "mean_temperature_f": 66, "min_temperature_f": 59, "max_dew_point_f": 60, "mean_dew_point_f": 57, "min_dew_point_f": 43, "max_humidity": 87, "mean_humidity": 69, "min_humidity": 51, "max_sea_level_pressure_inches": 30.07, "mean_sea_level_pressure_inches": 30.03, "min_sea_level_pressure_inches": 29.98, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 26, "precipitation_inches": "T", "cloud_cover": 4, "events": "Fog", "wind_dir_degrees": 264, "zip_code": 94107}, {"date": "10/1/2013", "max_temperature_f": 69, "mean_temperature_f": 63, "min_temperature_f": 56, "max_dew_point_f": 50, "mean_dew_point_f": 48, "min_dew_point_f": 46, "max_humidity": 77, "mean_humidity": 61, "min_humidity": 45, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 273, "zip_code": 94107}, {"date": "10/2/2013", "max_temperature_f": 69, "mean_temperature_f": 62, "min_temperature_f": 54, "max_dew_point_f": 49, "mean_dew_point_f": 46, "min_dew_point_f": 44, "max_humidity": 77, "mean_humidity": 61, "min_humidity": 45, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 35, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 280, "zip_code": 94107}, {"date": "10/3/2013", "max_temperature_f": 70, "mean_temperature_f": 62, "min_temperature_f": 54, "max_dew_point_f": 44, "mean_dew_point_f": 41, "min_dew_point_f": 35, "max_humidity": 66, "mean_humidity": 47, "min_humidity": 28, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 29.96, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 294, "zip_code": 94107}, {"date": "10/4/2013", "max_temperature_f": 76, "mean_temperature_f": 69, "min_temperature_f": 61, "max_dew_point_f": 51, "mean_dew_point_f": 42, "min_dew_point_f": 28, "max_humidity": 53, "mean_humidity": 38, "min_humidity": 22, "max_sea_level_pressure_inches": 30.1, "mean_sea_level_pressure_inches": 30.05, "min_sea_level_pressure_inches": 29.98, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 13, "zip_code": 94107}, {"date": "10/5/2013", "max_temperature_f": 80, "mean_temperature_f": 69, "min_temperature_f": 57, "max_dew_point_f": 52, "mean_dew_point_f": 36, "min_dew_point_f": 24, "max_humidity": 56, "mean_humidity": 36, "min_humidity": 15, "max_sea_level_pressure_inches": 30.2, "mean_sea_level_pressure_inches": 30.14, "min_sea_level_pressure_inches": 30.1, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 122, "zip_code": 94107}, {"date": "10/6/2013", "max_temperature_f": 83, "mean_temperature_f": 70, "min_temperature_f": 56, "max_dew_point_f": 52, "mean_dew_point_f": 44, "min_dew_point_f": 27, "max_humidity": 66, "mean_humidity": 40, "min_humidity": 13, "max_sea_level_pressure_inches": 30.13, "mean_sea_level_pressure_inches": 30.07, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 15, "precipitation_inches": 0.01, "cloud_cover": 4, "events": "", "wind_dir_degrees": 345, "zip_code": 94107}, {"date": "10/7/2013", "max_temperature_f": 80, "mean_temperature_f": 68, "min_temperature_f": 56, "max_dew_point_f": 49, "mean_dew_point_f": 41, "min_dew_point_f": 31, "max_humidity": 72, "mean_humidity": 46, "min_humidity": 19, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.95, "min_sea_level_pressure_inches": 29.89, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 28, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 31, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 295, "zip_code": 94107}, {"date": "10/8/2013", "max_temperature_f": 72, "mean_temperature_f": 62, "min_temperature_f": 52, "max_dew_point_f": 50, "mean_dew_point_f": 47, "min_dew_point_f": 44, "max_humidity": 77, "mean_humidity": 59, "min_humidity": 41, "max_sea_level_pressure_inches": 29.92, "mean_sea_level_pressure_inches": 29.84, "min_sea_level_pressure_inches": 29.74, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 278, "zip_code": 94107}, {"date": "10/9/2013", "max_temperature_f": 68, "mean_temperature_f": 60, "min_temperature_f": 52, "max_dew_point_f": 48, "mean_dew_point_f": 45, "min_dew_point_f": 39, "max_humidity": 83, "mean_humidity": 60, "min_humidity": 37, "max_sea_level_pressure_inches": 29.77, "mean_sea_level_pressure_inches": 29.69, "min_sea_level_pressure_inches": 29.64, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 286, "zip_code": 94107}, {"date": "10/10/2013", "max_temperature_f": 70, "mean_temperature_f": 62, "min_temperature_f": 53, "max_dew_point_f": 52, "mean_dew_point_f": 47, "min_dew_point_f": 43, "max_humidity": 77, "mean_humidity": 61, "min_humidity": 45, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.91, "min_sea_level_pressure_inches": 29.77, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 15, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 302, "zip_code": 94107}, {"date": "10/11/2013", "max_temperature_f": 63, "mean_temperature_f": 57, "min_temperature_f": 51, "max_dew_point_f": 49, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 83, "mean_humidity": 70, "min_humidity": 56, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 30, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 275, "zip_code": 94107}, {"date": "10/12/2013", "max_temperature_f": 64, "mean_temperature_f": 56, "min_temperature_f": 47, "max_dew_point_f": 50, "mean_dew_point_f": 46, "min_dew_point_f": 42, "max_humidity": 89, "mean_humidity": 71, "min_humidity": 53, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 0, "max_wind_speed_mph": 32, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 40, "precipitation_inches": 0, "cloud_cover": 3, "events": "Fog", "wind_dir_degrees": 252, "zip_code": 94107}, {"date": "10/13/2013", "max_temperature_f": 73, "mean_temperature_f": 62, "min_temperature_f": 51, "max_dew_point_f": 51, "mean_dew_point_f": 47, "min_dew_point_f": 40, "max_humidity": 89, "mean_humidity": 60, "min_humidity": 31, "max_sea_level_pressure_inches": 30.07, "mean_sea_level_pressure_inches": 30.01, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 286, "zip_code": 94107}, {"date": "10/14/2013", "max_temperature_f": 77, "mean_temperature_f": 64, "min_temperature_f": 51, "max_dew_point_f": 50, "mean_dew_point_f": 41, "min_dew_point_f": 36, "max_humidity": 71, "mean_humidity": 49, "min_humidity": 27, "max_sea_level_pressure_inches": 30.12, "mean_sea_level_pressure_inches": 30.06, "min_sea_level_pressure_inches": 30.01, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 5, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 272, "zip_code": 94107}, {"date": "10/15/2013", "max_temperature_f": 80, "mean_temperature_f": 67, "min_temperature_f": 53, "max_dew_point_f": 50, "mean_dew_point_f": 37, "min_dew_point_f": 31, "max_humidity": 61, "mean_humidity": 40, "min_humidity": 18, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 30.01, "min_sea_level_pressure_inches": 29.96, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 22, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 294, "zip_code": 94107}, {"date": "10/16/2013", "max_temperature_f": 80, "mean_temperature_f": 67, "min_temperature_f": 53, "max_dew_point_f": 54, "mean_dew_point_f": 42, "min_dew_point_f": 32, "max_humidity": 63, "mean_humidity": 41, "min_humidity": 19, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.05, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 14, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 305, "zip_code": 94107}, {"date": "10/17/2013", "max_temperature_f": 81, "mean_temperature_f": 68, "min_temperature_f": 54, "max_dew_point_f": 53, "mean_dew_point_f": 45, "min_dew_point_f": 35, "max_humidity": 72, "mean_humidity": 56, "min_humidity": 39, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.03, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 306, "zip_code": 94107}, {"date": "10/18/2013", "max_temperature_f": 68, "mean_temperature_f": 60, "min_temperature_f": 51, "max_dew_point_f": 52, "mean_dew_point_f": 48, "min_dew_point_f": 46, "max_humidity": 83, "mean_humidity": 66, "min_humidity": 48, "max_sea_level_pressure_inches": 30.06, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 29.99, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 294, "zip_code": 94107}, {"date": "10/19/2013", "max_temperature_f": 74, "mean_temperature_f": 62, "min_temperature_f": 49, "max_dew_point_f": 52, "mean_dew_point_f": 48, "min_dew_point_f": 45, "max_humidity": 86, "mean_humidity": 65, "min_humidity": 44, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 301, "zip_code": 94107}, {"date": "10/20/2013", "max_temperature_f": 64, "mean_temperature_f": 57, "min_temperature_f": 49, "max_dew_point_f": 52, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 93, "mean_humidity": 77, "min_humidity": 60, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.99, "min_sea_level_pressure_inches": 29.92, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 0, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 2, "events": "Fog", "wind_dir_degrees": 290, "zip_code": 94107}, {"date": "10/21/2013", "max_temperature_f": 61, "mean_temperature_f": 55, "min_temperature_f": 48, "max_dew_point_f": 50, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 93, "mean_humidity": 80, "min_humidity": 67, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 284, "zip_code": 94107}, {"date": "10/22/2013", "max_temperature_f": 64, "mean_temperature_f": 56, "min_temperature_f": 47, "max_dew_point_f": 51, "mean_dew_point_f": 48, "min_dew_point_f": 46, "max_humidity": 100, "mean_humidity": 82, "min_humidity": 64, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.99, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 5, "min_visibility_miles": 0, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 5, "events": "Fog", "wind_dir_degrees": 281, "zip_code": 94107}, {"date": "10/23/2013", "max_temperature_f": 61, "mean_temperature_f": 55, "min_temperature_f": 49, "max_dew_point_f": 51, "mean_dew_point_f": 48, "min_dew_point_f": 46, "max_humidity": 93, "mean_humidity": 83, "min_humidity": 72, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 7, "min_visibility_miles": 2, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 6, "events": "Fog", "wind_dir_degrees": 282, "zip_code": 94107}, {"date": "10/24/2013", "max_temperature_f": 60, "mean_temperature_f": 57, "min_temperature_f": 53, "max_dew_point_f": 48, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 83, "mean_humidity": 73, "min_humidity": 62, "max_sea_level_pressure_inches": 30.12, "mean_sea_level_pressure_inches": 30.05, "min_sea_level_pressure_inches": 29.99, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 8, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 269, "zip_code": 94107}, {"date": "10/25/2013", "max_temperature_f": 67, "mean_temperature_f": 59, "min_temperature_f": 50, "max_dew_point_f": 50, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 86, "mean_humidity": 69, "min_humidity": 52, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.13, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 263, "zip_code": 94107}, {"date": "10/26/2013", "max_temperature_f": 70, "mean_temperature_f": 60, "min_temperature_f": 49, "max_dew_point_f": 53, "mean_dew_point_f": 48, "min_dew_point_f": 43, "max_humidity": 89, "mean_humidity": 67, "min_humidity": 44, "max_sea_level_pressure_inches": 30.15, "mean_sea_level_pressure_inches": 30.09, "min_sea_level_pressure_inches": 30.02, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 1, "events": "Fog", "wind_dir_degrees": 292, "zip_code": 94107}, {"date": "10/27/2013", "max_temperature_f": 60, "mean_temperature_f": 55, "min_temperature_f": 50, "max_dew_point_f": 49, "mean_dew_point_f": 47, "min_dew_point_f": 45, "max_humidity": 89, "mean_humidity": 76, "min_humidity": 62, "max_sea_level_pressure_inches": 30.04, "mean_sea_level_pressure_inches": 29.9, "min_sea_level_pressure_inches": 29.69, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 43, "mean_wind_speed_mph": 18, "max_gust_speed_mph": 51, "precipitation_inches": "T", "cloud_cover": 6, "events": "Rain", "wind_dir_degrees": 267, "zip_code": 94107}, {"date": "10/28/2013", "max_temperature_f": 61, "mean_temperature_f": 57, "min_temperature_f": 52, "max_dew_point_f": 48, "mean_dew_point_f": 46, "min_dew_point_f": 44, "max_humidity": 83, "mean_humidity": 69, "min_humidity": 55, "max_sea_level_pressure_inches": 29.86, "mean_sea_level_pressure_inches": 29.75, "min_sea_level_pressure_inches": 29.69, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 36, "mean_wind_speed_mph": 15, "max_gust_speed_mph": 43, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 263, "zip_code": 94107}, {"date": "10/29/2013", "max_temperature_f": 63, "mean_temperature_f": 58, "min_temperature_f": 52, "max_dew_point_f": 48, "mean_dew_point_f": 45, "min_dew_point_f": 42, "max_humidity": 83, "mean_humidity": 66, "min_humidity": 48, "max_sea_level_pressure_inches": 30.06, "mean_sea_level_pressure_inches": 29.97, "min_sea_level_pressure_inches": 29.87, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 256, "zip_code": 94107}, {"date": "10/30/2013", "max_temperature_f": 65, "mean_temperature_f": 57, "min_temperature_f": 48, "max_dew_point_f": 50, "mean_dew_point_f": 45, "min_dew_point_f": 42, "max_humidity": 83, "mean_humidity": 66, "min_humidity": 48, "max_sea_level_pressure_inches": 30.16, "mean_sea_level_pressure_inches": 30.11, "min_sea_level_pressure_inches": 30.07, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 22, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 286, "zip_code": 94107}, {"date": "10/31/2013", "max_temperature_f": 70, "mean_temperature_f": 59, "min_temperature_f": 48, "max_dew_point_f": 51, "mean_dew_point_f": 43, "min_dew_point_f": 38, "max_humidity": 71, "mean_humidity": 54, "min_humidity": 37, "max_sea_level_pressure_inches": 30.19, "mean_sea_level_pressure_inches": 30.13, "min_sea_level_pressure_inches": 30.08, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 4, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 300, "zip_code": 94107}, {"date": "11/1/2013", "max_temperature_f": 74, "mean_temperature_f": 63, "min_temperature_f": 51, "max_dew_point_f": 53, "mean_dew_point_f": 45, "min_dew_point_f": 41, "max_humidity": 77, "mean_humidity": 57, "min_humidity": 37, "max_sea_level_pressure_inches": 30.14, "mean_sea_level_pressure_inches": 30.08, "min_sea_level_pressure_inches": 30.01, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 18, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 315, "zip_code": 94107}, {"date": "11/2/2013", "max_temperature_f": 63, "mean_temperature_f": 57, "min_temperature_f": 50, "max_dew_point_f": 51, "mean_dew_point_f": 47, "min_dew_point_f": 41, "max_humidity": 89, "mean_humidity": 73, "min_humidity": 56, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.99, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 2, "max_wind_speed_mph": 28, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 33, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 284, "zip_code": 94107}, {"date": "11/3/2013", "max_temperature_f": 63, "mean_temperature_f": 55, "min_temperature_f": 47, "max_dew_point_f": 45, "mean_dew_point_f": 41, "min_dew_point_f": 34, "max_humidity": 77, "mean_humidity": 56, "min_humidity": 34, "max_sea_level_pressure_inches": 30.06, "mean_sea_level_pressure_inches": 29.99, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 277, "zip_code": 94107}, {"date": "11/4/2013", "max_temperature_f": 67, "mean_temperature_f": 56, "min_temperature_f": 44, "max_dew_point_f": 43, "mean_dew_point_f": 39, "min_dew_point_f": 32, "max_humidity": 80, "mean_humidity": 56, "min_humidity": 31, "max_sea_level_pressure_inches": 30.07, "mean_sea_level_pressure_inches": 30, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 286, "zip_code": 94107}, {"date": "11/5/2013", "max_temperature_f": 71, "mean_temperature_f": 61, "min_temperature_f": 50, "max_dew_point_f": 45, "mean_dew_point_f": 38, "min_dew_point_f": 29, "max_humidity": 66, "mean_humidity": 44, "min_humidity": 22, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.16, "min_sea_level_pressure_inches": 30.08, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 279, "zip_code": 94107}, {"date": "11/6/2013", "max_temperature_f": 70, "mean_temperature_f": 61, "min_temperature_f": 51, "max_dew_point_f": 49, "mean_dew_point_f": 42, "min_dew_point_f": 36, "max_humidity": 72, "mean_humidity": 52, "min_humidity": 31, "max_sea_level_pressure_inches": 30.26, "mean_sea_level_pressure_inches": 30.21, "min_sea_level_pressure_inches": 30.16, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 5, "mean_wind_speed_mph": 0, "max_gust_speed_mph": 6, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 68, "zip_code": 94107}, {"date": "11/7/2013", "max_temperature_f": 71, "mean_temperature_f": 64, "min_temperature_f": 56, "max_dew_point_f": 51, "mean_dew_point_f": 46, "min_dew_point_f": 40, "max_humidity": 80, "mean_humidity": 61, "min_humidity": 42, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.13, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 284, "zip_code": 94107}, {"date": "11/8/2013", "max_temperature_f": 70, "mean_temperature_f": 60, "min_temperature_f": 50, "max_dew_point_f": 53, "mean_dew_point_f": 48, "min_dew_point_f": 40, "max_humidity": 100, "mean_humidity": 72, "min_humidity": 43, "max_sea_level_pressure_inches": 30.1, "mean_sea_level_pressure_inches": 30.05, "min_sea_level_pressure_inches": 29.98, "max_visibility_miles": 10, "mean_visibility_miles": 7, "min_visibility_miles": 0, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 2, "events": "Fog", "wind_dir_degrees": 269, "zip_code": 94107}, {"date": "11/9/2013", "max_temperature_f": 66, "mean_temperature_f": 57, "min_temperature_f": 48, "max_dew_point_f": 53, "mean_dew_point_f": 47, "min_dew_point_f": 40, "max_humidity": 80, "mean_humidity": 64, "min_humidity": 48, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 30.01, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 14, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 334, "zip_code": 94107}, {"date": "11/10/2013", "max_temperature_f": 64, "mean_temperature_f": 58, "min_temperature_f": 51, "max_dew_point_f": 51, "mean_dew_point_f": 48, "min_dew_point_f": 45, "max_humidity": 83, "mean_humidity": 72, "min_humidity": 60, "max_sea_level_pressure_inches": 30.13, "mean_sea_level_pressure_inches": 30.09, "min_sea_level_pressure_inches": 30.04, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 269, "zip_code": 94107}, {"date": "11/11/2013", "max_temperature_f": 62, "mean_temperature_f": 58, "min_temperature_f": 54, "max_dew_point_f": 51, "mean_dew_point_f": 49, "min_dew_point_f": 46, "max_humidity": 83, "mean_humidity": 72, "min_humidity": 60, "max_sea_level_pressure_inches": 30.17, "mean_sea_level_pressure_inches": 30.13, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 6, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 15, "precipitation_inches": 0, "cloud_cover": 7, "events": "", "wind_dir_degrees": 76, "zip_code": 94107}, {"date": "11/12/2013", "max_temperature_f": 70, "mean_temperature_f": 64, "min_temperature_f": 57, "max_dew_point_f": 53, "mean_dew_point_f": 50, "min_dew_point_f": 46, "max_humidity": 77, "mean_humidity": 62, "min_humidity": 47, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.23, "min_sea_level_pressure_inches": 30.17, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 22, "precipitation_inches": "T", "cloud_cover": 4, "events": "", "wind_dir_degrees": 312, "zip_code": 94107}, {"date": "11/13/2013", "max_temperature_f": 68, "mean_temperature_f": 60, "min_temperature_f": 52, "max_dew_point_f": 55, "mean_dew_point_f": 51, "min_dew_point_f": 47, "max_humidity": 93, "mean_humidity": 77, "min_humidity": 60, "max_sea_level_pressure_inches": 30.25, "mean_sea_level_pressure_inches": 30.18, "min_sea_level_pressure_inches": 30.12, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 3, "events": "Fog", "wind_dir_degrees": 303, "zip_code": 94107}, {"date": "11/14/2013", "max_temperature_f": 61, "mean_temperature_f": 56, "min_temperature_f": 51, "max_dew_point_f": 52, "mean_dew_point_f": 49, "min_dew_point_f": 45, "max_humidity": 96, "mean_humidity": 84, "min_humidity": 71, "max_sea_level_pressure_inches": 30.13, "mean_sea_level_pressure_inches": 30.03, "min_sea_level_pressure_inches": 29.9, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 8, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 37, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 266, "zip_code": 94107}, {"date": "11/15/2013", "max_temperature_f": 65, "mean_temperature_f": 58, "min_temperature_f": 50, "max_dew_point_f": 46, "mean_dew_point_f": 44, "min_dew_point_f": 41, "max_humidity": 83, "mean_humidity": 66, "min_humidity": 48, "max_sea_level_pressure_inches": 29.89, "mean_sea_level_pressure_inches": 29.82, "min_sea_level_pressure_inches": 29.76, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 35, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 40, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 268, "zip_code": 94107}, {"date": "11/16/2013", "max_temperature_f": 62, "mean_temperature_f": 56, "min_temperature_f": 49, "max_dew_point_f": 50, "mean_dew_point_f": 46, "min_dew_point_f": 42, "max_humidity": 83, "mean_humidity": 67, "min_humidity": 51, "max_sea_level_pressure_inches": 29.94, "mean_sea_level_pressure_inches": 29.86, "min_sea_level_pressure_inches": 29.79, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 35, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 273, "zip_code": 94107}, {"date": "11/17/2013", "max_temperature_f": 63, "mean_temperature_f": 56, "min_temperature_f": 49, "max_dew_point_f": 49, "mean_dew_point_f": 45, "min_dew_point_f": 42, "max_humidity": 89, "mean_humidity": 69, "min_humidity": 48, "max_sea_level_pressure_inches": 30.1, "mean_sea_level_pressure_inches": 30.03, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 245, "zip_code": 94107}, {"date": "11/18/2013", "max_temperature_f": 60, "mean_temperature_f": 53, "min_temperature_f": 46, "max_dew_point_f": 46, "mean_dew_point_f": 44, "min_dew_point_f": 40, "max_humidity": 82, "mean_humidity": 69, "min_humidity": 55, "max_sea_level_pressure_inches": 30.16, "mean_sea_level_pressure_inches": 30.12, "min_sea_level_pressure_inches": 30.1, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 18, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 199, "zip_code": 94107}, {"date": "11/19/2013", "max_temperature_f": 61, "mean_temperature_f": 58, "min_temperature_f": 54, "max_dew_point_f": 55, "mean_dew_point_f": 50, "min_dew_point_f": 45, "max_humidity": 93, "mean_humidity": 80, "min_humidity": 66, "max_sea_level_pressure_inches": 30.1, "mean_sea_level_pressure_inches": 30.03, "min_sea_level_pressure_inches": 29.95, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 6, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 16, "precipitation_inches": 0.28, "cloud_cover": 7, "events": "Rain", "wind_dir_degrees": 131, "zip_code": 94107}, {"date": "11/20/2013", "max_temperature_f": 59, "mean_temperature_f": 55, "min_temperature_f": 51, "max_dew_point_f": 56, "mean_dew_point_f": 53, "min_dew_point_f": 47, "max_humidity": 93, "mean_humidity": 90, "min_humidity": 86, "max_sea_level_pressure_inches": 29.94, "mean_sea_level_pressure_inches": 29.9, "min_sea_level_pressure_inches": 29.85, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 4, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 24, "precipitation_inches": 0.63, "cloud_cover": 7, "events": "Rain", "wind_dir_degrees": 239, "zip_code": 94107}, {"date": "11/21/2013", "max_temperature_f": 62, "mean_temperature_f": 56, "min_temperature_f": 50, "max_dew_point_f": 49, "mean_dew_point_f": 42, "min_dew_point_f": 32, "max_humidity": 93, "mean_humidity": 64, "min_humidity": 35, "max_sea_level_pressure_inches": 29.99, "mean_sea_level_pressure_inches": 29.94, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 32, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 39, "precipitation_inches": "T", "cloud_cover": 5, "events": "Rain", "wind_dir_degrees": 349, "zip_code": 94107}, {"date": "11/22/2013", "max_temperature_f": 69, "mean_temperature_f": 63, "min_temperature_f": 57, "max_dew_point_f": 39, "mean_dew_point_f": 32, "min_dew_point_f": 25, "max_humidity": 40, "mean_humidity": 30, "min_humidity": 19, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.97, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 32, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 47, "zip_code": 94107}, {"date": "11/23/2013", "max_temperature_f": 65, "mean_temperature_f": 58, "min_temperature_f": 50, "max_dew_point_f": 45, "mean_dew_point_f": 38, "min_dew_point_f": 31, "max_humidity": 71, "mean_humidity": 50, "min_humidity": 28, "max_sea_level_pressure_inches": 30.11, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 32, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 79, "zip_code": 94107}, {"date": "11/24/2013", "max_temperature_f": 60, "mean_temperature_f": 53, "min_temperature_f": 45, "max_dew_point_f": 49, "mean_dew_point_f": 43, "min_dew_point_f": 39, "max_humidity": 86, "mean_humidity": 70, "min_humidity": 53, "max_sea_level_pressure_inches": 30.26, "mean_sea_level_pressure_inches": 30.19, "min_sea_level_pressure_inches": 30.12, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 319, "zip_code": 94107}, {"date": "11/25/2013", "max_temperature_f": 61, "mean_temperature_f": 53, "min_temperature_f": 44, "max_dew_point_f": 46, "mean_dew_point_f": 43, "min_dew_point_f": 38, "max_humidity": 86, "mean_humidity": 70, "min_humidity": 53, "max_sea_level_pressure_inches": 30.33, "mean_sea_level_pressure_inches": 30.28, "min_sea_level_pressure_inches": 30.25, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 180, "zip_code": 94107}, {"date": "11/26/2013", "max_temperature_f": 62, "mean_temperature_f": 55, "min_temperature_f": 47, "max_dew_point_f": 47, "mean_dew_point_f": 44, "min_dew_point_f": 39, "max_humidity": 86, "mean_humidity": 65, "min_humidity": 43, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.16, "min_sea_level_pressure_inches": 30.04, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 6, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 8, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 100, "zip_code": 94107}, {"date": "11/27/2013", "max_temperature_f": 62, "mean_temperature_f": 55, "min_temperature_f": 48, "max_dew_point_f": 49, "mean_dew_point_f": 45, "min_dew_point_f": 41, "max_humidity": 86, "mean_humidity": 69, "min_humidity": 52, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.92, "min_sea_level_pressure_inches": 29.85, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 7, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 137, "zip_code": 94107}, {"date": "11/28/2013", "max_temperature_f": 66, "mean_temperature_f": 58, "min_temperature_f": 49, "max_dew_point_f": 51, "mean_dew_point_f": 44, "min_dew_point_f": 37, "max_humidity": 83, "mean_humidity": 64, "min_humidity": 44, "max_sea_level_pressure_inches": 30.08, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.88, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 16, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 18, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 280, "zip_code": 94107}, {"date": "11/29/2013", "max_temperature_f": 62, "mean_temperature_f": 54, "min_temperature_f": 46, "max_dew_point_f": 51, "mean_dew_point_f": 45, "min_dew_point_f": 38, "max_humidity": 77, "mean_humidity": 70, "min_humidity": 63, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.15, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 0, "events": "Fog", "wind_dir_degrees": 316, "zip_code": 94107}, {"date": "11/30/2013", "max_temperature_f": 63, "mean_temperature_f": 54, "min_temperature_f": 45, "max_dew_point_f": 51, "mean_dew_point_f": 47, "min_dew_point_f": 41, "max_humidity": 93, "mean_humidity": 79, "min_humidity": 65, "max_sea_level_pressure_inches": 30.28, "mean_sea_level_pressure_inches": 30.25, "min_sea_level_pressure_inches": 30.19, "max_visibility_miles": 10, "mean_visibility_miles": 6, "min_visibility_miles": 0, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 3, "events": "Fog", "wind_dir_degrees": 303, "zip_code": 94107}, {"date": "12/1/2013", "max_temperature_f": 67, "mean_temperature_f": 57, "min_temperature_f": 46, "max_dew_point_f": 50, "mean_dew_point_f": 46, "min_dew_point_f": 41, "max_humidity": 86, "mean_humidity": 66, "min_humidity": 46, "max_sea_level_pressure_inches": 30.35, "mean_sea_level_pressure_inches": 30.27, "min_sea_level_pressure_inches": 30.22, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 308, "zip_code": 94107}, {"date": "12/2/2013", "max_temperature_f": 62, "mean_temperature_f": 54, "min_temperature_f": 46, "max_dew_point_f": 54, "mean_dew_point_f": 49, "min_dew_point_f": 44, "max_humidity": 96, "mean_humidity": 80, "min_humidity": 64, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.1, "min_sea_level_pressure_inches": 29.99, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 0, "max_wind_speed_mph": 33, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 38, "precipitation_inches": "T", "cloud_cover": 5, "events": "Fog-Rain", "wind_dir_degrees": 277, "zip_code": 94107}, {"date": "12/3/2013", "max_temperature_f": 56, "mean_temperature_f": 51, "min_temperature_f": 46, "max_dew_point_f": 54, "mean_dew_point_f": 38, "min_dew_point_f": 25, "max_humidity": 93, "mean_humidity": 69, "min_humidity": 45, "max_sea_level_pressure_inches": 29.98, "mean_sea_level_pressure_inches": 29.92, "min_sea_level_pressure_inches": 29.87, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 4, "max_wind_speed_mph": 24, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 31, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 285, "zip_code": 94107}, {"date": "12/4/2013", "max_temperature_f": 52, "mean_temperature_f": 46, "min_temperature_f": 39, "max_dew_point_f": 31, "mean_dew_point_f": 26, "min_dew_point_f": 21, "max_humidity": 62, "mean_humidity": 46, "min_humidity": 30, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 29.96, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 309, "zip_code": 94107}, {"date": "12/5/2013", "max_temperature_f": 51, "mean_temperature_f": 43, "min_temperature_f": 35, "max_dew_point_f": 31, "mean_dew_point_f": 24, "min_dew_point_f": 18, "max_humidity": 64, "mean_humidity": 45, "min_humidity": 26, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.14, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 14, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 196, "zip_code": 94107}, {"date": "12/6/2013", "max_temperature_f": 53, "mean_temperature_f": 45, "min_temperature_f": 37, "max_dew_point_f": 48, "mean_dew_point_f": 37, "min_dew_point_f": 31, "max_humidity": 80, "mean_humidity": 65, "min_humidity": 50, "max_sea_level_pressure_inches": 30.19, "mean_sea_level_pressure_inches": 30.1, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 6, "max_wind_speed_mph": 30, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 43, "precipitation_inches": 0.29, "cloud_cover": 6, "events": "Rain", "wind_dir_degrees": 180, "zip_code": 94107}, {"date": "12/7/2013", "max_temperature_f": 52, "mean_temperature_f": 45, "min_temperature_f": 38, "max_dew_point_f": 48, "mean_dew_point_f": 32, "min_dew_point_f": 24, "max_humidity": 89, "mean_humidity": 63, "min_humidity": 36, "max_sea_level_pressure_inches": 30.25, "mean_sea_level_pressure_inches": 30.09, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 3, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 36, "precipitation_inches": 0.06, "cloud_cover": 3, "events": "Rain", "wind_dir_degrees": 293, "zip_code": 94107}, {"date": "12/8/2013", "max_temperature_f": 47, "mean_temperature_f": 42, "min_temperature_f": 36, "max_dew_point_f": 31, "mean_dew_point_f": 24, "min_dew_point_f": 17, "max_humidity": 70, "mean_humidity": 53, "min_humidity": 36, "max_sea_level_pressure_inches": 30.33, "mean_sea_level_pressure_inches": 30.28, "min_sea_level_pressure_inches": 30.24, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 64, "zip_code": 94107}, {"date": "12/9/2013", "max_temperature_f": 52, "mean_temperature_f": 44, "min_temperature_f": 36, "max_dew_point_f": 31, "mean_dew_point_f": 23, "min_dew_point_f": 18, "max_humidity": 70, "mean_humidity": 49, "min_humidity": 28, "max_sea_level_pressure_inches": 30.43, "mean_sea_level_pressure_inches": 30.37, "min_sea_level_pressure_inches": 30.32, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 113, "zip_code": 94107}, {"date": "12/10/2013", "max_temperature_f": 52, "mean_temperature_f": 43, "min_temperature_f": 34, "max_dew_point_f": 35, "mean_dew_point_f": 30, "min_dew_point_f": 27, "max_humidity": 70, "mean_humidity": 56, "min_humidity": 42, "max_sea_level_pressure_inches": 30.4, "mean_sea_level_pressure_inches": 30.3, "min_sea_level_pressure_inches": 30.22, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 10, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 138, "zip_code": 94107}, {"date": "12/11/2013", "max_temperature_f": 57, "mean_temperature_f": 48, "min_temperature_f": 38, "max_dew_point_f": 36, "mean_dew_point_f": 32, "min_dew_point_f": 27, "max_humidity": 85, "mean_humidity": 60, "min_humidity": 35, "max_sea_level_pressure_inches": 30.25, "mean_sea_level_pressure_inches": 30.21, "min_sea_level_pressure_inches": 30.18, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 130, "zip_code": 94107}, {"date": "12/12/2013", "max_temperature_f": 54, "mean_temperature_f": 46, "min_temperature_f": 38, "max_dew_point_f": 44, "mean_dew_point_f": 35, "min_dew_point_f": 29, "max_humidity": 86, "mean_humidity": 67, "min_humidity": 48, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.23, "min_sea_level_pressure_inches": 30.18, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 16, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 278, "zip_code": 94107}, {"date": "12/13/2013", "max_temperature_f": 53, "mean_temperature_f": 47, "min_temperature_f": 40, "max_dew_point_f": 45, "mean_dew_point_f": 41, "min_dew_point_f": 38, "max_humidity": 89, "mean_humidity": 76, "min_humidity": 63, "max_sea_level_pressure_inches": 30.34, "mean_sea_level_pressure_inches": 30.28, "min_sea_level_pressure_inches": 30.25, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 14, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 353, "zip_code": 94107}, {"date": "12/14/2013", "max_temperature_f": 61, "mean_temperature_f": 50, "min_temperature_f": 39, "max_dew_point_f": 42, "mean_dew_point_f": 37, "min_dew_point_f": 33, "max_humidity": 85, "mean_humidity": 61, "min_humidity": 36, "max_sea_level_pressure_inches": 30.4, "mean_sea_level_pressure_inches": 30.35, "min_sea_level_pressure_inches": 30.32, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 8, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 263, "zip_code": 94107}, {"date": "12/15/2013", "max_temperature_f": 60, "mean_temperature_f": 50, "min_temperature_f": 40, "max_dew_point_f": 44, "mean_dew_point_f": 38, "min_dew_point_f": 34, "max_humidity": 76, "mean_humidity": 60, "min_humidity": 43, "max_sea_level_pressure_inches": 30.36, "mean_sea_level_pressure_inches": 30.3, "min_sea_level_pressure_inches": 30.24, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 10, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 12, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 102, "zip_code": 94107}, {"date": "12/16/2013", "max_temperature_f": 65, "mean_temperature_f": 54, "min_temperature_f": 43, "max_dew_point_f": 44, "mean_dew_point_f": 37, "min_dew_point_f": 33, "max_humidity": 77, "mean_humidity": 54, "min_humidity": 31, "max_sea_level_pressure_inches": 30.23, "mean_sea_level_pressure_inches": 30.18, "min_sea_level_pressure_inches": 30.13, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 10, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 113, "zip_code": 94107}, {"date": "12/17/2013", "max_temperature_f": 59, "mean_temperature_f": 53, "min_temperature_f": 46, "max_dew_point_f": 46, "mean_dew_point_f": 41, "min_dew_point_f": 36, "max_humidity": 77, "mean_humidity": 60, "min_humidity": 43, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.11, "min_sea_level_pressure_inches": 30.04, "max_visibility_miles": 9, "mean_visibility_miles": 6, "min_visibility_miles": 5, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 8, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 96, "zip_code": 94107}, {"date": "12/18/2013", "max_temperature_f": 57, "mean_temperature_f": 51, "min_temperature_f": 44, "max_dew_point_f": 46, "mean_dew_point_f": 43, "min_dew_point_f": 38, "max_humidity": 77, "mean_humidity": 72, "min_humidity": 66, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.91, "min_sea_level_pressure_inches": 29.8, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 6, "max_wind_speed_mph": 35, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 40, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 274, "zip_code": 94107}, {"date": "12/19/2013", "max_temperature_f": 59, "mean_temperature_f": 53, "min_temperature_f": 47, "max_dew_point_f": 43, "mean_dew_point_f": 36, "min_dew_point_f": 23, "max_humidity": 77, "mean_humidity": 52, "min_humidity": 27, "max_sea_level_pressure_inches": 29.94, "mean_sea_level_pressure_inches": 29.83, "min_sea_level_pressure_inches": 29.74, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 36, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 43, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 306, "zip_code": 94107}, {"date": "12/20/2013", "max_temperature_f": 60, "mean_temperature_f": 50, "min_temperature_f": 40, "max_dew_point_f": 43, "mean_dew_point_f": 32, "min_dew_point_f": 21, "max_humidity": 71, "mean_humidity": 50, "min_humidity": 29, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 18, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 257, "zip_code": 94107}, {"date": "12/21/2013", "max_temperature_f": 60, "mean_temperature_f": 54, "min_temperature_f": 47, "max_dew_point_f": 47, "mean_dew_point_f": 45, "min_dew_point_f": 43, "max_humidity": 86, "mean_humidity": 74, "min_humidity": 62, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.03, "min_sea_level_pressure_inches": 29.98, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 288, "zip_code": 94107}, {"date": "12/22/2013", "max_temperature_f": 65, "mean_temperature_f": 54, "min_temperature_f": 43, "max_dew_point_f": 47, "mean_dew_point_f": 42, "min_dew_point_f": 37, "max_humidity": 89, "mean_humidity": 64, "min_humidity": 39, "max_sea_level_pressure_inches": 30.29, "mean_sea_level_pressure_inches": 30.21, "min_sea_level_pressure_inches": 30.1, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 337, "zip_code": 94107}, {"date": "12/23/2013", "max_temperature_f": 60, "mean_temperature_f": 52, "min_temperature_f": 44, "max_dew_point_f": 45, "mean_dew_point_f": 40, "min_dew_point_f": 37, "max_humidity": 80, "mean_humidity": 64, "min_humidity": 47, "max_sea_level_pressure_inches": 30.4, "mean_sea_level_pressure_inches": 30.35, "min_sea_level_pressure_inches": 30.3, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 8, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 9, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 32, "zip_code": 94107}, {"date": "12/24/2013", "max_temperature_f": 59, "mean_temperature_f": 52, "min_temperature_f": 45, "max_dew_point_f": 47, "mean_dew_point_f": 41, "min_dew_point_f": 38, "max_humidity": 76, "mean_humidity": 64, "min_humidity": 51, "max_sea_level_pressure_inches": 30.34, "mean_sea_level_pressure_inches": 30.27, "min_sea_level_pressure_inches": 30.21, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 8, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 308, "zip_code": 94107}, {"date": "12/25/2013", "max_temperature_f": 63, "mean_temperature_f": 53, "min_temperature_f": 42, "max_dew_point_f": 44, "mean_dew_point_f": 40, "min_dew_point_f": 36, "max_humidity": 76, "mean_humidity": 60, "min_humidity": 43, "max_sea_level_pressure_inches": 30.29, "mean_sea_level_pressure_inches": 30.25, "min_sea_level_pressure_inches": 30.2, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 6, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 8, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 218, "zip_code": 94107}, {"date": "12/26/2013", "max_temperature_f": 62, "mean_temperature_f": 53, "min_temperature_f": 43, "max_dew_point_f": 46, "mean_dew_point_f": 41, "min_dew_point_f": 38, "max_humidity": 83, "mean_humidity": 63, "min_humidity": 43, "max_sea_level_pressure_inches": 30.26, "mean_sea_level_pressure_inches": 30.22, "min_sea_level_pressure_inches": 30.17, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 8, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 24, "zip_code": 94107}, {"date": "12/27/2013", "max_temperature_f": 57, "mean_temperature_f": 50, "min_temperature_f": 43, "max_dew_point_f": 45, "mean_dew_point_f": 41, "min_dew_point_f": 37, "max_humidity": 76, "mean_humidity": 64, "min_humidity": 51, "max_sea_level_pressure_inches": 30.24, "mean_sea_level_pressure_inches": 30.19, "min_sea_level_pressure_inches": 30.13, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 8, "max_wind_speed_mph": 8, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 9, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 60, "zip_code": 94107}, {"date": "12/28/2013", "max_temperature_f": 63, "mean_temperature_f": 52, "min_temperature_f": 40, "max_dew_point_f": 45, "mean_dew_point_f": 38, "min_dew_point_f": 29, "max_humidity": 85, "mean_humidity": 59, "min_humidity": 32, "max_sea_level_pressure_inches": 30.16, "mean_sea_level_pressure_inches": 30.1, "min_sea_level_pressure_inches": 30.04, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 10, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 262, "zip_code": 94107}, {"date": "12/29/2013", "max_temperature_f": 68, "mean_temperature_f": 55, "min_temperature_f": 42, "max_dew_point_f": 37, "mean_dew_point_f": 29, "min_dew_point_f": 16, "max_humidity": 71, "mean_humidity": 43, "min_humidity": 14, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.13, "min_sea_level_pressure_inches": 30.1, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 129, "zip_code": 94107}, {"date": "12/30/2013", "max_temperature_f": 59, "mean_temperature_f": 51, "min_temperature_f": 42, "max_dew_point_f": 46, "mean_dew_point_f": 40, "min_dew_point_f": 33, "max_humidity": 86, "mean_humidity": 65, "min_humidity": 43, "max_sea_level_pressure_inches": 30.26, "mean_sea_level_pressure_inches": 30.22, "min_sea_level_pressure_inches": 30.18, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 15, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 312, "zip_code": 94107}, {"date": "12/31/2013", "max_temperature_f": 59, "mean_temperature_f": 50, "min_temperature_f": 41, "max_dew_point_f": 45, "mean_dew_point_f": 40, "min_dew_point_f": 35, "max_humidity": 93, "mean_humidity": 73, "min_humidity": 53, "max_sea_level_pressure_inches": 30.28, "mean_sea_level_pressure_inches": 30.22, "min_sea_level_pressure_inches": 30.17, "max_visibility_miles": 10, "mean_visibility_miles": 7, "min_visibility_miles": 0, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 15, "precipitation_inches": 0, "cloud_cover": 3, "events": "Fog", "wind_dir_degrees": 278, "zip_code": 94107}, {"date": "1/1/2014", "max_temperature_f": 56, "mean_temperature_f": 49, "min_temperature_f": 41, "max_dew_point_f": 45, "mean_dew_point_f": 40, "min_dew_point_f": 36, "max_humidity": 83, "mean_humidity": 69, "min_humidity": 55, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.17, "min_sea_level_pressure_inches": 30.13, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 290, "zip_code": 94107}, {"date": "1/2/2014", "max_temperature_f": 62, "mean_temperature_f": 53, "min_temperature_f": 43, "max_dew_point_f": 45, "mean_dew_point_f": 39, "min_dew_point_f": 34, "max_humidity": 80, "mean_humidity": 58, "min_humidity": 36, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.11, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 6, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 6, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 146, "zip_code": 94107}, {"date": "1/3/2014", "max_temperature_f": 64, "mean_temperature_f": 54, "min_temperature_f": 44, "max_dew_point_f": 46, "mean_dew_point_f": 41, "min_dew_point_f": 34, "max_humidity": 80, "mean_humidity": 59, "min_humidity": 37, "max_sea_level_pressure_inches": 30.08, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 29.96, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 297, "zip_code": 94107}, {"date": "1/4/2014", "max_temperature_f": 66, "mean_temperature_f": 55, "min_temperature_f": 43, "max_dew_point_f": 46, "mean_dew_point_f": 42, "min_dew_point_f": 33, "max_humidity": 93, "mean_humidity": 65, "min_humidity": 36, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 29.99, "max_visibility_miles": 10, "mean_visibility_miles": 6, "min_visibility_miles": 0, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 18, "precipitation_inches": 0, "cloud_cover": 2, "events": "Fog", "wind_dir_degrees": 266, "zip_code": 94107}, {"date": "1/5/2014", "max_temperature_f": 66, "mean_temperature_f": 55, "min_temperature_f": 44, "max_dew_point_f": 38, "mean_dew_point_f": 32, "min_dew_point_f": 27, "max_humidity": 65, "mean_humidity": 45, "min_humidity": 24, "max_sea_level_pressure_inches": 30.21, "mean_sea_level_pressure_inches": 30.16, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 15, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 125, "zip_code": 94107}, {"date": "1/6/2014", "max_temperature_f": 60, "mean_temperature_f": 52, "min_temperature_f": 44, "max_dew_point_f": 45, "mean_dew_point_f": 40, "min_dew_point_f": 32, "max_humidity": 71, "mean_humidity": 61, "min_humidity": 51, "max_sea_level_pressure_inches": 30.28, "mean_sea_level_pressure_inches": 30.21, "min_sea_level_pressure_inches": 30.17, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 75, "zip_code": 94107}, {"date": "1/7/2014", "max_temperature_f": 61, "mean_temperature_f": 54, "min_temperature_f": 46, "max_dew_point_f": 52, "mean_dew_point_f": 45, "min_dew_point_f": 39, "max_humidity": 86, "mean_humidity": 70, "min_humidity": 53, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.18, "min_sea_level_pressure_inches": 30.14, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 17, "precipitation_inches": "T", "cloud_cover": 5, "events": "Rain", "wind_dir_degrees": 304, "zip_code": 94107}, {"date": "1/8/2014", "max_temperature_f": 59, "mean_temperature_f": 56, "min_temperature_f": 52, "max_dew_point_f": 51, "mean_dew_point_f": 48, "min_dew_point_f": 46, "max_humidity": 86, "mean_humidity": 79, "min_humidity": 72, "max_sea_level_pressure_inches": 30.24, "mean_sea_level_pressure_inches": 30.2, "min_sea_level_pressure_inches": 30.16, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 3, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 24, "precipitation_inches": 0.01, "cloud_cover": 7, "events": "", "wind_dir_degrees": 281, "zip_code": 94107}, {"date": "1/9/2014", "max_temperature_f": 60, "mean_temperature_f": 56, "min_temperature_f": 52, "max_dew_point_f": 50, "mean_dew_point_f": 47, "min_dew_point_f": 43, "max_humidity": 89, "mean_humidity": 73, "min_humidity": 57, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.23, "min_sea_level_pressure_inches": 30.2, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 5, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 31, "precipitation_inches": "T", "cloud_cover": 5, "events": "", "wind_dir_degrees": 287, "zip_code": 94107}, {"date": "1/10/2014", "max_temperature_f": 60, "mean_temperature_f": 54, "min_temperature_f": 48, "max_dew_point_f": 48, "mean_dew_point_f": 46, "min_dew_point_f": 43, "max_humidity": 89, "mean_humidity": 75, "min_humidity": 60, "max_sea_level_pressure_inches": 30.31, "mean_sea_level_pressure_inches": 30.25, "min_sea_level_pressure_inches": 30.19, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 6, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 310, "zip_code": 94107}, {"date": "1/11/2014", "max_temperature_f": 58, "mean_temperature_f": 52, "min_temperature_f": 46, "max_dew_point_f": 51, "mean_dew_point_f": 46, "min_dew_point_f": 42, "max_humidity": 93, "mean_humidity": 83, "min_humidity": 72, "max_sea_level_pressure_inches": 30.3, "mean_sea_level_pressure_inches": 30.23, "min_sea_level_pressure_inches": 30.16, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 6, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 22, "precipitation_inches": "T", "cloud_cover": 4, "events": "", "wind_dir_degrees": 281, "zip_code": 94107}, {"date": "1/12/2014", "max_temperature_f": 60, "mean_temperature_f": 53, "min_temperature_f": 46, "max_dew_point_f": 47, "mean_dew_point_f": 42, "min_dew_point_f": 36, "max_humidity": 93, "mean_humidity": 70, "min_humidity": 47, "max_sea_level_pressure_inches": 30.4, "mean_sea_level_pressure_inches": 30.33, "min_sea_level_pressure_inches": 30.27, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 313, "zip_code": 94107}, {"date": "1/13/2014", "max_temperature_f": 67, "mean_temperature_f": 55, "min_temperature_f": 42, "max_dew_point_f": 44, "mean_dew_point_f": 37, "min_dew_point_f": 32, "max_humidity": 71, "mean_humidity": 50, "min_humidity": 28, "max_sea_level_pressure_inches": 30.47, "mean_sea_level_pressure_inches": 30.4, "min_sea_level_pressure_inches": 30.35, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 22, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 88, "zip_code": 94107}, {"date": "1/14/2014", "max_temperature_f": 72, "mean_temperature_f": 58, "min_temperature_f": 44, "max_dew_point_f": 42, "mean_dew_point_f": 37, "min_dew_point_f": 26, "max_humidity": 71, "mean_humidity": 45, "min_humidity": 19, "max_sea_level_pressure_inches": 30.45, "mean_sea_level_pressure_inches": 30.38, "min_sea_level_pressure_inches": 30.32, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 15, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 134, "zip_code": 94107}, {"date": "1/15/2014", "max_temperature_f": 73, "mean_temperature_f": 61, "min_temperature_f": 48, "max_dew_point_f": 40, "mean_dew_point_f": 34, "min_dew_point_f": 25, "max_humidity": 71, "mean_humidity": 44, "min_humidity": 17, "max_sea_level_pressure_inches": 30.35, "mean_sea_level_pressure_inches": 30.27, "min_sea_level_pressure_inches": 30.2, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 10, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 131, "zip_code": 94107}, {"date": "1/16/2014", "max_temperature_f": 73, "mean_temperature_f": 60, "min_temperature_f": 46, "max_dew_point_f": 44, "mean_dew_point_f": 35, "min_dew_point_f": 27, "max_humidity": 71, "mean_humidity": 45, "min_humidity": 19, "max_sea_level_pressure_inches": 30.24, "mean_sea_level_pressure_inches": 30.18, "min_sea_level_pressure_inches": 30.13, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 8, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 10, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 125, "zip_code": 94107}, {"date": "1/17/2014", "max_temperature_f": 67, "mean_temperature_f": 56, "min_temperature_f": 45, "max_dew_point_f": 45, "mean_dew_point_f": 39, "min_dew_point_f": 35, "max_humidity": 71, "mean_humidity": 53, "min_humidity": 34, "max_sea_level_pressure_inches": 30.2, "mean_sea_level_pressure_inches": 30.15, "min_sea_level_pressure_inches": 30.11, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 5, "max_wind_speed_mph": 5, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 7, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 128, "zip_code": 94107}, {"date": "1/18/2014", "max_temperature_f": 67, "mean_temperature_f": 55, "min_temperature_f": 43, "max_dew_point_f": 47, "mean_dew_point_f": 39, "min_dew_point_f": 32, "max_humidity": 77, "mean_humidity": 57, "min_humidity": 36, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.11, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 1, "max_gust_speed_mph": 12, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 128, "zip_code": 94107}, {"date": "1/19/2014", "max_temperature_f": 67, "mean_temperature_f": 55, "min_temperature_f": 43, "max_dew_point_f": 44, "mean_dew_point_f": 38, "min_dew_point_f": 34, "max_humidity": 76, "mean_humidity": 54, "min_humidity": 32, "max_sea_level_pressure_inches": 30.14, "mean_sea_level_pressure_inches": 30.1, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 8, "max_wind_speed_mph": 7, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 7, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 110, "zip_code": 94107}, {"date": "1/20/2014", "max_temperature_f": 66, "mean_temperature_f": 55, "min_temperature_f": 43, "max_dew_point_f": 48, "mean_dew_point_f": 41, "min_dew_point_f": 34, "max_humidity": 76, "mean_humidity": 60, "min_humidity": 43, "max_sea_level_pressure_inches": 30.23, "mean_sea_level_pressure_inches": 30.17, "min_sea_level_pressure_inches": 30.12, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 9, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 354, "zip_code": 94107}, {"date": "1/21/2014", "max_temperature_f": 68, "mean_temperature_f": 56, "min_temperature_f": 43, "max_dew_point_f": 44, "mean_dew_point_f": 37, "min_dew_point_f": 25, "max_humidity": 76, "mean_humidity": 48, "min_humidity": 20, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.21, "min_sea_level_pressure_inches": 30.16, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 258, "zip_code": 94107}, {"date": "1/22/2014", "max_temperature_f": 65, "mean_temperature_f": 55, "min_temperature_f": 44, "max_dew_point_f": 47, "mean_dew_point_f": 41, "min_dew_point_f": 31, "max_humidity": 77, "mean_humidity": 64, "min_humidity": 51, "max_sea_level_pressure_inches": 30.17, "mean_sea_level_pressure_inches": 30.05, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 22, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 304, "zip_code": 94107}, {"date": "1/23/2014", "max_temperature_f": 69, "mean_temperature_f": 57, "min_temperature_f": 44, "max_dew_point_f": 47, "mean_dew_point_f": 38, "min_dew_point_f": 27, "max_humidity": 80, "mean_humidity": 51, "min_humidity": 21, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.93, "min_sea_level_pressure_inches": 29.88, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 61, "zip_code": 94107}, {"date": "1/24/2014", "max_temperature_f": 64, "mean_temperature_f": 55, "min_temperature_f": 46, "max_dew_point_f": 47, "mean_dew_point_f": 41, "min_dew_point_f": 32, "max_humidity": 80, "mean_humidity": 56, "min_humidity": 32, "max_sea_level_pressure_inches": 30.28, "mean_sea_level_pressure_inches": 30.16, "min_sea_level_pressure_inches": 30.03, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 4, "max_wind_speed_mph": 9, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 9, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 5, "zip_code": 94107}, {"date": "1/25/2014", "max_temperature_f": 65, "mean_temperature_f": 57, "min_temperature_f": 48, "max_dew_point_f": 48, "mean_dew_point_f": 43, "min_dew_point_f": 34, "max_humidity": 83, "mean_humidity": 60, "min_humidity": 37, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.19, "min_sea_level_pressure_inches": 30.13, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 13, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 281, "zip_code": 94107}, {"date": "1/26/2014", "max_temperature_f": 66, "mean_temperature_f": 57, "min_temperature_f": 48, "max_dew_point_f": 48, "mean_dew_point_f": 43, "min_dew_point_f": 33, "max_humidity": 83, "mean_humidity": 65, "min_humidity": 46, "max_sea_level_pressure_inches": 30.14, "mean_sea_level_pressure_inches": 30.09, "min_sea_level_pressure_inches": 30.03, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 24, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 317, "zip_code": 94107}, {"date": "1/27/2014", "max_temperature_f": 59, "mean_temperature_f": 54, "min_temperature_f": 48, "max_dew_point_f": 48, "mean_dew_point_f": 46, "min_dew_point_f": 43, "max_humidity": 83, "mean_humidity": 73, "min_humidity": 62, "max_sea_level_pressure_inches": 30.21, "mean_sea_level_pressure_inches": 30.15, "min_sea_level_pressure_inches": 30.08, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 301, "zip_code": 94107}, {"date": "1/28/2014", "max_temperature_f": 65, "mean_temperature_f": 59, "min_temperature_f": 53, "max_dew_point_f": 57, "mean_dew_point_f": 53, "min_dew_point_f": 47, "max_humidity": 90, "mean_humidity": 81, "min_humidity": 72, "max_sea_level_pressure_inches": 30.27, "mean_sea_level_pressure_inches": 30.22, "min_sea_level_pressure_inches": 30.2, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 2, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 7, "events": "", "wind_dir_degrees": 290, "zip_code": 94107}, {"date": "1/29/2014", "max_temperature_f": 63, "mean_temperature_f": 59, "min_temperature_f": 54, "max_dew_point_f": 57, "mean_dew_point_f": 54, "min_dew_point_f": 50, "max_humidity": 93, "mean_humidity": 89, "min_humidity": 84, "max_sea_level_pressure_inches": 30.2, "mean_sea_level_pressure_inches": 30.11, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 22, "precipitation_inches": "T", "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 282, "zip_code": 94107}, {"date": "1/30/2014", "max_temperature_f": 58, "mean_temperature_f": 55, "min_temperature_f": 52, "max_dew_point_f": 51, "mean_dew_point_f": 48, "min_dew_point_f": 46, "max_humidity": 93, "mean_humidity": 80, "min_humidity": 67, "max_sea_level_pressure_inches": 29.98, "mean_sea_level_pressure_inches": 29.91, "min_sea_level_pressure_inches": 29.88, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 30, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 38, "precipitation_inches": "T", "cloud_cover": 6, "events": "Rain", "wind_dir_degrees": 267, "zip_code": 94107}, {"date": "1/31/2014", "max_temperature_f": 60, "mean_temperature_f": 54, "min_temperature_f": 47, "max_dew_point_f": 46, "mean_dew_point_f": 42, "min_dew_point_f": 36, "max_humidity": 86, "mean_humidity": 63, "min_humidity": 39, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 29.92, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 32, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 38, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 285, "zip_code": 94107}, {"date": "2/1/2014", "max_temperature_f": 59, "mean_temperature_f": 51, "min_temperature_f": 42, "max_dew_point_f": 43, "mean_dew_point_f": 39, "min_dew_point_f": 36, "max_humidity": 82, "mean_humidity": 63, "min_humidity": 43, "max_sea_level_pressure_inches": 30.17, "mean_sea_level_pressure_inches": 30.12, "min_sea_level_pressure_inches": 30.08, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 270, "zip_code": 94107}, {"date": "2/2/2014", "max_temperature_f": 58, "mean_temperature_f": 53, "min_temperature_f": 47, "max_dew_point_f": 44, "mean_dew_point_f": 42, "min_dew_point_f": 36, "max_humidity": 86, "mean_humidity": 74, "min_humidity": 61, "max_sea_level_pressure_inches": 30.04, "mean_sea_level_pressure_inches": 29.92, "min_sea_level_pressure_inches": 29.85, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 4, "max_wind_speed_mph": 29, "mean_wind_speed_mph": 12, "max_gust_speed_mph": 33, "precipitation_inches": 0.85, "cloud_cover": 7, "events": "Rain", "wind_dir_degrees": 111, "zip_code": 94107}, {"date": "2/3/2014", "max_temperature_f": 56, "mean_temperature_f": 51, "min_temperature_f": 46, "max_dew_point_f": 43, "mean_dew_point_f": 41, "min_dew_point_f": 39, "max_humidity": 82, "mean_humidity": 69, "min_humidity": 55, "max_sea_level_pressure_inches": 30.09, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 29.99, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 25, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 32, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 306, "zip_code": 94107}, {"date": "2/4/2014", "max_temperature_f": 55, "mean_temperature_f": 50, "min_temperature_f": 44, "max_dew_point_f": 44, "mean_dew_point_f": 40, "min_dew_point_f": 36, "max_humidity": 83, "mean_humidity": 67, "min_humidity": 50, "max_sea_level_pressure_inches": 30.17, "mean_sea_level_pressure_inches": 30.12, "min_sea_level_pressure_inches": 30.09, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 288, "zip_code": 94107}, {"date": "2/5/2014", "max_temperature_f": 55, "mean_temperature_f": 49, "min_temperature_f": 43, "max_dew_point_f": 46, "mean_dew_point_f": 42, "min_dew_point_f": 38, "max_humidity": 86, "mean_humidity": 73, "min_humidity": 59, "max_sea_level_pressure_inches": 30.21, "mean_sea_level_pressure_inches": 30.15, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 24, "precipitation_inches": 0.09, "cloud_cover": 6, "events": "Rain", "wind_dir_degrees": 255, "zip_code": 94107}, {"date": "2/6/2014", "max_temperature_f": 52, "mean_temperature_f": 50, "min_temperature_f": 48, "max_dew_point_f": 52, "mean_dew_point_f": 48, "min_dew_point_f": 42, "max_humidity": 100, "mean_humidity": 90, "min_humidity": 80, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 2, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 23, "precipitation_inches": 0.64, "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 100, "zip_code": 94107}, {"date": "2/7/2014", "max_temperature_f": 56, "mean_temperature_f": 54, "min_temperature_f": 51, "max_dew_point_f": 54, "mean_dew_point_f": 51, "min_dew_point_f": 49, "max_humidity": 100, "mean_humidity": 92, "min_humidity": 83, "max_sea_level_pressure_inches": 30.08, "mean_sea_level_pressure_inches": 30.04, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 3, "max_wind_speed_mph": 31, "mean_wind_speed_mph": 11, "max_gust_speed_mph": 40, "precipitation_inches": 0.23, "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 152, "zip_code": 94107}, {"date": "2/8/2014", "max_temperature_f": 59, "mean_temperature_f": 56, "min_temperature_f": 53, "max_dew_point_f": 58, "mean_dew_point_f": 55, "min_dew_point_f": 49, "max_humidity": 100, "mean_humidity": 92, "min_humidity": 83, "max_sea_level_pressure_inches": 30.15, "mean_sea_level_pressure_inches": 30.1, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 5, "min_visibility_miles": 2, "max_wind_speed_mph": 28, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 37, "precipitation_inches": 0.42, "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 164, "zip_code": 94107}, {"date": "2/9/2014", "max_temperature_f": 59, "mean_temperature_f": 57, "min_temperature_f": 55, "max_dew_point_f": 58, "mean_dew_point_f": 56, "min_dew_point_f": 52, "max_humidity": 100, "mean_humidity": 92, "min_humidity": 83, "max_sea_level_pressure_inches": 30.16, "mean_sea_level_pressure_inches": 30.12, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 6, "min_visibility_miles": 2, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 26, "precipitation_inches": 0.35, "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 174, "zip_code": 94107}, {"date": "2/10/2014", "max_temperature_f": 57, "mean_temperature_f": 54, "min_temperature_f": 51, "max_dew_point_f": 54, "mean_dew_point_f": 52, "min_dew_point_f": 50, "max_humidity": 100, "mean_humidity": 93, "min_humidity": 86, "max_sea_level_pressure_inches": 30.29, "mean_sea_level_pressure_inches": 30.23, "min_sea_level_pressure_inches": 30.14, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 2, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 20, "precipitation_inches": "T", "cloud_cover": 7, "events": "Rain", "wind_dir_degrees": 274, "zip_code": 94107}, {"date": "2/11/2014", "max_temperature_f": 56, "mean_temperature_f": 53, "min_temperature_f": 49, "max_dew_point_f": 51, "mean_dew_point_f": 49, "min_dew_point_f": 48, "max_humidity": 100, "mean_humidity": 92, "min_humidity": 83, "max_sea_level_pressure_inches": 30.26, "mean_sea_level_pressure_inches": 30.22, "min_sea_level_pressure_inches": 30.18, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 287, "zip_code": 94107}, {"date": "2/12/2014", "max_temperature_f": 56, "mean_temperature_f": 51, "min_temperature_f": 46, "max_dew_point_f": 51, "mean_dew_point_f": 48, "min_dew_point_f": 45, "max_humidity": 100, "mean_humidity": 92, "min_humidity": 83, "max_sea_level_pressure_inches": 30.29, "mean_sea_level_pressure_inches": 30.24, "min_sea_level_pressure_inches": 30.2, "max_visibility_miles": 10, "mean_visibility_miles": 7, "min_visibility_miles": 0, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 22, "precipitation_inches": 0, "cloud_cover": 6, "events": "Fog", "wind_dir_degrees": 278, "zip_code": 94107}, {"date": "2/13/2014", "max_temperature_f": 67, "mean_temperature_f": 59, "min_temperature_f": 50, "max_dew_point_f": 57, "mean_dew_point_f": 53, "min_dew_point_f": 50, "max_humidity": 100, "mean_humidity": 87, "min_humidity": 73, "max_sea_level_pressure_inches": 30.23, "mean_sea_level_pressure_inches": 30.17, "min_sea_level_pressure_inches": 30.11, "max_visibility_miles": 10, "mean_visibility_miles": 6, "min_visibility_miles": 0, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 6, "events": "Fog", "wind_dir_degrees": 288, "zip_code": 94107}, {"date": "2/14/2014", "max_temperature_f": 66, "mean_temperature_f": 61, "min_temperature_f": 56, "max_dew_point_f": 55, "mean_dew_point_f": 54, "min_dew_point_f": 50, "max_humidity": 100, "mean_humidity": 80, "min_humidity": 60, "max_sea_level_pressure_inches": 30.18, "mean_sea_level_pressure_inches": 30.13, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 2, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 16, "precipitation_inches": 0, "cloud_cover": 7, "events": "", "wind_dir_degrees": 293, "zip_code": 94107}, {"date": "2/15/2014", "max_temperature_f": 62, "mean_temperature_f": 57, "min_temperature_f": 52, "max_dew_point_f": 55, "mean_dew_point_f": 52, "min_dew_point_f": 49, "max_humidity": 93, "mean_humidity": 83, "min_humidity": 72, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 7, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 21, "precipitation_inches": "T", "cloud_cover": 7, "events": "Rain", "wind_dir_degrees": 174, "zip_code": 94107}, {"date": "2/16/2014", "max_temperature_f": 63, "mean_temperature_f": 57, "min_temperature_f": 50, "max_dew_point_f": 54, "mean_dew_point_f": 47, "min_dew_point_f": 40, "max_humidity": 93, "mean_humidity": 68, "min_humidity": 43, "max_sea_level_pressure_inches": 30.21, "mean_sea_level_pressure_inches": 30.14, "min_sea_level_pressure_inches": 30.06, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 6, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 23, "precipitation_inches": 0.01, "cloud_cover": 3, "events": "", "wind_dir_degrees": 292, "zip_code": 94107}, {"date": "2/17/2014", "max_temperature_f": 61, "mean_temperature_f": 54, "min_temperature_f": 46, "max_dew_point_f": 49, "mean_dew_point_f": 45, "min_dew_point_f": 42, "max_humidity": 86, "mean_humidity": 69, "min_humidity": 51, "max_sea_level_pressure_inches": 30.19, "mean_sea_level_pressure_inches": 30.16, "min_sea_level_pressure_inches": 30.11, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 10, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 280, "zip_code": 94107}, {"date": "2/18/2014", "max_temperature_f": 62, "mean_temperature_f": 55, "min_temperature_f": 48, "max_dew_point_f": 53, "mean_dew_point_f": 49, "min_dew_point_f": 45, "max_humidity": 93, "mean_humidity": 80, "min_humidity": 67, "max_sea_level_pressure_inches": 30.2, "mean_sea_level_pressure_inches": 30.15, "min_sea_level_pressure_inches": 30.12, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 5, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 272, "zip_code": 94107}, {"date": "2/19/2014", "max_temperature_f": 62, "mean_temperature_f": 57, "min_temperature_f": 51, "max_dew_point_f": 54, "mean_dew_point_f": 48, "min_dew_point_f": 43, "max_humidity": 93, "mean_humidity": 72, "min_humidity": 51, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.16, "min_sea_level_pressure_inches": 30.12, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 14, "max_gust_speed_mph": 26, "precipitation_inches": 0.01, "cloud_cover": 4, "events": "", "wind_dir_degrees": 276, "zip_code": 94107}, {"date": "2/20/2014", "max_temperature_f": 67, "mean_temperature_f": 56, "min_temperature_f": 45, "max_dew_point_f": 47, "mean_dew_point_f": 44, "min_dew_point_f": 41, "max_humidity": 86, "mean_humidity": 65, "min_humidity": 43, "max_sea_level_pressure_inches": 30.22, "mean_sea_level_pressure_inches": 30.17, "min_sea_level_pressure_inches": 30.12, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 9, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 22, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 277, "zip_code": 94107}, {"date": "2/21/2014", "max_temperature_f": 69, "mean_temperature_f": 58, "min_temperature_f": 47, "max_dew_point_f": 51, "mean_dew_point_f": 46, "min_dew_point_f": 40, "max_humidity": 86, "mean_humidity": 61, "min_humidity": 35, "max_sea_level_pressure_inches": 30.12, "mean_sea_level_pressure_inches": 30.06, "min_sea_level_pressure_inches": 30, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 22, "mean_wind_speed_mph": 7, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 282, "zip_code": 94107}, {"date": "2/22/2014", "max_temperature_f": 66, "mean_temperature_f": 56, "min_temperature_f": 46, "max_dew_point_f": 52, "mean_dew_point_f": 48, "min_dew_point_f": 43, "max_humidity": 93, "mean_humidity": 78, "min_humidity": 63, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 29.99, "min_sea_level_pressure_inches": 29.94, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 9, "max_gust_speed_mph": 28, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 286, "zip_code": 94107}, {"date": "2/23/2014", "max_temperature_f": 63, "mean_temperature_f": 55, "min_temperature_f": 46, "max_dew_point_f": 52, "mean_dew_point_f": 47, "min_dew_point_f": 44, "max_humidity": 93, "mean_humidity": 81, "min_humidity": 69, "max_sea_level_pressure_inches": 30.04, "mean_sea_level_pressure_inches": 30, "min_sea_level_pressure_inches": 29.96, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 6, "max_wind_speed_mph": 23, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 26, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 268, "zip_code": 94107}, {"date": "2/24/2014", "max_temperature_f": 71, "mean_temperature_f": 58, "min_temperature_f": 45, "max_dew_point_f": 53, "mean_dew_point_f": 47, "min_dew_point_f": 41, "max_humidity": 89, "mean_humidity": 65, "min_humidity": 40, "max_sea_level_pressure_inches": 30.01, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 21, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 302, "zip_code": 94107}, {"date": "2/25/2014", "max_temperature_f": 62, "mean_temperature_f": 55, "min_temperature_f": 48, "max_dew_point_f": 53, "mean_dew_point_f": 48, "min_dew_point_f": 45, "max_humidity": 89, "mean_humidity": 78, "min_humidity": 67, "max_sea_level_pressure_inches": 29.99, "mean_sea_level_pressure_inches": 29.95, "min_sea_level_pressure_inches": 29.92, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 7, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 6, "events": "", "wind_dir_degrees": 215, "zip_code": 94107}, {"date": "2/26/2014", "max_temperature_f": 60, "mean_temperature_f": 57, "min_temperature_f": 54, "max_dew_point_f": 56, "mean_dew_point_f": 52, "min_dew_point_f": 47, "max_humidity": 93, "mean_humidity": 80, "min_humidity": 67, "max_sea_level_pressure_inches": 29.96, "mean_sea_level_pressure_inches": 29.84, "min_sea_level_pressure_inches": 29.69, "max_visibility_miles": 10, "mean_visibility_miles": 9, "min_visibility_miles": 4, "max_wind_speed_mph": 31, "mean_wind_speed_mph": 15, "max_gust_speed_mph": 39, "precipitation_inches": 0.43, "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 147, "zip_code": 94107}, {"date": "2/27/2014", "max_temperature_f": 62, "mean_temperature_f": 58, "min_temperature_f": 55, "max_dew_point_f": 52, "mean_dew_point_f": 51, "min_dew_point_f": 51, "max_humidity": 89, "mean_humidity": 81, "min_humidity": 67, "max_sea_level_pressure_inches": 29.91, "mean_sea_level_pressure_inches": 29.85, "min_sea_level_pressure_inches": 29.78, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 8, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 15, "max_gust_speed_mph": 35, "precipitation_inches": 0.22, "cloud_cover": 8, "events": "Rain", "wind_dir_degrees": 205, "zip_code": 94107}, {"date": "2/28/2014", "max_temperature_f": 63, "mean_temperature_f": 59, "min_temperature_f": 55, "max_dew_point_f": 54, "mean_dew_point_f": 50, "min_dew_point_f": 43, "max_humidity": 86, "mean_humidity": 65, "min_humidity": 43, "max_sea_level_pressure_inches": 29.5, "mean_sea_level_pressure_inches": 29.43, "min_sea_level_pressure_inches": 29.39, "max_visibility_miles": 10, "mean_visibility_miles": 8, "min_visibility_miles": 1, "max_wind_speed_mph": 26, "mean_wind_speed_mph": 13, "max_gust_speed_mph": 33, "precipitation_inches": 0.74, "cloud_cover": 8, "events": "rain", "wind_dir_degrees": 208, "zip_code": 94107}, {"date": "8/29/2013", "max_temperature_f": 80, "mean_temperature_f": 71, "min_temperature_f": 62, "max_dew_point_f": 63, "mean_dew_point_f": 59, "min_dew_point_f": 57, "max_humidity": 94, "mean_humidity": 79, "min_humidity": 48, "max_sea_level_pressure_inches": 30.07, "mean_sea_level_pressure_inches": 30.02, "min_sea_level_pressure_inches": 29.97, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 14, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 313, "zip_code": 94063}, {"date": "8/30/2013", "max_temperature_f": 86, "mean_temperature_f": 74, "min_temperature_f": 62, "max_dew_point_f": 64, "mean_dew_point_f": 59, "min_dew_point_f": 54, "max_humidity": 94, "mean_humidity": 73, "min_humidity": 35, "max_sea_level_pressure_inches": 30.08, "mean_sea_level_pressure_inches": 30.01, "min_sea_level_pressure_inches": 29.93, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 2, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 292, "zip_code": 94063}, {"date": "8/31/2013", "max_temperature_f": 77, "mean_temperature_f": 68, "min_temperature_f": 59, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 55, "max_humidity": 88, "mean_humidity": 72, "min_humidity": 50, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.92, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 4, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 324, "zip_code": 94063}, {"date": "9/1/2013", "max_temperature_f": 80, "mean_temperature_f": 71, "min_temperature_f": 62, "max_dew_point_f": 61, "mean_dew_point_f": 57, "min_dew_point_f": 55, "max_humidity": 82, "mean_humidity": 72, "min_humidity": 42, "max_sea_level_pressure_inches": 29.97, "mean_sea_level_pressure_inches": 29.94, "min_sea_level_pressure_inches": 29.89, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 294, "zip_code": 94063}, {"date": "9/2/2013", "max_temperature_f": 77, "mean_temperature_f": 70, "min_temperature_f": 64, "max_dew_point_f": 64, "mean_dew_point_f": 61, "min_dew_point_f": 57, "max_humidity": 88, "mean_humidity": 79, "min_humidity": 57, "max_sea_level_pressure_inches": 29.98, "mean_sea_level_pressure_inches": 29.94, "min_sea_level_pressure_inches": 29.9, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 13, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 291, "zip_code": 94063}, {"date": "9/3/2013", "max_temperature_f": 77, "mean_temperature_f": 68, "min_temperature_f": 59, "max_dew_point_f": 59, "mean_dew_point_f": 55, "min_dew_point_f": 48, "max_humidity": 83, "mean_humidity": 71, "min_humidity": 36, "max_sea_level_pressure_inches": 30.02, "mean_sea_level_pressure_inches": 29.98, "min_sea_level_pressure_inches": 29.96, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 16, "mean_wind_speed_mph": 5, "max_gust_speed_mph": 20, "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 284, "zip_code": 94063}, {"date": "9/4/2013", "max_temperature_f": 75, "mean_temperature_f": 68, "min_temperature_f": 60, "max_dew_point_f": 57, "mean_dew_point_f": 56, "min_dew_point_f": 50, "max_humidity": 82, "mean_humidity": 73, "min_humidity": 41, "max_sea_level_pressure_inches": 30.05, "mean_sea_level_pressure_inches": 30.01, "min_sea_level_pressure_inches": 29.98, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 17, "mean_wind_speed_mph": 6, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 1, "events": "", "wind_dir_degrees": 277, "zip_code": 94063}, {"date": "9/5/2013", "max_temperature_f": 75, "mean_temperature_f": 68, "min_temperature_f": 62, "max_dew_point_f": 57, "mean_dew_point_f": 55, "min_dew_point_f": 50, "max_humidity": 82, "mean_humidity": 70, "min_humidity": 41, "max_sea_level_pressure_inches": 30.03, "mean_sea_level_pressure_inches": 30, "min_sea_level_pressure_inches": 29.98, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 21, "mean_wind_speed_mph": 8, "max_gust_speed_mph": 25, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 279, "zip_code": 94063}, {"date": "9/6/2013", "max_temperature_f": 89, "mean_temperature_f": 73, "min_temperature_f": 57, "max_dew_point_f": 59, "mean_dew_point_f": 51, "min_dew_point_f": 45, "max_humidity": 88, "mean_humidity": 60, "min_humidity": 24, "max_sea_level_pressure_inches": 30.01, "mean_sea_level_pressure_inches": 29.94, "min_sea_level_pressure_inches": 29.83, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 10, "mean_wind_speed_mph": 1, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 295, "zip_code": 94063}, {"date": "9/7/2013", "max_temperature_f": 91, "mean_temperature_f": 78, "min_temperature_f": 64, "max_dew_point_f": 61, "mean_dew_point_f": 52, "min_dew_point_f": 46, "max_humidity": 77, "mean_humidity": 55, "min_humidity": 23, "max_sea_level_pressure_inches": 29.89, "mean_sea_level_pressure_inches": 29.85, "min_sea_level_pressure_inches": 29.8, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 3, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 327, "zip_code": 94063}, {"date": "9/8/2013", "max_temperature_f": 78, "mean_temperature_f": 68, "min_temperature_f": 59, "max_dew_point_f": 61, "mean_dew_point_f": 57, "min_dew_point_f": 54, "max_humidity": 88, "mean_humidity": 77, "min_humidity": 44, "max_sea_level_pressure_inches": 29.89, "mean_sea_level_pressure_inches": 29.85, "min_sea_level_pressure_inches": 29.76, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 8, "mean_wind_speed_mph": 3, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 350, "zip_code": 94063}, {"date": "9/9/2013", "max_temperature_f": 87, "mean_temperature_f": 73, "min_temperature_f": 59, "max_dew_point_f": 63, "mean_dew_point_f": 57, "min_dew_point_f": 48, "max_humidity": 88, "mean_humidity": 77, "min_humidity": 25, "max_sea_level_pressure_inches": 29.83, "mean_sea_level_pressure_inches": 29.78, "min_sea_level_pressure_inches": 29.72, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 12, "mean_wind_speed_mph": 3, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 0, "events": "", "wind_dir_degrees": 336, "zip_code": 94063}, {"date": "9/10/2013", "max_temperature_f": 77, "mean_temperature_f": 70, "min_temperature_f": 62, "max_dew_point_f": 63, "mean_dew_point_f": 57, "min_dew_point_f": 55, "max_humidity": 88, "mean_humidity": 76, "min_humidity": 50, "max_sea_level_pressure_inches": 29.91, "mean_sea_level_pressure_inches": 29.81, "min_sea_level_pressure_inches": 29.76, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 16, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 17, "precipitation_inches": 0, "cloud_cover": 3, "events": "", "wind_dir_degrees": 298, "zip_code": 94063}, {"date": "9/11/2013", "max_temperature_f": 75, "mean_temperature_f": 67, "min_temperature_f": 59, "max_dew_point_f": 59, "mean_dew_point_f": 56, "min_dew_point_f": 54, "max_humidity": 82, "mean_humidity": 74, "min_humidity": 53, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.95, "min_sea_level_pressure_inches": 29.91, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 18, "mean_wind_speed_mph": 4, "max_gust_speed_mph": 23, "precipitation_inches": 0, "cloud_cover": 2, "events": "", "wind_dir_degrees": 267, "zip_code": 94063}, {"date": "9/12/2013", "max_temperature_f": 75, "mean_temperature_f": 68, "min_temperature_f": 60, "max_dew_point_f": 61, "mean_dew_point_f": 57, "min_dew_point_f": 55, "max_humidity": 88, "mean_humidity": 78, "min_humidity": 57, "max_sea_level_pressure_inches": 30, "mean_sea_level_pressure_inches": 29.96, "min_sea_level_pressure_inches": 29.9, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 20, "mean_wind_speed_mph": 3, "max_gust_speed_mph": 18, "precipitation_inches": 0, "cloud_cover": 5, "events": "", "wind_dir_degrees": 297, "zip_code": 94063}, {"date": "9/13/2013", "max_temperature_f": 75, "mean_temperature_f": 67, "min_temperature_f": 59, "max_dew_point_f": 59, "mean_dew_point_f": 55, "min_dew_point_f": 52, "max_humidity": 88, "mean_humidity": 77, "min_humidity": 50, "max_sea_level_pressure_inches": 29.93, "mean_sea_level_pressure_inches": 29.88, "min_sea_level_pressure_inches": 29.8, "max_visibility_miles": 10, "mean_visibility_miles": 10, "min_visibility_miles": 10, "max_wind_speed_mph": 15, "mean_wind_speed_mph": 6, "max_gust_speed_mph": "", "precipitation_inches": 0, "cloud_cover": 4, "events": "", "wind_dir_degrees": 294, "zip_code": 94063}]}, "correct_code": "-- Load bike_1__weather data\nweather = load(\"weather\")\n\nfiltered_weather = weather\n |> filter(events == \"Fog-Rain\")\n\nsummary = filtered_weather\n |> group_by(date)\n |> aggregate(avg_max_sea_level_pressure_inches: avg(max_sea_level_pressure_inches), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load bike_1__weather data\nweather = load(\"weather\")\n\nfiltered_weather = weather\n |> filter(events == \"Fog-Rai\")\n\nsummary = filtered_weather\n |> group_by(date)\n |> aggregate(avg_max_sea_level_pressure_inches: avg(max_sea_level_pressure_inches), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"date": "12/2/2013", "avg_max_sea_level_pressure_inches": 30.22, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Fog-Rain' \u2192 'Fog-Rai'", "line_num": 5, "original": "|> filter(events == \"Fog-Rain\")", "mutated": "|> filter(events == \"Fog-Rai\")"}], "difficulty": "hard", "domain": "bike_1__weather", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"templates": [{"template_id": 0, "version_number": 5, "template_type_code": "PP", "date_effective_from": "2005-11-12 07:09:48", "date_effective_to": "2008-01-05 14:19:28", "template_details": ""}, {"template_id": 1, "version_number": 9, "template_type_code": "PP", "date_effective_from": "2010-09-24 01:15:11", "date_effective_to": "1999-07-08 03:31:04", "template_details": ""}, {"template_id": 4, "version_number": 4, "template_type_code": "BK", "date_effective_from": "2002-03-02 14:39:49", "date_effective_to": "2001-04-18 09:29:52", "template_details": ""}, {"template_id": 6, "version_number": 2, "template_type_code": "PPT", "date_effective_from": "1975-05-20 22:51:19", "date_effective_to": "1992-05-02 20:06:11", "template_details": ""}, {"template_id": 7, "version_number": 8, "template_type_code": "PPT", "date_effective_from": "1993-10-07 02:33:04", "date_effective_to": "1975-07-16 04:52:10", "template_details": ""}, {"template_id": 8, "version_number": 3, "template_type_code": "BK", "date_effective_from": "1983-07-16 21:16:16", "date_effective_to": "1976-10-28 10:08:50", "template_details": ""}, {"template_id": 9, "version_number": 2, "template_type_code": "BK", "date_effective_from": "1997-04-17 08:29:44", "date_effective_to": "1994-12-07 13:26:23", "template_details": ""}, {"template_id": 10, "version_number": 1, "template_type_code": "PPT", "date_effective_from": "2003-06-05 04:03:45", "date_effective_to": "2007-06-06 06:18:53", "template_details": ""}, {"template_id": 11, "version_number": 6, "template_type_code": "BK", "date_effective_from": "1996-02-04 11:27:24", "date_effective_to": "1995-09-19 22:27:48", "template_details": ""}, {"template_id": 14, "version_number": 7, "template_type_code": "AD", "date_effective_from": "1975-10-20 02:28:58", "date_effective_to": "1979-11-04 08:58:39", "template_details": ""}, {"template_id": 15, "version_number": 9, "template_type_code": "CV", "date_effective_from": "1986-12-09 14:51:36", "date_effective_to": "1993-03-24 14:30:23", "template_details": ""}, {"template_id": 16, "version_number": 5, "template_type_code": "CV", "date_effective_from": "2012-04-05 07:11:42", "date_effective_to": "1980-05-07 12:15:47", "template_details": ""}, {"template_id": 18, "version_number": 5, "template_type_code": "PP", "date_effective_from": "1984-08-07 13:36:26", "date_effective_to": "1998-05-12 12:51:29", "template_details": ""}, {"template_id": 19, "version_number": 7, "template_type_code": "AD", "date_effective_from": "1999-06-21 11:10:30", "date_effective_to": "1974-09-14 06:34:39", "template_details": ""}, {"template_id": 20, "version_number": 6, "template_type_code": "BK", "date_effective_from": "1986-11-14 12:20:18", "date_effective_to": "2008-08-08 18:36:43", "template_details": ""}, {"template_id": 21, "version_number": 9, "template_type_code": "AD", "date_effective_from": "2002-08-25 13:26:23", "date_effective_to": "2015-09-06 01:08:44", "template_details": ""}, {"template_id": 22, "version_number": 0, "template_type_code": "PP", "date_effective_from": "2005-02-20 00:31:34", "date_effective_to": "1989-11-24 19:06:06", "template_details": ""}, {"template_id": 23, "version_number": 2, "template_type_code": "BK", "date_effective_from": "1979-12-24 10:28:16", "date_effective_to": "2000-10-22 11:57:12", "template_details": ""}, {"template_id": 24, "version_number": 8, "template_type_code": "PP", "date_effective_from": "2008-08-01 13:57:26", "date_effective_to": "1973-01-12 14:13:34", "template_details": ""}, {"template_id": 25, "version_number": 5, "template_type_code": "PP", "date_effective_from": "1979-10-20 21:23:20", "date_effective_to": "2006-02-06 23:52:04", "template_details": ""}], "documents": [{"document_id": 0, "template_id": 7, "document_name": "Introduction of OS", "document_description": "n", "other_details": 0}, {"document_id": 1, "template_id": 25, "document_name": "Understanding DB", "document_description": "y", "other_details": 0}, {"document_id": 3, "template_id": 6, "document_name": "Summer Show", "document_description": "u", "other_details": 0}, {"document_id": 76, "template_id": 20, "document_name": "Robbin CV", "document_description": "y", "other_details": 0}, {"document_id": 80, "template_id": 14, "document_name": "Welcome to NY", "document_description": "h", "other_details": 0}, {"document_id": 82, "template_id": 11, "document_name": "Data base", "document_description": "w", "other_details": 0}, {"document_id": 2394, "template_id": 10, "document_name": "Customer reviews", "document_description": "y", "other_details": 0}, {"document_id": 3830, "template_id": 14, "document_name": "Do not panic", "document_description": "k", "other_details": 0}, {"document_id": 33930, "template_id": 1, "document_name": "How Google people work", "document_description": "z", "other_details": 0}, {"document_id": 50123, "template_id": 22, "document_name": "Learning French", "document_description": "r", "other_details": 0}, {"document_id": 651512, "template_id": 21, "document_name": "How to write a CV", "document_description": "f", "other_details": 0}, {"document_id": 801801, "template_id": 4, "document_name": "How to read a book", "document_description": "w", "other_details": 0}, {"document_id": 3540024, "template_id": 8, "document_name": "Palm reading", "document_description": "y", "other_details": 0}, {"document_id": 16514113, "template_id": 25, "document_name": "A history of Arts", "document_description": "h", "other_details": 0}, {"document_id": 385906526, "template_id": 11, "document_name": "About Korea", "document_description": "b", "other_details": 0}]}, "correct_code": "-- Load cre_Doc_Template_Mgt__templates data\ntemplates = load(\"templates\")\n\nfiltered_templates = templates\n |> filter(version_number >= 0)\n |> select(template_type_code, template_details, template_id)\n\n-- Load lookup data\ndocuments = load(\"documents\")\n |> select(template_id, other_details, document_description)\n\nenriched = join(filtered_templates, documents, on: template_id == template_id)\n\nresult = enriched\n |> sort_by(template_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load cre_Doc_Template_Mgt__templates data\ntemplates = load(\"templates\")\n\nfiltered_templates = templates\n |> filter(version_number >= 0)\n |> select(template_type_code, template_details, template_id)\n\n-- Load lookup data\ndocuments = load(\"documents\")\n |> select(template_id, other_details, other_details)\n\nenriched = join(filtered_templates, documents, on: template_id == template_id)\n\nresult = enriched\n |> sort_by(template_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"template_type_code": "PP", "template_details": "", "template_id": 25, "other_details": 0, "document_description": "y"}, {"template_type_code": "PP", "template_details": "", "template_id": 25, "other_details": 0, "document_description": "h"}, {"template_type_code": "PP", "template_details": "", "template_id": 22, "other_details": 0, "document_description": "r"}, {"template_type_code": "AD", "template_details": "", "template_id": 21, "other_details": 0, "document_description": "f"}, {"template_type_code": "BK", "template_details": "", "template_id": 20, "other_details": 0, "document_description": "y"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'document_description' \u2192 'other_details'", "line_num": 10, "original": "|> select(template_id, other_details, document_description)", "mutated": "|> select(template_id, other_details, other_details)"}], "difficulty": "hard", "domain": "cre_Doc_Template_Mgt__templates", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"status": [{"statusid": 1, "status": "Finished"}, {"statusid": 2, "status": "Disqualified"}, {"statusid": 3, "status": "Accident"}, {"statusid": 4, "status": "Collision"}, {"statusid": 5, "status": "Engine"}, {"statusid": 6, "status": "Gearbox"}, {"statusid": 7, "status": "Transmission"}, {"statusid": 8, "status": "Clutch"}, {"statusid": 9, "status": "Hydraulics"}, {"statusid": 10, "status": "Electrical"}, {"statusid": 11, "status": "+1 Lap"}, {"statusid": 12, "status": "+2 Laps"}, {"statusid": 13, "status": "+3 Laps"}, {"statusid": 14, "status": "+4 Laps"}, {"statusid": 15, "status": "+5 Laps"}, {"statusid": 16, "status": "+6 Laps"}, {"statusid": 17, "status": "+7 Laps"}, {"statusid": 18, "status": "+8 Laps"}, {"statusid": 19, "status": "+9 Laps"}, {"statusid": 20, "status": "Spun off"}, {"statusid": 21, "status": "Radiator"}, {"statusid": 22, "status": "Suspension"}, {"statusid": 23, "status": "Brakes"}, {"statusid": 24, "status": "Differential"}, {"statusid": 25, "status": "Overheating"}, {"statusid": 26, "status": "Mechanical"}, {"statusid": 27, "status": "Tyre"}, {"statusid": 28, "status": "Driver Seat"}, {"statusid": 29, "status": "Puncture"}, {"statusid": 30, "status": "Driveshaft"}, {"statusid": 31, "status": "Retired"}, {"statusid": 32, "status": "Fuel pressure"}, {"statusid": 33, "status": "Front wing"}, {"statusid": 34, "status": "Water pressure"}, {"statusid": 35, "status": "Refuelling"}, {"statusid": 36, "status": "Wheel"}, {"statusid": 37, "status": "Throttle"}, {"statusid": 38, "status": "Steering"}, {"statusid": 39, "status": "Technical"}, {"statusid": 40, "status": "Electronics"}, {"statusid": 41, "status": "Broken wing"}, {"statusid": 42, "status": "Heat shield fire"}, {"statusid": 43, "status": "Exhaust"}, {"statusid": 44, "status": "Oil leak"}, {"statusid": 45, "status": "+11 Laps"}, {"statusid": 46, "status": "Wheel rim"}, {"statusid": 47, "status": "Water leak"}, {"statusid": 48, "status": "Fuel pump"}, {"statusid": 49, "status": "Track rod"}, {"statusid": 50, "status": "+17 Laps"}, {"statusid": 51, "status": "Oil pressure"}, {"statusid": 53, "status": "+13 Laps"}, {"statusid": 54, "status": "Withdrew"}, {"statusid": 55, "status": "+12 Laps"}, {"statusid": 56, "status": "Engine fire"}, {"statusid": 58, "status": "+26 Laps"}, {"statusid": 59, "status": "Tyre puncture"}, {"statusid": 60, "status": "Out of fuel"}, {"statusid": 61, "status": "Wheel nut"}, {"statusid": 62, "status": "Not classified"}, {"statusid": 63, "status": "Pneumatics"}, {"statusid": 64, "status": "Handling"}, {"statusid": 65, "status": "Rear wing"}, {"statusid": 66, "status": "Fire"}, {"statusid": 67, "status": "Wheel bearing"}, {"statusid": 68, "status": "Physical"}, {"statusid": 69, "status": "Fuel system"}, {"statusid": 70, "status": "Oil line"}, {"statusid": 71, "status": "Fuel rig"}, {"statusid": 72, "status": "Launch control"}, {"statusid": 73, "status": "Injured"}, {"statusid": 74, "status": "Fuel"}, {"statusid": 75, "status": "Power loss"}, {"statusid": 76, "status": "Vibrations"}, {"statusid": 77, "status": "107% Rule"}, {"statusid": 78, "status": "Safety"}, {"statusid": 79, "status": "Drivetrain"}, {"statusid": 80, "status": "Ignition"}, {"statusid": 81, "status": "Did not qualify"}, {"statusid": 82, "status": "Injury"}, {"statusid": 83, "status": "Chassis"}, {"statusid": 84, "status": "Battery"}, {"statusid": 85, "status": "Stalled"}, {"statusid": 86, "status": "Halfshaft"}, {"statusid": 87, "status": "Crankshaft"}, {"statusid": 88, "status": "+10 Laps"}, {"statusid": 89, "status": "Safety concerns"}, {"statusid": 90, "status": "Not restarted"}, {"statusid": 91, "status": "Alternator"}, {"statusid": 92, "status": "Underweight"}, {"statusid": 93, "status": "Safety belt"}, {"statusid": 94, "status": "Oil pump"}, {"statusid": 95, "status": "Fuel leak"}, {"statusid": 96, "status": "Excluded"}, {"statusid": 97, "status": "Did not prequalify"}, {"statusid": 98, "status": "Injection"}, {"statusid": 99, "status": "Distributor"}, {"statusid": 100, "status": "Driver unwell"}, {"statusid": 101, "status": "Turbo"}, {"statusid": 102, "status": "CV joint"}, {"statusid": 103, "status": "Water pump"}, {"statusid": 104, "status": "Fatal accident"}, {"statusid": 105, "status": "Spark plugs"}, {"statusid": 106, "status": "Fuel pipe"}, {"statusid": 107, "status": "Eye injury"}, {"statusid": 108, "status": "Oil pipe"}, {"statusid": 109, "status": "Axle"}, {"statusid": 110, "status": "Water pipe"}, {"statusid": 111, "status": "+14 Laps"}, {"statusid": 112, "status": "+15 Laps"}, {"statusid": 113, "status": "+25 Laps"}, {"statusid": 114, "status": "+18 Laps"}, {"statusid": 115, "status": "+22 Laps"}, {"statusid": 116, "status": "+16 Laps"}, {"statusid": 117, "status": "+24 Laps"}, {"statusid": 118, "status": "+29 Laps"}, {"statusid": 119, "status": "+23 Laps"}, {"statusid": 120, "status": "+21 Laps"}, {"statusid": 121, "status": "Magneto"}, {"statusid": 122, "status": "+44 Laps"}, {"statusid": 123, "status": "+30 Laps"}, {"statusid": 124, "status": "+19 Laps"}, {"statusid": 125, "status": "+46 Laps"}, {"statusid": 126, "status": "Supercharger"}, {"statusid": 127, "status": "+20 Laps"}, {"statusid": 128, "status": "+42 Laps"}, {"statusid": 129, "status": "Engine misfire"}, {"statusid": 130, "status": "Collision damage"}, {"statusid": 131, "status": "Power Unit"}, {"statusid": 132, "status": "ERS"}, {"statusid": 133, "status": "+49 Laps"}, {"statusid": 134, "status": "+38 Laps"}, {"statusid": 135, "status": "Brake duct"}, {"statusid": 136, "status": "Seat"}]}, "correct_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(statusid > 54)\n |> select(statusid, status)\n\nresult = filtered_status\n |> sort_by(statusid, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(statusid > 54)\n |> select(statusid, status)\n\nresult = filtered_status\n sort_by(statusid, desc)\n |> take(3)\n\nemit result", "expected_output": [{"statusid": 136, "status": "Seat"}, {"statusid": 135, "status": "Brake duct"}, {"statusid": 134, "status": "+38 Laps"}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> sort_by(statusid, desc)", "mutated": "sort_by(statusid, desc)"}], "difficulty": "easy", "domain": "formula_1__status", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"things": [{"thing_id": 1, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 2, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 10, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 14, "organization_id": 10, "type_of_thing_code": "Furniture", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 26, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 35, "organization_id": 7, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 45, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 46, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 47, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 58, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 68, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 80, "organization_id": 8, "type_of_thing_code": "Furniture", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 84, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 85, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 92, "organization_id": 7, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}], "customer_events": [{"customer_event_id": 70, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10, "thing_id": 1}, {"customer_event_id": 160, "customer_id": 5, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23, "thing_id": 80}, {"customer_event_id": 166, "customer_id": 16, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28, "thing_id": 14}, {"customer_event_id": 216, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37, "thing_id": 46}, {"customer_event_id": 226, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38, "thing_id": 80}, {"customer_event_id": 256, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43, "thing_id": 2}, {"customer_event_id": 428, "customer_id": 63, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45, "thing_id": 68}, {"customer_event_id": 530, "customer_id": 4, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47, "thing_id": 10}, {"customer_event_id": 559, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58, "thing_id": 1}, {"customer_event_id": 591, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "resident_id": 67, "thing_id": 10}, {"customer_event_id": 606, "customer_id": 31, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "resident_id": 83, "thing_id": 85}, {"customer_event_id": 627, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "resident_id": 87, "thing_id": 92}, {"customer_event_id": 817, "customer_id": 19, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "resident_id": 88, "thing_id": 10}]}, "correct_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n\nfiltered_things = things\n |> filter(service_type_code == \"Cleanning\")\n |> filter(thing_id > 23)\n\nresult = filtered_things\n |> sort_by(thing_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n\nfiltered_things = things\n |> filter(service_type_code == \"Cleanning\")\n |> filter(thing_id > 23)\n\nresult = filtered_things\n |> sort_by(thing_id, desc)\n take(10)\n\nemit result", "expected_output": [{"thing_id": 85, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 68, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 47, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 35, "organization_id": 7, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 26, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 10, "original": "|> take(10)", "mutated": "take(10)"}], "difficulty": "easy", "domain": "local_govt_and_lot__things", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"seasons": [{"year": 1950, "url": "http://en.wikipedia.org/wiki/1950_Formula_One_season"}, {"year": 1951, "url": "http://en.wikipedia.org/wiki/1951_Formula_One_season"}, {"year": 1952, "url": "http://en.wikipedia.org/wiki/1952_Formula_One_season"}, {"year": 1953, "url": "http://en.wikipedia.org/wiki/1953_Formula_One_season"}, {"year": 1954, "url": "http://en.wikipedia.org/wiki/1954_Formula_One_season"}, {"year": 1955, "url": "http://en.wikipedia.org/wiki/1955_Formula_One_season"}, {"year": 1956, "url": "http://en.wikipedia.org/wiki/1956_Formula_One_season"}, {"year": 1957, "url": "http://en.wikipedia.org/wiki/1957_Formula_One_season"}, {"year": 1958, "url": "http://en.wikipedia.org/wiki/1958_Formula_One_season"}, {"year": 1959, "url": "http://en.wikipedia.org/wiki/1959_Formula_One_season"}, {"year": 1960, "url": "http://en.wikipedia.org/wiki/1960_Formula_One_season"}, {"year": 1961, "url": "http://en.wikipedia.org/wiki/1961_Formula_One_season"}, {"year": 1962, "url": "http://en.wikipedia.org/wiki/1962_Formula_One_season"}, {"year": 1963, "url": "http://en.wikipedia.org/wiki/1963_Formula_One_season"}, {"year": 1964, "url": "http://en.wikipedia.org/wiki/1964_Formula_One_season"}, {"year": 1965, "url": "http://en.wikipedia.org/wiki/1965_Formula_One_season"}, {"year": 1966, "url": "http://en.wikipedia.org/wiki/1966_Formula_One_season"}, {"year": 1967, "url": "http://en.wikipedia.org/wiki/1967_Formula_One_season"}, {"year": 1968, "url": "http://en.wikipedia.org/wiki/1968_Formula_One_season"}, {"year": 1969, "url": "http://en.wikipedia.org/wiki/1969_Formula_One_season"}, {"year": 1970, "url": "http://en.wikipedia.org/wiki/1970_Formula_One_season"}, {"year": 1971, "url": "http://en.wikipedia.org/wiki/1971_Formula_One_season"}, {"year": 1972, "url": "http://en.wikipedia.org/wiki/1972_Formula_One_season"}, {"year": 1973, "url": "http://en.wikipedia.org/wiki/1973_Formula_One_season"}, {"year": 1974, "url": "http://en.wikipedia.org/wiki/1974_Formula_One_season"}, {"year": 1975, "url": "http://en.wikipedia.org/wiki/1975_Formula_One_season"}, {"year": 1976, "url": "http://en.wikipedia.org/wiki/1976_Formula_One_season"}, {"year": 1977, "url": "http://en.wikipedia.org/wiki/1977_Formula_One_season"}, {"year": 1978, "url": "http://en.wikipedia.org/wiki/1978_Formula_One_season"}, {"year": 1979, "url": "http://en.wikipedia.org/wiki/1979_Formula_One_season"}, {"year": 1980, "url": "http://en.wikipedia.org/wiki/1980_Formula_One_season"}, {"year": 1981, "url": "http://en.wikipedia.org/wiki/1981_Formula_One_season"}, {"year": 1982, "url": "http://en.wikipedia.org/wiki/1982_Formula_One_season"}, {"year": 1983, "url": "http://en.wikipedia.org/wiki/1983_Formula_One_season"}, {"year": 1984, "url": "http://en.wikipedia.org/wiki/1984_Formula_One_season"}, {"year": 1985, "url": "http://en.wikipedia.org/wiki/1985_Formula_One_season"}, {"year": 1986, "url": "http://en.wikipedia.org/wiki/1986_Formula_One_season"}, {"year": 1987, "url": "http://en.wikipedia.org/wiki/1987_Formula_One_season"}, {"year": 1988, "url": "http://en.wikipedia.org/wiki/1988_Formula_One_season"}, {"year": 1989, "url": "http://en.wikipedia.org/wiki/1989_Formula_One_season"}, {"year": 1990, "url": "http://en.wikipedia.org/wiki/1990_Formula_One_season"}, {"year": 1991, "url": "http://en.wikipedia.org/wiki/1991_Formula_One_season"}, {"year": 1992, "url": "http://en.wikipedia.org/wiki/1992_Formula_One_season"}, {"year": 1993, "url": "http://en.wikipedia.org/wiki/1993_Formula_One_season"}, {"year": 1994, "url": "http://en.wikipedia.org/wiki/1994_Formula_One_season"}, {"year": 1995, "url": "http://en.wikipedia.org/wiki/1995_Formula_One_season"}, {"year": 1996, "url": "http://en.wikipedia.org/wiki/1996_Formula_One_season"}, {"year": 1997, "url": "http://en.wikipedia.org/wiki/1997_Formula_One_season"}, {"year": 1998, "url": "http://en.wikipedia.org/wiki/1998_Formula_One_season"}, {"year": 1999, "url": "http://en.wikipedia.org/wiki/1999_Formula_One_season"}, {"year": 2000, "url": "http://en.wikipedia.org/wiki/2000_Formula_One_season"}, {"year": 2001, "url": "http://en.wikipedia.org/wiki/2001_Formula_One_season"}, {"year": 2002, "url": "http://en.wikipedia.org/wiki/2002_Formula_One_season"}, {"year": 2003, "url": "http://en.wikipedia.org/wiki/2003_Formula_One_season"}, {"year": 2004, "url": "http://en.wikipedia.org/wiki/2004_Formula_One_season"}, {"year": 2005, "url": "http://en.wikipedia.org/wiki/2005_Formula_One_season"}, {"year": 2006, "url": "http://en.wikipedia.org/wiki/2006_Formula_One_season"}, {"year": 2007, "url": "http://en.wikipedia.org/wiki/2007_Formula_One_season"}, {"year": 2008, "url": "http://en.wikipedia.org/wiki/2008_Formula_One_season"}, {"year": 2009, "url": "http://en.wikipedia.org/wiki/2009_Formula_One_season"}, {"year": 2010, "url": "http://en.wikipedia.org/wiki/2010_Formula_One_season"}, {"year": 2011, "url": "http://en.wikipedia.org/wiki/2011_Formula_One_season"}, {"year": 2012, "url": "http://en.wikipedia.org/wiki/2012_Formula_One_season"}, {"year": 2013, "url": "http://en.wikipedia.org/wiki/2013_Formula_One_season"}, {"year": 2014, "url": "http://en.wikipedia.org/wiki/2014_Formula_One_season"}, {"year": 2015, "url": "http://en.wikipedia.org/wiki/2015_Formula_One_season"}, {"year": 2016, "url": "https://en.wikipedia.org/wiki/2016_Formula_One_season"}, {"year": 2017, "url": "https://en.wikipedia.org/wiki/2017_Formula_One_season"}, {"year": 2018, "url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship"}]}, "correct_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(max_year: max(year), count: count())\n\nresult = summary\n |> sort_by(max_year, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(max_year: max(year), count: count())\n\nresult = summary\n |> sort_by(max_year, desc)\n |> take(12)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship", "max_year": 2018, "count": 1}, {"url": "https://en.wikipedia.org/wiki/2017_Formula_One_season", "max_year": 2017, "count": 1}, {"url": "https://en.wikipedia.org/wiki/2016_Formula_One_season", "max_year": 2016, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2015_Formula_One_season", "max_year": 2015, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2014_Formula_One_season", "max_year": 2014, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2013_Formula_One_season", "max_year": 2013, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2012_Formula_One_season", "max_year": 2012, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2011_Formula_One_season", "max_year": 2011, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2010_Formula_One_season", "max_year": 2010, "count": 1}, {"url": "http://en.wikipedia.org/wiki/2009_Formula_One_season", "max_year": 2009, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 12", "line_num": 10, "original": "|> take(10)", "mutated": "|> take(12)"}], "difficulty": "medium", "domain": "formula_1__seasons", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"apartment_bookings": [{"apt_booking_id": 258, "apt_id": 10, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2016-09-26 17:13:49", "booking_end_date": "2017-10-07 11:38:48"}, {"apt_booking_id": 279, "apt_id": 15, "guest_id": 15, "booking_status_code": "Provisional", "booking_start_date": "2016-04-01 06:28:08", "booking_end_date": "2017-10-25 11:08:42"}, {"apt_booking_id": 337, "apt_id": 8, "guest_id": 5, "booking_status_code": "Provisional", "booking_start_date": "2017-03-13 16:20:14", "booking_end_date": "2018-02-19 16:59:08"}, {"apt_booking_id": 343, "apt_id": 4, "guest_id": 13, "booking_status_code": "Confirmed", "booking_start_date": "2016-08-04 10:33:00", "booking_end_date": "2017-09-29 12:43:50"}, {"apt_booking_id": 365, "apt_id": 9, "guest_id": 12, "booking_status_code": "Confirmed", "booking_start_date": "2017-02-11 14:34:14", "booking_end_date": "2017-10-07 20:47:19"}, {"apt_booking_id": 401, "apt_id": 7, "guest_id": 14, "booking_status_code": "Provisional", "booking_start_date": "2016-05-24 20:09:38", "booking_end_date": "2017-10-03 01:56:21"}, {"apt_booking_id": 497, "apt_id": 10, "guest_id": 8, "booking_status_code": "Confirmed", "booking_start_date": "2016-07-25 02:57:04", "booking_end_date": "2017-09-28 11:08:15"}, {"apt_booking_id": 526, "apt_id": 8, "guest_id": 7, "booking_status_code": "Confirmed", "booking_start_date": "2016-11-26 05:04:31", "booking_end_date": "2018-02-25 15:15:37"}, {"apt_booking_id": 575, "apt_id": 6, "guest_id": 3, "booking_status_code": "Provisional", "booking_start_date": "2017-05-13 18:17:20", "booking_end_date": "2017-10-06 11:15:58"}, {"apt_booking_id": 577, "apt_id": 12, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2017-03-04 02:23:49", "booking_end_date": "2018-02-06 16:57:05"}, {"apt_booking_id": 623, "apt_id": 4, "guest_id": 5, "booking_status_code": "Provisional", "booking_start_date": "2016-06-07 05:05:18", "booking_end_date": "2017-11-13 13:59:45"}, {"apt_booking_id": 807, "apt_id": 11, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2016-04-17 12:53:59", "booking_end_date": "2018-03-20 17:32:58"}, {"apt_booking_id": 889, "apt_id": 10, "guest_id": 4, "booking_status_code": "Confirmed", "booking_start_date": "2016-09-28 05:00:50", "booking_end_date": "2017-09-30 18:41:04"}, {"apt_booking_id": 920, "apt_id": 2, "guest_id": 2, "booking_status_code": "Confirmed", "booking_start_date": "2017-04-07 04:53:27", "booking_end_date": "2017-11-29 12:59:42"}, {"apt_booking_id": 924, "apt_id": 8, "guest_id": 3, "booking_status_code": "Confirmed", "booking_start_date": "2017-07-03 14:15:56", "booking_end_date": "2017-11-12 01:05:09"}], "apartments": [{"apt_id": 1, "building_id": 808, "apt_type_code": "Flat", "apt_number": "Suite 645", "bathroom_count": 1, "bedroom_count": 3, "room_count": "7"}, {"apt_id": 2, "building_id": 624, "apt_type_code": "Flat", "apt_number": "Apt. 585", "bathroom_count": 2, "bedroom_count": 4, "room_count": "5"}, {"apt_id": 3, "building_id": 225, "apt_type_code": "Studio", "apt_number": "Apt. 908", "bathroom_count": 1, "bedroom_count": 6, "room_count": "7"}, {"apt_id": 4, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Suite 749", "bathroom_count": 1, "bedroom_count": 5, "room_count": "8"}, {"apt_id": 5, "building_id": 744, "apt_type_code": "Flat", "apt_number": "Suite 307", "bathroom_count": 2, "bedroom_count": 4, "room_count": "9"}, {"apt_id": 6, "building_id": 191, "apt_type_code": "Studio", "apt_number": "Apt. 187", "bathroom_count": 3, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 7, "building_id": 790, "apt_type_code": "Studio", "apt_number": "Suite 088", "bathroom_count": 2, "bedroom_count": 4, "room_count": "6"}, {"apt_id": 8, "building_id": 153, "apt_type_code": "Flat", "apt_number": "Suite 693", "bathroom_count": 2, "bedroom_count": 3, "room_count": "9"}, {"apt_id": 9, "building_id": 624, "apt_type_code": "Studio", "apt_number": "Apt. 940", "bathroom_count": 1, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 10, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Apt. 859", "bathroom_count": 2, "bedroom_count": 3, "room_count": "6"}, {"apt_id": 11, "building_id": 734, "apt_type_code": "Flat", "apt_number": "Apt. 794", "bathroom_count": 1, "bedroom_count": 5, "room_count": "3"}, {"apt_id": 12, "building_id": 673, "apt_type_code": "Duplex", "apt_number": "Apt. 477", "bathroom_count": 2, "bedroom_count": 6, "room_count": "3"}, {"apt_id": 13, "building_id": 744, "apt_type_code": "Duplex", "apt_number": "Apt. 411", "bathroom_count": 2, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 14, "building_id": 225, "apt_type_code": "Flat", "apt_number": "Apt. 837", "bathroom_count": 2, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 15, "building_id": 790, "apt_type_code": "Duplex", "apt_number": "Suite 634", "bathroom_count": 3, "bedroom_count": 6, "room_count": "8"}]}, "correct_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(booking_status_code == \"Confirmed\")\n |> filter(apt_id <= 7)\n\nsummary = filtered_apartment_bookings\n |> group_by(booking_status_code)\n |> aggregate(total_apt_id: sum(apt_id), count: count())\n\nresult = summary\n |> sort_by(total_apt_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(booking_status_code <= \"Confirmed\")\n |> filter(apt_id <= 7)\n\nsummary = filtered_apartment_bookings\n |> group_by(booking_status_code)\n |> aggregate(total_apt_id: min(apt_id), count: count())\n\nresult = summary\n |> sort_by(total_apt_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"booking_status_code": "Confirmed", "total_apt_id": 6, "count": 2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(booking_status_code == \"Confirmed\")", "mutated": "|> filter(booking_status_code <= \"Confirmed\")"}, {"category": "wrong_arg", "description": "Wrong aggregate function: 'sum' \u2192 'min'", "line_num": 10, "original": "|> aggregate(total_apt_id: sum(apt_id), count: count())", "mutated": "|> aggregate(total_apt_id: min(apt_id), count: count())"}], "difficulty": "medium", "domain": "apartment_rentals__apartment_bookings", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"participants_in_events": [{"event_id": 3, "participant_id": 26}, {"event_id": 3, "participant_id": 66}, {"event_id": 8, "participant_id": 86}, {"event_id": 13, "participant_id": 64}, {"event_id": 13, "participant_id": 90}, {"event_id": 16, "participant_id": 60}, {"event_id": 17, "participant_id": 37}, {"event_id": 17, "participant_id": 66}, {"event_id": 38, "participant_id": 66}, {"event_id": 40, "participant_id": 37}, {"event_id": 40, "participant_id": 86}, {"event_id": 57, "participant_id": 90}, {"event_id": 60, "participant_id": 26}, {"event_id": 80, "participant_id": 36}, {"event_id": 80, "participant_id": 66}, {"event_id": 80, "participant_id": 96}, {"event_id": 95, "participant_id": 63}, {"event_id": 96, "participant_id": 90}], "participants": [{"participant_id": 9, "participant_type_code": "Organizer", "participant_details": "Karlee Batz"}, {"participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"participant_id": 28, "participant_type_code": "Organizer", "participant_details": "Lupe Deckow"}, {"participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn"}, {"participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"participant_id": 38, "participant_type_code": "Organizer", "participant_details": "Macy Mayer DDS"}, {"participant_id": 60, "participant_type_code": "Participant", "participant_details": "Dewitt Walter"}, {"participant_id": 63, "participant_type_code": "Participant", "participant_details": "Prof. Michelle Maggio Jr."}, {"participant_id": 64, "participant_type_code": "Participant", "participant_details": "Dr. Jaydon Renner"}, {"participant_id": 66, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}, {"participant_id": 75, "participant_type_code": "Participant", "participant_details": "Berniece Weimann"}, {"participant_id": 86, "participant_type_code": "Organizer", "participant_details": "Neil Blick"}, {"participant_id": 90, "participant_type_code": "Participant", "participant_details": "Dedrick Ebert"}, {"participant_id": 96, "participant_type_code": "Organizer", "participant_details": "Miss Joyce Cremin"}, {"participant_id": 98, "participant_type_code": "Participant", "participant_details": "Dr. Kris Deckow"}]}, "correct_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n\nresult = participants_in_events\n |> sort_by(participant_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n\nresult = participants_in_events\n |> sort_by(participant_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"event_id": 80, "participant_id": 96}, {"event_id": 13, "participant_id": 90}, {"event_id": 57, "participant_id": 90}, {"event_id": 96, "participant_id": 90}, {"event_id": 8, "participant_id": 86}, {"event_id": 40, "participant_id": 86}, {"event_id": 3, "participant_id": 66}, {"event_id": 17, "participant_id": 66}, {"event_id": 38, "participant_id": 66}, {"event_id": 80, "participant_id": 66}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 5, "original": "|> sort_by(participant_id, desc)", "mutated": "|> sort_by(participant_id, asc)"}], "difficulty": "easy", "domain": "local_govt_in_alabama__participants_in_events", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"participates_in": [{"stuid": 1001, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1001, "actid": 777}, {"stuid": 1002, "actid": 772}, {"stuid": 1002, "actid": 771}, {"stuid": 1003, "actid": 778}, {"stuid": 1004, "actid": 780}, {"stuid": 1004, "actid": 782}, {"stuid": 1004, "actid": 778}, {"stuid": 1004, "actid": 777}, {"stuid": 1005, "actid": 770}, {"stuid": 1006, "actid": 773}, {"stuid": 1007, "actid": 773}, {"stuid": 1007, "actid": 784}, {"stuid": 1008, "actid": 785}, {"stuid": 1008, "actid": 773}, {"stuid": 1008, "actid": 780}, {"stuid": 1008, "actid": 790}, {"stuid": 1009, "actid": 778}, {"stuid": 1009, "actid": 777}, {"stuid": 1009, "actid": 782}, {"stuid": 1010, "actid": 780}, {"stuid": 1011, "actid": 780}, {"stuid": 1012, "actid": 780}, {"stuid": 1014, "actid": 780}, {"stuid": 1014, "actid": 777}, {"stuid": 1014, "actid": 778}, {"stuid": 1014, "actid": 782}, {"stuid": 1014, "actid": 770}, {"stuid": 1014, "actid": 772}, {"stuid": 1015, "actid": 785}, {"stuid": 1016, "actid": 791}, {"stuid": 1016, "actid": 772}, {"stuid": 1017, "actid": 791}, {"stuid": 1017, "actid": 771}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 790}, {"stuid": 1018, "actid": 785}, {"stuid": 1018, "actid": 784}, {"stuid": 1018, "actid": 777}, {"stuid": 1018, "actid": 772}, {"stuid": 1018, "actid": 770}, {"stuid": 1019, "actid": 785}, {"stuid": 1019, "actid": 790}, {"stuid": 1020, "actid": 780}, {"stuid": 1021, "actid": 780}, {"stuid": 1021, "actid": 776}, {"stuid": 1022, "actid": 782}, {"stuid": 1022, "actid": 790}, {"stuid": 1023, "actid": 790}, {"stuid": 1023, "actid": 776}, {"stuid": 1024, "actid": 778}, {"stuid": 1024, "actid": 777}, {"stuid": 1024, "actid": 780}, {"stuid": 1025, "actid": 780}, {"stuid": 1025, "actid": 777}, {"stuid": 1025, "actid": 770}, {"stuid": 1028, "actid": 785}, {"stuid": 1029, "actid": 785}, {"stuid": 1029, "actid": 790}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}, {"stuid": 1033, "actid": 780}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(stuid >= 1008)\n |> select(stuid, actid)\n\nresult = filtered_participates_in\n |> sort_by(stuid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(stuid >= 1008)\n |> select(stuid, actid)\n\nresult = filtered_participates_in\n |> sort_by(stuid, desc)\n |> take(8)\n\nemit result", "expected_output": [{"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1033, "actid": 780}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 8", "line_num": 10, "original": "|> take(10)", "mutated": "|> take(8)"}], "difficulty": "hard", "domain": "activity_1__participates_in", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"advisor": [{"s_id": "24746", "i_id": "19368"}, {"s_id": "79352", "i_id": "95030"}, {"s_id": "76672", "i_id": "22591"}, {"s_id": "14182", "i_id": "77346"}, {"s_id": "44985", "i_id": "31955"}, {"s_id": "96052", "i_id": "73623"}, {"s_id": "35175", "i_id": "90643"}, {"s_id": "44271", "i_id": "58558"}, {"s_id": "40897", "i_id": "73623"}, {"s_id": "92839", "i_id": "25946"}, {"s_id": "79329", "i_id": "58558"}, {"s_id": "97101", "i_id": "48570"}, {"s_id": "24865", "i_id": "6569"}, {"s_id": "36052", "i_id": "31955"}, {"s_id": "98940", "i_id": "99052"}, {"s_id": "21395", "i_id": "58558"}, {"s_id": "55859", "i_id": "28097"}, {"s_id": "74016", "i_id": "74420"}, {"s_id": "93061", "i_id": "64871"}, {"s_id": "94998", "i_id": "50330"}, {"s_id": "30772", "i_id": "57180"}, {"s_id": "1968", "i_id": "3335"}, {"s_id": "90567", "i_id": "48507"}, {"s_id": "49611", "i_id": "58558"}, {"s_id": "81538", "i_id": "59795"}, {"s_id": "68999", "i_id": "6569"}, {"s_id": "74639", "i_id": "41930"}, {"s_id": "66054", "i_id": "25946"}, {"s_id": "792", "i_id": "48507"}, {"s_id": "60267", "i_id": "81991"}, {"s_id": "17769", "i_id": "36897"}, {"s_id": "39580", "i_id": "3199"}, {"s_id": "89106", "i_id": "15347"}, {"s_id": "37856", "i_id": "25946"}, {"s_id": "58307", "i_id": "48507"}, {"s_id": "57985", "i_id": "52647"}, {"s_id": "72014", "i_id": "22591"}, {"s_id": "2795", "i_id": "28400"}, {"s_id": "89000", "i_id": "58558"}, {"s_id": "46442", "i_id": "48570"}, {"s_id": "60040", "i_id": "15347"}, {"s_id": "19791", "i_id": "59795"}, {"s_id": "4582", "i_id": "64871"}, {"s_id": "108", "i_id": "77346"}, {"s_id": "1533", "i_id": "50885"}, {"s_id": "7123", "i_id": "65931"}, {"s_id": "44584", "i_id": "64871"}, {"s_id": "32954", "i_id": "90376"}, {"s_id": "98056", "i_id": "73623"}, {"s_id": "76953", "i_id": "79081"}, {"s_id": "81884", "i_id": "3199"}, {"s_id": "22057", "i_id": "48507"}, {"s_id": "21126", "i_id": "52647"}, {"s_id": "82918", "i_id": "81991"}, {"s_id": "4173", "i_id": "25946"}, {"s_id": "83022", "i_id": "64871"}, {"s_id": "25525", "i_id": "96895"}, {"s_id": "75040", "i_id": "80759"}, {"s_id": "31624", "i_id": "41930"}, {"s_id": "64893", "i_id": "96895"}, {"s_id": "59920", "i_id": "72553"}, {"s_id": "38602", "i_id": "77346"}, {"s_id": "21401", "i_id": "79081"}, {"s_id": "93004", "i_id": "15347"}, {"s_id": "38899", "i_id": "37687"}, {"s_id": "75241", "i_id": "28097"}, {"s_id": "98830", "i_id": "80759"}, {"s_id": "37101", "i_id": "80759"}, {"s_id": "4508", "i_id": "28097"}, {"s_id": "32130", "i_id": "16807"}, {"s_id": "56755", "i_id": "79653"}, {"s_id": "11510", "i_id": "95709"}, {"s_id": "3335", "i_id": "74420"}, {"s_id": "61081", "i_id": "80759"}, {"s_id": "33651", "i_id": "96895"}, {"s_id": "8251", "i_id": "73623"}, {"s_id": "10705", "i_id": "6569"}, {"s_id": "64082", "i_id": "74426"}, {"s_id": "59517", "i_id": "34175"}, {"s_id": "91569", "i_id": "14365"}, {"s_id": "88085", "i_id": "28400"}, {"s_id": "96722", "i_id": "58558"}, {"s_id": "36379", "i_id": "42782"}, {"s_id": "69581", "i_id": "25946"}, {"s_id": "65329", "i_id": "3335"}, {"s_id": "49214", "i_id": "4034"}, {"s_id": "64155", "i_id": "36897"}, {"s_id": "58594", "i_id": "74420"}, {"s_id": "71904", "i_id": "95030"}, {"s_id": "69241", "i_id": "72553"}, {"s_id": "58889", "i_id": "3335"}, {"s_id": "30341", "i_id": "79081"}, {"s_id": "70688", "i_id": "97302"}, {"s_id": "81258", "i_id": "58558"}, {"s_id": "63090", "i_id": "25946"}, {"s_id": "70572", "i_id": "35579"}, {"s_id": "58413", "i_id": "28400"}, {"s_id": "93171", "i_id": "6569"}, {"s_id": "35138", "i_id": "41930"}, {"s_id": "77289", "i_id": "59795"}, {"s_id": "93571", "i_id": "57180"}, {"s_id": "14554", "i_id": "22591"}, {"s_id": "46725", "i_id": "90376"}, {"s_id": "99730", "i_id": "3199"}, {"s_id": "10527", "i_id": "36897"}, {"s_id": "898", "i_id": "22591"}, {"s_id": "64297", "i_id": "43779"}, {"s_id": "10204", "i_id": "65931"}, {"s_id": "36926", "i_id": "43779"}, {"s_id": "49618", "i_id": "74426"}, {"s_id": "34329", "i_id": "81991"}, {"s_id": "84410", "i_id": "81991"}, {"s_id": "29435", "i_id": "77346"}, {"s_id": "62636", "i_id": "79081"}, {"s_id": "8483", "i_id": "74426"}, {"s_id": "2177", "i_id": "50330"}, {"s_id": "43348", "i_id": "81991"}, {"s_id": "37430", "i_id": "41930"}, {"s_id": "37586", "i_id": "81991"}, {"s_id": "55238", "i_id": "35579"}, {"s_id": "34404", "i_id": "74426"}, {"s_id": "59539", "i_id": "28400"}, {"s_id": "43123", "i_id": "95030"}, {"s_id": "19582", "i_id": "96895"}, {"s_id": "88553", "i_id": "31955"}, {"s_id": "5898", "i_id": "34175"}, {"s_id": "2419", "i_id": "73623"}, {"s_id": "31516", "i_id": "95030"}, {"s_id": "3487", "i_id": "4034"}, {"s_id": "66269", "i_id": "58558"}, {"s_id": "54622", "i_id": "4034"}, {"s_id": "19638", "i_id": "4034"}, {"s_id": "88418", "i_id": "57180"}, {"s_id": "86802", "i_id": "35579"}, {"s_id": "63361", "i_id": "90643"}, {"s_id": "6367", "i_id": "14365"}, {"s_id": "84239", "i_id": "22591"}, {"s_id": "4940", "i_id": "15347"}, {"s_id": "90663", "i_id": "77346"}, {"s_id": "38476", "i_id": "95030"}, {"s_id": "96003", "i_id": "3335"}, {"s_id": "64914", "i_id": "14365"}, {"s_id": "41599", "i_id": "48507"}, {"s_id": "22226", "i_id": "64871"}, {"s_id": "96153", "i_id": "28097"}, {"s_id": "44998", "i_id": "36897"}, {"s_id": "74163", "i_id": "80759"}, {"s_id": "75046", "i_id": "16807"}, {"s_id": "97679", "i_id": "43779"}, {"s_id": "94894", "i_id": "78699"}, {"s_id": "44881", "i_id": "22591"}, {"s_id": "98619", "i_id": "77346"}, {"s_id": "86753", "i_id": "22591"}, {"s_id": "87054", "i_id": "35579"}, {"s_id": "39046", "i_id": "19368"}, {"s_id": "29031", "i_id": "78699"}, {"s_id": "97355", "i_id": "28400"}, {"s_id": "24010", "i_id": "80759"}, {"s_id": "21789", "i_id": "63395"}, {"s_id": "52157", "i_id": "65931"}, {"s_id": "64938", "i_id": "52647"}, {"s_id": "94535", "i_id": "50885"}, {"s_id": "58595", "i_id": "31955"}, {"s_id": "72979", "i_id": "41930"}, {"s_id": "32506", "i_id": "28097"}, {"s_id": "31690", "i_id": "14365"}, {"s_id": "87044", "i_id": "36897"}, {"s_id": "34236", "i_id": "57180"}, {"s_id": "18808", "i_id": "77346"}, {"s_id": "91063", "i_id": "52647"}, {"s_id": "48462", "i_id": "52647"}, {"s_id": "41965", "i_id": "65931"}, {"s_id": "31137", "i_id": "50330"}, {"s_id": "7602", "i_id": "63287"}, {"s_id": "84845", "i_id": "6569"}, {"s_id": "28252", "i_id": "90643"}, {"s_id": "10736", "i_id": "90643"}, {"s_id": "58465", "i_id": "59795"}, {"s_id": "64140", "i_id": "52647"}, {"s_id": "6523", "i_id": "43779"}, {"s_id": "64067", "i_id": "77346"}, {"s_id": "99399", "i_id": "4034"}, {"s_id": "21337", "i_id": "43779"}, {"s_id": "15457", "i_id": "95709"}, {"s_id": "26102", "i_id": "99052"}, {"s_id": "31337", "i_id": "50330"}, {"s_id": "67425", "i_id": "42782"}, {"s_id": "48640", "i_id": "3335"}, {"s_id": "72741", "i_id": "80759"}, {"s_id": "29803", "i_id": "3199"}, {"s_id": "38895", "i_id": "15347"}, {"s_id": "49391", "i_id": "16807"}, {"s_id": "13741", "i_id": "4034"}, {"s_id": "59538", "i_id": "42782"}, {"s_id": "9360", "i_id": "28097"}, {"s_id": "53728", "i_id": "57180"}, {"s_id": "77898", "i_id": "15347"}, {"s_id": "32419", "i_id": "95030"}, {"s_id": "37521", "i_id": "4034"}, {"s_id": "97065", "i_id": "79653"}], "instructor": [{"id": "63395", "name": "McKinnon", "dept_name": "Cybernetics", "salary": 94333.99}, {"id": "78699", "name": "Pingr", "dept_name": "Statistics", "salary": 59303.62}, {"id": "96895", "name": "Mird", "dept_name": "Marketing", "salary": 119921.41}, {"id": "4233", "name": "Luo", "dept_name": "English", "salary": 88791.45}, {"id": "4034", "name": "Murata", "dept_name": "Athletics", "salary": 61387.56}, {"id": "50885", "name": "Konstantinides", "dept_name": "Languages", "salary": 32570.5}, {"id": "79653", "name": "Levine", "dept_name": "Elec. Eng.", "salary": 89805.83}, {"id": "50330", "name": "Shuming", "dept_name": "Physics", "salary": 108011.81}, {"id": "80759", "name": "Queiroz", "dept_name": "Biology", "salary": 45538.32}, {"id": "73623", "name": "Sullivan", "dept_name": "Elec. Eng.", "salary": 90038.09}, {"id": "97302", "name": "Bertolino", "dept_name": "Mech. Eng.", "salary": 51647.57}, {"id": "57180", "name": "Hau", "dept_name": "Accounting", "salary": 43966.29}, {"id": "74420", "name": "Voronina", "dept_name": "Physics", "salary": 121141.99}, {"id": "35579", "name": "Soisalon-Soininen", "dept_name": "Psychology", "salary": 62579.61}, {"id": "31955", "name": "Moreira", "dept_name": "Accounting", "salary": 71351.42}, {"id": "37687", "name": "Arias", "dept_name": "Statistics", "salary": 104563.38}, {"id": "6569", "name": "Mingoz", "dept_name": "Finance", "salary": 105311.38}, {"id": "16807", "name": "Yazdi", "dept_name": "Athletics", "salary": 98333.65}, {"id": "14365", "name": "Lembr", "dept_name": "Accounting", "salary": 32241.56}, {"id": "90643", "name": "Choll", "dept_name": "Statistics", "salary": 57807.09}, {"id": "81991", "name": "Valtchev", "dept_name": "Biology", "salary": 77036.18}, {"id": "95030", "name": "Arinb", "dept_name": "Statistics", "salary": 54805.11}, {"id": "15347", "name": "Bawa", "dept_name": "Athletics", "salary": 72140.88}, {"id": "74426", "name": "Kenje", "dept_name": "Marketing", "salary": 106554.73}, {"id": "42782", "name": "Vicentino", "dept_name": "Elec. Eng.", "salary": 34272.67}, {"id": "58558", "name": "Dusserre", "dept_name": "Marketing", "salary": 66143.25}, {"id": "63287", "name": "Jaekel", "dept_name": "Athletics", "salary": 103146.87}, {"id": "59795", "name": "Desyl", "dept_name": "Languages", "salary": 48803.38}, {"id": "22591", "name": "DAgostino", "dept_name": "Psychology", "salary": 59706.49}, {"id": "48570", "name": "Sarkar", "dept_name": "Pol. Sci.", "salary": 87549.8}, {"id": "79081", "name": "Ullman ", "dept_name": "Accounting", "salary": 47307.1}, {"id": "52647", "name": "Bancilhon", "dept_name": "Pol. Sci.", "salary": 87958.01}, {"id": "25946", "name": "Liley", "dept_name": "Languages", "salary": 90891.69}, {"id": "36897", "name": "Morris", "dept_name": "Marketing", "salary": 43770.36}, {"id": "72553", "name": "Yin", "dept_name": "English", "salary": 46397.59}, {"id": "3199", "name": "Gustafsson", "dept_name": "Elec. Eng.", "salary": 82534.37}, {"id": "34175", "name": "Bondi", "dept_name": "Comp. Sci.", "salary": 115469.11}, {"id": "48507", "name": "Lent", "dept_name": "Mech. Eng.", "salary": 107978.47}, {"id": "65931", "name": "Pimenta", "dept_name": "Cybernetics", "salary": 79866.95}, {"id": "3335", "name": "Bourrier", "dept_name": "Comp. Sci.", "salary": 80797.83}, {"id": "64871", "name": "Gutierrez", "dept_name": "Statistics", "salary": 45310.53}, {"id": "95709", "name": "Sakurai", "dept_name": "English", "salary": 118143.98}, {"id": "43779", "name": "Romero", "dept_name": "Astronomy", "salary": 79070.08}, {"id": "77346", "name": "Mahmoud", "dept_name": "Geology", "salary": 99382.59}, {"id": "28097", "name": "Kean", "dept_name": "English", "salary": 35023.18}, {"id": "90376", "name": "Bietzk", "dept_name": "Cybernetics", "salary": 117836.5}, {"id": "28400", "name": "Atanassov", "dept_name": "Statistics", "salary": 84982.92}, {"id": "41930", "name": "Tung", "dept_name": "Athletics", "salary": 50482.03}, {"id": "19368", "name": "Wieland", "dept_name": "Pol. Sci.", "salary": 124651.41}, {"id": "99052", "name": "Dale", "dept_name": "Cybernetics", "salary": 93348.83}]}, "correct_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(i_id == \"99052\")\n\nemit filtered_advisor", "buggy_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(i_id <= \"99052\")\n\nemit filtered_advisor", "expected_output": [{"s_id": "98940", "i_id": "99052"}, {"s_id": "26102", "i_id": "99052"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(i_id == \"99052\")", "mutated": "|> filter(i_id <= \"99052\")"}], "difficulty": "medium", "domain": "college_2__advisor", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"apartment_bookings": [{"apt_booking_id": 258, "apt_id": 10, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2016-09-26 17:13:49", "booking_end_date": "2017-10-07 11:38:48"}, {"apt_booking_id": 279, "apt_id": 15, "guest_id": 15, "booking_status_code": "Provisional", "booking_start_date": "2016-04-01 06:28:08", "booking_end_date": "2017-10-25 11:08:42"}, {"apt_booking_id": 337, "apt_id": 8, "guest_id": 5, "booking_status_code": "Provisional", "booking_start_date": "2017-03-13 16:20:14", "booking_end_date": "2018-02-19 16:59:08"}, {"apt_booking_id": 343, "apt_id": 4, "guest_id": 13, "booking_status_code": "Confirmed", "booking_start_date": "2016-08-04 10:33:00", "booking_end_date": "2017-09-29 12:43:50"}, {"apt_booking_id": 365, "apt_id": 9, "guest_id": 12, "booking_status_code": "Confirmed", "booking_start_date": "2017-02-11 14:34:14", "booking_end_date": "2017-10-07 20:47:19"}, {"apt_booking_id": 401, "apt_id": 7, "guest_id": 14, "booking_status_code": "Provisional", "booking_start_date": "2016-05-24 20:09:38", "booking_end_date": "2017-10-03 01:56:21"}, {"apt_booking_id": 497, "apt_id": 10, "guest_id": 8, "booking_status_code": "Confirmed", "booking_start_date": "2016-07-25 02:57:04", "booking_end_date": "2017-09-28 11:08:15"}, {"apt_booking_id": 526, "apt_id": 8, "guest_id": 7, "booking_status_code": "Confirmed", "booking_start_date": "2016-11-26 05:04:31", "booking_end_date": "2018-02-25 15:15:37"}, {"apt_booking_id": 575, "apt_id": 6, "guest_id": 3, "booking_status_code": "Provisional", "booking_start_date": "2017-05-13 18:17:20", "booking_end_date": "2017-10-06 11:15:58"}, {"apt_booking_id": 577, "apt_id": 12, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2017-03-04 02:23:49", "booking_end_date": "2018-02-06 16:57:05"}, {"apt_booking_id": 623, "apt_id": 4, "guest_id": 5, "booking_status_code": "Provisional", "booking_start_date": "2016-06-07 05:05:18", "booking_end_date": "2017-11-13 13:59:45"}, {"apt_booking_id": 807, "apt_id": 11, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2016-04-17 12:53:59", "booking_end_date": "2018-03-20 17:32:58"}, {"apt_booking_id": 889, "apt_id": 10, "guest_id": 4, "booking_status_code": "Confirmed", "booking_start_date": "2016-09-28 05:00:50", "booking_end_date": "2017-09-30 18:41:04"}, {"apt_booking_id": 920, "apt_id": 2, "guest_id": 2, "booking_status_code": "Confirmed", "booking_start_date": "2017-04-07 04:53:27", "booking_end_date": "2017-11-29 12:59:42"}, {"apt_booking_id": 924, "apt_id": 8, "guest_id": 3, "booking_status_code": "Confirmed", "booking_start_date": "2017-07-03 14:15:56", "booking_end_date": "2017-11-12 01:05:09"}], "apartments": [{"apt_id": 1, "building_id": 808, "apt_type_code": "Flat", "apt_number": "Suite 645", "bathroom_count": 1, "bedroom_count": 3, "room_count": "7"}, {"apt_id": 2, "building_id": 624, "apt_type_code": "Flat", "apt_number": "Apt. 585", "bathroom_count": 2, "bedroom_count": 4, "room_count": "5"}, {"apt_id": 3, "building_id": 225, "apt_type_code": "Studio", "apt_number": "Apt. 908", "bathroom_count": 1, "bedroom_count": 6, "room_count": "7"}, {"apt_id": 4, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Suite 749", "bathroom_count": 1, "bedroom_count": 5, "room_count": "8"}, {"apt_id": 5, "building_id": 744, "apt_type_code": "Flat", "apt_number": "Suite 307", "bathroom_count": 2, "bedroom_count": 4, "room_count": "9"}, {"apt_id": 6, "building_id": 191, "apt_type_code": "Studio", "apt_number": "Apt. 187", "bathroom_count": 3, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 7, "building_id": 790, "apt_type_code": "Studio", "apt_number": "Suite 088", "bathroom_count": 2, "bedroom_count": 4, "room_count": "6"}, {"apt_id": 8, "building_id": 153, "apt_type_code": "Flat", "apt_number": "Suite 693", "bathroom_count": 2, "bedroom_count": 3, "room_count": "9"}, {"apt_id": 9, "building_id": 624, "apt_type_code": "Studio", "apt_number": "Apt. 940", "bathroom_count": 1, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 10, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Apt. 859", "bathroom_count": 2, "bedroom_count": 3, "room_count": "6"}, {"apt_id": 11, "building_id": 734, "apt_type_code": "Flat", "apt_number": "Apt. 794", "bathroom_count": 1, "bedroom_count": 5, "room_count": "3"}, {"apt_id": 12, "building_id": 673, "apt_type_code": "Duplex", "apt_number": "Apt. 477", "bathroom_count": 2, "bedroom_count": 6, "room_count": "3"}, {"apt_id": 13, "building_id": 744, "apt_type_code": "Duplex", "apt_number": "Apt. 411", "bathroom_count": 2, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 14, "building_id": 225, "apt_type_code": "Flat", "apt_number": "Apt. 837", "bathroom_count": 2, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 15, "building_id": 790, "apt_type_code": "Duplex", "apt_number": "Suite 634", "bathroom_count": 3, "bedroom_count": 6, "room_count": "8"}]}, "correct_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(booking_start_date == \"2016-05-24 20:09:38\")\n\nsummary = filtered_apartment_bookings\n |> group_by(booking_end_date)\n |> aggregate(min_guest_id: min(guest_id), count: count())\n\nresult = summary\n |> sort_by(min_guest_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(booking_start_date == \"2016-05-24 20:09:38\")\n\nsummary = filtered_apartment_bookings\n |> group_by(09)\n |> aggregate(min_guest_id: min(guest_id), count: count())\n\nresult = summary\n |> sort_by(min_guest_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"booking_end_date": "2017-10-03 01:56:21", "min_guest_id": 14, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'booking_end_date' \u2192 '09'", "line_num": 8, "original": "|> group_by(booking_end_date)", "mutated": "|> group_by(09)"}], "difficulty": "medium", "domain": "apartment_rentals__apartment_bookings", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"actual_order_products": [{"actual_order_id": 2, "product_id": 1}, {"actual_order_id": 14, "product_id": 5}, {"actual_order_id": 13, "product_id": 6}, {"actual_order_id": 9, "product_id": 2}, {"actual_order_id": 3, "product_id": 2}, {"actual_order_id": 2, "product_id": 3}, {"actual_order_id": 13, "product_id": 2}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 10, "product_id": 3}, {"actual_order_id": 6, "product_id": 6}, {"actual_order_id": 5, "product_id": 5}, {"actual_order_id": 7, "product_id": 3}, {"actual_order_id": 5, "product_id": 3}, {"actual_order_id": 15, "product_id": 4}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n |> select(actual_order_id, product_id)\n\n-- Load lookup data\nproducts = load(\"products\")\n\nenriched = join(actual_order_products, products, on: product_id == product_id)\n |> compute(computed_val: product_id + actual_order_id)\n\nresult = enriched\n |> sort_by(product_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n |> select(actual_order_id, product_id)\n\n-- Load lookup data\nproducts = load(\"products\")\n\nenriched = join(actual_order_products, products, on: product_id == product_id)\n |> compute(computed_val: computed_val + actual_order_id)\n\nresult = enriched\n |> sort_by(actual_order_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"actual_order_id": 13, "product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition", "computed_val": 19}, {"actual_order_id": 6, "product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition", "computed_val": 12}, {"actual_order_id": 14, "product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition", "computed_val": 19}, {"actual_order_id": 5, "product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition", "computed_val": 10}, {"actual_order_id": 15, "product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition", "computed_val": 19}, {"actual_order_id": 2, "product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition", "computed_val": 5}, {"actual_order_id": 10, "product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition", "computed_val": 13}, {"actual_order_id": 7, "product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition", "computed_val": 10}, {"actual_order_id": 5, "product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition", "computed_val": 8}, {"actual_order_id": 9, "product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition", "computed_val": 11}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'product_id' \u2192 'computed_val'", "line_num": 9, "original": "|> compute(computed_val: product_id + actual_order_id)", "mutated": "|> compute(computed_val: computed_val + actual_order_id)"}, {"category": "wrong_col", "description": "Wrong column reference: 'product_id' \u2192 'actual_order_id'", "line_num": 12, "original": "|> sort_by(product_id, desc)", "mutated": "|> sort_by(actual_order_id, desc)"}], "difficulty": "hard", "domain": "customer_deliveries__actual_order_products", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"countrylanguage": [{"countrycode": "ABW", "language": "Dutch", "isofficial": "T", "percentage": 5.3}, {"countrycode": "ABW", "language": "English", "isofficial": "F", "percentage": 9.5}, {"countrycode": "ABW", "language": "Papiamento", "isofficial": "F", "percentage": 76.7}, {"countrycode": "ABW", "language": "Spanish", "isofficial": "F", "percentage": 7.4}, {"countrycode": "AFG", "language": "Balochi", "isofficial": "F", "percentage": 0.9}, {"countrycode": "AFG", "language": "Dari", "isofficial": "T", "percentage": 32.1}, {"countrycode": "AFG", "language": "Pashto", "isofficial": "T", "percentage": 52.4}, {"countrycode": "AFG", "language": "Turkmenian", "isofficial": "F", "percentage": 1.9}, {"countrycode": "AFG", "language": "Uzbek", "isofficial": "F", "percentage": 8.8}, {"countrycode": "AGO", "language": "Ambo", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Chokwe", "isofficial": "F", "percentage": 4.2}, {"countrycode": "AGO", "language": "Kongo", "isofficial": "F", "percentage": 13.2}, {"countrycode": "AGO", "language": "Luchazi", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Luimbe-nganguela", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Luvale", "isofficial": "F", "percentage": 3.6}, {"countrycode": "AGO", "language": "Mbundu", "isofficial": "F", "percentage": 21.6}, {"countrycode": "AGO", "language": "Nyaneka-nkhumbi", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Ovimbundu", "isofficial": "F", "percentage": 37.2}, {"countrycode": "AIA", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ALB", "language": "Albaniana", "isofficial": "T", "percentage": 97.9}, {"countrycode": "ALB", "language": "Greek", "isofficial": "F", "percentage": 1.8}, {"countrycode": "ALB", "language": "Macedonian", "isofficial": "F", "percentage": 0.1}, {"countrycode": "AND", "language": "Catalan", "isofficial": "T", "percentage": 32.3}, {"countrycode": "AND", "language": "French", "isofficial": "F", "percentage": 6.2}, {"countrycode": "AND", "language": "Portuguese", "isofficial": "F", "percentage": 10.8}, {"countrycode": "AND", "language": "Spanish", "isofficial": "F", "percentage": 44.6}, {"countrycode": "ANT", "language": "Dutch", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ANT", "language": "English", "isofficial": "F", "percentage": 7.8}, {"countrycode": "ANT", "language": "Papiamento", "isofficial": "T", "percentage": 86.2}, {"countrycode": "ARE", "language": "Arabic", "isofficial": "T", "percentage": 42.0}, {"countrycode": "ARE", "language": "Hindi", "isofficial": "F", "percentage": 0.0}, {"countrycode": "ARG", "language": "Indian Languages", "isofficial": "F", "percentage": 0.3}, {"countrycode": "ARG", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "ARG", "language": "Spanish", "isofficial": "T", "percentage": 96.8}, {"countrycode": "ARM", "language": "Armenian", "isofficial": "T", "percentage": 93.4}, {"countrycode": "ARM", "language": "Azerbaijani", "isofficial": "F", "percentage": 2.6}, {"countrycode": "ASM", "language": "English", "isofficial": "T", "percentage": 3.1}, {"countrycode": "ASM", "language": "Samoan", "isofficial": "T", "percentage": 90.6}, {"countrycode": "ASM", "language": "Tongan", "isofficial": "F", "percentage": 3.1}, {"countrycode": "ATG", "language": "Creole English", "isofficial": "F", "percentage": 95.7}, {"countrycode": "ATG", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "AUS", "language": "Arabic", "isofficial": "F", "percentage": 1.0}, {"countrycode": "AUS", "language": "Canton Chinese", "isofficial": "F", "percentage": 1.1}, {"countrycode": "AUS", "language": "English", "isofficial": "T", "percentage": 81.2}, {"countrycode": "AUS", "language": "German", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Greek", "isofficial": "F", "percentage": 1.6}, {"countrycode": "AUS", "language": "Italian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUS", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Vietnamese", "isofficial": "F", "percentage": 0.8}, {"countrycode": "AUT", "language": "Czech", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "German", "isofficial": "T", "percentage": 92.0}, {"countrycode": "AUT", "language": "Hungarian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Polish", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Romanian", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUT", "language": "Slovene", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Turkish", "isofficial": "F", "percentage": 1.5}, {"countrycode": "AZE", "language": "Armenian", "isofficial": "F", "percentage": 2.0}, {"countrycode": "AZE", "language": "Azerbaijani", "isofficial": "T", "percentage": 89.0}, {"countrycode": "AZE", "language": "Lezgian", "isofficial": "F", "percentage": 2.3}, {"countrycode": "AZE", "language": "Russian", "isofficial": "F", "percentage": 3.0}, {"countrycode": "BDI", "language": "French", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BDI", "language": "Kirundi", "isofficial": "T", "percentage": 98.1}, {"countrycode": "BDI", "language": "Swahili", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BEL", "language": "Arabic", "isofficial": "F", "percentage": 1.6}, {"countrycode": "BEL", "language": "Dutch", "isofficial": "T", "percentage": 59.2}, {"countrycode": "BEL", "language": "French", "isofficial": "T", "percentage": 32.6}, {"countrycode": "BEL", "language": "German", "isofficial": "T", "percentage": 1.0}, {"countrycode": "BEL", "language": "Italian", "isofficial": "F", "percentage": 2.4}, {"countrycode": "BEL", "language": "Turkish", "isofficial": "F", "percentage": 0.9}, {"countrycode": "BEN", "language": "Adja", "isofficial": "F", "percentage": 11.1}, {"countrycode": "BEN", "language": "Aizo", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Bariba", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Fon", "isofficial": "F", "percentage": 39.8}, {"countrycode": "BEN", "language": "Ful", "isofficial": "F", "percentage": 5.6}, {"countrycode": "BEN", "language": "Joruba", "isofficial": "F", "percentage": 12.2}, {"countrycode": "BEN", "language": "Somba", "isofficial": "F", "percentage": 6.7}, {"countrycode": "BFA", "language": "Busansi", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BFA", "language": "Dagara", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BFA", "language": "Dyula", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BFA", "language": "Ful", "isofficial": "F", "percentage": 9.7}, {"countrycode": "BFA", "language": "Gurma", "isofficial": "F", "percentage": 5.7}, {"countrycode": "BFA", "language": "Mossi", "isofficial": "F", "percentage": 50.2}, {"countrycode": "BGD", "language": "Bengali", "isofficial": "T", "percentage": 97.7}, {"countrycode": "BGD", "language": "Chakma", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BGD", "language": "Garo", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Khasi", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Marma", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BGD", "language": "Santhali", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Tripuri", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGR", "language": "Bulgariana", "isofficial": "T", "percentage": 83.2}, {"countrycode": "BGR", "language": "Macedonian", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BGR", "language": "Romani", "isofficial": "F", "percentage": 3.7}, {"countrycode": "BGR", "language": "Turkish", "isofficial": "F", "percentage": 9.4}, {"countrycode": "BHR", "language": "Arabic", "isofficial": "T", "percentage": 67.7}, {"countrycode": "BHR", "language": "English", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BHS", "language": "Creole English", "isofficial": "F", "percentage": 89.7}, {"countrycode": "BHS", "language": "Creole French", "isofficial": "F", "percentage": 10.3}, {"countrycode": "BIH", "language": "Serbo-Croatian", "isofficial": "T", "percentage": 99.2}, {"countrycode": "BLR", "language": "Belorussian", "isofficial": "T", "percentage": 65.6}, {"countrycode": "BLR", "language": "Polish", "isofficial": "F", "percentage": 0.6}, {"countrycode": "BLR", "language": "Russian", "isofficial": "T", "percentage": 32.0}, {"countrycode": "BLR", "language": "Ukrainian", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BLZ", "language": "English", "isofficial": "T", "percentage": 50.8}, {"countrycode": "BLZ", "language": "Garifuna", "isofficial": "F", "percentage": 6.8}, {"countrycode": "BLZ", "language": "Maya Languages", "isofficial": "F", "percentage": 9.6}, {"countrycode": "BLZ", "language": "Spanish", "isofficial": "F", "percentage": 31.6}, {"countrycode": "BMU", "language": "English", "isofficial": "T", "percentage": 100.0}, {"countrycode": "BOL", "language": "Aimar\u00e1", "isofficial": "T", "percentage": 3.2}, {"countrycode": "BOL", "language": "Guaran\u00ed", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BOL", "language": "Ket\u0161ua", "isofficial": "T", "percentage": 8.1}, {"countrycode": "BOL", "language": "Spanish", "isofficial": "T", "percentage": 87.7}, {"countrycode": "BRA", "language": "German", "isofficial": "F", "percentage": 0.5}, {"countrycode": "BRA", "language": "Indian Languages", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BRA", "language": "Italian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Japanese", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Portuguese", "isofficial": "T", "percentage": 97.5}, {"countrycode": "BRB", "language": "Bajan", "isofficial": "F", "percentage": 95.1}, {"countrycode": "BRB", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BRN", "language": "Chinese", "isofficial": "F", "percentage": 9.3}, {"countrycode": "BRN", "language": "English", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BRN", "language": "Malay", "isofficial": "T", "percentage": 45.5}, {"countrycode": "BRN", "language": "Malay-English", "isofficial": "F", "percentage": 28.8}, {"countrycode": "BTN", "language": "Asami", "isofficial": "F", "percentage": 15.2}, {"countrycode": "BTN", "language": "Dzongkha", "isofficial": "T", "percentage": 50.0}, {"countrycode": "BTN", "language": "Nepali", "isofficial": "F", "percentage": 34.8}, {"countrycode": "BWA", "language": "Khoekhoe", "isofficial": "F", "percentage": 2.5}, {"countrycode": "BWA", "language": "Ndebele", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BWA", "language": "San", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BWA", "language": "Shona", "isofficial": "F", "percentage": 12.3}, {"countrycode": "BWA", "language": "Tswana", "isofficial": "F", "percentage": 75.5}, {"countrycode": "CAF", "language": "Banda", "isofficial": "F", "percentage": 23.5}, {"countrycode": "CAF", "language": "Gbaya", "isofficial": "F", "percentage": 23.8}, {"countrycode": "CAF", "language": "Mandjia", "isofficial": "F", "percentage": 14.8}, {"countrycode": "CAF", "language": "Mbum", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAF", "language": "Ngbaka", "isofficial": "F", "percentage": 7.5}, {"countrycode": "CAF", "language": "Sara", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAN", "language": "Chinese", "isofficial": "F", "percentage": 2.5}, {"countrycode": "CAN", "language": "Dutch", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CAN", "language": "English", "isofficial": "T", "percentage": 60.4}, {"countrycode": "CAN", "language": "Eskimo Languages", "isofficial": "F", "percentage": 0.1}, {"countrycode": "CAN", "language": "French", "isofficial": "T", "percentage": 23.4}, {"countrycode": "CAN", "language": "German", "isofficial": "F", "percentage": 1.6}, {"countrycode": "CAN", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "CAN", "language": "Polish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Portuguese", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Punjabi", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Spanish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Ukrainian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CCK", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "CCK", "language": "Malay", "isofficial": "F", "percentage": 0.0}, {"countrycode": "CHE", "language": "French", "isofficial": "T", "percentage": 19.2}, {"countrycode": "CHE", "language": "German", "isofficial": "T", "percentage": 63.6}, {"countrycode": "CHE", "language": "Italian", "isofficial": "T", "percentage": 7.7}, {"countrycode": "CHE", "language": "Romansh", "isofficial": "T", "percentage": 0.6}, {"countrycode": "CHL", "language": "Aimar\u00e1", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHL", "language": "Araucan", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CHL", "language": "Rapa nui", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHL", "language": "Spanish", "isofficial": "T", "percentage": 89.7}, {"countrycode": "CHN", "language": "Chinese", "isofficial": "T", "percentage": 92.0}, {"countrycode": "CHN", "language": "Dong", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Hui", "isofficial": "F", "percentage": 0.8}, {"countrycode": "CHN", "language": "Mant\u0161u", "isofficial": "F", "percentage": 0.9}, {"countrycode": "CHN", "language": "Miao", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CHN", "language": "Mongolian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Puyi", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Tibetan", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Tujia", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHN", "language": "Uighur", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Yi", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Zhuang", "isofficial": "F", "percentage": 1.4}, {"countrycode": "CIV", "language": "Akan", "isofficial": "F", "percentage": 30.0}, {"countrycode": "CIV", "language": "Gur", "isofficial": "F", "percentage": 11.7}, {"countrycode": "CIV", "language": "Kru", "isofficial": "F", "percentage": 10.5}, {"countrycode": "CIV", "language": "Malinke", "isofficial": "F", "percentage": 11.4}, {"countrycode": "CIV", "language": "[South]Mande", "isofficial": "F", "percentage": 7.7}, {"countrycode": "CMR", "language": "Bamileke-bamum", "isofficial": "F", "percentage": 18.6}, {"countrycode": "CMR", "language": "Duala", "isofficial": "F", "percentage": 10.9}, {"countrycode": "CMR", "language": "Fang", "isofficial": "F", "percentage": 19.7}, {"countrycode": "CMR", "language": "Ful", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CMR", "language": "Maka", "isofficial": "F", "percentage": 4.9}, {"countrycode": "CMR", "language": "Mandara", "isofficial": "F", "percentage": 5.7}, {"countrycode": "CMR", "language": "Masana", "isofficial": "F", "percentage": 3.9}, {"countrycode": "CMR", "language": "Tikar", "isofficial": "F", "percentage": 7.4}, {"countrycode": "COD", "language": "Boa", "isofficial": "F", "percentage": 2.3}, {"countrycode": "COD", "language": "Chokwe", "isofficial": "F", "percentage": 1.8}, {"countrycode": "COD", "language": "Kongo", "isofficial": "F", "percentage": 16.0}, {"countrycode": "COD", "language": "Luba", "isofficial": "F", "percentage": 18.0}, {"countrycode": "COD", "language": "Mongo", "isofficial": "F", "percentage": 13.5}, {"countrycode": "COD", "language": "Ngala and Bangi", "isofficial": "F", "percentage": 5.8}, {"countrycode": "COD", "language": "Rundi", "isofficial": "F", "percentage": 3.8}, {"countrycode": "COD", "language": "Rwanda", "isofficial": "F", "percentage": 10.3}, {"countrycode": "COD", "language": "Teke", "isofficial": "F", "percentage": 2.7}, {"countrycode": "COD", "language": "Zande", "isofficial": "F", "percentage": 6.1}, {"countrycode": "COG", "language": "Kongo", "isofficial": "F", "percentage": 51.5}, {"countrycode": "COG", "language": "Mbete", "isofficial": "F", "percentage": 4.8}, {"countrycode": "COG", "language": "Mboshi", "isofficial": "F", "percentage": 11.4}, {"countrycode": "COG", "language": "Punu", "isofficial": "F", "percentage": 2.9}, {"countrycode": "COG", "language": "Sango", "isofficial": "F", "percentage": 2.6}, {"countrycode": "COG", "language": "Teke", "isofficial": "F", "percentage": 17.3}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nsummary = countrylanguage\n |> group_by(countrycode)\n |> aggregate(total_percentage: sum(percentage), count: count())\n\nresult = summary\n |> sort_by(total_percentage, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nsummary = countrylanguage\n |> group_by(countrycode)\n |> aggregate(total_percentage: sum(percentage), count: count())\n\nresult = summary\n |> sort_by(total_percentage, asc)\n |> take(4)\n\nemit result", "expected_output": [{"countrycode": "AIA", "total_percentage": 0.0, "count": 1}, {"countrycode": "CCK", "total_percentage": 0.0, "count": 2}, {"countrycode": "ARE", "total_percentage": 42.0, "count": 2}, {"countrycode": "BHR", "total_percentage": 67.7, "count": 2}, {"countrycode": "CIV", "total_percentage": 71.3, "count": 5}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 4", "line_num": 10, "original": "|> take(5)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "world_1__countrylanguage", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"results": [{"resultid": 1, "raceid": 18, "driverid": 1, "constructorid": 1, "number": 22, "grid": 1, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "58", "time": "34:50.6", "milliseconds": "5690616", "fastestlap": "39", "rank": "2", "fastestlaptime": "01:27.5", "fastestlapspeed": "218.3", "statusid": 1}, {"resultid": 2, "raceid": 18, "driverid": 2, "constructorid": 2, "number": 3, "grid": 5, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "58", "time": "5.478", "milliseconds": "5696094", "fastestlap": "41", "rank": "3", "fastestlaptime": "01:27.7", "fastestlapspeed": "217.586", "statusid": 1}, {"resultid": 3, "raceid": 18, "driverid": 3, "constructorid": 3, "number": 7, "grid": 7, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "58", "time": "8.163", "milliseconds": "5698779", "fastestlap": "41", "rank": "5", "fastestlaptime": "01:28.1", "fastestlapspeed": "216.719", "statusid": 1}, {"resultid": 4, "raceid": 18, "driverid": 4, "constructorid": 4, "number": 5, "grid": 11, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "58", "time": "17.181", "milliseconds": "5707797", "fastestlap": "58", "rank": "7", "fastestlaptime": "01:28.6", "fastestlapspeed": "215.464", "statusid": 1}, {"resultid": 5, "raceid": 18, "driverid": 5, "constructorid": 1, "number": 23, "grid": 3, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "58", "time": "18.014", "milliseconds": "5708630", "fastestlap": "43", "rank": "1", "fastestlaptime": "01:27.4", "fastestlapspeed": "218.385", "statusid": 1}, {"resultid": 6, "raceid": 18, "driverid": 6, "constructorid": 3, "number": 8, "grid": 13, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "50", "rank": "14", "fastestlaptime": "01:29.6", "fastestlapspeed": "212.974", "statusid": 11}, {"resultid": 7, "raceid": 18, "driverid": 7, "constructorid": 5, "number": 14, "grid": 17, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "55", "time": "", "milliseconds": "", "fastestlap": "22", "rank": "12", "fastestlaptime": "01:29.5", "fastestlapspeed": "213.224", "statusid": 5}, {"resultid": 8, "raceid": 18, "driverid": 8, "constructorid": 6, "number": 1, "grid": 15, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "53", "time": "", "milliseconds": "", "fastestlap": "20", "rank": "4", "fastestlaptime": "01:27.9", "fastestlapspeed": "217.18", "statusid": 5}, {"resultid": 9, "raceid": 18, "driverid": 9, "constructorid": 2, "number": 4, "grid": 2, "position": "", "positiontext": "R", "positionorder": 9, "points": 0.0, "laps": "47", "time": "", "milliseconds": "", "fastestlap": "15", "rank": "9", "fastestlaptime": "01:28.8", "fastestlapspeed": "215.1", "statusid": 4}, {"resultid": 10, "raceid": 18, "driverid": 10, "constructorid": 7, "number": 12, "grid": 18, "position": "", "positiontext": "R", "positionorder": 10, "points": 0.0, "laps": "43", "time": "", "milliseconds": "", "fastestlap": "23", "rank": "13", "fastestlaptime": "01:29.6", "fastestlapspeed": "213.166", "statusid": 3}, {"resultid": 11, "raceid": 18, "driverid": 11, "constructorid": 8, "number": 18, "grid": 19, "position": "", "positiontext": "R", "positionorder": 11, "points": 0.0, "laps": "32", "time": "", "milliseconds": "", "fastestlap": "24", "rank": "15", "fastestlaptime": "01:30.9", "fastestlapspeed": "210.038", "statusid": 7}, {"resultid": 12, "raceid": 18, "driverid": 12, "constructorid": 4, "number": 6, "grid": 20, "position": "", "positiontext": "R", "positionorder": 12, "points": 0.0, "laps": "30", "time": "", "milliseconds": "", "fastestlap": "20", "rank": "16", "fastestlaptime": "01:31.4", "fastestlapspeed": "208.907", "statusid": 8}, {"resultid": 13, "raceid": 18, "driverid": 13, "constructorid": 6, "number": 2, "grid": 4, "position": "", "positiontext": "R", "positionorder": 13, "points": 0.0, "laps": "29", "time": "", "milliseconds": "", "fastestlap": "23", "rank": "6", "fastestlaptime": "01:28.2", "fastestlapspeed": "216.51", "statusid": 5}, {"resultid": 14, "raceid": 18, "driverid": 14, "constructorid": 9, "number": 9, "grid": 8, "position": "", "positiontext": "R", "positionorder": 14, "points": 0.0, "laps": "25", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "11", "fastestlaptime": "01:29.5", "fastestlapspeed": "213.3", "statusid": 4}, {"resultid": 15, "raceid": 18, "driverid": 15, "constructorid": 7, "number": 11, "grid": 6, "position": "", "positiontext": "R", "positionorder": 15, "points": 0.0, "laps": "19", "time": "", "milliseconds": "", "fastestlap": "18", "rank": "10", "fastestlaptime": "01:29.3", "fastestlapspeed": "213.758", "statusid": 10}, {"resultid": 16, "raceid": 18, "driverid": 16, "constructorid": 10, "number": 20, "grid": 22, "position": "", "positiontext": "R", "positionorder": 16, "points": 0.0, "laps": "8", "time": "", "milliseconds": "", "fastestlap": "8", "rank": "17", "fastestlaptime": "01:32.0", "fastestlapspeed": "207.461", "statusid": 9}, {"resultid": 17, "raceid": 18, "driverid": 17, "constructorid": 9, "number": 10, "grid": 14, "position": "", "positiontext": "R", "positionorder": 17, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 18, "raceid": 18, "driverid": 18, "constructorid": 11, "number": 16, "grid": 12, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 19, "raceid": 18, "driverid": 19, "constructorid": 8, "number": 19, "grid": 21, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 20, "raceid": 18, "driverid": 20, "constructorid": 5, "number": 15, "grid": 9, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 21, "raceid": 18, "driverid": 21, "constructorid": 10, "number": 21, "grid": 16, "position": "", "positiontext": "R", "positionorder": 21, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 22, "raceid": 18, "driverid": 22, "constructorid": 11, "number": 17, "grid": 10, "position": "", "positiontext": "D", "positionorder": 22, "points": 0.0, "laps": "58", "time": "", "milliseconds": "", "fastestlap": "44", "rank": "8", "fastestlaptime": "01:28.7", "fastestlapspeed": "215.141", "statusid": 2}, {"resultid": 23, "raceid": 19, "driverid": 8, "constructorid": 6, "number": 1, "grid": 2, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "56", "time": "31:18.6", "milliseconds": "5478555", "fastestlap": "37", "rank": "2", "fastestlaptime": "01:35.4", "fastestlapspeed": "209.158", "statusid": 1}, {"resultid": 24, "raceid": 19, "driverid": 9, "constructorid": 2, "number": 4, "grid": 4, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "56", "time": "19.57", "milliseconds": "5498125", "fastestlap": "39", "rank": "6", "fastestlaptime": "01:35.9", "fastestlapspeed": "208.033", "statusid": 1}, {"resultid": 25, "raceid": 19, "driverid": 5, "constructorid": 1, "number": 23, "grid": 8, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "56", "time": "38.45", "milliseconds": "5517005", "fastestlap": "19", "rank": "7", "fastestlaptime": "01:35.9", "fastestlapspeed": "208.031", "statusid": 1}, {"resultid": 26, "raceid": 19, "driverid": 15, "constructorid": 7, "number": 11, "grid": 3, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "56", "time": "45.832", "milliseconds": "5524387", "fastestlap": "53", "rank": "8", "fastestlaptime": "01:36.1", "fastestlapspeed": "207.715", "statusid": 1}, {"resultid": 27, "raceid": 19, "driverid": 1, "constructorid": 1, "number": 22, "grid": 9, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "56", "time": "46.548", "milliseconds": "5525103", "fastestlap": "53", "rank": "3", "fastestlaptime": "01:35.5", "fastestlapspeed": "209.033", "statusid": 1}, {"resultid": 28, "raceid": 19, "driverid": 2, "constructorid": 2, "number": 3, "grid": 5, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "56", "time": "49.833", "milliseconds": "5528388", "fastestlap": "55", "rank": "1", "fastestlaptime": "01:35.4", "fastestlapspeed": "209.244", "statusid": 1}, {"resultid": 29, "raceid": 19, "driverid": 17, "constructorid": 9, "number": 10, "grid": 6, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "56", "time": "+1:08.130", "milliseconds": "5546685", "fastestlap": "53", "rank": "12", "fastestlaptime": "01:36.7", "fastestlapspeed": "206.366", "statusid": 1}, {"resultid": 30, "raceid": 19, "driverid": 4, "constructorid": 4, "number": 5, "grid": 7, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "56", "time": "+1:10.041", "milliseconds": "5548596", "fastestlap": "40", "rank": "10", "fastestlaptime": "01:36.3", "fastestlapspeed": "207.24", "statusid": 1}, {"resultid": 31, "raceid": 19, "driverid": 14, "constructorid": 9, "number": 9, "grid": 12, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "56", "time": "+1:16.220", "milliseconds": "5554775", "fastestlap": "55", "rank": "9", "fastestlaptime": "01:36.2", "fastestlapspeed": "207.417", "statusid": 1}, {"resultid": 32, "raceid": 19, "driverid": 18, "constructorid": 11, "number": 16, "grid": 11, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "56", "time": "+1:26.214", "milliseconds": "5564769", "fastestlap": "56", "rank": "4", "fastestlaptime": "01:35.7", "fastestlapspeed": "208.481", "statusid": 1}, {"resultid": 33, "raceid": 19, "driverid": 12, "constructorid": 4, "number": 6, "grid": 13, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "56", "time": "+1:32.202", "milliseconds": "5570757", "fastestlap": "52", "rank": "15", "fastestlaptime": "01:37.0", "fastestlapspeed": "205.812", "statusid": 1}, {"resultid": 34, "raceid": 19, "driverid": 21, "constructorid": 10, "number": 21, "grid": 17, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "55", "time": "", "milliseconds": "", "fastestlap": "52", "rank": "16", "fastestlaptime": "01:37.0", "fastestlapspeed": "205.8", "statusid": 11}, {"resultid": 35, "raceid": 19, "driverid": 22, "constructorid": 11, "number": 17, "grid": 14, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "55", "time": "", "milliseconds": "", "fastestlap": "55", "rank": "11", "fastestlaptime": "01:36.7", "fastestlapspeed": "206.372", "statusid": 11}, {"resultid": 36, "raceid": 19, "driverid": 3, "constructorid": 3, "number": 7, "grid": 16, "position": "14", "positiontext": "14", "positionorder": 14, "points": 0.0, "laps": "55", "time": "", "milliseconds": "", "fastestlap": "55", "rank": "13", "fastestlaptime": "01:36.8", "fastestlapspeed": "206.182", "statusid": 11}, {"resultid": 37, "raceid": 19, "driverid": 19, "constructorid": 8, "number": 19, "grid": 21, "position": "15", "positiontext": "15", "positionorder": 15, "points": 0.0, "laps": "55", "time": "", "milliseconds": "", "fastestlap": "55", "rank": "18", "fastestlaptime": "01:38.2", "fastestlapspeed": "203.265", "statusid": 11}, {"resultid": 38, "raceid": 19, "driverid": 11, "constructorid": 8, "number": 18, "grid": 19, "position": "16", "positiontext": "16", "positionorder": 16, "points": 0.0, "laps": "54", "time": "", "milliseconds": "", "fastestlap": "53", "rank": "19", "fastestlaptime": "01:38.5", "fastestlapspeed": "202.578", "statusid": 12}, {"resultid": 39, "raceid": 19, "driverid": 6, "constructorid": 3, "number": 8, "grid": 22, "position": "17", "positiontext": "17", "positionorder": 17, "points": 0.0, "laps": "54", "time": "", "milliseconds": "", "fastestlap": "19", "rank": "17", "fastestlaptime": "01:37.7", "fastestlapspeed": "204.222", "statusid": 12}, {"resultid": 40, "raceid": 19, "driverid": 20, "constructorid": 5, "number": 15, "grid": 15, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "39", "time": "", "milliseconds": "", "fastestlap": "37", "rank": "14", "fastestlaptime": "01:36.9", "fastestlapspeed": "205.995", "statusid": 5}, {"resultid": 41, "raceid": 19, "driverid": 13, "constructorid": 6, "number": 2, "grid": 1, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "30", "time": "", "milliseconds": "", "fastestlap": "15", "rank": "5", "fastestlaptime": "01:35.9", "fastestlapspeed": "208.048", "statusid": 20}, {"resultid": 42, "raceid": 19, "driverid": 16, "constructorid": 10, "number": 20, "grid": 20, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "5", "time": "", "milliseconds": "", "fastestlap": "3", "rank": "20", "fastestlaptime": "01:40.3", "fastestlapspeed": "198.891", "statusid": 9}, {"resultid": 43, "raceid": 19, "driverid": 10, "constructorid": 7, "number": 12, "grid": 10, "position": "", "positiontext": "R", "positionorder": 21, "points": 0.0, "laps": "1", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 44, "raceid": 19, "driverid": 7, "constructorid": 5, "number": 14, "grid": 18, "position": "", "positiontext": "R", "positionorder": 22, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 20}, {"resultid": 45, "raceid": 20, "driverid": 13, "constructorid": 6, "number": 2, "grid": 2, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "57", "time": "31:07.0", "milliseconds": "5466970", "fastestlap": "38", "rank": "3", "fastestlaptime": "01:33.6", "fastestlapspeed": "208.153", "statusid": 1}, {"resultid": 46, "raceid": 20, "driverid": 8, "constructorid": 6, "number": 1, "grid": 4, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "57", "time": "3.339", "milliseconds": "5470309", "fastestlap": "35", "rank": "4", "fastestlaptime": "01:33.7", "fastestlapspeed": "207.911", "statusid": 1}, {"resultid": 47, "raceid": 20, "driverid": 9, "constructorid": 2, "number": 4, "grid": 1, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "57", "time": "4.998", "milliseconds": "5471968", "fastestlap": "55", "rank": "5", "fastestlaptime": "01:33.8", "fastestlapspeed": "207.765", "statusid": 1}, {"resultid": 48, "raceid": 20, "driverid": 2, "constructorid": 2, "number": 3, "grid": 6, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "57", "time": "8.409", "milliseconds": "5475379", "fastestlap": "48", "rank": "2", "fastestlaptime": "01:33.6", "fastestlapspeed": "208.231", "statusid": 1}, {"resultid": 49, "raceid": 20, "driverid": 5, "constructorid": 1, "number": 23, "grid": 5, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "57", "time": "26.789", "milliseconds": "5493759", "fastestlap": "49", "rank": "1", "fastestlaptime": "01:33.2", "fastestlapspeed": "209.062", "statusid": 1}, {"resultid": 50, "raceid": 20, "driverid": 15, "constructorid": 7, "number": 11, "grid": 7, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "57", "time": "41.314", "milliseconds": "5508284", "fastestlap": "45", "rank": "7", "fastestlaptime": "01:34.2", "fastestlapspeed": "206.819", "statusid": 1}, {"resultid": 51, "raceid": 20, "driverid": 17, "constructorid": 9, "number": 10, "grid": 11, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "57", "time": "45.473", "milliseconds": "5512443", "fastestlap": "51", "rank": "8", "fastestlaptime": "01:34.3", "fastestlapspeed": "206.597", "statusid": 1}, {"resultid": 52, "raceid": 20, "driverid": 3, "constructorid": 3, "number": 7, "grid": 8, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "57", "time": "55.889", "milliseconds": "5522859", "fastestlap": "57", "rank": "6", "fastestlaptime": "01:34.1", "fastestlapspeed": "207.109", "statusid": 1}, {"resultid": 53, "raceid": 20, "driverid": 10, "constructorid": 7, "number": 12, "grid": 13, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "57", "time": "+1:09.500", "milliseconds": "5536470", "fastestlap": "56", "rank": "9", "fastestlaptime": "01:34.8", "fastestlapspeed": "205.503", "statusid": 1}, {"resultid": 54, "raceid": 20, "driverid": 4, "constructorid": 4, "number": 5, "grid": 10, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "57", "time": "+1:17.181", "milliseconds": "5544151", "fastestlap": "35", "rank": "13", "fastestlaptime": "01:35.2", "fastestlapspeed": "204.668", "statusid": 1}, {"resultid": 55, "raceid": 20, "driverid": 22, "constructorid": 11, "number": 17, "grid": 12, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "57", "time": "+1:17.862", "milliseconds": "5544832", "fastestlap": "40", "rank": "10", "fastestlaptime": "01:34.9", "fastestlapspeed": "205.399", "statusid": 1}, {"resultid": 56, "raceid": 20, "driverid": 21, "constructorid": 10, "number": 21, "grid": 18, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "56", "rank": "11", "fastestlaptime": "01:35.1", "fastestlapspeed": "204.963", "statusid": 11}, {"resultid": 57, "raceid": 20, "driverid": 1, "constructorid": 1, "number": 22, "grid": 3, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "25", "rank": "19", "fastestlaptime": "01:35.5", "fastestlapspeed": "203.969", "statusid": 11}, {"resultid": 58, "raceid": 20, "driverid": 6, "constructorid": 3, "number": 8, "grid": 16, "position": "14", "positiontext": "14", "positionorder": 14, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "30", "rank": "17", "fastestlaptime": "01:35.4", "fastestlapspeed": "204.155", "statusid": 11}, {"resultid": 59, "raceid": 20, "driverid": 7, "constructorid": 5, "number": 14, "grid": 15, "position": "15", "positiontext": "15", "positionorder": 15, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "33", "rank": "15", "fastestlaptime": "01:35.3", "fastestlapspeed": "204.369", "statusid": 11}, {"resultid": 60, "raceid": 20, "driverid": 19, "constructorid": 8, "number": 19, "grid": 21, "position": "16", "positiontext": "16", "positionorder": 16, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "45", "rank": "14", "fastestlaptime": "01:35.3", "fastestlapspeed": "204.389", "statusid": 11}, {"resultid": 61, "raceid": 20, "driverid": 11, "constructorid": 8, "number": 18, "grid": 22, "position": "17", "positiontext": "17", "positionorder": 17, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "56", "rank": "20", "fastestlaptime": "01:35.9", "fastestlapspeed": "203.18", "statusid": 11}, {"resultid": 62, "raceid": 20, "driverid": 14, "constructorid": 9, "number": 9, "grid": 17, "position": "18", "positiontext": "18", "positionorder": 18, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "43", "rank": "16", "fastestlaptime": "01:35.4", "fastestlapspeed": "204.331", "statusid": 11}, {"resultid": 63, "raceid": 20, "driverid": 16, "constructorid": 10, "number": 20, "grid": 20, "position": "19", "positiontext": "19", "positionorder": 19, "points": 0.0, "laps": "56", "time": "", "milliseconds": "", "fastestlap": "55", "rank": "18", "fastestlaptime": "01:35.4", "fastestlapspeed": "204.136", "statusid": 12}, {"resultid": 64, "raceid": 20, "driverid": 12, "constructorid": 4, "number": 6, "grid": 14, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "40", "time": "", "milliseconds": "", "fastestlap": "31", "rank": "12", "fastestlaptime": "01:35.1", "fastestlapspeed": "204.808", "statusid": 6}, {"resultid": 65, "raceid": 20, "driverid": 18, "constructorid": 11, "number": 16, "grid": 9, "position": "", "positiontext": "R", "positionorder": 21, "points": 0.0, "laps": "19", "time": "", "milliseconds": "", "fastestlap": "11", "rank": "21", "fastestlaptime": "01:36.1", "fastestlapspeed": "202.686", "statusid": 4}, {"resultid": 66, "raceid": 20, "driverid": 20, "constructorid": 5, "number": 15, "grid": 19, "position": "", "positiontext": "R", "positionorder": 22, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 5}, {"resultid": 67, "raceid": 21, "driverid": 8, "constructorid": 6, "number": 1, "grid": 1, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "66", "time": "38:19.1", "milliseconds": "5899051", "fastestlap": "46", "rank": "1", "fastestlaptime": "01:21.7", "fastestlapspeed": "205.191", "statusid": 1}, {"resultid": 68, "raceid": 21, "driverid": 13, "constructorid": 6, "number": 2, "grid": 3, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "66", "time": "3.228", "milliseconds": "5902279", "fastestlap": "45", "rank": "2", "fastestlaptime": "01:21.8", "fastestlapspeed": "204.863", "statusid": 1}, {"resultid": 69, "raceid": 21, "driverid": 1, "constructorid": 1, "number": 22, "grid": 5, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "66", "time": "4.187", "milliseconds": "5903238", "fastestlap": "20", "rank": "3", "fastestlaptime": "01:22.0", "fastestlapspeed": "204.323", "statusid": 1}, {"resultid": 70, "raceid": 21, "driverid": 9, "constructorid": 2, "number": 4, "grid": 4, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "66", "time": "5.694", "milliseconds": "5904745", "fastestlap": "20", "rank": "4", "fastestlaptime": "01:22.1", "fastestlapspeed": "204.102", "statusid": 1}, {"resultid": 71, "raceid": 21, "driverid": 17, "constructorid": 9, "number": 10, "grid": 7, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "66", "time": "35.938", "milliseconds": "5934989", "fastestlap": "19", "rank": "8", "fastestlaptime": "01:22.6", "fastestlapspeed": "202.969", "statusid": 1}, {"resultid": 72, "raceid": 21, "driverid": 18, "constructorid": 11, "number": 16, "grid": 13, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "66", "time": "53.01", "milliseconds": "5952061", "fastestlap": "66", "rank": "5", "fastestlaptime": "01:22.4", "fastestlapspeed": "203.489", "statusid": 1}, {"resultid": 73, "raceid": 21, "driverid": 6, "constructorid": 3, "number": 8, "grid": 12, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "66", "time": "58.244", "milliseconds": "5957295", "fastestlap": "48", "rank": "15", "fastestlaptime": "01:23.5", "fastestlapspeed": "200.576", "statusid": 1}, {"resultid": 74, "raceid": 21, "driverid": 15, "constructorid": 7, "number": 11, "grid": 8, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "66", "time": "59.435", "milliseconds": "5958486", "fastestlap": "45", "rank": "10", "fastestlaptime": "01:22.8", "fastestlapspeed": "202.494", "statusid": 1}, {"resultid": 75, "raceid": 21, "driverid": 2, "constructorid": 2, "number": 3, "grid": 9, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "66", "time": "+1:03.073", "milliseconds": "5962124", "fastestlap": "21", "rank": "7", "fastestlaptime": "01:22.5", "fastestlapspeed": "203.08", "statusid": 1}, {"resultid": 76, "raceid": 21, "driverid": 21, "constructorid": 10, "number": 21, "grid": 19, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "65", "time": "", "milliseconds": "", "fastestlap": "40", "rank": "14", "fastestlaptime": "01:23.4", "fastestlapspeed": "200.841", "statusid": 11}, {"resultid": 77, "raceid": 21, "driverid": 10, "constructorid": 7, "number": 12, "grid": 14, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "65", "time": "", "milliseconds": "", "fastestlap": "57", "rank": "12", "fastestlaptime": "01:23.0", "fastestlapspeed": "201.886", "statusid": 11}, {"resultid": 78, "raceid": 21, "driverid": 14, "constructorid": 9, "number": 9, "grid": 17, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "65", "time": "", "milliseconds": "", "fastestlap": "57", "rank": "11", "fastestlaptime": "01:22.8", "fastestlapspeed": "202.288", "statusid": 11}, {"resultid": 79, "raceid": 21, "driverid": 11, "constructorid": 8, "number": 18, "grid": 22, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "65", "time": "", "milliseconds": "", "fastestlap": "34", "rank": "17", "fastestlaptime": "01:24.6", "fastestlapspeed": "198.045", "statusid": 11}, {"resultid": 80, "raceid": 21, "driverid": 3, "constructorid": 3, "number": 7, "grid": 15, "position": "", "positiontext": "R", "positionorder": 14, "points": 0.0, "laps": "41", "time": "", "milliseconds": "", "fastestlap": "20", "rank": "13", "fastestlaptime": "01:23.3", "fastestlapspeed": "201.13", "statusid": 5}, {"resultid": 81, "raceid": 21, "driverid": 4, "constructorid": 4, "number": 5, "grid": 2, "position": "", "positiontext": "R", "positionorder": 15, "points": 0.0, "laps": "34", "time": "", "milliseconds": "", "fastestlap": "15", "rank": "9", "fastestlaptime": "01:22.7", "fastestlapspeed": "202.677", "statusid": 5}, {"resultid": 82, "raceid": 21, "driverid": 22, "constructorid": 11, "number": 17, "grid": 11, "position": "", "positiontext": "R", "positionorder": 16, "points": 0.0, "laps": "34", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "16", "fastestlaptime": "01:23.9", "fastestlapspeed": "199.837", "statusid": 4}, {"resultid": 83, "raceid": 21, "driverid": 5, "constructorid": 1, "number": 23, "grid": 6, "position": "", "positiontext": "R", "positionorder": 17, "points": 0.0, "laps": "21", "time": "", "milliseconds": "", "fastestlap": "19", "rank": "6", "fastestlaptime": "01:22.5", "fastestlapspeed": "203.243", "statusid": 3}, {"resultid": 84, "raceid": 21, "driverid": 19, "constructorid": 8, "number": 19, "grid": 21, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "8", "time": "", "milliseconds": "", "fastestlap": "6", "rank": "20", "fastestlaptime": "01:26.9", "fastestlapspeed": "192.922", "statusid": 21}, {"resultid": 85, "raceid": 21, "driverid": 7, "constructorid": 5, "number": 14, "grid": 16, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "7", "time": "", "milliseconds": "", "fastestlap": "6", "rank": "19", "fastestlaptime": "01:26.0", "fastestlapspeed": "194.862", "statusid": 4}, {"resultid": 86, "raceid": 21, "driverid": 12, "constructorid": 4, "number": 6, "grid": 10, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "6", "time": "", "milliseconds": "", "fastestlap": "6", "rank": "18", "fastestlaptime": "01:25.4", "fastestlapspeed": "196.128", "statusid": 4}, {"resultid": 87, "raceid": 21, "driverid": 16, "constructorid": 10, "number": 20, "grid": 20, "position": "", "positiontext": "R", "positionorder": 21, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 88, "raceid": 21, "driverid": 20, "constructorid": 5, "number": 15, "grid": 18, "position": "", "positiontext": "R", "positionorder": 22, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 89, "raceid": 22, "driverid": 13, "constructorid": 6, "number": 2, "grid": 1, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "58", "time": "26:49.5", "milliseconds": "5209451", "fastestlap": "16", "rank": "3", "fastestlaptime": "01:26.7", "fastestlapspeed": "221.734", "statusid": 1}, {"resultid": 90, "raceid": 22, "driverid": 1, "constructorid": 1, "number": 22, "grid": 3, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "58", "time": "3.779", "milliseconds": "5213230", "fastestlap": "31", "rank": "2", "fastestlaptime": "01:26.5", "fastestlapspeed": "222.085", "statusid": 1}, {"resultid": 91, "raceid": 22, "driverid": 8, "constructorid": 6, "number": 1, "grid": 4, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "58", "time": "4.271", "milliseconds": "5213722", "fastestlap": "20", "rank": "1", "fastestlaptime": "01:26.5", "fastestlapspeed": "222.144", "statusid": 1}, {"resultid": 92, "raceid": 22, "driverid": 9, "constructorid": 2, "number": 4, "grid": 5, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "58", "time": "21.945", "milliseconds": "5231396", "fastestlap": "17", "rank": "4", "fastestlaptime": "01:26.8", "fastestlapspeed": "221.442", "statusid": 1}, {"resultid": 93, "raceid": 22, "driverid": 2, "constructorid": 2, "number": 3, "grid": 9, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "58", "time": "38.741", "milliseconds": "5248192", "fastestlap": "20", "rank": "5", "fastestlaptime": "01:27.2", "fastestlapspeed": "220.328", "statusid": 1}, {"resultid": 94, "raceid": 22, "driverid": 4, "constructorid": 4, "number": 5, "grid": 7, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "58", "time": "53.724", "milliseconds": "5263175", "fastestlap": "57", "rank": "6", "fastestlaptime": "01:27.3", "fastestlapspeed": "220.174", "statusid": 1}, {"resultid": 95, "raceid": 22, "driverid": 17, "constructorid": 9, "number": 10, "grid": 6, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "58", "time": "+1:04.229", "milliseconds": "5273680", "fastestlap": "14", "rank": "7", "fastestlaptime": "01:27.6", "fastestlapspeed": "219.294", "statusid": 1}, {"resultid": 96, "raceid": 22, "driverid": 3, "constructorid": 3, "number": 7, "grid": 11, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "58", "time": "+1:11.406", "milliseconds": "5280857", "fastestlap": "55", "rank": "9", "fastestlaptime": "01:27.8", "fastestlapspeed": "218.882", "statusid": 1}, {"resultid": 97, "raceid": 22, "driverid": 14, "constructorid": 9, "number": 9, "grid": 10, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "58", "time": "+1:15.270", "milliseconds": "5284721", "fastestlap": "41", "rank": "12", "fastestlaptime": "01:28.0", "fastestlapspeed": "218.457", "statusid": 1}, {"resultid": 98, "raceid": 22, "driverid": 15, "constructorid": 7, "number": 11, "grid": 8, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "58", "time": "+1:16.344", "milliseconds": "5285795", "fastestlap": "52", "rank": "11", "fastestlaptime": "01:27.9", "fastestlapspeed": "218.556", "statusid": 1}, {"resultid": 99, "raceid": 22, "driverid": 18, "constructorid": 11, "number": 16, "grid": 13, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "57", "rank": "13", "fastestlaptime": "01:28.0", "fastestlapspeed": "218.377", "statusid": 11}, {"resultid": 100, "raceid": 22, "driverid": 5, "constructorid": 1, "number": 23, "grid": 2, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "55", "rank": "8", "fastestlaptime": "01:27.6", "fastestlapspeed": "219.269", "statusid": 11}, {"resultid": 101, "raceid": 22, "driverid": 10, "constructorid": 7, "number": 12, "grid": 15, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "28", "rank": "16", "fastestlaptime": "01:28.3", "fastestlapspeed": "217.623", "statusid": 11}, {"resultid": 102, "raceid": 22, "driverid": 22, "constructorid": 11, "number": 17, "grid": 12, "position": "14", "positiontext": "14", "positionorder": 14, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "56", "rank": "14", "fastestlaptime": "01:28.0", "fastestlapspeed": "218.33", "statusid": 11}, {"resultid": 103, "raceid": 22, "driverid": 12, "constructorid": 4, "number": 6, "grid": 17, "position": "15", "positiontext": "15", "positionorder": 15, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "40", "rank": "10", "fastestlaptime": "01:27.9", "fastestlapspeed": "218.703", "statusid": 11}, {"resultid": 104, "raceid": 22, "driverid": 16, "constructorid": 10, "number": 20, "grid": 19, "position": "16", "positiontext": "16", "positionorder": 16, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "35", "rank": "18", "fastestlaptime": "01:28.8", "fastestlapspeed": "216.454", "statusid": 11}, {"resultid": 105, "raceid": 22, "driverid": 20, "constructorid": 5, "number": 15, "grid": 14, "position": "17", "positiontext": "17", "positionorder": 17, "points": 0.0, "laps": "57", "time": "", "milliseconds": "", "fastestlap": "38", "rank": "15", "fastestlaptime": "01:28.2", "fastestlapspeed": "217.926", "statusid": 11}, {"resultid": 106, "raceid": 22, "driverid": 7, "constructorid": 5, "number": 14, "grid": 18, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "24", "time": "", "milliseconds": "", "fastestlap": "19", "rank": "17", "fastestlaptime": "01:28.7", "fastestlapspeed": "216.539", "statusid": 22}, {"resultid": 107, "raceid": 22, "driverid": 6, "constructorid": 3, "number": 8, "grid": 16, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "1", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 108, "raceid": 22, "driverid": 21, "constructorid": 10, "number": 21, "grid": 20, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 109, "raceid": 23, "driverid": 1, "constructorid": 1, "number": 22, "grid": 3, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "76", "time": "00:42.7", "milliseconds": "7242742", "fastestlap": "71", "rank": "6", "fastestlaptime": "01:18.5", "fastestlapspeed": "153.152", "statusid": 1}, {"resultid": 110, "raceid": 23, "driverid": 9, "constructorid": 2, "number": 4, "grid": 5, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "76", "time": "3.064", "milliseconds": "7245806", "fastestlap": "75", "rank": "5", "fastestlaptime": "01:17.9", "fastestlapspeed": "154.286", "statusid": 1}, {"resultid": 111, "raceid": 23, "driverid": 13, "constructorid": 6, "number": 2, "grid": 1, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "76", "time": "4.811", "milliseconds": "7247553", "fastestlap": "76", "rank": "4", "fastestlaptime": "01:17.9", "fastestlapspeed": "154.379", "statusid": 1}, {"resultid": 112, "raceid": 23, "driverid": 17, "constructorid": 9, "number": 10, "grid": 9, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "76", "time": "19.295", "milliseconds": "7262037", "fastestlap": "74", "rank": "8", "fastestlaptime": "01:19.0", "fastestlapspeed": "152.133", "statusid": 1}, {"resultid": 113, "raceid": 23, "driverid": 20, "constructorid": 5, "number": 15, "grid": 19, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "76", "time": "24.657", "milliseconds": "7267399", "fastestlap": "74", "rank": "7", "fastestlaptime": "01:18.8", "fastestlapspeed": "152.614", "statusid": 1}, {"resultid": 114, "raceid": 23, "driverid": 22, "constructorid": 11, "number": 17, "grid": 14, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "76", "time": "28.408", "milliseconds": "7271150", "fastestlap": "75", "rank": "9", "fastestlaptime": "01:19.6", "fastestlapspeed": "151.104", "statusid": 1}, {"resultid": 115, "raceid": 23, "driverid": 6, "constructorid": 3, "number": 8, "grid": 13, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "76", "time": "30.18", "milliseconds": "7272922", "fastestlap": "75", "rank": "13", "fastestlaptime": "01:19.9", "fastestlapspeed": "150.469", "statusid": 1}, {"resultid": 116, "raceid": 23, "driverid": 5, "constructorid": 1, "number": 23, "grid": 4, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "76", "time": "33.191", "milliseconds": "7275933", "fastestlap": "74", "rank": "2", "fastestlaptime": "01:17.3", "fastestlapspeed": "155.586", "statusid": 1}, {"resultid": 117, "raceid": 23, "driverid": 8, "constructorid": 6, "number": 1, "grid": 2, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "76", "time": "33.792", "milliseconds": "7276534", "fastestlap": "74", "rank": "1", "fastestlaptime": "01:16.7", "fastestlapspeed": "156.789", "statusid": 1}, {"resultid": 118, "raceid": 23, "driverid": 4, "constructorid": 4, "number": 5, "grid": 7, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "75", "time": "", "milliseconds": "", "fastestlap": "73", "rank": "3", "fastestlaptime": "01:17.9", "fastestlapspeed": "154.413", "statusid": 11}, {"resultid": 119, "raceid": 23, "driverid": 18, "constructorid": 11, "number": 16, "grid": 11, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "75", "time": "", "milliseconds": "", "fastestlap": "74", "rank": "10", "fastestlaptime": "01:19.6", "fastestlapspeed": "151.089", "statusid": 11}, {"resultid": 120, "raceid": 23, "driverid": 10, "constructorid": 7, "number": 12, "grid": 10, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "75", "time": "", "milliseconds": "", "fastestlap": "75", "rank": "11", "fastestlaptime": "01:19.6", "fastestlapspeed": "151.021", "statusid": 11}, {"resultid": 121, "raceid": 23, "driverid": 15, "constructorid": 7, "number": 11, "grid": 8, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "75", "time": "", "milliseconds": "", "fastestlap": "75", "rank": "12", "fastestlaptime": "01:19.8", "fastestlapspeed": "150.62", "statusid": 11}, {"resultid": 122, "raceid": 23, "driverid": 2, "constructorid": 2, "number": 3, "grid": 12, "position": "14", "positiontext": "14", "positionorder": 14, "points": 0.0, "laps": "72", "time": "", "milliseconds": "", "fastestlap": "72", "rank": "14", "fastestlaptime": "01:20.3", "fastestlapspeed": "149.829", "statusid": 14}, {"resultid": 123, "raceid": 23, "driverid": 16, "constructorid": 10, "number": 20, "grid": 18, "position": "", "positiontext": "R", "positionorder": 15, "points": 0.0, "laps": "67", "time": "", "milliseconds": "", "fastestlap": "60", "rank": "16", "fastestlaptime": "01:22.0", "fastestlapspeed": "146.564", "statusid": 4}, {"resultid": 124, "raceid": 23, "driverid": 3, "constructorid": 3, "number": 7, "grid": 6, "position": "", "positiontext": "R", "positionorder": 16, "points": 0.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "58", "rank": "15", "fastestlaptime": "01:21.3", "fastestlapspeed": "147.951", "statusid": 3}, {"resultid": 125, "raceid": 23, "driverid": 12, "constructorid": 4, "number": 6, "grid": 17, "position": "", "positiontext": "R", "positionorder": 17, "points": 0.0, "laps": "47", "time": "", "milliseconds": "", "fastestlap": "40", "rank": "17", "fastestlaptime": "01:31.2", "fastestlapspeed": "131.86", "statusid": 3}, {"resultid": 126, "raceid": 23, "driverid": 21, "constructorid": 10, "number": 21, "grid": 20, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "36", "time": "", "milliseconds": "", "fastestlap": "33", "rank": "18", "fastestlaptime": "01:32.8", "fastestlapspeed": "129.5", "statusid": 6}, {"resultid": 127, "raceid": 23, "driverid": 14, "constructorid": 9, "number": 9, "grid": 15, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "7", "time": "", "milliseconds": "", "fastestlap": "7", "rank": "20", "fastestlaptime": "01:42.1", "fastestlapspeed": "117.753", "statusid": 3}, {"resultid": 128, "raceid": 23, "driverid": 7, "constructorid": 5, "number": 14, "grid": 16, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "7", "time": "", "milliseconds": "", "fastestlap": "7", "rank": "19", "fastestlaptime": "01:41.2", "fastestlapspeed": "118.872", "statusid": 4}, {"resultid": 129, "raceid": 24, "driverid": 9, "constructorid": 2, "number": 4, "grid": 2, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "70", "time": "36:24.2", "milliseconds": "5784227", "fastestlap": "47", "rank": "4", "fastestlaptime": "01:17.5", "fastestlapspeed": "202.473", "statusid": 1}, {"resultid": 130, "raceid": 24, "driverid": 2, "constructorid": 2, "number": 3, "grid": 8, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "70", "time": "16.495", "milliseconds": "5800722", "fastestlap": "25", "rank": "2", "fastestlaptime": "01:17.4", "fastestlapspeed": "202.758", "statusid": 1}, {"resultid": 131, "raceid": 24, "driverid": 14, "constructorid": 9, "number": 9, "grid": 13, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "70", "time": "23.352", "milliseconds": "5807579", "fastestlap": "36", "rank": "7", "fastestlaptime": "01:18.1", "fastestlapspeed": "201.057", "statusid": 1}, {"resultid": 132, "raceid": 24, "driverid": 10, "constructorid": 7, "number": 12, "grid": 11, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "70", "time": "42.627", "milliseconds": "5826854", "fastestlap": "31", "rank": "17", "fastestlaptime": "01:19.1", "fastestlapspeed": "198.51", "statusid": 1}, {"resultid": 133, "raceid": 24, "driverid": 13, "constructorid": 6, "number": 2, "grid": 6, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "70", "time": "43.934", "milliseconds": "5828161", "fastestlap": "11", "rank": "6", "fastestlaptime": "01:18.0", "fastestlapspeed": "201.261", "statusid": 1}, {"resultid": 134, "raceid": 24, "driverid": 15, "constructorid": 7, "number": 11, "grid": 14, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "70", "time": "47.775", "milliseconds": "5832002", "fastestlap": "38", "rank": "15", "fastestlaptime": "01:18.9", "fastestlapspeed": "199.056", "statusid": 1}, {"resultid": 135, "raceid": 24, "driverid": 22, "constructorid": 11, "number": 17, "grid": 9, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "70", "time": "53.597", "milliseconds": "5837824", "fastestlap": "35", "rank": "10", "fastestlaptime": "01:18.3", "fastestlapspeed": "200.503", "statusid": 1}, {"resultid": 136, "raceid": 24, "driverid": 20, "constructorid": 5, "number": 15, "grid": 19, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "70", "time": "54.12", "milliseconds": "5838347", "fastestlap": "33", "rank": "12", "fastestlaptime": "01:18.5", "fastestlapspeed": "199.913", "statusid": 1}, {"resultid": 137, "raceid": 24, "driverid": 5, "constructorid": 1, "number": 23, "grid": 7, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "70", "time": "54.433", "milliseconds": "5838660", "fastestlap": "62", "rank": "11", "fastestlaptime": "01:18.5", "fastestlapspeed": "200.091", "statusid": 1}, {"resultid": 138, "raceid": 24, "driverid": 3, "constructorid": 3, "number": 7, "grid": 5, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "70", "time": "54.749", "milliseconds": "5838976", "fastestlap": "14", "rank": "5", "fastestlaptime": "01:18.0", "fastestlapspeed": "201.336", "statusid": 1}, {"resultid": 139, "raceid": 24, "driverid": 18, "constructorid": 11, "number": 16, "grid": 20, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "70", "time": "+1:07.540", "milliseconds": "5851767", "fastestlap": "58", "rank": "19", "fastestlaptime": "01:19.4", "fastestlapspeed": "197.847", "statusid": 1}, {"resultid": 140, "raceid": 24, "driverid": 17, "constructorid": 9, "number": 10, "grid": 10, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "70", "time": "+1:11.299", "milliseconds": "5855526", "fastestlap": "51", "rank": "8", "fastestlaptime": "01:18.2", "fastestlapspeed": "200.759", "statusid": 1}, {"resultid": 141, "raceid": 24, "driverid": 7, "constructorid": 5, "number": 14, "grid": 18, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "34", "rank": "13", "fastestlaptime": "01:18.6", "fastestlapspeed": "199.689", "statusid": 11}, {"resultid": 142, "raceid": 24, "driverid": 21, "constructorid": 10, "number": 21, "grid": 17, "position": "", "positiontext": "R", "positionorder": 14, "points": 0.0, "laps": "51", "time": "", "milliseconds": "", "fastestlap": "41", "rank": "16", "fastestlaptime": "01:19.1", "fastestlapspeed": "198.563", "statusid": 20}, {"resultid": 143, "raceid": 24, "driverid": 6, "constructorid": 3, "number": 8, "grid": 12, "position": "", "positiontext": "R", "positionorder": 15, "points": 0.0, "laps": "46", "time": "", "milliseconds": "", "fastestlap": "30", "rank": "14", "fastestlaptime": "01:18.8", "fastestlapspeed": "199.273", "statusid": 3}, {"resultid": 144, "raceid": 24, "driverid": 4, "constructorid": 4, "number": 5, "grid": 4, "position": "", "positiontext": "R", "positionorder": 16, "points": 0.0, "laps": "44", "time": "", "milliseconds": "", "fastestlap": "16", "rank": "9", "fastestlaptime": "01:18.2", "fastestlapspeed": "200.697", "statusid": 20}, {"resultid": 145, "raceid": 24, "driverid": 12, "constructorid": 4, "number": 6, "grid": 15, "position": "", "positiontext": "R", "positionorder": 17, "points": 0.0, "laps": "43", "time": "", "milliseconds": "", "fastestlap": "16", "rank": "18", "fastestlaptime": "01:19.2", "fastestlapspeed": "198.129", "statusid": 23}, {"resultid": 146, "raceid": 24, "driverid": 8, "constructorid": 6, "number": 1, "grid": 3, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "19", "time": "", "milliseconds": "", "fastestlap": "14", "rank": "1", "fastestlaptime": "01:17.4", "fastestlapspeed": "202.871", "statusid": 4}, {"resultid": 147, "raceid": 24, "driverid": 1, "constructorid": 1, "number": 22, "grid": 1, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "19", "time": "", "milliseconds": "", "fastestlap": "4", "rank": "3", "fastestlaptime": "01:17.5", "fastestlapspeed": "202.559", "statusid": 4}, {"resultid": 148, "raceid": 24, "driverid": 16, "constructorid": 10, "number": 20, "grid": 16, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "13", "time": "", "milliseconds": "", "fastestlap": "7", "rank": "20", "fastestlaptime": "01:20.7", "fastestlapspeed": "194.624", "statusid": 6}, {"resultid": 149, "raceid": 25, "driverid": 13, "constructorid": 6, "number": 2, "grid": 2, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "70", "time": "31:50.2", "milliseconds": "5510245", "fastestlap": "20", "rank": "2", "fastestlaptime": "01:16.7", "fastestlapspeed": "206.956", "statusid": 1}, {"resultid": 150, "raceid": 25, "driverid": 8, "constructorid": 6, "number": 1, "grid": 1, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "70", "time": "17.984", "milliseconds": "5528229", "fastestlap": "16", "rank": "1", "fastestlaptime": "01:16.6", "fastestlapspeed": "207.224", "statusid": 1}, {"resultid": 151, "raceid": 25, "driverid": 15, "constructorid": 7, "number": 11, "grid": 4, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "70", "time": "28.25", "milliseconds": "5538495", "fastestlap": "12", "rank": "7", "fastestlaptime": "01:17.6", "fastestlapspeed": "204.721", "statusid": 1}, {"resultid": 152, "raceid": 25, "driverid": 5, "constructorid": 1, "number": 23, "grid": 10, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "70", "time": "28.929", "milliseconds": "5539174", "fastestlap": "46", "rank": "3", "fastestlaptime": "01:17.1", "fastestlapspeed": "205.87", "statusid": 1}, {"resultid": 153, "raceid": 25, "driverid": 9, "constructorid": 2, "number": 4, "grid": 5, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "70", "time": "30.512", "milliseconds": "5540757", "fastestlap": "16", "rank": "4", "fastestlaptime": "01:17.2", "fastestlapspeed": "205.768", "statusid": 1}, {"resultid": 154, "raceid": 25, "driverid": 17, "constructorid": 9, "number": 10, "grid": 6, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "70", "time": "40.304", "milliseconds": "5550549", "fastestlap": "22", "rank": "6", "fastestlaptime": "01:17.5", "fastestlapspeed": "204.879", "statusid": 1}, {"resultid": 155, "raceid": 25, "driverid": 12, "constructorid": 4, "number": 6, "grid": 9, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "70", "time": "41.033", "milliseconds": "5551278", "fastestlap": "24", "rank": "10", "fastestlaptime": "01:17.8", "fastestlapspeed": "204.218", "statusid": 1}, {"resultid": 156, "raceid": 25, "driverid": 4, "constructorid": 4, "number": 5, "grid": 3, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "70", "time": "43.372", "milliseconds": "5553617", "fastestlap": "39", "rank": "8", "fastestlaptime": "01:17.6", "fastestlapspeed": "204.525", "statusid": 1}, {"resultid": 157, "raceid": 25, "driverid": 14, "constructorid": 9, "number": 9, "grid": 7, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "70", "time": "51.021", "milliseconds": "5561266", "fastestlap": "23", "rank": "12", "fastestlaptime": "01:17.8", "fastestlapspeed": "204.06", "statusid": 1}, {"resultid": 158, "raceid": 25, "driverid": 1, "constructorid": 1, "number": 22, "grid": 13, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "70", "time": "54.538", "milliseconds": "5564783", "fastestlap": "40", "rank": "5", "fastestlaptime": "01:17.5", "fastestlapspeed": "205.022", "statusid": 1}, {"resultid": 159, "raceid": 25, "driverid": 10, "constructorid": 7, "number": 12, "grid": 8, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "70", "time": "57.7", "milliseconds": "5567945", "fastestlap": "45", "rank": "13", "fastestlaptime": "01:17.8", "fastestlapspeed": "204.013", "statusid": 1}, {"resultid": 160, "raceid": 25, "driverid": 20, "constructorid": 5, "number": 15, "grid": 12, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "70", "time": "58.065", "milliseconds": "5568310", "fastestlap": "36", "rank": "11", "fastestlaptime": "01:17.8", "fastestlapspeed": "204.212", "statusid": 1}, {"resultid": 161, "raceid": 25, "driverid": 2, "constructorid": 2, "number": 3, "grid": 11, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "70", "time": "+1:02.079", "milliseconds": "5572324", "fastestlap": "46", "rank": "9", "fastestlaptime": "01:17.7", "fastestlapspeed": "204.328", "statusid": 1}, {"resultid": 162, "raceid": 25, "driverid": 22, "constructorid": 11, "number": 17, "grid": 20, "position": "14", "positiontext": "14", "positionorder": 14, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "54", "rank": "14", "fastestlaptime": "01:18.0", "fastestlapspeed": "203.665", "statusid": 11}, {"resultid": 163, "raceid": 25, "driverid": 6, "constructorid": 3, "number": 8, "grid": 15, "position": "15", "positiontext": "15", "positionorder": 15, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "60", "rank": "15", "fastestlaptime": "01:18.1", "fastestlapspeed": "203.443", "statusid": 11}, {"resultid": 164, "raceid": 25, "driverid": 3, "constructorid": 3, "number": 7, "grid": 19, "position": "16", "positiontext": "16", "positionorder": 16, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "38", "rank": "17", "fastestlaptime": "01:18.3", "fastestlapspeed": "202.776", "statusid": 11}, {"resultid": 165, "raceid": 25, "driverid": 7, "constructorid": 5, "number": 14, "grid": 14, "position": "17", "positiontext": "17", "positionorder": 17, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "28", "rank": "16", "fastestlaptime": "01:18.2", "fastestlapspeed": "203.022", "statusid": 11}, {"resultid": 166, "raceid": 25, "driverid": 21, "constructorid": 10, "number": 21, "grid": 17, "position": "18", "positiontext": "18", "positionorder": 18, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "53", "rank": "19", "fastestlaptime": "01:18.6", "fastestlapspeed": "202.141", "statusid": 11}, {"resultid": 167, "raceid": 25, "driverid": 16, "constructorid": 10, "number": 20, "grid": 18, "position": "19", "positiontext": "19", "positionorder": 19, "points": 0.0, "laps": "69", "time": "", "milliseconds": "", "fastestlap": "41", "rank": "18", "fastestlaptime": "01:18.5", "fastestlapspeed": "202.385", "statusid": 11}, {"resultid": 168, "raceid": 25, "driverid": 18, "constructorid": 11, "number": 16, "grid": 16, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "16", "time": "", "milliseconds": "", "fastestlap": "15", "rank": "20", "fastestlaptime": "01:20.9", "fastestlapspeed": "196.345", "statusid": 4}, {"resultid": 169, "raceid": 26, "driverid": 1, "constructorid": 1, "number": 22, "grid": 4, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "60", "time": "39:09.4", "milliseconds": "5949440", "fastestlap": "16", "rank": "3", "fastestlaptime": "01:32.8", "fastestlapspeed": "199.398", "statusid": 1}, {"resultid": 170, "raceid": 26, "driverid": 2, "constructorid": 2, "number": 3, "grid": 5, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "60", "time": "+1:08.577", "milliseconds": "6018017", "fastestlap": "21", "rank": "2", "fastestlaptime": "01:32.7", "fastestlapspeed": "199.609", "statusid": 1}, {"resultid": 171, "raceid": 26, "driverid": 22, "constructorid": 11, "number": 17, "grid": 16, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "60", "time": "+1:22.273", "milliseconds": "6031713", "fastestlap": "21", "rank": "11", "fastestlaptime": "01:33.4", "fastestlapspeed": "198.183", "statusid": 1}, {"resultid": 172, "raceid": 26, "driverid": 8, "constructorid": 6, "number": 1, "grid": 3, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "18", "rank": "1", "fastestlaptime": "01:32.1", "fastestlapspeed": "200.842", "statusid": 11}, {"resultid": 173, "raceid": 26, "driverid": 5, "constructorid": 1, "number": 23, "grid": 1, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "17", "rank": "5", "fastestlaptime": "01:33.1", "fastestlapspeed": "198.728", "statusid": 11}, {"resultid": 174, "raceid": 26, "driverid": 4, "constructorid": 4, "number": 5, "grid": 6, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "17", "rank": "6", "fastestlaptime": "01:33.1", "fastestlapspeed": "198.722", "statusid": 11}, {"resultid": 175, "raceid": 26, "driverid": 15, "constructorid": 7, "number": 11, "grid": 14, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "22", "rank": "13", "fastestlaptime": "01:33.8", "fastestlapspeed": "197.292", "statusid": 11}, {"resultid": 176, "raceid": 26, "driverid": 6, "constructorid": 3, "number": 8, "grid": 15, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "14", "fastestlaptime": "01:34.3", "fastestlapspeed": "196.31", "statusid": 11}, {"resultid": 177, "raceid": 26, "driverid": 3, "constructorid": 3, "number": 7, "grid": 20, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "16", "fastestlaptime": "01:34.8", "fastestlapspeed": "195.234", "statusid": 11}, {"resultid": 178, "raceid": 26, "driverid": 17, "constructorid": 9, "number": 10, "grid": 2, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "17", "rank": "4", "fastestlaptime": "01:33.0", "fastestlapspeed": "199.109", "statusid": 11}, {"resultid": 179, "raceid": 26, "driverid": 7, "constructorid": 5, "number": 14, "grid": 13, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "9", "fastestlaptime": "01:33.4", "fastestlapspeed": "198.224", "statusid": 11}, {"resultid": 180, "raceid": 26, "driverid": 10, "constructorid": 7, "number": 12, "grid": 12, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "59", "time": "", "milliseconds": "", "fastestlap": "19", "rank": "15", "fastestlaptime": "01:34.6", "fastestlapspeed": "195.619", "statusid": 11}, {"resultid": 181, "raceid": 26, "driverid": 13, "constructorid": 6, "number": 2, "grid": 9, "position": "13", "positiontext": "13", "positionorder": 13, "points": 0.0, "laps": "58", "time": "", "milliseconds": "", "fastestlap": "19", "rank": "8", "fastestlaptime": "01:33.3", "fastestlapspeed": "198.458", "statusid": 12}, {"resultid": 182, "raceid": 26, "driverid": 9, "constructorid": 2, "number": 4, "grid": 10, "position": "", "positiontext": "R", "positionorder": 14, "points": 0.0, "laps": "39", "time": "", "milliseconds": "", "fastestlap": "22", "rank": "12", "fastestlaptime": "01:33.5", "fastestlapspeed": "197.859", "statusid": 20}, {"resultid": 183, "raceid": 26, "driverid": 18, "constructorid": 11, "number": 16, "grid": 17, "position": "", "positiontext": "R", "positionorder": 15, "points": 0.0, "laps": "38", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "10", "fastestlaptime": "01:33.4", "fastestlapspeed": "198.205", "statusid": 20}, {"resultid": 184, "raceid": 26, "driverid": 12, "constructorid": 4, "number": 6, "grid": 7, "position": "", "positiontext": "R", "positionorder": 16, "points": 0.0, "laps": "35", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "7", "fastestlaptime": "01:33.2", "fastestlapspeed": "198.573", "statusid": 20}, {"resultid": 185, "raceid": 26, "driverid": 21, "constructorid": 10, "number": 21, "grid": 19, "position": "", "positiontext": "R", "positionorder": 17, "points": 0.0, "laps": "16", "time": "", "milliseconds": "", "fastestlap": "21", "rank": "17", "fastestlaptime": "01:34.9", "fastestlapspeed": "194.96", "statusid": 20}, {"resultid": 186, "raceid": 26, "driverid": 16, "constructorid": 10, "number": 20, "grid": 18, "position": "", "positiontext": "R", "positionorder": 18, "points": 0.0, "laps": "10", "time": "", "milliseconds": "", "fastestlap": "5", "rank": "18", "fastestlaptime": "01:38.2", "fastestlapspeed": "188.545", "statusid": 20}, {"resultid": 187, "raceid": 26, "driverid": 20, "constructorid": 5, "number": 15, "grid": 8, "position": "", "positiontext": "R", "positionorder": 19, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 188, "raceid": 26, "driverid": 14, "constructorid": 9, "number": 9, "grid": 11, "position": "", "positiontext": "R", "positionorder": 20, "points": 0.0, "laps": "0", "time": "", "milliseconds": "", "fastestlap": "", "rank": "", "fastestlaptime": "", "fastestlapspeed": "", "statusid": 4}, {"resultid": 189, "raceid": 27, "driverid": 1, "constructorid": 1, "number": 22, "grid": 1, "position": "1", "positiontext": "1", "positionorder": 1, "points": 10.0, "laps": "67", "time": "31:20.9", "milliseconds": "5480874", "fastestlap": "17", "rank": "2", "fastestlaptime": "01:16.0", "fastestlapspeed": "216.552", "statusid": 1}, {"resultid": 190, "raceid": 27, "driverid": 12, "constructorid": 4, "number": 6, "grid": 17, "position": "2", "positiontext": "2", "positionorder": 2, "points": 8.0, "laps": "67", "time": "5.586", "milliseconds": "5486460", "fastestlap": "66", "rank": "9", "fastestlaptime": "01:16.9", "fastestlapspeed": "214.099", "statusid": 1}, {"resultid": 191, "raceid": 27, "driverid": 13, "constructorid": 6, "number": 2, "grid": 2, "position": "3", "positiontext": "3", "positionorder": 3, "points": 6.0, "laps": "67", "time": "9.339", "milliseconds": "5490213", "fastestlap": "19", "rank": "5", "fastestlaptime": "01:16.5", "fastestlapspeed": "215.241", "statusid": 1}, {"resultid": 192, "raceid": 27, "driverid": 2, "constructorid": 2, "number": 3, "grid": 12, "position": "4", "positiontext": "4", "positionorder": 4, "points": 5.0, "laps": "67", "time": "9.825", "milliseconds": "5490699", "fastestlap": "52", "rank": "1", "fastestlaptime": "01:16.0", "fastestlapspeed": "216.7", "statusid": 1}, {"resultid": 193, "raceid": 27, "driverid": 5, "constructorid": 1, "number": 23, "grid": 3, "position": "5", "positiontext": "5", "positionorder": 5, "points": 4.0, "laps": "67", "time": "12.411", "milliseconds": "5493285", "fastestlap": "63", "rank": "4", "fastestlaptime": "01:16.5", "fastestlapspeed": "215.261", "statusid": 1}, {"resultid": 194, "raceid": 27, "driverid": 8, "constructorid": 6, "number": 1, "grid": 6, "position": "6", "positiontext": "6", "positionorder": 6, "points": 3.0, "laps": "67", "time": "14.403", "milliseconds": "5495277", "fastestlap": "66", "rank": "3", "fastestlaptime": "01:16.3", "fastestlapspeed": "215.692", "statusid": 1}, {"resultid": 195, "raceid": 27, "driverid": 9, "constructorid": 2, "number": 4, "grid": 7, "position": "7", "positiontext": "7", "positionorder": 7, "points": 2.0, "laps": "67", "time": "22.682", "milliseconds": "5503556", "fastestlap": "17", "rank": "6", "fastestlaptime": "01:16.6", "fastestlapspeed": "214.937", "statusid": 1}, {"resultid": 196, "raceid": 27, "driverid": 20, "constructorid": 5, "number": 15, "grid": 9, "position": "8", "positiontext": "8", "positionorder": 8, "points": 1.0, "laps": "67", "time": "33.299", "milliseconds": "5514173", "fastestlap": "20", "rank": "8", "fastestlaptime": "01:16.8", "fastestlapspeed": "214.484", "statusid": 1}, {"resultid": 197, "raceid": 27, "driverid": 15, "constructorid": 7, "number": 11, "grid": 4, "position": "9", "positiontext": "9", "positionorder": 9, "points": 0.0, "laps": "67", "time": "37.158", "milliseconds": "5518032", "fastestlap": "17", "rank": "12", "fastestlaptime": "01:17.0", "fastestlapspeed": "213.785", "statusid": 1}, {"resultid": 198, "raceid": 27, "driverid": 3, "constructorid": 3, "number": 7, "grid": 13, "position": "10", "positiontext": "10", "positionorder": 10, "points": 0.0, "laps": "67", "time": "37.625", "milliseconds": "5518499", "fastestlap": "34", "rank": "15", "fastestlaptime": "01:17.4", "fastestlapspeed": "212.799", "statusid": 1}, {"resultid": 199, "raceid": 27, "driverid": 4, "constructorid": 4, "number": 5, "grid": 5, "position": "11", "positiontext": "11", "positionorder": 11, "points": 0.0, "laps": "67", "time": "38.6", "milliseconds": "5519474", "fastestlap": "17", "rank": "13", "fastestlaptime": "01:17.1", "fastestlapspeed": "213.53", "statusid": 1}, {"resultid": 200, "raceid": 27, "driverid": 7, "constructorid": 5, "number": 14, "grid": 15, "position": "12", "positiontext": "12", "positionorder": 12, "points": 0.0, "laps": "67", "time": "39.111", "milliseconds": "5519985", "fastestlap": "63", "rank": "10", "fastestlaptime": "01:17.0", "fastestlapspeed": "213.935", "statusid": 1}], "constructors": [{"constructorid": 1, "constructorref": "mclaren", "name": "McLaren", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren"}, {"constructorid": 2, "constructorref": "bmw_sauber", "name": "BMW Sauber", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW_Sauber"}, {"constructorid": 3, "constructorref": "williams", "name": "Williams", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering"}, {"constructorid": 4, "constructorref": "renault", "name": "Renault", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Renault_F1"}, {"constructorid": 5, "constructorref": "toro_rosso", "name": "Toro Rosso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Toro_Rosso"}, {"constructorid": 6, "constructorref": "ferrari", "name": "Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Ferrari"}, {"constructorid": 7, "constructorref": "toyota", "name": "Toyota", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Toyota_Racing"}, {"constructorid": 8, "constructorref": "super_aguri", "name": "Super Aguri", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Super_Aguri_F1"}, {"constructorid": 9, "constructorref": "red_bull", "name": "Red Bull", "nationality": "Austrian", "url": "http://en.wikipedia.org/wiki/Red_Bull_Racing"}, {"constructorid": 10, "constructorref": "force_india", "name": "Force India", "nationality": "Indian", "url": "http://en.wikipedia.org/wiki/Force_India"}, {"constructorid": 11, "constructorref": "honda", "name": "Honda", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Honda_Racing_F1"}, {"constructorid": 12, "constructorref": "spyker", "name": "Spyker", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Spyker_F1"}, {"constructorid": 13, "constructorref": "mf1", "name": "MF1", "nationality": "Russian", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 14, "constructorref": "spyker_mf1", "name": "Spyker MF1", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 15, "constructorref": "sauber", "name": "Sauber", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Sauber"}, {"constructorid": 16, "constructorref": "bar", "name": "BAR", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_American_Racing"}, {"constructorid": 17, "constructorref": "jordan", "name": "Jordan", "nationality": "Irish", "url": "http://en.wikipedia.org/wiki/Jordan_Grand_Prix"}, {"constructorid": 18, "constructorref": "minardi", "name": "Minardi", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Minardi"}, {"constructorid": 19, "constructorref": "jaguar", "name": "Jaguar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Jaguar_Racing"}, {"constructorid": 20, "constructorref": "prost", "name": "Prost", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Prost_Grand_Prix"}, {"constructorid": 21, "constructorref": "arrows", "name": "Arrows", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Arrows_Grand_Prix_International"}, {"constructorid": 22, "constructorref": "benetton", "name": "Benetton", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Benetton_Formula"}, {"constructorid": 23, "constructorref": "brawn", "name": "Brawn", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brawn_GP"}, {"constructorid": 24, "constructorref": "stewart", "name": "Stewart", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Stewart_Grand_Prix"}, {"constructorid": 25, "constructorref": "tyrrell", "name": "Tyrrell", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Tyrrell_Racing"}, {"constructorid": 26, "constructorref": "lola", "name": "Lola", "nationality": "British", "url": "http://en.wikipedia.org/wiki/MasterCard_Lola"}, {"constructorid": 27, "constructorref": "ligier", "name": "Ligier", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Ligier"}, {"constructorid": 28, "constructorref": "forti", "name": "Forti", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Forti"}, {"constructorid": 29, "constructorref": "footwork", "name": "Footwork", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Footwork_Arrows"}, {"constructorid": 30, "constructorref": "pacific", "name": "Pacific", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Pacific_Racing"}, {"constructorid": 31, "constructorref": "simtek", "name": "Simtek", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Simtek"}, {"constructorid": 32, "constructorref": "team_lotus", "name": "Team Lotus", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 33, "constructorref": "larrousse", "name": "Larrousse", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Larrousse"}, {"constructorid": 34, "constructorref": "brabham", "name": "Brabham", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 35, "constructorref": "dallara", "name": "Dallara", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Dallara"}, {"constructorid": 36, "constructorref": "fondmetal", "name": "Fondmetal", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Fondmetal"}, {"constructorid": 37, "constructorref": "march", "name": "March", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 38, "constructorref": "moda", "name": "Andrea Moda", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Andrea_Moda_Formula"}, {"constructorid": 39, "constructorref": "ags", "name": "AGS", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Automobiles_Gonfaronnaises_Sportives"}, {"constructorid": 40, "constructorref": "lambo", "name": "Lambo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Modena_(racing_team)"}, {"constructorid": 41, "constructorref": "leyton", "name": "Leyton House", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Leyton_House"}, {"constructorid": 42, "constructorref": "coloni", "name": "Coloni", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Enzo_Coloni_Racing_Car_Systems"}, {"constructorid": 44, "constructorref": "eurobrun", "name": "Euro Brun", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Euro_Brun"}, {"constructorid": 45, "constructorref": "osella", "name": "Osella", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Osella"}, {"constructorid": 46, "constructorref": "onyx", "name": "Onyx", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Onyx_(racing_team)"}, {"constructorid": 47, "constructorref": "life", "name": "Life", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Life_(Racing_Team)"}, {"constructorid": 48, "constructorref": "rial", "name": "Rial", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Rial_%28racing_team%29"}, {"constructorid": 49, "constructorref": "zakspeed", "name": "Zakspeed", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Zakspeed"}, {"constructorid": 50, "constructorref": "ram", "name": "RAM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/RAM_Racing"}, {"constructorid": 51, "constructorref": "alfa", "name": "Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Alfa_Romeo_(Formula_One)"}, {"constructorid": 52, "constructorref": "spirit", "name": "Spirit", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Spirit_(racing_team)"}, {"constructorid": 53, "constructorref": "toleman", "name": "Toleman", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Toleman"}, {"constructorid": 54, "constructorref": "ats", "name": "ATS", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/ATS_(wheels)"}, {"constructorid": 55, "constructorref": "theodore", "name": "Theodore", "nationality": "Hong Kong", "url": "http://en.wikipedia.org/wiki/Theodore_Racing"}, {"constructorid": 56, "constructorref": "fittipaldi", "name": "Fittipaldi", "nationality": "Brazilian", "url": "http://en.wikipedia.org/wiki/Fittipaldi_%28constructor%29"}, {"constructorid": 57, "constructorref": "ensign", "name": "Ensign", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ensign_%28racing_team%29"}, {"constructorid": 58, "constructorref": "shadow", "name": "Shadow", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}, {"constructorid": 59, "constructorref": "wolf", "name": "Wolf", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Walter_Wolf_Racing"}, {"constructorid": 60, "constructorref": "merzario", "name": "Merzario", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Merzario"}, {"constructorid": 61, "constructorref": "kauhsen", "name": "Kauhsen", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Kauhsen"}, {"constructorid": 62, "constructorref": "rebaque", "name": "Rebaque", "nationality": "Mexican", "url": "http://en.wikipedia.org/wiki/Rebaque"}, {"constructorid": 63, "constructorref": "surtees", "name": "Surtees", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Surtees"}, {"constructorid": 64, "constructorref": "hesketh", "name": "Hesketh", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hesketh_Racing"}, {"constructorid": 65, "constructorref": "martini", "name": "Martini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Martini_(cars)"}, {"constructorid": 66, "constructorref": "brm", "name": "BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 67, "constructorref": "penske", "name": "Penske", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Penske_Racing"}, {"constructorid": 68, "constructorref": "lec", "name": "LEC", "nationality": "British", "url": "http://en.wikipedia.org/wiki/LEC_(Formula_One)"}, {"constructorid": 69, "constructorref": "mcguire", "name": "McGuire", "nationality": "Australian", "url": "http://en.wikipedia.org/wiki/McGuire_(Formula_One)"}, {"constructorid": 70, "constructorref": "boro", "name": "Boro", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Boro_(Formula_One)"}, {"constructorid": 71, "constructorref": "apollon", "name": "Apollon", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Apollon_(Formula_One)"}, {"constructorid": 72, "constructorref": "kojima", "name": "Kojima", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Kojima_Engineering"}, {"constructorid": 73, "constructorref": "parnelli", "name": "Parnelli", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Parnelli"}, {"constructorid": 74, "constructorref": "maki", "name": "Maki", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Maki_(cars)"}, {"constructorid": 75, "constructorref": "hill", "name": "Embassy Hill", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hill_(constructor)"}, {"constructorid": 76, "constructorref": "lyncar", "name": "Lyncar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Lyncar"}, {"constructorid": 77, "constructorref": "trojan", "name": "Trojan", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Trojan_(Racing_team)"}, {"constructorid": 78, "constructorref": "amon", "name": "Amon", "nationality": "New Zealand", "url": "http://en.wikipedia.org/wiki/Amon_(Formula_One_team)"}, {"constructorid": 79, "constructorref": "token", "name": "Token", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Token_(Racing_team)"}, {"constructorid": 80, "constructorref": "iso_marlboro", "name": "Iso Marlboro", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Iso_Marlboro"}, {"constructorid": 81, "constructorref": "tecno", "name": "Tecno", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tecno"}, {"constructorid": 82, "constructorref": "matra", "name": "Matra", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 83, "constructorref": "politoys", "name": "Politoys", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frank_Williams_Racing_Cars"}, {"constructorid": 84, "constructorref": "connew", "name": "Connew", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connew"}, {"constructorid": 85, "constructorref": "bellasi", "name": "Bellasi", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Bellasi"}, {"constructorid": 86, "constructorref": "tomaso", "name": "De Tomaso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 87, "constructorref": "cooper", "name": "Cooper", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 88, "constructorref": "eagle", "name": "Eagle", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 89, "constructorref": "lds", "name": "LDS", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 90, "constructorref": "protos", "name": "Protos", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Protos_(constructor)"}, {"constructorid": 91, "constructorref": "shannon", "name": "Shannon", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shannon_(Formula_One)"}, {"constructorid": 92, "constructorref": "scirocco", "name": "Scirocco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Scirocco-Powell"}, {"constructorid": 93, "constructorref": "re", "name": "RE", "nationality": "Rhodesian", "url": "http://en.wikipedia.org/wiki/RE_%28automobile%29"}, {"constructorid": 94, "constructorref": "brp", "name": "BRP", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_Racing_Partnership"}, {"constructorid": 95, "constructorref": "porsche", "name": "Porsche", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Porsche_in_Formula_One"}, {"constructorid": 96, "constructorref": "derrington", "name": "Derrington", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Derrington-Francis"}, {"constructorid": 97, "constructorref": "gilby", "name": "Gilby", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Gilby"}, {"constructorid": 98, "constructorref": "stebro", "name": "Stebro", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Stebro"}, {"constructorid": 99, "constructorref": "emeryson", "name": "Emeryson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Emeryson"}, {"constructorid": 100, "constructorref": "enb", "name": "ENB", "nationality": "Belgium", "url": "http://en.wikipedia.org/wiki/Ecurie_Nationale_Belge"}, {"constructorid": 101, "constructorref": "jbw", "name": "JBW", "nationality": "British", "url": "http://en.wikipedia.org/wiki/JBW"}, {"constructorid": 102, "constructorref": "ferguson", "name": "Ferguson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ferguson_Research_Ltd."}, {"constructorid": 103, "constructorref": "mbm", "name": "MBM", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Monteverdi_Basel_Motors"}, {"constructorid": 104, "constructorref": "behra-porsche", "name": "Behra-Porsche", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Behra-Porsche"}, {"constructorid": 105, "constructorref": "maserati", "name": "Maserati", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Maserati"}, {"constructorid": 106, "constructorref": "scarab", "name": "Scarab", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Scarab_(constructor)"}, {"constructorid": 107, "constructorref": "watson", "name": "Watson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/A.J._Watson"}, {"constructorid": 108, "constructorref": "epperly", "name": "Epperly", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Epperly"}, {"constructorid": 109, "constructorref": "phillips", "name": "Phillips", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Phillips_(constructor)"}, {"constructorid": 110, "constructorref": "lesovsky", "name": "Lesovsky", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Lesovsky"}, {"constructorid": 111, "constructorref": "trevis", "name": "Trevis", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Trevis"}, {"constructorid": 112, "constructorref": "meskowski", "name": "Meskowski", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Meskowski"}, {"constructorid": 113, "constructorref": "kurtis_kraft", "name": "Kurtis Kraft", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kurtis_Kraft"}, {"constructorid": 114, "constructorref": "kuzma", "name": "Kuzma", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kuzma_(constructor)"}, {"constructorid": 115, "constructorref": "vhristensen", "name": "Christensen", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Christensen_(constructor)"}, {"constructorid": 116, "constructorref": "ewing", "name": "Ewing", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Ewing_(constructor)"}, {"constructorid": 117, "constructorref": "aston_martin", "name": "Aston Martin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Martin"}, {"constructorid": 118, "constructorref": "vanwall", "name": "Vanwall", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Vanwall"}, {"constructorid": 119, "constructorref": "moore", "name": "Moore", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Moore_(constructor)"}, {"constructorid": 120, "constructorref": "dunn", "name": "Dunn", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Dunn_Engineering"}, {"constructorid": 121, "constructorref": "elder", "name": "Elder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Elder_(constructor)"}, {"constructorid": 122, "constructorref": "sutton", "name": "Sutton", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sutton_(constructor)"}, {"constructorid": 123, "constructorref": "fry", "name": "Fry", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Fry_(racing_team)"}, {"constructorid": 124, "constructorref": "tec-mec", "name": "Tec-Mec", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tec-Mec"}, {"constructorid": 125, "constructorref": "connaught", "name": "Connaught", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connaught_Engineering"}, {"constructorid": 126, "constructorref": "alta", "name": "Alta", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Alta_auto_racing_team"}, {"constructorid": 127, "constructorref": "osca", "name": "OSCA", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Officine_Specializate_Costruzione_Automobili"}, {"constructorid": 128, "constructorref": "gordini", "name": "Gordini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Gordini"}, {"constructorid": 129, "constructorref": "stevens", "name": "Stevens", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Stevens_(constructor)"}, {"constructorid": 130, "constructorref": "bugatti", "name": "Bugatti", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Bugatti"}, {"constructorid": 131, "constructorref": "mercedes", "name": "Mercedes", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One"}, {"constructorid": 132, "constructorref": "lancia", "name": "Lancia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Lancia_in_Formula_One"}, {"constructorid": 133, "constructorref": "hwm", "name": "HWM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hersham_and_Walton_Motors"}, {"constructorid": 134, "constructorref": "schroeder", "name": "Schroeder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Schroeder_(constructor)"}, {"constructorid": 135, "constructorref": "pawl", "name": "Pawl", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pawl_(constructor)"}, {"constructorid": 136, "constructorref": "pankratz", "name": "Pankratz", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pankratz"}, {"constructorid": 137, "constructorref": "arzani-volpini", "name": "Arzani-Volpini", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Arzani-Volpini"}, {"constructorid": 138, "constructorref": "nichels", "name": "Nichels", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Nichels"}, {"constructorid": 139, "constructorref": "bromme", "name": "Bromme", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Bromme"}, {"constructorid": 140, "constructorref": "klenk", "name": "Klenk", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Klenk"}, {"constructorid": 141, "constructorref": "simca", "name": "Simca", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Simca"}, {"constructorid": 142, "constructorref": "turner", "name": "Turner", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Turner_(constructor)"}, {"constructorid": 143, "constructorref": "del_roy", "name": "Del Roy", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Del_Roy"}, {"constructorid": 144, "constructorref": "veritas", "name": "Veritas", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Veritas_(constructor)"}, {"constructorid": 145, "constructorref": "bmw", "name": "BMW", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW"}, {"constructorid": 146, "constructorref": "emw", "name": "EMW", "nationality": "East German", "url": "http://en.wikipedia.org/wiki/Eisenacher_Motorenwerk"}, {"constructorid": 147, "constructorref": "afm", "name": "AFM", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Alex_von_Falkenhausen_Motorenbau"}, {"constructorid": 148, "constructorref": "frazer_nash", "name": "Frazer Nash", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frazer_Nash"}, {"constructorid": 149, "constructorref": "sherman", "name": "Sherman", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sherman_(constructor)"}, {"constructorid": 150, "constructorref": "deidt", "name": "Deidt", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Deidt"}, {"constructorid": 151, "constructorref": "era", "name": "ERA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/English_Racing_Automobiles"}, {"constructorid": 152, "constructorref": "butterworth", "name": "Aston Butterworth", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Butterworth"}, {"constructorid": 153, "constructorref": "cisitalia", "name": "Cisitalia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Cisitalia"}, {"constructorid": 154, "constructorref": "lago", "name": "Talbot-Lago", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Talbot-Lago"}, {"constructorid": 155, "constructorref": "hall", "name": "Hall", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Hall_(constructor)"}, {"constructorid": 156, "constructorref": "marchese", "name": "Marchese", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Marchese_(constructor)"}, {"constructorid": 157, "constructorref": "langley", "name": "Langley", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Langley_(constructor)"}, {"constructorid": 158, "constructorref": "rae", "name": "Rae", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Rae_(motorsport)"}, {"constructorid": 159, "constructorref": "olson", "name": "Olson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Olson_(constructor)"}, {"constructorid": 160, "constructorref": "wetteroth", "name": "Wetteroth", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Wetteroth"}, {"constructorid": 161, "constructorref": "adams", "name": "Adams", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Adams_(constructor)"}, {"constructorid": 162, "constructorref": "snowberger", "name": "Snowberger", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Snowberger"}, {"constructorid": 163, "constructorref": "milano", "name": "Milano", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Milano"}, {"constructorid": 164, "constructorref": "hrt", "name": "HRT", "nationality": "Spanish", "url": "http://en.wikipedia.org/wiki/Hispania_Racing"}, {"constructorid": 166, "constructorref": "virgin", "name": "Virgin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Virgin_Racing"}, {"constructorid": 167, "constructorref": "cooper-maserati", "name": "Cooper-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 168, "constructorref": "cooper-osca", "name": "Cooper-OSCA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 169, "constructorref": "cooper-borgward", "name": "Cooper-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 170, "constructorref": "cooper-climax", "name": "Cooper-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 171, "constructorref": "cooper-castellotti", "name": "Cooper-Castellotti", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 172, "constructorref": "lotus-climax", "name": "Lotus-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 173, "constructorref": "lotus-maserati", "name": "Lotus-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 174, "constructorref": "de_tomaso-osca", "name": "De Tomaso-Osca", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 175, "constructorref": "de_tomaso-alfa_romeo", "name": "De Tomaso-Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 176, "constructorref": "lotus-brm", "name": "Lotus-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 177, "constructorref": "lotus-borgward", "name": "Lotus-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 178, "constructorref": "cooper-alfa_romeo", "name": "Cooper-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 179, "constructorref": "de_tomaso-ferrari", "name": "De Tomaso-Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 180, "constructorref": "lotus-ford", "name": "Lotus-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 181, "constructorref": "brabham-brm", "name": "Brabham-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 182, "constructorref": "brabham-ford", "name": "Brabham-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 183, "constructorref": "brabham-climax", "name": "Brabham-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 184, "constructorref": "lds-climax", "name": "LDS-Climax", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 185, "constructorref": "lds-alfa_romeo", "name": "LDS-Alfa Romeo", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 186, "constructorref": "cooper-ford", "name": "Cooper-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 187, "constructorref": "mclaren-ford", "name": "McLaren-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 188, "constructorref": "mclaren-seren", "name": "McLaren-Serenissima", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 189, "constructorref": "eagle-climax", "name": "Eagle-Climax", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 190, "constructorref": "eagle-weslake", "name": "Eagle-Weslake", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 191, "constructorref": "brabham-repco", "name": "Brabham-Repco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 192, "constructorref": "cooper-ferrari", "name": "Cooper-Ferrari", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 193, "constructorref": "cooper-ats", "name": "Cooper-ATS", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 194, "constructorref": "mclaren-brm", "name": "McLaren-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 195, "constructorref": "cooper-brm", "name": "Cooper-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 196, "constructorref": "matra-ford", "name": "Matra-Ford", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 197, "constructorref": "brm-ford", "name": "BRM-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 198, "constructorref": "mclaren-alfa_romeo", "name": "McLaren-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 199, "constructorref": "march-alfa_romeo", "name": "March-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 200, "constructorref": "march-ford", "name": "March-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 201, "constructorref": "lotus-pw", "name": "Lotus-Pratt &amp; Whitney", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 202, "constructorref": "shadow-ford", "name": "Shadow-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}]}, "correct_code": "-- Load formula_1__results data\nresults = load(\"results\")\n\nfiltered_results = results\n |> filter(positionorder >= 1)\n |> select(position, positionorder, fastestlaptime, resultid, driverid)\n\nresult = filtered_results\n |> sort_by(resultid, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__results data\nresults = load(\"results\")\n\nfiltered_results = results\n |> filter(positionorder >= 1)\n |> select(position, positionorder, fastestlaptime, resultid, driverid)\n\nresult = filtered_results\n |> sort_by(resultid, asc)\n |> take(3)\n\nemit result", "expected_output": [{"position": "12", "positionorder": 12, "fastestlaptime": "01:17.0", "resultid": 200, "driverid": 7}, {"position": "11", "positionorder": 11, "fastestlaptime": "01:17.1", "resultid": 199, "driverid": 4}, {"position": "10", "positionorder": 10, "fastestlaptime": "01:17.4", "resultid": 198, "driverid": 3}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 9, "original": "|> sort_by(resultid, desc)", "mutated": "|> sort_by(resultid, asc)"}], "difficulty": "easy", "domain": "formula_1__results", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"trip": [{"id": 900504, "duration": 384, "start_date": "8/21/2015 17:03", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 17:10", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 454, "subscription_type": "Subscriber", "zip_code": 94041}, {"id": 900505, "duration": 588, "start_date": "8/21/2015 17:03", "start_station_name": "South Van Ness at Market", "start_station_id": 66, "end_date": "8/21/2015 17:13", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 574, "subscription_type": "Subscriber", "zip_code": 95119}, {"id": 900506, "duration": 196, "start_date": "8/21/2015 17:04", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:07", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 636, "subscription_type": "Subscriber", "zip_code": 94925}, {"id": 900507, "duration": 823, "start_date": "8/21/2015 17:04", "start_station_name": "Washington at Kearny", "start_station_id": 46, "end_date": "8/21/2015 17:18", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 187, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900508, "duration": 1059, "start_date": "8/21/2015 17:04", "start_station_name": "Beale at Market", "start_station_id": 56, "end_date": "8/21/2015 17:22", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 363, "subscription_type": "Customer", "zip_code": 94107}, {"id": 900509, "duration": 362, "start_date": "8/21/2015 17:05", "start_station_name": "Clay at Battery", "start_station_id": 41, "end_date": "8/21/2015 17:11", "end_station_name": "Howard at 2nd", "end_station_id": 63, "bike_id": 16, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900511, "duration": 528, "start_date": "8/21/2015 17:05", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:14", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 67, "subscription_type": "Subscriber", "zip_code": 94608}, {"id": 900514, "duration": 984, "start_date": "8/21/2015 17:06", "start_station_name": "Davis at Jackson", "start_station_id": 42, "end_date": "8/21/2015 17:22", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 427, "subscription_type": "Subscriber", "zip_code": 94087}, {"id": 900515, "duration": 982, "start_date": "8/21/2015 17:06", "start_station_name": "Davis at Jackson", "start_station_id": 42, "end_date": "8/21/2015 17:22", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 603, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900518, "duration": 422, "start_date": "8/21/2015 17:07", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 17:14", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 503, "subscription_type": "Subscriber", "zip_code": 94010}, {"id": 900519, "duration": 837, "start_date": "8/21/2015 17:07", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 17:21", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 351, "subscription_type": "Subscriber", "zip_code": 94609}, {"id": 900520, "duration": 710, "start_date": "8/21/2015 17:07", "start_station_name": "Powell Street BART", "start_station_id": 39, "end_date": "8/21/2015 17:19", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 507, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900521, "duration": 209, "start_date": "8/21/2015 17:07", "start_station_name": "Temporary Transbay Terminal (Howard at Beale)", "start_station_id": 55, "end_date": "8/21/2015 17:11", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 415, "subscription_type": "Subscriber", "zip_code": 94901}, {"id": 900522, "duration": 1155, "start_date": "8/21/2015 17:07", "start_station_name": "Clay at Battery", "start_station_id": 41, "end_date": "8/21/2015 17:26", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 29, "subscription_type": "Subscriber", "zip_code": 94061}, {"id": 900523, "duration": 841, "start_date": "8/21/2015 17:08", "start_station_name": "Park at Olive", "start_station_id": 38, "end_date": "8/21/2015 17:22", "end_station_name": "Palo Alto Caltrain Station", "end_station_id": 34, "bike_id": 110, "subscription_type": "Subscriber", "zip_code": 94002}, {"id": 900524, "duration": 693, "start_date": "8/21/2015 17:08", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:20", "end_station_name": "Market at 10th", "end_station_id": 67, "bike_id": 343, "subscription_type": "Subscriber", "zip_code": 94117}, {"id": 900527, "duration": 614, "start_date": "8/21/2015 17:08", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:19", "end_station_name": "Civic Center BART (7th at Market)", "end_station_id": 72, "bike_id": 374, "subscription_type": "Subscriber", "zip_code": 94122}, {"id": 900528, "duration": 400, "start_date": "8/21/2015 17:09", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:15", "end_station_name": "Embarcadero at Folsom", "end_station_id": 51, "bike_id": 520, "subscription_type": "Subscriber", "zip_code": 94547}, {"id": 900529, "duration": 787, "start_date": "8/21/2015 17:08", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:22", "end_station_name": "Grant Avenue at Columbus Avenue", "end_station_id": 73, "bike_id": 531, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900530, "duration": 278, "start_date": "8/21/2015 17:09", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:13", "end_station_name": "Market at 4th", "end_station_id": 76, "bike_id": 521, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900531, "duration": 804, "start_date": "8/21/2015 17:09", "start_station_name": "Harry Bridges Plaza (Ferry Building)", "start_station_id": 50, "end_date": "8/21/2015 17:22", "end_station_name": "5th at Howard", "end_station_id": 57, "bike_id": 636, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900534, "duration": 915, "start_date": "8/21/2015 17:10", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 17:25", "end_station_name": "South Van Ness at Market", "end_station_id": 66, "bike_id": 512, "subscription_type": "Subscriber", "zip_code": 94114}, {"id": 900536, "duration": 1131, "start_date": "8/21/2015 17:10", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 17:29", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 275, "subscription_type": "Subscriber", "zip_code": 95111}, {"id": 900537, "duration": 535, "start_date": "8/21/2015 17:10", "start_station_name": "Powell Street BART", "start_station_id": 39, "end_date": "8/21/2015 17:19", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 137, "subscription_type": "Subscriber", "zip_code": 94941}, {"id": 900538, "duration": 419, "start_date": "8/21/2015 17:10", "start_station_name": "5th at Howard", "start_station_id": 57, "end_date": "8/21/2015 17:17", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 451, "subscription_type": "Subscriber", "zip_code": 94170}, {"id": 900539, "duration": 336, "start_date": "8/21/2015 17:10", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 17:16", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 259, "subscription_type": "Subscriber", "zip_code": 94901}, {"id": 900540, "duration": 673, "start_date": "8/21/2015 17:11", "start_station_name": "Spear at Folsom", "start_station_id": 49, "end_date": "8/21/2015 17:22", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 537, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900541, "duration": 693, "start_date": "8/21/2015 17:11", "start_station_name": "South Van Ness at Market", "start_station_id": 66, "end_date": "8/21/2015 17:23", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 563, "subscription_type": "Subscriber", "zip_code": 95118}, {"id": 900542, "duration": 404, "start_date": "8/21/2015 17:11", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 17:18", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 425, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900543, "duration": 785, "start_date": "8/21/2015 17:11", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 17:24", "end_station_name": "Powell at Post (Union Square)", "end_station_id": 71, "bike_id": 266, "subscription_type": "Subscriber", "zip_code": 94070}, {"id": 900544, "duration": 251, "start_date": "8/21/2015 17:12", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:16", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 538, "subscription_type": "Subscriber", "zip_code": 94925}, {"id": 900545, "duration": 680, "start_date": "8/21/2015 17:12", "start_station_name": "Temporary Transbay Terminal (Howard at Beale)", "start_station_id": 55, "end_date": "8/21/2015 17:23", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 285, "subscription_type": "Subscriber", "zip_code": 95110}, {"id": 900546, "duration": 222, "start_date": "8/21/2015 17:12", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:16", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 434, "subscription_type": "Subscriber", "zip_code": 95014}, {"id": 900547, "duration": 319, "start_date": "8/21/2015 17:12", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 17:17", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 360, "subscription_type": "Subscriber", "zip_code": 94401}, {"id": 900548, "duration": 461, "start_date": "8/21/2015 17:12", "start_station_name": "Embarcadero at Bryant", "start_station_id": 54, "end_date": "8/21/2015 17:20", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 528, "subscription_type": "Subscriber", "zip_code": 94005}, {"id": 900549, "duration": 262, "start_date": "8/21/2015 17:12", "start_station_name": "Market at 10th", "start_station_id": 67, "end_date": "8/21/2015 17:17", "end_station_name": "Powell Street BART", "end_station_id": 39, "bike_id": 193, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900550, "duration": 803, "start_date": "8/21/2015 17:12", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 17:26", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 535, "subscription_type": "Customer", "zip_code": 94549}, {"id": 900551, "duration": 511, "start_date": "8/21/2015 17:13", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 17:22", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 593, "subscription_type": "Subscriber", "zip_code": 95014}, {"id": 900552, "duration": 839, "start_date": "8/21/2015 17:13", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 17:27", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 448, "subscription_type": "Subscriber", "zip_code": 94609}, {"id": 900553, "duration": 705, "start_date": "8/21/2015 17:13", "start_station_name": "Spear at Folsom", "start_station_id": 49, "end_date": "8/21/2015 17:25", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 416, "subscription_type": "Subscriber", "zip_code": 94404}, {"id": 900554, "duration": 646, "start_date": "8/21/2015 17:13", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 17:24", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 687, "subscription_type": "Subscriber", "zip_code": 94549}, {"id": 900555, "duration": 810, "start_date": "8/21/2015 17:13", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 17:27", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 552, "subscription_type": "Subscriber", "zip_code": 94904}, {"id": 900556, "duration": 445, "start_date": "8/21/2015 17:10", "start_station_name": "Market at 4th", "start_station_id": 76, "end_date": "8/21/2015 17:18", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 449, "subscription_type": "Subscriber", "zip_code": 94403}, {"id": 900557, "duration": 243, "start_date": "8/21/2015 17:15", "start_station_name": "Mountain View City Hall", "start_station_id": 27, "end_date": "8/21/2015 17:19", "end_station_name": "Mountain View Caltrain Station", "end_station_id": 28, "bike_id": 90, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900558, "duration": 389, "start_date": "8/21/2015 17:16", "start_station_name": "5th at Howard", "start_station_id": 57, "end_date": "8/21/2015 17:22", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 522, "subscription_type": "Subscriber", "zip_code": 94402}, {"id": 900560, "duration": 278, "start_date": "8/21/2015 17:16", "start_station_name": "Beale at Market", "start_station_id": 56, "end_date": "8/21/2015 17:21", "end_station_name": "Commercial at Montgomery", "end_station_id": 45, "bike_id": 370, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900561, "duration": 261, "start_date": "8/21/2015 17:17", "start_station_name": "Mountain View City Hall", "start_station_id": 27, "end_date": "8/21/2015 17:21", "end_station_name": "Mountain View Caltrain Station", "end_station_id": 28, "bike_id": 94, "subscription_type": "Subscriber", "zip_code": 94040}, {"id": 900562, "duration": 647, "start_date": "8/21/2015 17:17", "start_station_name": "Commercial at Montgomery", "start_station_id": 45, "end_date": "8/21/2015 17:27", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 386, "subscription_type": "Subscriber", "zip_code": 94087}, {"id": 900563, "duration": 811, "start_date": "8/21/2015 17:17", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:30", "end_station_name": "Market at 10th", "end_station_id": 67, "bike_id": 260, "subscription_type": "Subscriber", "zip_code": 94110}, {"id": 900564, "duration": 234, "start_date": "8/21/2015 17:17", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:21", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 418, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900565, "duration": 808, "start_date": "8/21/2015 17:17", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:30", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 359, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900566, "duration": 685, "start_date": "8/21/2015 17:17", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 17:29", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 405, "subscription_type": "Subscriber", "zip_code": 94965}, {"id": 900567, "duration": 607, "start_date": "8/21/2015 17:17", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 17:27", "end_station_name": "Davis at Jackson", "end_station_id": 42, "bike_id": 598, "subscription_type": "Subscriber", "zip_code": 94111}, {"id": 900568, "duration": 679, "start_date": "8/21/2015 17:17", "start_station_name": "Market at 10th", "start_station_id": 67, "end_date": "8/21/2015 17:28", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 327, "subscription_type": "Subscriber", "zip_code": 94401}, {"id": 900569, "duration": 253, "start_date": "8/21/2015 17:18", "start_station_name": "Mountain View Caltrain Station", "start_station_id": 28, "end_date": "8/21/2015 17:23", "end_station_name": "Mountain View Caltrain Station", "end_station_id": 28, "bike_id": 233, "subscription_type": "Subscriber", "zip_code": 94109}, {"id": 900570, "duration": 464, "start_date": "8/21/2015 17:19", "start_station_name": "San Pedro Square", "start_station_id": 6, "end_date": "8/21/2015 17:26", "end_station_name": "San Jose Diridon Caltrain Station", "end_station_id": 2, "bike_id": 57, "subscription_type": "Subscriber", "zip_code": 95377}, {"id": 900571, "duration": 554, "start_date": "8/21/2015 17:19", "start_station_name": "Golden Gate at Polk", "start_station_id": 59, "end_date": "8/21/2015 17:28", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 672, "subscription_type": "Subscriber", "zip_code": 94610}, {"id": 900572, "duration": 509, "start_date": "8/21/2015 17:19", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 17:28", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 187, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900573, "duration": 508, "start_date": "8/21/2015 17:20", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 17:28", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 507, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900574, "duration": 273, "start_date": "8/21/2015 17:20", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:24", "end_station_name": "Howard at 2nd", "end_station_id": 63, "bike_id": 441, "subscription_type": "Subscriber", "zip_code": 94108}, {"id": 900576, "duration": 201, "start_date": "8/21/2015 17:20", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 17:23", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 408, "subscription_type": "Customer", "zip_code": 94134}, {"id": 900577, "duration": 874, "start_date": "8/21/2015 17:20", "start_station_name": "Beale at Market", "start_station_id": 56, "end_date": "8/21/2015 17:35", "end_station_name": "Golden Gate at Polk", "end_station_id": 59, "bike_id": 111, "subscription_type": "Subscriber", "zip_code": 94109}, {"id": 900578, "duration": 438, "start_date": "8/21/2015 17:20", "start_station_name": "Market at 4th", "start_station_id": 76, "end_date": "8/21/2015 17:28", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 625, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900579, "duration": 447, "start_date": "8/21/2015 17:21", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 17:28", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 628, "subscription_type": "Subscriber", "zip_code": 94303}, {"id": 900580, "duration": 406, "start_date": "8/21/2015 17:21", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 17:28", "end_station_name": "2nd at South Park", "end_station_id": 64, "bike_id": 351, "subscription_type": "Subscriber", "zip_code": 94121}, {"id": 900581, "duration": 614, "start_date": "8/21/2015 17:21", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:31", "end_station_name": "Powell Street BART", "end_station_id": 39, "bike_id": 392, "subscription_type": "Subscriber", "zip_code": 94612}, {"id": 900583, "duration": 767, "start_date": "8/21/2015 17:22", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 17:35", "end_station_name": "Spear at Folsom", "end_station_id": 49, "bike_id": 449, "subscription_type": "Subscriber", "zip_code": 94061}, {"id": 900584, "duration": 341, "start_date": "8/21/2015 17:22", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:28", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 361, "subscription_type": "Subscriber", "zip_code": 94610}, {"id": 900585, "duration": 222, "start_date": "8/21/2015 17:19", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:23", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 473, "subscription_type": "Subscriber", "zip_code": 94597}, {"id": 900586, "duration": 422, "start_date": "8/21/2015 17:19", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:26", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 279, "subscription_type": "Subscriber", "zip_code": 94611}, {"id": 900587, "duration": 71, "start_date": "8/21/2015 17:23", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:24", "end_station_name": "2nd at South Park", "end_station_id": 64, "bike_id": 282, "subscription_type": "Subscriber", "zip_code": 94901}, {"id": 900588, "duration": 834, "start_date": "8/21/2015 17:23", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 17:37", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 575, "subscription_type": "Subscriber", "zip_code": 94404}, {"id": 900589, "duration": 279, "start_date": "8/21/2015 17:22", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 17:26", "end_station_name": "Embarcadero at Bryant", "end_station_id": 54, "bike_id": 590, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900590, "duration": 265, "start_date": "8/21/2015 17:24", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:28", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 278, "subscription_type": "Subscriber", "zip_code": 94556}, {"id": 900591, "duration": 69, "start_date": "8/21/2015 17:24", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:25", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 282, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900592, "duration": 479, "start_date": "8/21/2015 17:24", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 17:32", "end_station_name": "Embarcadero at Sansome", "end_station_id": 60, "bike_id": 422, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900594, "duration": 371, "start_date": "8/21/2015 17:26", "start_station_name": "Santa Clara at Almaden", "start_station_id": 4, "end_date": "8/21/2015 17:32", "end_station_name": "San Jose Diridon Caltrain Station", "end_station_id": 2, "bike_id": 20, "subscription_type": "Subscriber", "zip_code": 94306}, {"id": 900598, "duration": 768, "start_date": "8/21/2015 17:27", "start_station_name": "Davis at Jackson", "start_station_id": 42, "end_date": "8/21/2015 17:40", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 546, "subscription_type": "Subscriber", "zip_code": 94025}, {"id": 900601, "duration": 557, "start_date": "8/21/2015 17:28", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 17:37", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 425, "subscription_type": "Subscriber", "zip_code": 94061}, {"id": 900604, "duration": 394, "start_date": "8/21/2015 17:29", "start_station_name": "Civic Center BART (7th at Market)", "start_station_id": 72, "end_date": "8/21/2015 17:35", "end_station_name": "Market at 4th", "end_station_id": 76, "bike_id": 315, "subscription_type": "Subscriber", "zip_code": 94110}, {"id": 900607, "duration": 335, "start_date": "8/21/2015 17:30", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 17:35", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 470, "subscription_type": "Subscriber", "zip_code": 94602}, {"id": 900610, "duration": 648, "start_date": "8/21/2015 17:30", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 17:41", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 473, "subscription_type": "Subscriber", "zip_code": 94024}, {"id": 900613, "duration": 446, "start_date": "8/21/2015 17:31", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 17:38", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 289, "subscription_type": "Subscriber", "zip_code": 94949}, {"id": 900616, "duration": 202, "start_date": "8/21/2015 17:32", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 17:35", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 537, "subscription_type": "Subscriber", "zip_code": 94127}, {"id": 900617, "duration": 605, "start_date": "8/21/2015 17:32", "start_station_name": "Civic Center BART (7th at Market)", "start_station_id": 72, "end_date": "8/21/2015 17:42", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 659, "subscription_type": "Subscriber", "zip_code": 94112}, {"id": 900618, "duration": 627, "start_date": "8/21/2015 17:32", "start_station_name": "San Francisco City Hall", "start_station_id": 58, "end_date": "8/21/2015 17:43", "end_station_name": "5th at Howard", "end_station_id": 57, "bike_id": 292, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900619, "duration": 557, "start_date": "8/21/2015 17:33", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 17:42", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 602, "subscription_type": "Subscriber", "zip_code": 94402}, {"id": 900620, "duration": 622, "start_date": "8/21/2015 17:33", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 17:44", "end_station_name": "Market at 10th", "end_station_id": 67, "bike_id": 581, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900621, "duration": 636, "start_date": "8/21/2015 17:33", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 17:44", "end_station_name": "Post at Kearny", "end_station_id": 47, "bike_id": 422, "subscription_type": "Subscriber", "zip_code": 94109}, {"id": 900622, "duration": 777, "start_date": "8/21/2015 17:33", "start_station_name": "Temporary Transbay Terminal (Howard at Beale)", "start_station_id": 55, "end_date": "8/21/2015 17:46", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 573, "subscription_type": "Subscriber", "zip_code": 94030}, {"id": 900623, "duration": 453, "start_date": "8/21/2015 17:34", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 17:41", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 437, "subscription_type": "Subscriber", "zip_code": 94061}, {"id": 900624, "duration": 365, "start_date": "8/21/2015 17:34", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 17:40", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 351, "subscription_type": "Subscriber", "zip_code": 94607}, {"id": 900625, "duration": 2146, "start_date": "8/21/2015 17:34", "start_station_name": "Golden Gate at Polk", "start_station_id": 59, "end_date": "8/21/2015 18:10", "end_station_name": "Davis at Jackson", "end_station_id": 42, "bike_id": 417, "subscription_type": "Subscriber", "zip_code": 94530}, {"id": 900626, "duration": 348, "start_date": "8/21/2015 17:35", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 17:40", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 578, "subscription_type": "Subscriber", "zip_code": 94087}, {"id": 900629, "duration": 530, "start_date": "8/21/2015 17:36", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 17:45", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 535, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900630, "duration": 691, "start_date": "8/21/2015 17:36", "start_station_name": "Mountain View Caltrain Station", "start_station_id": 28, "end_date": "8/21/2015 17:47", "end_station_name": "Rengstorff Avenue / California Street", "end_station_id": 33, "bike_id": 105, "subscription_type": "Subscriber", "zip_code": "94040-1724"}, {"id": 900631, "duration": 712, "start_date": "8/21/2015 17:33", "start_station_name": "Redwood City Medical Center", "start_station_id": 26, "end_date": "8/21/2015 17:45", "end_station_name": "San Mateo County Center", "end_station_id": 23, "bike_id": 299, "subscription_type": "Subscriber", "zip_code": 94040}, {"id": 900632, "duration": 410, "start_date": "8/21/2015 17:37", "start_station_name": "Market at 4th", "start_station_id": 76, "end_date": "8/21/2015 17:43", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 309, "subscription_type": "Subscriber", "zip_code": 94501}, {"id": 900635, "duration": 971, "start_date": "8/21/2015 17:37", "start_station_name": "Spear at Folsom", "start_station_id": 49, "end_date": "8/21/2015 17:53", "end_station_name": "Market at 4th", "end_station_id": 76, "bike_id": 449, "subscription_type": "Subscriber", "zip_code": 94117}, {"id": 900636, "duration": 892, "start_date": "8/21/2015 17:37", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 17:52", "end_station_name": "Civic Center BART (7th at Market)", "end_station_id": 72, "bike_id": 494, "subscription_type": "Subscriber", "zip_code": 94080}, {"id": 900639, "duration": 427, "start_date": "8/21/2015 17:38", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 17:45", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 520, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900640, "duration": 509, "start_date": "8/21/2015 17:38", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 17:47", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 507, "subscription_type": "Subscriber", "zip_code": 94960}, {"id": 900641, "duration": 552, "start_date": "8/21/2015 17:38", "start_station_name": "Powell Street BART", "start_station_id": 39, "end_date": "8/21/2015 17:47", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 392, "subscription_type": "Subscriber", "zip_code": 94306}, {"id": 900644, "duration": 636, "start_date": "8/21/2015 17:39", "start_station_name": "Golden Gate at Polk", "start_station_id": 59, "end_date": "8/21/2015 17:49", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 388, "subscription_type": "Subscriber", "zip_code": 94306}, {"id": 900645, "duration": 290, "start_date": "8/21/2015 17:40", "start_station_name": "5th at Howard", "start_station_id": 57, "end_date": "8/21/2015 17:45", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 572, "subscription_type": "Subscriber", "zip_code": 94303}, {"id": 900646, "duration": 2027, "start_date": "8/21/2015 17:41", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 18:14", "end_station_name": "Market at 10th", "end_station_id": 67, "bike_id": 351, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900647, "duration": 894, "start_date": "8/21/2015 17:41", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 17:56", "end_station_name": "Embarcadero at Sansome", "end_station_id": 60, "bike_id": 593, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900648, "duration": 557, "start_date": "8/21/2015 17:41", "start_station_name": "San Jose Diridon Caltrain Station", "start_station_id": 2, "end_date": "8/21/2015 17:50", "end_station_name": "Paseo de San Antonio", "end_station_id": 7, "bike_id": 20, "subscription_type": "Subscriber", "zip_code": 95113}, {"id": 900649, "duration": 265, "start_date": "8/21/2015 17:42", "start_station_name": "Temporary Transbay Terminal (Howard at Beale)", "start_station_id": 55, "end_date": "8/21/2015 17:46", "end_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "end_station_id": 68, "bike_id": 555, "subscription_type": "Subscriber", "zip_code": 94403}, {"id": 900650, "duration": 776, "start_date": "8/21/2015 17:42", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 17:55", "end_station_name": "Broadway St at Battery St", "end_station_id": 82, "bike_id": 191, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900651, "duration": 836, "start_date": "8/21/2015 17:42", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 17:56", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 137, "subscription_type": "Subscriber", "zip_code": 95111}, {"id": 900656, "duration": 814, "start_date": "8/21/2015 17:43", "start_station_name": "Santa Clara County Civic Center", "start_station_id": 80, "end_date": "8/21/2015 17:56", "end_station_name": "Ryland Park", "end_station_id": 84, "bike_id": 231, "subscription_type": "Subscriber", "zip_code": 95112}, {"id": 900660, "duration": 354, "start_date": "8/21/2015 17:45", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 17:51", "end_station_name": "Howard at 2nd", "end_station_id": 63, "bike_id": 384, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900661, "duration": 511, "start_date": "8/21/2015 17:45", "start_station_name": "Commercial at Montgomery", "start_station_id": 45, "end_date": "8/21/2015 17:53", "end_station_name": "Market at 4th", "end_station_id": 76, "bike_id": 370, "subscription_type": "Subscriber", "zip_code": 94704}, {"id": 900662, "duration": 403, "start_date": "8/21/2015 17:45", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 17:52", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 312, "subscription_type": "Subscriber", "zip_code": 94403}, {"id": 900663, "duration": 4029, "start_date": "8/21/2015 17:46", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 18:53", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 327, "subscription_type": "Subscriber", "zip_code": 94612}, {"id": 900664, "duration": 836, "start_date": "8/21/2015 17:46", "start_station_name": "Harry Bridges Plaza (Ferry Building)", "start_station_id": 50, "end_date": "8/21/2015 18:00", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 268, "subscription_type": "Subscriber", "zip_code": 94111}, {"id": 900665, "duration": 309, "start_date": "8/21/2015 17:47", "start_station_name": "Embarcadero at Bryant", "start_station_id": 54, "end_date": "8/21/2015 17:52", "end_station_name": "Beale at Market", "end_station_id": 56, "bike_id": 492, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900666, "duration": 154, "start_date": "8/21/2015 17:47", "start_station_name": "San Jose Civic Center", "start_station_id": 3, "end_date": "8/21/2015 17:50", "end_station_name": "Paseo de San Antonio", "end_station_id": 7, "bike_id": 64, "subscription_type": "Subscriber", "zip_code": 95112}, {"id": 900667, "duration": 439, "start_date": "8/21/2015 17:47", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 17:55", "end_station_name": "5th at Howard", "end_station_id": 57, "bike_id": 212, "subscription_type": "Subscriber", "zip_code": 94103}, {"id": 900668, "duration": 967, "start_date": "8/21/2015 17:47", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 18:03", "end_station_name": "Post at Kearny", "end_station_id": 47, "bike_id": 623, "subscription_type": "Customer", "zip_code": "nil"}, {"id": 900669, "duration": 969, "start_date": "8/21/2015 17:47", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 18:04", "end_station_name": "Post at Kearny", "end_station_id": 47, "bike_id": 600, "subscription_type": "Customer", "zip_code": "nil"}, {"id": 900670, "duration": 961, "start_date": "8/21/2015 17:48", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 18:04", "end_station_name": "Post at Kearny", "end_station_id": 47, "bike_id": 418, "subscription_type": "Customer", "zip_code": "nil"}, {"id": 900671, "duration": 940, "start_date": "8/21/2015 17:48", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 18:04", "end_station_name": "Post at Kearny", "end_station_id": 47, "bike_id": 33, "subscription_type": "Customer", "zip_code": "nil"}, {"id": 900672, "duration": 237, "start_date": "8/21/2015 17:48", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 17:52", "end_station_name": "2nd at South Park", "end_station_id": 64, "bike_id": 441, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900673, "duration": 1103, "start_date": "8/21/2015 17:48", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 18:07", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 56, "subscription_type": "Subscriber", "zip_code": 94110}, {"id": 900674, "duration": 604, "start_date": "8/21/2015 17:49", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 17:59", "end_station_name": "Civic Center BART (7th at Market)", "end_station_id": 72, "bike_id": 427, "subscription_type": "Subscriber", "zip_code": 94601}, {"id": 900675, "duration": 1187, "start_date": "8/21/2015 17:51", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 18:11", "end_station_name": "Clay at Battery", "end_station_id": 41, "bike_id": 436, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900676, "duration": 366, "start_date": "8/21/2015 17:51", "start_station_name": "SJSU 4th at San Carlos", "start_station_id": 12, "end_date": "8/21/2015 17:57", "end_station_name": "San Pedro Square", "end_station_id": 6, "bike_id": 65, "subscription_type": "Subscriber", "zip_code": 95110}, {"id": 900677, "duration": 192, "start_date": "8/21/2015 17:52", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 17:55", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 455, "subscription_type": "Subscriber", "zip_code": 94404}, {"id": 900678, "duration": 322, "start_date": "8/21/2015 17:52", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 17:58", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 478, "subscription_type": "Subscriber", "zip_code": 94002}, {"id": 900679, "duration": 708, "start_date": "8/21/2015 17:53", "start_station_name": "Broadway St at Battery St", "start_station_id": 82, "end_date": "8/21/2015 18:05", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 562, "subscription_type": "Subscriber", "zip_code": 95111}, {"id": 900680, "duration": 353, "start_date": "8/21/2015 17:53", "start_station_name": "Davis at Jackson", "start_station_id": 42, "end_date": "8/21/2015 17:59", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 362, "subscription_type": "Subscriber", "zip_code": 94602}, {"id": 900683, "duration": 182, "start_date": "8/21/2015 17:54", "start_station_name": "Embarcadero at Vallejo", "start_station_id": 48, "end_date": "8/21/2015 17:57", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 617, "subscription_type": "Subscriber", "zip_code": 94608}, {"id": 900684, "duration": 629, "start_date": "8/21/2015 17:54", "start_station_name": "San Jose Diridon Caltrain Station", "start_station_id": 2, "end_date": "8/21/2015 18:04", "end_station_name": "Ryland Park", "end_station_id": 84, "bike_id": 143, "subscription_type": "Subscriber", "zip_code": 95110}, {"id": 900685, "duration": 519, "start_date": "8/21/2015 17:54", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 18:02", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 372, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900688, "duration": 286, "start_date": "8/21/2015 17:54", "start_station_name": "Temporary Transbay Terminal (Howard at Beale)", "start_station_id": 55, "end_date": "8/21/2015 17:59", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 651, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900689, "duration": 838, "start_date": "8/21/2015 17:54", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 18:08", "end_station_name": "Market at 10th", "end_station_id": 67, "bike_id": 573, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900692, "duration": 738, "start_date": "8/21/2015 17:55", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 18:07", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 416, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900693, "duration": 561, "start_date": "8/21/2015 17:55", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 18:05", "end_station_name": "Powell Street BART", "end_station_id": 39, "bike_id": 359, "subscription_type": "Subscriber", "zip_code": 94597}, {"id": 900694, "duration": 357, "start_date": "8/21/2015 17:55", "start_station_name": "San Pedro Square", "start_station_id": 6, "end_date": "8/21/2015 18:01", "end_station_name": "San Jose Diridon Caltrain Station", "end_station_id": 2, "bike_id": 696, "subscription_type": "Subscriber", "zip_code": 94002}, {"id": 900699, "duration": 422, "start_date": "8/21/2015 17:56", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 18:03", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 400, "subscription_type": "Subscriber", "zip_code": 94566}, {"id": 900700, "duration": 723, "start_date": "8/21/2015 17:57", "start_station_name": "Clay at Battery", "start_station_id": 41, "end_date": "8/21/2015 18:09", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 514, "subscription_type": "Subscriber", "zip_code": 94087}, {"id": 900701, "duration": 660, "start_date": "8/21/2015 17:57", "start_station_name": "South Van Ness at Market", "start_station_id": 66, "end_date": "8/21/2015 18:08", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 355, "subscription_type": "Subscriber", "zip_code": 94010}, {"id": 900704, "duration": 1004, "start_date": "8/21/2015 17:57", "start_station_name": "Broadway St at Battery St", "start_station_id": 82, "end_date": "8/21/2015 18:14", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 331, "subscription_type": "Subscriber", "zip_code": 94065}, {"id": 900705, "duration": 535, "start_date": "8/21/2015 17:58", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 18:07", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 426, "subscription_type": "Subscriber", "zip_code": 95008}, {"id": 900706, "duration": 574, "start_date": "8/21/2015 17:58", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 18:08", "end_station_name": "Embarcadero at Folsom", "end_station_id": 51, "bike_id": 473, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900707, "duration": 848, "start_date": "8/21/2015 17:59", "start_station_name": "University and Emerson", "start_station_id": 35, "end_date": "8/21/2015 18:13", "end_station_name": "Park at Olive", "end_station_id": 38, "bike_id": 243, "subscription_type": "Subscriber", "zip_code": 94040}, {"id": 900709, "duration": 342, "start_date": "8/21/2015 18:01", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 18:06", "end_station_name": "Powell Street BART", "end_station_id": 39, "bike_id": 375, "subscription_type": "Subscriber", "zip_code": 94804}, {"id": 900711, "duration": 751, "start_date": "8/21/2015 18:01", "start_station_name": "Embarcadero at Folsom", "start_station_id": 51, "end_date": "8/21/2015 18:13", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 373, "subscription_type": "Subscriber", "zip_code": 94062}, {"id": 900712, "duration": 277, "start_date": "8/21/2015 18:01", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 18:06", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 504, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900713, "duration": 407, "start_date": "8/21/2015 18:01", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 18:08", "end_station_name": "Spear at Folsom", "end_station_id": 49, "bike_id": 282, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900714, "duration": 412, "start_date": "8/21/2015 18:01", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 18:08", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 509, "subscription_type": "Subscriber", "zip_code": 94114}, {"id": 900715, "duration": 708, "start_date": "8/21/2015 18:02", "start_station_name": "Commercial at Montgomery", "start_station_id": 45, "end_date": "8/21/2015 18:13", "end_station_name": "2nd at Folsom", "end_station_id": 62, "bike_id": 109, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900716, "duration": 759, "start_date": "8/21/2015 18:02", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 18:14", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 137, "subscription_type": "Subscriber", "zip_code": 94930}, {"id": 900717, "duration": 174, "start_date": "8/21/2015 18:02", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 18:05", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 659, "subscription_type": "Subscriber", "zip_code": 95051}, {"id": 900718, "duration": 329, "start_date": "8/21/2015 18:02", "start_station_name": "Mountain View Caltrain Station", "start_station_id": 28, "end_date": "8/21/2015 18:08", "end_station_name": "Castro Street and El Camino Real", "end_station_id": 32, "bike_id": 90, "subscription_type": "Subscriber", "zip_code": 94022}, {"id": 900719, "duration": 819, "start_date": "8/21/2015 18:02", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 18:16", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 555, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900720, "duration": 457, "start_date": "8/21/2015 18:03", "start_station_name": "Temporary Transbay Terminal (Howard at Beale)", "start_station_id": 55, "end_date": "8/21/2015 18:11", "end_station_name": "5th at Howard", "end_station_id": 57, "bike_id": 309, "subscription_type": "Subscriber", "zip_code": 94109}, {"id": 900721, "duration": 542, "start_date": "8/21/2015 18:04", "start_station_name": "5th at Howard", "start_station_id": 57, "end_date": "8/21/2015 18:13", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 636, "subscription_type": "Subscriber", "zip_code": 94903}, {"id": 900722, "duration": 444, "start_date": "8/21/2015 18:04", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 18:11", "end_station_name": "Grant Avenue at Columbus Avenue", "end_station_id": 73, "bike_id": 593, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900723, "duration": 860, "start_date": "8/21/2015 18:04", "start_station_name": "Washington at Kearny", "start_station_id": 46, "end_date": "8/21/2015 18:19", "end_station_name": "Temporary Transbay Terminal (Howard at Beale)", "end_station_id": 55, "bike_id": 479, "subscription_type": "Subscriber", "zip_code": 94705}, {"id": 900724, "duration": 1155, "start_date": "8/21/2015 18:05", "start_station_name": "Post at Kearny", "start_station_id": 47, "end_date": "8/21/2015 18:24", "end_station_name": "Golden Gate at Polk", "end_station_id": 59, "bike_id": 429, "subscription_type": "Customer", "zip_code": 85009}, {"id": 900725, "duration": 1050, "start_date": "8/21/2015 18:06", "start_station_name": "Davis at Jackson", "start_station_id": 42, "end_date": "8/21/2015 18:23", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 541, "subscription_type": "Subscriber", "zip_code": 94086}, {"id": 900726, "duration": 473, "start_date": "8/21/2015 18:06", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 18:14", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 300, "subscription_type": "Subscriber", "zip_code": 94070}, {"id": 900727, "duration": 295, "start_date": "8/21/2015 18:06", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 18:11", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 384, "subscription_type": "Subscriber", "zip_code": 94115}, {"id": 900728, "duration": 299, "start_date": "8/21/2015 18:06", "start_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "start_station_id": 68, "end_date": "8/21/2015 18:11", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 586, "subscription_type": "Subscriber", "zip_code": 94070}, {"id": 900729, "duration": 250, "start_date": "8/21/2015 18:07", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 18:11", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 535, "subscription_type": "Subscriber", "zip_code": 94401}, {"id": 900730, "duration": 791, "start_date": "8/21/2015 18:07", "start_station_name": "2nd at Townsend", "start_station_id": 61, "end_date": "8/21/2015 18:20", "end_station_name": "Powell Street BART", "end_station_id": 39, "bike_id": 395, "subscription_type": "Customer", "zip_code": 94549}, {"id": 900731, "duration": 832, "start_date": "8/21/2015 18:07", "start_station_name": "Broadway St at Battery St", "start_station_id": 82, "end_date": "8/21/2015 18:21", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 191, "subscription_type": "Subscriber", "zip_code": 95130}, {"id": 900732, "duration": 827, "start_date": "8/21/2015 18:08", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 18:22", "end_station_name": "Harry Bridges Plaza (Ferry Building)", "end_station_id": 50, "bike_id": 569, "subscription_type": "Subscriber", "zip_code": 94111}, {"id": 900733, "duration": 179, "start_date": "8/21/2015 18:08", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 18:11", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 423, "subscription_type": "Subscriber", "zip_code": 94105}, {"id": 900734, "duration": 499, "start_date": "8/21/2015 18:08", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 18:16", "end_station_name": "Powell at Post (Union Square)", "end_station_id": 71, "bike_id": 448, "subscription_type": "Subscriber", "zip_code": 94108}, {"id": 900735, "duration": 336, "start_date": "8/21/2015 18:08", "start_station_name": "Embarcadero at Sansome", "start_station_id": 60, "end_date": "8/21/2015 18:14", "end_station_name": "Steuart at Market", "end_station_id": 74, "bike_id": 450, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900736, "duration": 836, "start_date": "8/21/2015 18:10", "start_station_name": "San Francisco Caltrain (Townsend at 4th)", "start_station_id": 70, "end_date": "8/21/2015 18:24", "end_station_name": "Broadway St at Battery St", "end_station_id": 82, "bike_id": 478, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900737, "duration": 855, "start_date": "8/21/2015 18:10", "start_station_name": "Market at 10th", "start_station_id": 67, "end_date": "8/21/2015 18:25", "end_station_name": "2nd at Folsom", "end_station_id": 62, "bike_id": 420, "subscription_type": "Subscriber", "zip_code": 94709}, {"id": 900738, "duration": 232, "start_date": "8/21/2015 18:11", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 18:15", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 500, "subscription_type": "Subscriber", "zip_code": 94043}, {"id": 900739, "duration": 708, "start_date": "8/21/2015 18:11", "start_station_name": "Steuart at Market", "start_station_id": 74, "end_date": "8/21/2015 18:23", "end_station_name": "2nd at Townsend", "end_station_id": 61, "bike_id": 463, "subscription_type": "Subscriber", "zip_code": 94158}, {"id": 900740, "duration": 230, "start_date": "8/21/2015 18:11", "start_station_name": "2nd at Folsom", "start_station_id": 62, "end_date": "8/21/2015 18:15", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 443, "subscription_type": "Subscriber", "zip_code": 94612}, {"id": 900741, "duration": 231, "start_date": "8/21/2015 18:13", "start_station_name": "2nd at South Park", "start_station_id": 64, "end_date": "8/21/2015 18:17", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 603, "subscription_type": "Subscriber", "zip_code": 94301}, {"id": 900742, "duration": 126, "start_date": "8/21/2015 18:13", "start_station_name": "Howard at 2nd", "start_station_id": 63, "end_date": "8/21/2015 18:15", "end_station_name": "Market at Sansome", "end_station_id": 77, "bike_id": 274, "subscription_type": "Subscriber", "zip_code": 94114}, {"id": 900743, "duration": 1161, "start_date": "8/21/2015 18:13", "start_station_name": "Park at Olive", "start_station_id": 38, "end_date": "8/21/2015 18:33", "end_station_name": "Rengstorff Avenue / California Street", "end_station_id": 33, "bike_id": 243, "subscription_type": "Subscriber", "zip_code": 94040}, {"id": 900745, "duration": 246, "start_date": "8/21/2015 18:15", "start_station_name": "Broadway St at Battery St", "start_station_id": 82, "end_date": "8/21/2015 18:19", "end_station_name": "Beale at Market", "end_station_id": 56, "bike_id": 502, "subscription_type": "Subscriber", "zip_code": 94618}, {"id": 900746, "duration": 651, "start_date": "8/21/2015 18:16", "start_station_name": "Palo Alto Caltrain Station", "start_station_id": 34, "end_date": "8/21/2015 18:26", "end_station_name": "California Ave Caltrain Station", "end_station_id": 36, "bike_id": 301, "subscription_type": "Subscriber", "zip_code": 94040}, {"id": 900747, "duration": 786, "start_date": "8/21/2015 18:16", "start_station_name": "Broadway St at Battery St", "start_station_id": 82, "end_date": "8/21/2015 18:29", "end_station_name": "San Francisco Caltrain (Townsend at 4th)", "end_station_id": 70, "bike_id": 505, "subscription_type": "Subscriber", "zip_code": 95129}, {"id": 900748, "duration": 1134, "start_date": "8/21/2015 18:16", "start_station_name": "Golden Gate at Polk", "start_station_id": 59, "end_date": "8/21/2015 18:35", "end_station_name": "Embarcadero at Sansome", "end_station_id": 60, "bike_id": 547, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900749, "duration": 780, "start_date": "8/21/2015 18:17", "start_station_name": "Harry Bridges Plaza (Ferry Building)", "start_station_id": 50, "end_date": "8/21/2015 18:30", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 259, "subscription_type": "Subscriber", "zip_code": 94086}, {"id": 900750, "duration": 597, "start_date": "8/21/2015 18:18", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 18:28", "end_station_name": "Grant Avenue at Columbus Avenue", "end_station_id": 73, "bike_id": 361, "subscription_type": "Subscriber", "zip_code": 94133}, {"id": 900751, "duration": 470, "start_date": "8/21/2015 18:19", "start_station_name": "San Jose Diridon Caltrain Station", "start_station_id": 2, "end_date": "8/21/2015 18:27", "end_station_name": "San Salvador at 1st", "end_station_id": 8, "bike_id": 696, "subscription_type": "Subscriber", "zip_code": 94111}, {"id": 900752, "duration": 844, "start_date": "8/21/2015 18:19", "start_station_name": "Grant Avenue at Columbus Avenue", "start_station_id": 73, "end_date": "8/21/2015 18:33", "end_station_name": "Powell at Post (Union Square)", "end_station_id": 71, "bike_id": 431, "subscription_type": "Customer", "zip_code": "nil"}, {"id": 900753, "duration": 822, "start_date": "8/21/2015 18:19", "start_station_name": "Grant Avenue at Columbus Avenue", "start_station_id": 73, "end_date": "8/21/2015 18:33", "end_station_name": "Powell at Post (Union Square)", "end_station_id": 71, "bike_id": 532, "subscription_type": "Customer", "zip_code": "nil"}, {"id": 900755, "duration": 196, "start_date": "8/21/2015 18:22", "start_station_name": "Townsend at 7th", "start_station_id": 65, "end_date": "8/21/2015 18:26", "end_station_name": "San Francisco Caltrain 2 (330 Townsend)", "end_station_id": 69, "bike_id": 56, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900756, "duration": 329, "start_date": "8/21/2015 18:23", "start_station_name": "Beale at Market", "start_station_id": 56, "end_date": "8/21/2015 18:29", "end_station_name": "Embarcadero at Bryant", "end_station_id": 54, "bike_id": 454, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900757, "duration": 690, "start_date": "8/21/2015 18:24", "start_station_name": "Beale at Market", "start_station_id": 56, "end_date": "8/21/2015 18:35", "end_station_name": "Market at 10th", "end_station_id": 67, "bike_id": 563, "subscription_type": "Subscriber", "zip_code": 94102}, {"id": 900758, "duration": 301, "start_date": "8/21/2015 18:24", "start_station_name": "Market at Sansome", "start_station_id": 77, "end_date": "8/21/2015 18:29", "end_station_name": "Market at 4th", "end_station_id": 76, "bike_id": 187, "subscription_type": "Subscriber", "zip_code": 94111}, {"id": 900760, "duration": 177, "start_date": "8/21/2015 18:26", "start_station_name": "5th at Howard", "start_station_id": 57, "end_date": "8/21/2015 18:29", "end_station_name": "Powell Street BART", "end_station_id": 39, "bike_id": 292, "subscription_type": "Subscriber", "zip_code": 94118}, {"id": 900761, "duration": 275, "start_date": "8/21/2015 18:27", "start_station_name": "Commercial at Montgomery", "start_station_id": 45, "end_date": "8/21/2015 18:31", "end_station_name": "Yerba Buena Center of the Arts (3rd @ Howard)", "end_station_id": 68, "bike_id": 214, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900762, "duration": 234, "start_date": "8/21/2015 18:27", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 18:31", "end_station_name": "Townsend at 7th", "end_station_id": 65, "bike_id": 355, "subscription_type": "Subscriber", "zip_code": 94107}, {"id": 900763, "duration": 1107, "start_date": "8/21/2015 18:28", "start_station_name": "San Francisco Caltrain 2 (330 Townsend)", "start_station_id": 69, "end_date": "8/21/2015 18:46", "end_station_name": "Embarcadero at Sansome", "end_station_id": 60, "bike_id": 503, "subscription_type": "Subscriber", "zip_code": 94109}, {"id": 900764, "duration": 482, "start_date": "8/21/2015 18:28", "start_station_name": "Powell Street BART", "start_station_id": 39, "end_date": "8/21/2015 18:36", "end_station_name": "South Van Ness at Market", "end_station_id": 66, "bike_id": 193, "subscription_type": "Subscriber", "zip_code": 94117}]}, "correct_code": "-- Load bike_1__trip data\ntrip = load(\"trip\")\n\nfiltered_trip = trip\n |> filter(end_station_name == \"Civic Center BART (7th at Market)\")\n\nsummary = filtered_trip\n |> group_by(start_station_name)\n |> aggregate(avg_id: avg(id), count: count())\n |> compute(computed_val: avg_id * count)\n\nresult = summary\n |> sort_by(avg_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load bike_1__trip data\ntrip = load(\"trip\")\n\nfiltered_trip = trip\n |> filter(end_station_name == \"Civic Center BART (7th at Market)s\")\n\nsummary = filtered_trip\n |> group_by(start_station_name)\n |> aggregate(avg_id: avg(id), count: count())\n |> compute(computed_val: avg_id * count)\n\nresult = summary\n |> sort_by(avg_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"start_station_name": "2nd at South Park", "avg_id": 900527.0, "count": 1, "computed_val": 900527.0}, {"start_station_name": "Embarcadero at Folsom", "avg_id": 900636.0, "count": 1, "computed_val": 900636.0}, {"start_station_name": "San Francisco Caltrain (Townsend at 4th)", "avg_id": 900674.0, "count": 1, "computed_val": 900674.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Civic Center BART (7th at Market)' \u2192 'Civic Center BART (7th at Market)s'", "line_num": 5, "original": "|> filter(end_station_name == \"Civic Center BART (7th at Market)\")", "mutated": "|> filter(end_station_name == \"Civic Center BART (7th at Market)s\")"}], "difficulty": "hard", "domain": "bike_1__trip", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"apartment_bookings": [{"apt_booking_id": 258, "apt_id": 10, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2016-09-26 17:13:49", "booking_end_date": "2017-10-07 11:38:48"}, {"apt_booking_id": 279, "apt_id": 15, "guest_id": 15, "booking_status_code": "Provisional", "booking_start_date": "2016-04-01 06:28:08", "booking_end_date": "2017-10-25 11:08:42"}, {"apt_booking_id": 337, "apt_id": 8, "guest_id": 5, "booking_status_code": "Provisional", "booking_start_date": "2017-03-13 16:20:14", "booking_end_date": "2018-02-19 16:59:08"}, {"apt_booking_id": 343, "apt_id": 4, "guest_id": 13, "booking_status_code": "Confirmed", "booking_start_date": "2016-08-04 10:33:00", "booking_end_date": "2017-09-29 12:43:50"}, {"apt_booking_id": 365, "apt_id": 9, "guest_id": 12, "booking_status_code": "Confirmed", "booking_start_date": "2017-02-11 14:34:14", "booking_end_date": "2017-10-07 20:47:19"}, {"apt_booking_id": 401, "apt_id": 7, "guest_id": 14, "booking_status_code": "Provisional", "booking_start_date": "2016-05-24 20:09:38", "booking_end_date": "2017-10-03 01:56:21"}, {"apt_booking_id": 497, "apt_id": 10, "guest_id": 8, "booking_status_code": "Confirmed", "booking_start_date": "2016-07-25 02:57:04", "booking_end_date": "2017-09-28 11:08:15"}, {"apt_booking_id": 526, "apt_id": 8, "guest_id": 7, "booking_status_code": "Confirmed", "booking_start_date": "2016-11-26 05:04:31", "booking_end_date": "2018-02-25 15:15:37"}, {"apt_booking_id": 575, "apt_id": 6, "guest_id": 3, "booking_status_code": "Provisional", "booking_start_date": "2017-05-13 18:17:20", "booking_end_date": "2017-10-06 11:15:58"}, {"apt_booking_id": 577, "apt_id": 12, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2017-03-04 02:23:49", "booking_end_date": "2018-02-06 16:57:05"}, {"apt_booking_id": 623, "apt_id": 4, "guest_id": 5, "booking_status_code": "Provisional", "booking_start_date": "2016-06-07 05:05:18", "booking_end_date": "2017-11-13 13:59:45"}, {"apt_booking_id": 807, "apt_id": 11, "guest_id": 2, "booking_status_code": "Provisional", "booking_start_date": "2016-04-17 12:53:59", "booking_end_date": "2018-03-20 17:32:58"}, {"apt_booking_id": 889, "apt_id": 10, "guest_id": 4, "booking_status_code": "Confirmed", "booking_start_date": "2016-09-28 05:00:50", "booking_end_date": "2017-09-30 18:41:04"}, {"apt_booking_id": 920, "apt_id": 2, "guest_id": 2, "booking_status_code": "Confirmed", "booking_start_date": "2017-04-07 04:53:27", "booking_end_date": "2017-11-29 12:59:42"}, {"apt_booking_id": 924, "apt_id": 8, "guest_id": 3, "booking_status_code": "Confirmed", "booking_start_date": "2017-07-03 14:15:56", "booking_end_date": "2017-11-12 01:05:09"}], "apartments": [{"apt_id": 1, "building_id": 808, "apt_type_code": "Flat", "apt_number": "Suite 645", "bathroom_count": 1, "bedroom_count": 3, "room_count": "7"}, {"apt_id": 2, "building_id": 624, "apt_type_code": "Flat", "apt_number": "Apt. 585", "bathroom_count": 2, "bedroom_count": 4, "room_count": "5"}, {"apt_id": 3, "building_id": 225, "apt_type_code": "Studio", "apt_number": "Apt. 908", "bathroom_count": 1, "bedroom_count": 6, "room_count": "7"}, {"apt_id": 4, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Suite 749", "bathroom_count": 1, "bedroom_count": 5, "room_count": "8"}, {"apt_id": 5, "building_id": 744, "apt_type_code": "Flat", "apt_number": "Suite 307", "bathroom_count": 2, "bedroom_count": 4, "room_count": "9"}, {"apt_id": 6, "building_id": 191, "apt_type_code": "Studio", "apt_number": "Apt. 187", "bathroom_count": 3, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 7, "building_id": 790, "apt_type_code": "Studio", "apt_number": "Suite 088", "bathroom_count": 2, "bedroom_count": 4, "room_count": "6"}, {"apt_id": 8, "building_id": 153, "apt_type_code": "Flat", "apt_number": "Suite 693", "bathroom_count": 2, "bedroom_count": 3, "room_count": "9"}, {"apt_id": 9, "building_id": 624, "apt_type_code": "Studio", "apt_number": "Apt. 940", "bathroom_count": 1, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 10, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Apt. 859", "bathroom_count": 2, "bedroom_count": 3, "room_count": "6"}, {"apt_id": 11, "building_id": 734, "apt_type_code": "Flat", "apt_number": "Apt. 794", "bathroom_count": 1, "bedroom_count": 5, "room_count": "3"}, {"apt_id": 12, "building_id": 673, "apt_type_code": "Duplex", "apt_number": "Apt. 477", "bathroom_count": 2, "bedroom_count": 6, "room_count": "3"}, {"apt_id": 13, "building_id": 744, "apt_type_code": "Duplex", "apt_number": "Apt. 411", "bathroom_count": 2, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 14, "building_id": 225, "apt_type_code": "Flat", "apt_number": "Apt. 837", "bathroom_count": 2, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 15, "building_id": 790, "apt_type_code": "Duplex", "apt_number": "Suite 634", "bathroom_count": 3, "bedroom_count": 6, "room_count": "8"}]}, "correct_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(apt_id > 4)\n\nsummary = filtered_apartment_bookings\n |> group_by(booking_status_code)\n |> aggregate(total_guest_id: sum(guest_id), count: count())\n\nresult = summary\n |> sort_by(total_guest_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(apt_id > 4)\n\nsummary = filtered_apartment_bookings\n |> group_by(booking_status_code)\n |> aggregate(total_guest_id: sum(guest_id), count: count())\n\nresult = summary\n |> sort_by(total_guest_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"booking_status_code": "Confirmed", "total_guest_id": 34, "count": 5}, {"booking_status_code": "Provisional", "total_guest_id": 43, "count": 7}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 12, "original": "|> sort_by(total_guest_id, asc)", "mutated": "|> sort_by(total_guest_id, desc)"}], "difficulty": "easy", "domain": "apartment_rentals__apartment_bookings", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"view_unit_status": [{"apt_id": 11, "apt_booking_id": 920, "status_date": "1970-09-28 10:24:29", "available_yn": 1}, {"apt_id": 15, "apt_booking_id": 575, "status_date": "1972-03-23 22:55:53", "available_yn": 1}, {"apt_id": 15, "apt_booking_id": 924, "status_date": "1973-10-28 04:30:14", "available_yn": 1}, {"apt_id": 6, "apt_booking_id": 497, "status_date": "1976-12-18 04:03:51", "available_yn": 1}, {"apt_id": 12, "apt_booking_id": 807, "status_date": "1977-04-15 13:42:19", "available_yn": 1}, {"apt_id": 13, "apt_booking_id": 575, "status_date": "1978-12-28 11:53:34", "available_yn": 1}, {"apt_id": 2, "apt_booking_id": 497, "status_date": "1980-11-12 13:34:45", "available_yn": 1}, {"apt_id": 14, "apt_booking_id": 401, "status_date": "1985-11-05 11:46:35", "available_yn": 0}, {"apt_id": 11, "apt_booking_id": 497, "status_date": "1990-11-04 17:57:50", "available_yn": 1}, {"apt_id": 13, "apt_booking_id": 337, "status_date": "2000-02-04 07:50:09", "available_yn": 0}, {"apt_id": 14, "apt_booking_id": 279, "status_date": "2001-02-17 20:17:09", "available_yn": 1}, {"apt_id": 5, "apt_booking_id": 337, "status_date": "2003-07-25 10:13:48", "available_yn": 1}, {"apt_id": 1, "apt_booking_id": 497, "status_date": "2003-08-02 08:36:36", "available_yn": 1}, {"apt_id": 10, "apt_booking_id": 497, "status_date": "2006-02-23 05:50:04", "available_yn": 1}, {"apt_id": 6, "apt_booking_id": 401, "status_date": "2011-02-12 09:04:07", "available_yn": 1}, {"apt_id": 9, "apt_booking_id": 623, "status_date": "2011-11-06 22:08:42", "available_yn": 1}, {"apt_id": 14, "apt_booking_id": 920, "status_date": "2012-11-24 13:39:37", "available_yn": 0}, {"apt_id": 4, "apt_booking_id": 258, "status_date": "2014-12-10 13:53:21", "available_yn": 1}, {"apt_id": 13, "apt_booking_id": 343, "status_date": "2015-06-19 07:59:01", "available_yn": 1}, {"apt_id": 5, "apt_booking_id": 889, "status_date": "2015-07-15 11:06:29", "available_yn": 1}], "apartments": [{"apt_id": 1, "building_id": 808, "apt_type_code": "Flat", "apt_number": "Suite 645", "bathroom_count": 1, "bedroom_count": 3, "room_count": "7"}, {"apt_id": 2, "building_id": 624, "apt_type_code": "Flat", "apt_number": "Apt. 585", "bathroom_count": 2, "bedroom_count": 4, "room_count": "5"}, {"apt_id": 3, "building_id": 225, "apt_type_code": "Studio", "apt_number": "Apt. 908", "bathroom_count": 1, "bedroom_count": 6, "room_count": "7"}, {"apt_id": 4, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Suite 749", "bathroom_count": 1, "bedroom_count": 5, "room_count": "8"}, {"apt_id": 5, "building_id": 744, "apt_type_code": "Flat", "apt_number": "Suite 307", "bathroom_count": 2, "bedroom_count": 4, "room_count": "9"}, {"apt_id": 6, "building_id": 191, "apt_type_code": "Studio", "apt_number": "Apt. 187", "bathroom_count": 3, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 7, "building_id": 790, "apt_type_code": "Studio", "apt_number": "Suite 088", "bathroom_count": 2, "bedroom_count": 4, "room_count": "6"}, {"apt_id": 8, "building_id": 153, "apt_type_code": "Flat", "apt_number": "Suite 693", "bathroom_count": 2, "bedroom_count": 3, "room_count": "9"}, {"apt_id": 9, "building_id": 624, "apt_type_code": "Studio", "apt_number": "Apt. 940", "bathroom_count": 1, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 10, "building_id": 225, "apt_type_code": "Duplex", "apt_number": "Apt. 859", "bathroom_count": 2, "bedroom_count": 3, "room_count": "6"}, {"apt_id": 11, "building_id": 734, "apt_type_code": "Flat", "apt_number": "Apt. 794", "bathroom_count": 1, "bedroom_count": 5, "room_count": "3"}, {"apt_id": 12, "building_id": 673, "apt_type_code": "Duplex", "apt_number": "Apt. 477", "bathroom_count": 2, "bedroom_count": 6, "room_count": "3"}, {"apt_id": 13, "building_id": 744, "apt_type_code": "Duplex", "apt_number": "Apt. 411", "bathroom_count": 2, "bedroom_count": 5, "room_count": "9"}, {"apt_id": 14, "building_id": 225, "apt_type_code": "Flat", "apt_number": "Apt. 837", "bathroom_count": 2, "bedroom_count": 4, "room_count": "8"}, {"apt_id": 15, "building_id": 790, "apt_type_code": "Duplex", "apt_number": "Suite 634", "bathroom_count": 3, "bedroom_count": 6, "room_count": "8"}]}, "correct_code": "-- Load apartment_rentals__view_unit_status data\nview_unit_status = load(\"view_unit_status\")\n\nsummary = view_unit_status\n |> group_by(status_date)\n |> aggregate(avg_apt_id: avg(apt_id), count: count())\n |> compute(computed_val: avg_apt_id * count)\n\nresult = summary\n |> sort_by(avg_apt_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load apartment_rentals__view_unit_status data\nview_unit_status = load(\"view_unit_status\")\n\nsummary = view_unit_status\n |> group_by(status_date)\n |> aggregate(avg_apt_id: avg(apt_id), count: count())\n |> compute(computed_val: avg_apt_id * count)\n\nresult = summary\n |> sort_by(avg_apt_id, asc)\n |> take(4)\n\nemit result", "expected_output": [{"status_date": "2003-08-02 08:36:36", "avg_apt_id": 1.0, "count": 1, "computed_val": 1.0}, {"status_date": "1980-11-12 13:34:45", "avg_apt_id": 2.0, "count": 1, "computed_val": 2.0}, {"status_date": "2014-12-10 13:53:21", "avg_apt_id": 4.0, "count": 1, "computed_val": 4.0}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 4", "line_num": 11, "original": "|> take(3)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "apartment_rentals__view_unit_status", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "has_pet": [{"stuid": 1001, "petid": 2001}, {"stuid": 1002, "petid": 2002}, {"stuid": 1002, "petid": 2003}]}, "correct_code": "-- Load pets_1__student data\nstudent = load(\"student\")\n |> select(lname, city_code, major, advisor, stuid)\n\nsummary = student\n |> group_by(lname)\n |> aggregate(min_advisor: min(advisor), count: count())\n |> compute(computed_val: count - min_advisor)\n\nresult = summary\n |> sort_by(min_advisor, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load pets_1__student data\nstudent = load(\"student\")\n |> select(lname, city_code, major, advisor, stuid)\n\nsummary = student\n |> group_by(lname)\n |> aggregate(min_advisor: min(advisor), count: count())\n |> compute(computed_val: count - min_advisor)\n\nresult = summary\n |> sort_by(min_advisor, desc)\n |> take(3)\n\nemit result", "expected_output": [{"lname": "Smith", "min_advisor": 1121, "count": 2, "computed_val": -1119}, {"lname": "Gompers", "min_advisor": 1121, "count": 1, "computed_val": -1120}, {"lname": "Leighton", "min_advisor": 1121, "count": 1, "computed_val": -1120}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 11, "original": "|> sort_by(min_advisor, asc)", "mutated": "|> sort_by(min_advisor, desc)"}], "difficulty": "medium", "domain": "pets_1__student", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"friend": [{"student_id": 1510, "friend_id": 1381}, {"student_id": 1510, "friend_id": 1689}, {"student_id": 1689, "friend_id": 1709}, {"student_id": 1381, "friend_id": 1247}, {"student_id": 1709, "friend_id": 1247}, {"student_id": 1689, "friend_id": 1782}, {"student_id": 1782, "friend_id": 1468}, {"student_id": 1782, "friend_id": 1316}, {"student_id": 1782, "friend_id": 1304}, {"student_id": 1468, "friend_id": 1101}, {"student_id": 1468, "friend_id": 1641}, {"student_id": 1101, "friend_id": 1641}, {"student_id": 1247, "friend_id": 1911}, {"student_id": 1247, "friend_id": 1501}, {"student_id": 1911, "friend_id": 1501}, {"student_id": 1501, "friend_id": 1934}, {"student_id": 1316, "friend_id": 1934}, {"student_id": 1934, "friend_id": 1304}, {"student_id": 1304, "friend_id": 1661}, {"student_id": 1661, "friend_id": 1025}], "highschooler": [{"id": 1510, "name": "Jordan", "grade": 9}, {"id": 1689, "name": "Gabriel", "grade": 9}, {"id": 1381, "name": "Tiffany", "grade": 9}, {"id": 1709, "name": "Cassandra", "grade": 9}, {"id": 1101, "name": "Haley", "grade": 10}, {"id": 1782, "name": "Andrew", "grade": 10}, {"id": 1468, "name": "Kris", "grade": 10}, {"id": 1641, "name": "Brittany", "grade": 10}, {"id": 1247, "name": "Alexis", "grade": 11}, {"id": 1316, "name": "Austin", "grade": 11}, {"id": 1911, "name": "Gabriel", "grade": 11}, {"id": 1501, "name": "Jessica", "grade": 11}, {"id": 1304, "name": "Jordan", "grade": 12}, {"id": 1025, "name": "John", "grade": 12}, {"id": 1934, "name": "Kyle", "grade": 12}, {"id": 1661, "name": "Logan", "grade": 12}]}, "correct_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n |> select(grade, name, id)\n\nenriched = join(friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(friend_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n |> select(grade, name, id)\n\nenriched = join(friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(grade, desc)\n |> take(11)\n\nemit result", "expected_output": [{"student_id": 1501, "friend_id": 1934, "grade": 12, "name": "Kyle", "id": 1934}, {"student_id": 1316, "friend_id": 1934, "grade": 12, "name": "Kyle", "id": 1934}, {"student_id": 1247, "friend_id": 1911, "grade": 11, "name": "Gabriel", "id": 1911}, {"student_id": 1689, "friend_id": 1782, "grade": 10, "name": "Andrew", "id": 1782}, {"student_id": 1689, "friend_id": 1709, "grade": 9, "name": "Cassandra", "id": 1709}, {"student_id": 1510, "friend_id": 1689, "grade": 9, "name": "Gabriel", "id": 1689}, {"student_id": 1304, "friend_id": 1661, "grade": 12, "name": "Logan", "id": 1661}, {"student_id": 1468, "friend_id": 1641, "grade": 10, "name": "Brittany", "id": 1641}, {"student_id": 1101, "friend_id": 1641, "grade": 10, "name": "Brittany", "id": 1641}, {"student_id": 1247, "friend_id": 1501, "grade": 11, "name": "Jessica", "id": 1501}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 11", "line_num": 12, "original": "|> take(10)", "mutated": "|> take(11)"}, {"category": "wrong_col", "description": "Wrong column reference: 'friend_id' \u2192 'grade'", "line_num": 11, "original": "|> sort_by(friend_id, desc)", "mutated": "|> sort_by(grade, desc)"}], "difficulty": "hard", "domain": "network_1__friend", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"member_of": [{"facid": 7792, "dno": 600, "appt_type": "Primary"}, {"facid": 9210, "dno": 520, "appt_type": "Primary"}, {"facid": 9811, "dno": 550, "appt_type": "Primary"}, {"facid": 9643, "dno": 50, "appt_type": "Primary"}, {"facid": 9379, "dno": 520, "appt_type": "Primary"}, {"facid": 8918, "dno": 600, "appt_type": "Primary"}, {"facid": 7712, "dno": 600, "appt_type": "Primary"}, {"facid": 1121, "dno": 600, "appt_type": "Primary"}, {"facid": 9172, "dno": 600, "appt_type": "Primary"}, {"facid": 8423, "dno": 600, "appt_type": "Primary"}, {"facid": 1148, "dno": 600, "appt_type": "Primary"}, {"facid": 8741, "dno": 600, "appt_type": "Primary"}, {"facid": 3457, "dno": 600, "appt_type": "Primary"}, {"facid": 7723, "dno": 600, "appt_type": "Primary"}, {"facid": 8721, "dno": 600, "appt_type": "Primary"}, {"facid": 2192, "dno": 600, "appt_type": "Primary"}, {"facid": 8114, "dno": 600, "appt_type": "Primary"}, {"facid": 6112, "dno": 600, "appt_type": "Primary"}, {"facid": 9826, "dno": 600, "appt_type": "Primary"}, {"facid": 1193, "dno": 600, "appt_type": "Primary"}, {"facid": 1082, "dno": 600, "appt_type": "Primary"}, {"facid": 4230, "dno": 600, "appt_type": "Primary"}, {"facid": 8989, "dno": 600, "appt_type": "Secondary"}, {"facid": 7271, "dno": 600, "appt_type": "Secondary"}, {"facid": 8721, "dno": 520, "appt_type": "Secondary"}, {"facid": 8741, "dno": 50, "appt_type": "Secondary"}, {"facid": 7271, "dno": 50, "appt_type": "Secondary"}, {"facid": 6182, "dno": 550, "appt_type": "Primary"}, {"facid": 8772, "dno": 550, "appt_type": "Primary"}, {"facid": 2738, "dno": 550, "appt_type": "Primary"}, {"facid": 2881, "dno": 550, "appt_type": "Primary"}, {"facid": 9922, "dno": 550, "appt_type": "Primary"}, {"facid": 6541, "dno": 550, "appt_type": "Primary"}, {"facid": 8102, "dno": 550, "appt_type": "Primary"}, {"facid": 1177, "dno": 550, "appt_type": "Primary"}, {"facid": 9823, "dno": 550, "appt_type": "Primary"}, {"facid": 2311, "dno": 550, "appt_type": "Primary"}, {"facid": 2291, "dno": 550, "appt_type": "Primary"}, {"facid": 8122, "dno": 550, "appt_type": "Primary"}, {"facid": 8989, "dno": 50, "appt_type": "Primary"}, {"facid": 4432, "dno": 50, "appt_type": "Primary"}, {"facid": 5718, "dno": 50, "appt_type": "Primary"}, {"facid": 8791, "dno": 50, "appt_type": "Primary"}, {"facid": 9011, "dno": 50, "appt_type": "Primary"}, {"facid": 6910, "dno": 50, "appt_type": "Primary"}, {"facid": 8723, "dno": 520, "appt_type": "Primary"}, {"facid": 2028, "dno": 520, "appt_type": "Primary"}, {"facid": 8722, "dno": 520, "appt_type": "Primary"}, {"facid": 9191, "dno": 520, "appt_type": "Primary"}, {"facid": 1823, "dno": 520, "appt_type": "Primary"}, {"facid": 7134, "dno": 520, "appt_type": "Primary"}, {"facid": 9199, "dno": 520, "appt_type": "Primary"}, {"facid": 6925, "dno": 520, "appt_type": "Primary"}, {"facid": 7271, "dno": 520, "appt_type": "Primary"}, {"facid": 6191, "dno": 520, "appt_type": "Primary"}, {"facid": 2119, "dno": 520, "appt_type": "Primary"}, {"facid": 9514, "dno": 520, "appt_type": "Primary"}, {"facid": 7231, "dno": 520, "appt_type": "Primary"}, {"facid": 1172, "dno": 520, "appt_type": "Primary"}, {"facid": 8118, "dno": 520, "appt_type": "Primary"}, {"facid": 7506, "dno": 520, "appt_type": "Primary"}, {"facid": 6330, "dno": 520, "appt_type": "Primary"}, {"facid": 9824, "dno": 520, "appt_type": "Primary"}], "faculty": [{"facid": 1082, "lname": "Giuliano", "fname": "Mark", "rank": "Instructor", "sex": "M", "phone": 2424, "room": "224", "building": "NEB"}, {"facid": 1121, "lname": "Goodrich", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3593, "room": "219", "building": "NEB"}, {"facid": 1148, "lname": "Masson", "fname": "Gerald", "rank": "Professor", "sex": "M", "phone": 3402, "room": "224B", "building": "NEB"}, {"facid": 1172, "lname": "Runolfsson", "fname": "Thordur", "rank": "AssocProf", "sex": "M", "phone": 3121, "room": "119", "building": "Barton"}, {"facid": 1177, "lname": "Naiman", "fname": "Daniel", "rank": "Professor", "sex": "M", "phone": 3571, "room": "288", "building": "Krieger"}, {"facid": 1193, "lname": "Jones", "fname": "Stacey", "rank": "Instructor", "sex": "F", "phone": 3550, "room": "224", "building": "NEB"}, {"facid": 1823, "lname": "Davidson", "fname": "Frederic", "rank": "Professor", "sex": "M", "phone": 5629, "room": "119", "building": "Barton"}, {"facid": 2028, "lname": "Brody", "fname": "William", "rank": "Professor", "sex": "M", "phone": 6073, "room": "119", "building": "Barton"}, {"facid": 2119, "lname": "Meyer", "fname": "Gerard", "rank": "Professor", "sex": "M", "phone": 6350, "room": "119", "building": "Barton"}, {"facid": 2192, "lname": "Yarowsky", "fname": "David", "rank": "AsstProf", "sex": "M", "phone": 6587, "room": "324", "building": "NEB"}, {"facid": 2291, "lname": "Scheinerman", "fname": "Edward", "rank": "Professor", "sex": "M", "phone": 6654, "room": "288", "building": "Krieger"}, {"facid": 2311, "lname": "Priebe", "fname": "Carey", "rank": "AsstProf", "sex": "M", "phone": 6953, "room": "288", "building": "Krieger"}, {"facid": 2738, "lname": "Fill", "fname": "James", "rank": "Professor", "sex": "M", "phone": 8209, "room": "288", "building": "Krieger"}, {"facid": 2881, "lname": "Goldman", "fname": "Alan", "rank": "Professor", "sex": "M", "phone": 8335, "room": "288", "building": "Krieger"}, {"facid": 3457, "lname": "Smith", "fname": "Scott", "rank": "AssocProf", "sex": "M", "phone": 1035, "room": "318", "building": "NEB"}, {"facid": 4230, "lname": "Houlahan", "fname": "Joanne", "rank": "Instructor", "sex": "F", "phone": 1260, "room": "328", "building": "NEB"}, {"facid": 4432, "lname": "Burzio", "fname": "Luigi", "rank": "Professor", "sex": "M", "phone": 1813, "room": "288", "building": "Krieger"}, {"facid": 5718, "lname": "Frank", "fname": "Robert", "rank": "AsstProf", "sex": "M", "phone": 1751, "room": "288", "building": "Krieger"}, {"facid": 6112, "lname": "Beach", "fname": "Louis", "rank": "Instructor", "sex": "M", "phone": 1838, "room": "207", "building": "NEB"}, {"facid": 6182, "lname": "Cheng", "fname": "Cheng", "rank": "AsstProf", "sex": "M", "phone": 1856, "room": "288", "building": "Krieger"}, {"facid": 6191, "lname": "Kaplan", "fname": "Alexander", "rank": "Professor", "sex": "M", "phone": 1825, "room": "119", "building": "Barton"}, {"facid": 6330, "lname": "Byrne", "fname": "William", "rank": "Instructor", "sex": "M", "phone": 1691, "room": "119", "building": "Barton"}, {"facid": 6541, "lname": "Han", "fname": "Shih-Ping", "rank": "Professor", "sex": "M", "phone": 1914, "room": "288", "building": "Krieger"}, {"facid": 6910, "lname": "Smolensky", "fname": "Paul", "rank": "Professor", "sex": "M", "phone": 2072, "room": "288", "building": "Krieger"}, {"facid": 6925, "lname": "Iglesias", "fname": "Pablo", "rank": "AsstProf", "sex": "M", "phone": 2021, "room": "119", "building": "Barton"}, {"facid": 7134, "lname": "Goutsias", "fname": "John", "rank": "Professor", "sex": "M", "phone": 2184, "room": "119", "building": "Barton"}, {"facid": 7231, "lname": "Rugh", "fname": "Wilson", "rank": "Professor", "sex": "M", "phone": 2191, "room": "119", "building": "Barton"}, {"facid": 7271, "lname": "Jelinek", "fname": "Frederick", "rank": "Professor", "sex": "M", "phone": 2890, "room": "119", "building": "Barton"}, {"facid": 7506, "lname": "Westgate", "fname": "Charles", "rank": "Professor", "sex": "M", "phone": 2932, "room": "119", "building": "Barton"}, {"facid": 7712, "lname": "Awerbuch", "fname": "Baruch", "rank": "Professor", "sex": "M", "phone": 2105, "room": "220", "building": "NEB"}, {"facid": 7723, "lname": "Taylor", "fname": "Russell", "rank": "Professor", "sex": "M", "phone": 2435, "room": "317", "building": "NEB"}, {"facid": 7792, "lname": "Brill", "fname": "Eric", "rank": "AsstProf", "sex": "M", "phone": 2303, "room": "324B", "building": "NEB"}, {"facid": 8102, "lname": "James", "fname": "Lancelot", "rank": "AsstProf", "sex": "M", "phone": 2792, "room": "288", "building": "Krieger"}, {"facid": 8114, "lname": "Angelopoulou", "fname": "Ellie", "rank": "Instructor", "sex": "F", "phone": 2152, "room": "316", "building": "NEB"}, {"facid": 8118, "lname": "Weinert", "fname": "Howard", "rank": "Professor", "sex": "M", "phone": 3272, "room": "119", "building": "Barton"}, {"facid": 8122, "lname": "Wierman", "fname": "John", "rank": "Professor", "sex": "M", "phone": 3392, "room": "288", "building": "Krieger"}, {"facid": 8423, "lname": "Kumar", "fname": "Subodh", "rank": "AsstProf", "sex": "M", "phone": 2522, "room": "218", "building": "NEB"}, {"facid": 8721, "lname": "Wolff", "fname": "Lawrence", "rank": "AssocProf", "sex": "M", "phone": 2342, "room": "316", "building": "NEB"}, {"facid": 8722, "lname": "Cauwenberghs", "fname": "Gert", "rank": "AsstProf", "sex": "M", "phone": 1372, "room": "119", "building": "Barton"}, {"facid": 8723, "lname": "Andreou", "fname": "Andreas", "rank": "Professor", "sex": "M", "phone": 1402, "room": "119", "building": "Barton"}, {"facid": 8741, "lname": "Salzberg", "fname": "Steven", "rank": "AssocProf", "sex": "M", "phone": 2641, "room": "324A", "building": "NEB"}, {"facid": 8772, "lname": "Cowen", "fname": "Lenore", "rank": "AsstProf", "sex": "F", "phone": 2870, "room": "288", "building": "Krieger"}, {"facid": 8791, "lname": "McCloskey", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3440, "room": "288", "building": "Krieger"}, {"facid": 8918, "lname": "Amir", "fname": "Yair", "rank": "AsstProf", "sex": "M", "phone": 2672, "room": "308", "building": "NEB"}, {"facid": 8989, "lname": "Brent", "fname": "Michael", "rank": "AsstProf", "sex": "M", "phone": 9373, "room": "288", "building": "Krieger"}, {"facid": 9011, "lname": "Rapp", "fname": "Brenda", "rank": "AsstProf", "sex": "F", "phone": 2032, "room": "288", "building": "Krieger"}, {"facid": 9172, "lname": "Kosaraju", "fname": "Rao", "rank": "Professor", "sex": "M", "phone": 2757, "room": "319", "building": "NEB"}, {"facid": 9191, "lname": "Collins", "fname": "Oliver", "rank": "AssocProf", "sex": "M", "phone": 5427, "room": "119", "building": "Barton"}, {"facid": 9199, "lname": "Hughes", "fname": "Brian", "rank": "AssocProf", "sex": "M", "phone": 5666, "room": "119", "building": "Barton"}, {"facid": 9210, "lname": "Joseph", "fname": "Richard", "rank": "Professor", "sex": "M", "phone": 5996, "room": "119", "building": "Barton"}, {"facid": 9379, "lname": "Khurgin", "fname": "Jacob", "rank": "Professor", "sex": "M", "phone": 1060, "room": "119", "building": "Barton"}, {"facid": 9514, "lname": "Prince", "fname": "Jerry", "rank": "AssocProf", "sex": "M", "phone": 5106, "room": "119", "building": "Barton"}, {"facid": 9643, "lname": "Legendre", "fname": "Geraldine", "rank": "AssocProf", "sex": "F", "phone": 8972, "room": "288", "building": "Krieger"}, {"facid": 9811, "lname": "Wu", "fname": "Colin", "rank": "AsstProf", "sex": "M", "phone": 2906, "room": "288", "building": "Krieger"}, {"facid": 9823, "lname": "Pang", "fname": "Jong-Shi", "rank": "Professor", "sex": "M", "phone": 4366, "room": "288", "building": "Krieger"}, {"facid": 9824, "lname": "Glaser", "fname": "Robert", "rank": "Instructor", "sex": "M", "phone": 4396, "room": "119", "building": "Barton"}, {"facid": 9826, "lname": "Delcher", "fname": "Arthur", "rank": "Instructor", "sex": "M", "phone": 2956, "room": "329", "building": "NEB"}, {"facid": 9922, "lname": "Hall", "fname": "Leslie", "rank": "AsstProf", "sex": "F", "phone": 7332, "room": "288", "building": "Krieger"}]}, "correct_code": "-- Load college_3__member_of data\nmember_of = load(\"member_of\")\n\nfiltered_member_of = member_of\n |> filter(appt_type == \"Primary\")\n |> filter(dno >= 224)\n\nsummary = filtered_member_of\n |> group_by(appt_type)\n |> aggregate(max_dno: max(dno), count: count())\n |> compute(computed_val: count * max_dno)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_3__member_of data\nmember_of = load(\"member_of\")\n\nfiltered_member_of = member_of\n |> filter(appt_type == \"Primarys\")\n |> filter(dno >= 224)\n\nsummary = filtered_member_of\n |> group_by(appt_type)\n |> aggregate(max_dno: max(dno), count: count())\n |> compute(computed_val: count * max_dno)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"appt_type": "Primary", "max_dno": 600, "count": 51, "computed_val": 30600}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Primary' \u2192 'Primarys'", "line_num": 5, "original": "|> filter(appt_type == \"Primary\")", "mutated": "|> filter(appt_type == \"Primarys\")"}], "difficulty": "medium", "domain": "college_3__member_of", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"friend": [{"student_id": 1510, "friend_id": 1381}, {"student_id": 1510, "friend_id": 1689}, {"student_id": 1689, "friend_id": 1709}, {"student_id": 1381, "friend_id": 1247}, {"student_id": 1709, "friend_id": 1247}, {"student_id": 1689, "friend_id": 1782}, {"student_id": 1782, "friend_id": 1468}, {"student_id": 1782, "friend_id": 1316}, {"student_id": 1782, "friend_id": 1304}, {"student_id": 1468, "friend_id": 1101}, {"student_id": 1468, "friend_id": 1641}, {"student_id": 1101, "friend_id": 1641}, {"student_id": 1247, "friend_id": 1911}, {"student_id": 1247, "friend_id": 1501}, {"student_id": 1911, "friend_id": 1501}, {"student_id": 1501, "friend_id": 1934}, {"student_id": 1316, "friend_id": 1934}, {"student_id": 1934, "friend_id": 1304}, {"student_id": 1304, "friend_id": 1661}, {"student_id": 1661, "friend_id": 1025}], "highschooler": [{"id": 1510, "name": "Jordan", "grade": 9}, {"id": 1689, "name": "Gabriel", "grade": 9}, {"id": 1381, "name": "Tiffany", "grade": 9}, {"id": 1709, "name": "Cassandra", "grade": 9}, {"id": 1101, "name": "Haley", "grade": 10}, {"id": 1782, "name": "Andrew", "grade": 10}, {"id": 1468, "name": "Kris", "grade": 10}, {"id": 1641, "name": "Brittany", "grade": 10}, {"id": 1247, "name": "Alexis", "grade": 11}, {"id": 1316, "name": "Austin", "grade": 11}, {"id": 1911, "name": "Gabriel", "grade": 11}, {"id": 1501, "name": "Jessica", "grade": 11}, {"id": 1304, "name": "Jordan", "grade": 12}, {"id": 1025, "name": "John", "grade": 12}, {"id": 1934, "name": "Kyle", "grade": 12}, {"id": 1661, "name": "Logan", "grade": 12}]}, "correct_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n\nfiltered_friend = friend\n |> filter(student_id > 1263)\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n\nenriched = join(filtered_friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(student_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n\nfiltered_friend = friend\n |> filter(student_id > student_id)\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n\nenriched = join(filtered_friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(student_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"student_id": 1304, "friend_id": 1661, "id": 1661, "name": "Logan", "grade": 12}, {"student_id": 1316, "friend_id": 1934, "id": 1934, "name": "Kyle", "grade": 12}, {"student_id": 1381, "friend_id": 1247, "id": 1247, "name": "Alexis", "grade": 11}, {"student_id": 1468, "friend_id": 1101, "id": 1101, "name": "Haley", "grade": 10}, {"student_id": 1468, "friend_id": 1641, "id": 1641, "name": "Brittany", "grade": 10}, {"student_id": 1501, "friend_id": 1934, "id": 1934, "name": "Kyle", "grade": 12}, {"student_id": 1510, "friend_id": 1381, "id": 1381, "name": "Tiffany", "grade": 9}, {"student_id": 1510, "friend_id": 1689, "id": 1689, "name": "Gabriel", "grade": 9}, {"student_id": 1661, "friend_id": 1025, "id": 1025, "name": "John", "grade": 12}, {"student_id": 1689, "friend_id": 1709, "id": 1709, "name": "Cassandra", "grade": 9}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '1263' \u2192 'student_id'", "line_num": 5, "original": "|> filter(student_id > 1263)", "mutated": "|> filter(student_id > student_id)"}], "difficulty": "hard", "domain": "network_1__friend", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"trained_in": [{"physician": 3, "treatment": 1, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 2, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 5, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 6, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 7, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 6, "treatment": 2, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 6, "treatment": 5, "certificationdate": "2007-01-01", "certificationexpires": "2007-12-31"}, {"physician": 6, "treatment": 6, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 1, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 2, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 3, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 4, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 5, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 6, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 7, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}], "physician": [{"employeeid": 1, "name": "John Dorian", "position": "Staff Internist", "ssn": 111111111}, {"employeeid": 2, "name": "Elliot Reid", "position": "Attending Physician", "ssn": 222222222}, {"employeeid": 3, "name": "Christopher Turk", "position": "Surgical Attending Physician", "ssn": 333333333}, {"employeeid": 4, "name": "Percival Cox", "position": "Senior Attending Physician", "ssn": 444444444}, {"employeeid": 5, "name": "Bob Kelso", "position": "Head Chief of Medicine", "ssn": 555555555}, {"employeeid": 6, "name": "Todd Quinlan", "position": "Surgical Attending Physician", "ssn": 666666666}, {"employeeid": 7, "name": "John Wen", "position": "Surgical Attending Physician", "ssn": 777777777}, {"employeeid": 8, "name": "Keith Dudemeister", "position": "MD Resident", "ssn": 888888888}, {"employeeid": 9, "name": "Molly Clock", "position": "Attending Psychiatrist", "ssn": 999999999}]}, "correct_code": "-- Load hospital_1__trained_in data\ntrained_in = load(\"trained_in\")\n\nfiltered_trained_in = trained_in\n |> filter(certificationexpires == \"2007-12-31\")\n\nsummary = filtered_trained_in\n |> group_by(certificationexpires)\n |> aggregate(avg_treatment: avg(treatment), count: count())\n\nresult = summary\n |> sort_by(avg_treatment, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load hospital_1__trained_in data\ntrained_in = load(\"trained_in\")\n\nfiltered_trained_in = trained_in\n |> filter(certificationexpires == \"2007-12-3\")\n\nsummary = filtered_trained_in\n |> group_by(certificationexpires)\n |> aggregate(avg_treatment: avg(treatment), count: count())\n\nresult = summary\n |> sort_by(avg_treatment, desc)\n |> take(5)\n\nemit result", "expected_output": [{"certificationexpires": "2007-12-31", "avg_treatment": 5.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '2007-12-31' \u2192 '2007-12-3'", "line_num": 5, "original": "|> filter(certificationexpires == \"2007-12-31\")", "mutated": "|> filter(certificationexpires == \"2007-12-3\")"}], "difficulty": "hard", "domain": "hospital_1__trained_in", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"staff": [{"staff_id": 1, "staff_address_id": 14, "nickname": "thompson.constantin", "first_name": "Janessa", "middle_name": "Amara", "last_name": "Sawayn", "date_of_birth": "2010-12-08 16:55:14", "date_joined_staff": "2017-04-27 03:21:26", "date_left_staff": "2018-03-23 22:53:12"}, {"staff_id": 2, "staff_address_id": 3, "nickname": "santos45", "first_name": "Camylle", "middle_name": "Icie", "last_name": "Weissnat", "date_of_birth": "2015-08-01 13:22:43", "date_joined_staff": "2016-06-06 08:54:28", "date_left_staff": "2018-03-10 15:25:00"}, {"staff_id": 3, "staff_address_id": 5, "nickname": "ynader", "first_name": "Kaitlin", "middle_name": "Stephania", "last_name": "Mertz", "date_of_birth": "1994-05-17 05:32:11", "date_joined_staff": "2018-01-02 12:24:24", "date_left_staff": "2018-03-24 10:11:08"}, {"staff_id": 4, "staff_address_id": 1, "nickname": "lsenger", "first_name": "Rebekah", "middle_name": "Sherwood", "last_name": "Hermann", "date_of_birth": "2003-01-16 06:29:11", "date_joined_staff": "2017-10-21 17:20:57", "date_left_staff": "2018-03-04 17:13:53"}, {"staff_id": 5, "staff_address_id": 14, "nickname": "ledner.jamie", "first_name": "Jedidiah", "middle_name": "Dejon", "last_name": "Herzog", "date_of_birth": "2015-08-10 11:37:39", "date_joined_staff": "2016-05-16 20:56:53", "date_left_staff": "2018-03-08 04:23:14"}, {"staff_id": 6, "staff_address_id": 12, "nickname": "bogisich.geovany", "first_name": "Eulalia", "middle_name": "Tre", "last_name": "Maggio", "date_of_birth": "1998-04-27 12:55:05", "date_joined_staff": "2017-08-27 19:19:44", "date_left_staff": "2018-02-28 08:26:10"}, {"staff_id": 7, "staff_address_id": 13, "nickname": "weldon.kling", "first_name": "Queenie", "middle_name": "Madelyn", "last_name": "Macejkovic", "date_of_birth": "2007-06-11 20:03:28", "date_joined_staff": "2017-06-04 14:30:41", "date_left_staff": "2018-03-08 05:16:29"}, {"staff_id": 8, "staff_address_id": 1, "nickname": "gabe21", "first_name": "Titus", "middle_name": "Duane", "last_name": "Durgan", "date_of_birth": "2005-05-02 06:23:36", "date_joined_staff": "2016-05-26 00:55:07", "date_left_staff": "2018-03-05 18:30:12"}, {"staff_id": 9, "staff_address_id": 4, "nickname": "ymiller", "first_name": "Margie", "middle_name": "Caesar", "last_name": "Doyle", "date_of_birth": "1995-06-03 08:09:17", "date_joined_staff": "2017-12-22 03:06:32", "date_left_staff": "2018-03-08 12:31:16"}, {"staff_id": 10, "staff_address_id": 2, "nickname": "sbrown", "first_name": "Jaleel", "middle_name": "Maiya", "last_name": "Rogahn", "date_of_birth": "1996-09-24 09:51:42", "date_joined_staff": "2016-06-05 22:22:23", "date_left_staff": "2018-03-14 07:14:37"}, {"staff_id": 11, "staff_address_id": 1, "nickname": "nicholaus92", "first_name": "Winnifred", "middle_name": "Liam", "last_name": "Jast", "date_of_birth": "2000-06-13 18:09:11", "date_joined_staff": "2016-05-01 02:22:45", "date_left_staff": "2018-03-09 05:08:35"}, {"staff_id": 12, "staff_address_id": 7, "nickname": "edwin.hudson", "first_name": "Lincoln", "middle_name": "Benny", "last_name": "Carroll", "date_of_birth": "1996-03-09 08:19:49", "date_joined_staff": "2016-11-05 01:43:52", "date_left_staff": "2018-03-06 23:17:41"}, {"staff_id": 13, "staff_address_id": 1, "nickname": "norma73", "first_name": "Ernestina", "middle_name": "Clarabelle", "last_name": "Mraz", "date_of_birth": "2004-05-19 14:11:13", "date_joined_staff": "2016-11-13 20:44:23", "date_left_staff": "2018-02-26 17:56:31"}, {"staff_id": 14, "staff_address_id": 6, "nickname": "bkunze", "first_name": "Ludie", "middle_name": "Ulices", "last_name": "Kuphal", "date_of_birth": "2000-11-16 06:55:12", "date_joined_staff": "2017-08-30 15:08:37", "date_left_staff": "2018-03-02 01:48:15"}, {"staff_id": 15, "staff_address_id": 3, "nickname": "weissnat.vincenzo", "first_name": "Simeon", "middle_name": "Mayra", "last_name": "Turner", "date_of_birth": "1997-03-29 10:55:45", "date_joined_staff": "2017-02-20 18:45:20", "date_left_staff": "2018-03-01 17:10:03"}], "addresses": [{"address_id": 1, "line_1_number_building": "3904 Stroman Passage", "city": "Port Melyssa", "zip_postcode": "14445", "state_province_county": "Georgia", "country": "USA"}, {"address_id": 2, "line_1_number_building": "053 Quigley Island", "city": "Hagenesfurt", "zip_postcode": "22194", "state_province_county": "Kentucky", "country": "USA"}, {"address_id": 3, "line_1_number_building": "00704 Zoe Alley", "city": "Lake Elaina", "zip_postcode": "08938", "state_province_county": "Georgia", "country": "USA"}, {"address_id": 4, "line_1_number_building": "484 O'Hara Drive", "city": "Buckridgehaven", "zip_postcode": "00005", "state_province_county": "Oregon", "country": "USA"}, {"address_id": 5, "line_1_number_building": "354 Frederik Ridge", "city": "Powlowskichester", "zip_postcode": "27559", "state_province_county": "Ohio", "country": "USA"}, {"address_id": 6, "line_1_number_building": "376 Kallie Tunnel Apt. 784", "city": "Elviebury", "zip_postcode": "63768", "state_province_county": "Connecticut", "country": "USA"}, {"address_id": 7, "line_1_number_building": "56461 Baumbach Well Suite 634", "city": "Lockmanfurt", "zip_postcode": "34975", "state_province_county": "Washington", "country": "USA"}, {"address_id": 8, "line_1_number_building": "29085 Dejah Pine Suite 059", "city": "Lake Rafaela", "zip_postcode": "80376", "state_province_county": "WestVirginia", "country": "USA"}, {"address_id": 9, "line_1_number_building": "535 Ariel Brook", "city": "Port Jackelinemouth", "zip_postcode": "85954", "state_province_county": "Maine", "country": "USA"}, {"address_id": 10, "line_1_number_building": "2291 Larkin Ports", "city": "South Richieport", "zip_postcode": "95098", "state_province_county": "Idaho", "country": "USA"}, {"address_id": 11, "line_1_number_building": "37698 Hahn Curve Apt. 572", "city": "South Eugene", "zip_postcode": "99903", "state_province_county": "Alabama", "country": "USA"}, {"address_id": 12, "line_1_number_building": "7089 Mueller Forks", "city": "New Bernieceburgh", "zip_postcode": "38197", "state_province_county": "Louisiana", "country": "USA"}, {"address_id": 13, "line_1_number_building": "43235 Jazmin Mountain Suite 251", "city": "Ericamouth", "zip_postcode": "75074", "state_province_county": "Louisiana", "country": "USA"}, {"address_id": 14, "line_1_number_building": "4834 Schaefer Light Suite 947", "city": "Damianfort", "zip_postcode": "61121", "state_province_county": "Connecticut", "country": "USA"}, {"address_id": 15, "line_1_number_building": "9260 Streich Mountain", "city": "West Edmondview", "zip_postcode": "43988", "state_province_county": "Kentucky", "country": "USA"}]}, "correct_code": "-- Load driving_school__staff data\nstaff = load(\"staff\")\n\nfiltered_staff = staff\n |> filter(date_joined_staff == \"2016-06-06 08:54:28\")\n |> select(nickname, staff_id, staff_address_id)\n\nsummary = filtered_staff\n |> group_by(nickname)\n |> aggregate(max_staff_id: max(staff_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load driving_school__staff data\nstaff = load(\"staff\")\n\nfiltered_staff = staff\n |> filter(date_joined_staff == \"2016-06-06 06:54:28\")\n |> select(nickname, staff_id, staff_address_id)\n\nsummary = filtered_staff\n |> group_by(nickname)\n |> aggregate(max_staff_id: max(staff_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"nickname": "santos45", "max_staff_id": 2, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '08' \u2192 '06'", "line_num": 5, "original": "|> filter(date_joined_staff == \"2016-06-06 08:54:28\")", "mutated": "|> filter(date_joined_staff == \"2016-06-06 06:54:28\")"}], "difficulty": "medium", "domain": "driving_school__staff", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"company": [{"company_id": 1.0, "name": "ExxonMobil", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 433.5, "profits_in_billion": 41.1, "assets_in_billion": 331.1, "market_value_in_billion": 407.4}, {"company_id": 2.0, "name": "JPMorgan Chase", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 110.8, "profits_in_billion": 19.0, "assets_in_billion": 2265.8, "market_value_in_billion": 170.1}, {"company_id": 3.0, "name": "General Electric", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 147.3, "profits_in_billion": 14.2, "assets_in_billion": 717.2, "market_value_in_billion": 213.7}, {"company_id": 4.0, "name": "Royal Dutch Shell", "headquarters": "Netherlands", "industry": "Oil and gas", "sales_in_billion": 470.2, "profits_in_billion": 30.9, "assets_in_billion": 340.5, "market_value_in_billion": 227.6}, {"company_id": 5.0, "name": "Industrial and Commercial Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 82.6, "profits_in_billion": 25.1, "assets_in_billion": 2039.1, "market_value_in_billion": 237.4}, {"company_id": 6.0, "name": "HSBC", "headquarters": "UK", "industry": "Banking", "sales_in_billion": 102.0, "profits_in_billion": 16.2, "assets_in_billion": 2550.0, "market_value_in_billion": 164.3}, {"company_id": 7.0, "name": "PetroChina", "headquarters": "China", "industry": "Oil and gas", "sales_in_billion": 310.1, "profits_in_billion": 20.6, "assets_in_billion": 304.7, "market_value_in_billion": 294.7}, {"company_id": 8.0, "name": "Berkshire Hathaway", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 143.7, "profits_in_billion": 10.3, "assets_in_billion": 392.6, "market_value_in_billion": 202.2}, {"company_id": 9.0, "name": "Wells Fargo", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 87.6, "profits_in_billion": 15.9, "assets_in_billion": 1313.9, "market_value_in_billion": 178.7}, {"company_id": 10.0, "name": "Petrobras", "headquarters": "Brazil", "industry": "Oil and gas", "sales_in_billion": 145.9, "profits_in_billion": 20.1, "assets_in_billion": 319.4, "market_value_in_billion": 180.0}, {"company_id": 11.0, "name": "BP", "headquarters": "UK", "industry": "Oil and gas", "sales_in_billion": 375.5, "profits_in_billion": 25.7, "assets_in_billion": 292.5, "market_value_in_billion": 147.4}, {"company_id": 12.0, "name": "Chevron", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 236.3, "profits_in_billion": 26.9, "assets_in_billion": 209.5, "market_value_in_billion": 218.0}, {"company_id": 13.0, "name": "China Construction Bank", "headquarters": "China", "industry": "Banking", "sales_in_billion": 68.7, "profits_in_billion": 20.5, "assets_in_billion": 1637.8, "market_value_in_billion": 201.9}, {"company_id": 14.0, "name": "Citigroup", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 102.6, "profits_in_billion": 11.1, "assets_in_billion": 1873.9, "market_value_in_billion": 107.5}, {"company_id": 15.0, "name": "Gazprom", "headquarters": "Russia", "industry": "Oil and gas", "sales_in_billion": 117.6, "profits_in_billion": 31.7, "assets_in_billion": 302.6, "market_value_in_billion": 159.8}, {"company_id": 16.0, "name": "Walmart", "headquarters": "USA", "industry": "Retailing", "sales_in_billion": 447.0, "profits_in_billion": 15.7, "assets_in_billion": 193.4, "market_value_in_billion": 208.4}, {"company_id": 17.0, "name": "Volkswagen Group", "headquarters": "Germany", "industry": "Automotive", "sales_in_billion": 221.9, "profits_in_billion": 21.5, "assets_in_billion": 328.7, "market_value_in_billion": 79.5}, {"company_id": 18.0, "name": "Total", "headquarters": "France", "industry": "Oil and gas", "sales_in_billion": 216.2, "profits_in_billion": 15.9, "assets_in_billion": 213.0, "market_value_in_billion": 132.4}, {"company_id": 19.0, "name": "Agricultural Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 62.4, "profits_in_billion": 14.4, "assets_in_billion": 1563.9, "market_value_in_billion": 154.8}], "employment": [{"company_id": 11, "people_id": 3, "year_working": 2}, {"company_id": 13, "people_id": 2, "year_working": 3}, {"company_id": 17, "people_id": 7, "year_working": 4}, {"company_id": 15, "people_id": 1, "year_working": 1}, {"company_id": 7, "people_id": 4, "year_working": 1}]}, "correct_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(market_value_in_billion < 237)\n\nsummary = filtered_company\n |> group_by(headquarters)\n |> aggregate(max_sales_in_billion: max(sales_in_billion), count: count())\n |> compute(computed_val: max_sales_in_billion * count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(market_value_in_billion > 237)\n\nsummary = filtered_company\n |> group_by(headquarters)\n |> aggregate(max_sales_in_billion: max(sales_in_billion), count: count())\n |> compute(computed_val: max_sales_in_billion * count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"headquarters": "USA", "max_sales_in_billion": 447.0, "count": 7, "computed_val": 3129.0}, {"headquarters": "UK", "max_sales_in_billion": 375.5, "count": 2, "computed_val": 751.0}, {"headquarters": "China", "max_sales_in_billion": 68.7, "count": 2, "computed_val": 137.4}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '<' \u2192 '>'", "line_num": 5, "original": "|> filter(market_value_in_billion < 237)", "mutated": "|> filter(market_value_in_billion > 237)"}], "difficulty": "medium", "domain": "company_employee__company", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"actual_order_products": [{"actual_order_id": 2, "product_id": 1}, {"actual_order_id": 14, "product_id": 5}, {"actual_order_id": 13, "product_id": 6}, {"actual_order_id": 9, "product_id": 2}, {"actual_order_id": 3, "product_id": 2}, {"actual_order_id": 2, "product_id": 3}, {"actual_order_id": 13, "product_id": 2}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 10, "product_id": 3}, {"actual_order_id": 6, "product_id": 6}, {"actual_order_id": 5, "product_id": 5}, {"actual_order_id": 7, "product_id": 3}, {"actual_order_id": 5, "product_id": 3}, {"actual_order_id": 15, "product_id": 4}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\nfiltered_actual_order_products = actual_order_products\n |> filter(actual_order_id >= 5)\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_name, product_id, product_description)\n\nenriched = join(filtered_actual_order_products, products, on: product_id == product_id)\n\nresult = enriched\n |> sort_by(product_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\nfiltered_actual_order_products = actual_order_products\n |> filter(actual_order_id >= 5)\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_name, product_id, actual_order_id)\n\nenriched = join(filtered_actual_order_products, products, on: product_id == product_id)\n\nresult = enriched\n |> sort_by(product_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"actual_order_id": 13, "product_id": 6, "product_name": "gift", "product_description": "bad condition"}, {"actual_order_id": 6, "product_id": 6, "product_name": "gift", "product_description": "bad condition"}, {"actual_order_id": 14, "product_id": 5, "product_name": "food", "product_description": "good condition"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'product_description' \u2192 'actual_order_id'", "line_num": 9, "original": "|> select(product_name, product_id, product_description)", "mutated": "|> select(product_name, product_id, actual_order_id)"}], "difficulty": "hard", "domain": "customer_deliveries__actual_order_products", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"driverstandings": [{"driverstandingsid": 1, "raceid": 18, "driverid": 1, "points": 10.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 2, "raceid": 18, "driverid": 2, "points": 8.0, "position": 2, "positiontext": "2", "wins": 0}, {"driverstandingsid": 3, "raceid": 18, "driverid": 3, "points": 6.0, "position": 3, "positiontext": "3", "wins": 0}, {"driverstandingsid": 4, "raceid": 18, "driverid": 4, "points": 5.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 5, "raceid": 18, "driverid": 5, "points": 4.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 6, "raceid": 18, "driverid": 6, "points": 3.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 7, "raceid": 18, "driverid": 7, "points": 2.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 8, "raceid": 18, "driverid": 8, "points": 1.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 9, "raceid": 19, "driverid": 1, "points": 14.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 10, "raceid": 19, "driverid": 2, "points": 11.0, "position": 3, "positiontext": "3", "wins": 0}, {"driverstandingsid": 11, "raceid": 19, "driverid": 3, "points": 6.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 12, "raceid": 19, "driverid": 4, "points": 6.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 13, "raceid": 19, "driverid": 5, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 14, "raceid": 19, "driverid": 6, "points": 3.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 15, "raceid": 19, "driverid": 7, "points": 2.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 16, "raceid": 19, "driverid": 8, "points": 11.0, "position": 2, "positiontext": "2", "wins": 1}, {"driverstandingsid": 17, "raceid": 19, "driverid": 9, "points": 8.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 18, "raceid": 19, "driverid": 15, "points": 5.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 19, "raceid": 19, "driverid": 17, "points": 2.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 20, "raceid": 19, "driverid": 14, "points": 0.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 21, "raceid": 19, "driverid": 18, "points": 0.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 22, "raceid": 19, "driverid": 12, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 23, "raceid": 19, "driverid": 21, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 24, "raceid": 19, "driverid": 22, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 25, "raceid": 19, "driverid": 19, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 26, "raceid": 19, "driverid": 11, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 27, "raceid": 20, "driverid": 1, "points": 14.0, "position": 3, "positiontext": "3", "wins": 1}, {"driverstandingsid": 28, "raceid": 20, "driverid": 2, "points": 16.0, "position": 2, "positiontext": "2", "wins": 0}, {"driverstandingsid": 29, "raceid": 20, "driverid": 3, "points": 7.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 30, "raceid": 20, "driverid": 4, "points": 6.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 31, "raceid": 20, "driverid": 5, "points": 14.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 32, "raceid": 20, "driverid": 6, "points": 3.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 33, "raceid": 20, "driverid": 7, "points": 2.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 34, "raceid": 20, "driverid": 8, "points": 19.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 35, "raceid": 20, "driverid": 9, "points": 14.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 36, "raceid": 20, "driverid": 15, "points": 8.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 37, "raceid": 20, "driverid": 17, "points": 4.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 38, "raceid": 20, "driverid": 14, "points": 0.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 39, "raceid": 20, "driverid": 18, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 40, "raceid": 20, "driverid": 12, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 41, "raceid": 20, "driverid": 21, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 42, "raceid": 20, "driverid": 22, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 43, "raceid": 20, "driverid": 19, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 44, "raceid": 20, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 45, "raceid": 20, "driverid": 13, "points": 10.0, "position": 6, "positiontext": "6", "wins": 1}, {"driverstandingsid": 46, "raceid": 20, "driverid": 10, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 47, "raceid": 20, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 48, "raceid": 21, "driverid": 1, "points": 20.0, "position": 2, "positiontext": "2", "wins": 1}, {"driverstandingsid": 49, "raceid": 21, "driverid": 2, "points": 16.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 50, "raceid": 21, "driverid": 3, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 51, "raceid": 21, "driverid": 4, "points": 6.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 52, "raceid": 21, "driverid": 5, "points": 14.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 53, "raceid": 21, "driverid": 6, "points": 5.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 54, "raceid": 21, "driverid": 7, "points": 2.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 55, "raceid": 21, "driverid": 8, "points": 29.0, "position": 1, "positiontext": "1", "wins": 2}, {"driverstandingsid": 56, "raceid": 21, "driverid": 9, "points": 19.0, "position": 3, "positiontext": "3", "wins": 0}, {"driverstandingsid": 57, "raceid": 21, "driverid": 15, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 58, "raceid": 21, "driverid": 17, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 59, "raceid": 21, "driverid": 14, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 60, "raceid": 21, "driverid": 18, "points": 3.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 61, "raceid": 21, "driverid": 12, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 62, "raceid": 21, "driverid": 21, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 63, "raceid": 21, "driverid": 22, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 64, "raceid": 21, "driverid": 19, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 65, "raceid": 21, "driverid": 11, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 66, "raceid": 21, "driverid": 13, "points": 18.0, "position": 4, "positiontext": "4", "wins": 1}, {"driverstandingsid": 67, "raceid": 21, "driverid": 10, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 68, "raceid": 21, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 69, "raceid": 22, "driverid": 1, "points": 28.0, "position": 3, "positiontext": "3", "wins": 1}, {"driverstandingsid": 70, "raceid": 22, "driverid": 2, "points": 20.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 71, "raceid": 22, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 72, "raceid": 22, "driverid": 4, "points": 9.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 73, "raceid": 22, "driverid": 5, "points": 14.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 74, "raceid": 22, "driverid": 6, "points": 5.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 75, "raceid": 22, "driverid": 7, "points": 2.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 76, "raceid": 22, "driverid": 8, "points": 35.0, "position": 1, "positiontext": "1", "wins": 2}, {"driverstandingsid": 77, "raceid": 22, "driverid": 9, "points": 24.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 78, "raceid": 22, "driverid": 15, "points": 9.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 79, "raceid": 22, "driverid": 17, "points": 10.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 80, "raceid": 22, "driverid": 14, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 81, "raceid": 22, "driverid": 18, "points": 3.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 82, "raceid": 22, "driverid": 12, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 83, "raceid": 22, "driverid": 21, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 84, "raceid": 22, "driverid": 22, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 85, "raceid": 22, "driverid": 19, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 86, "raceid": 22, "driverid": 11, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 87, "raceid": 22, "driverid": 13, "points": 28.0, "position": 2, "positiontext": "2", "wins": 2}, {"driverstandingsid": 88, "raceid": 22, "driverid": 10, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 89, "raceid": 22, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 90, "raceid": 22, "driverid": 20, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 91, "raceid": 23, "driverid": 1, "points": 38.0, "position": 1, "positiontext": "1", "wins": 2}, {"driverstandingsid": 92, "raceid": 23, "driverid": 2, "points": 20.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 93, "raceid": 23, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 94, "raceid": 23, "driverid": 4, "points": 9.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 95, "raceid": 23, "driverid": 5, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 96, "raceid": 23, "driverid": 6, "points": 7.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 97, "raceid": 23, "driverid": 7, "points": 2.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 98, "raceid": 23, "driverid": 8, "points": 35.0, "position": 2, "positiontext": "2", "wins": 2}, {"driverstandingsid": 99, "raceid": 23, "driverid": 9, "points": 32.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 100, "raceid": 23, "driverid": 15, "points": 9.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 101, "raceid": 23, "driverid": 17, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 102, "raceid": 23, "driverid": 14, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 103, "raceid": 23, "driverid": 18, "points": 3.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 104, "raceid": 23, "driverid": 12, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 105, "raceid": 23, "driverid": 21, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 106, "raceid": 23, "driverid": 22, "points": 3.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 107, "raceid": 23, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 108, "raceid": 23, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 109, "raceid": 23, "driverid": 13, "points": 34.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 110, "raceid": 23, "driverid": 10, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 111, "raceid": 23, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 112, "raceid": 23, "driverid": 20, "points": 4.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 113, "raceid": 24, "driverid": 1, "points": 38.0, "position": 2, "positiontext": "2", "wins": 2}, {"driverstandingsid": 114, "raceid": 24, "driverid": 2, "points": 28.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 115, "raceid": 24, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 116, "raceid": 24, "driverid": 4, "points": 9.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 117, "raceid": 24, "driverid": 5, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 118, "raceid": 24, "driverid": 6, "points": 7.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 119, "raceid": 24, "driverid": 7, "points": 2.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 120, "raceid": 24, "driverid": 8, "points": 35.0, "position": 4, "positiontext": "4", "wins": 2}, {"driverstandingsid": 121, "raceid": 24, "driverid": 9, "points": 42.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 122, "raceid": 24, "driverid": 15, "points": 12.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 123, "raceid": 24, "driverid": 17, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 124, "raceid": 24, "driverid": 14, "points": 6.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 125, "raceid": 24, "driverid": 18, "points": 3.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 126, "raceid": 24, "driverid": 12, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 127, "raceid": 24, "driverid": 21, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 128, "raceid": 24, "driverid": 22, "points": 5.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 129, "raceid": 24, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 130, "raceid": 24, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 131, "raceid": 24, "driverid": 13, "points": 38.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 132, "raceid": 24, "driverid": 10, "points": 5.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 133, "raceid": 24, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 134, "raceid": 24, "driverid": 20, "points": 5.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 135, "raceid": 25, "driverid": 1, "points": 38.0, "position": 4, "positiontext": "4", "wins": 2}, {"driverstandingsid": 136, "raceid": 25, "driverid": 2, "points": 28.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 137, "raceid": 25, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 138, "raceid": 25, "driverid": 4, "points": 10.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 139, "raceid": 25, "driverid": 5, "points": 20.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 140, "raceid": 25, "driverid": 6, "points": 7.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 141, "raceid": 25, "driverid": 7, "points": 2.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 142, "raceid": 25, "driverid": 8, "points": 43.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 143, "raceid": 25, "driverid": 9, "points": 46.0, "position": 2, "positiontext": "2", "wins": 1}, {"driverstandingsid": 144, "raceid": 25, "driverid": 15, "points": 18.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 145, "raceid": 25, "driverid": 17, "points": 18.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 146, "raceid": 25, "driverid": 14, "points": 6.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 147, "raceid": 25, "driverid": 18, "points": 3.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 148, "raceid": 25, "driverid": 12, "points": 2.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 149, "raceid": 25, "driverid": 21, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 150, "raceid": 25, "driverid": 22, "points": 5.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 151, "raceid": 25, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 152, "raceid": 25, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 153, "raceid": 25, "driverid": 13, "points": 48.0, "position": 1, "positiontext": "1", "wins": 3}, {"driverstandingsid": 154, "raceid": 25, "driverid": 10, "points": 5.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 155, "raceid": 25, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 156, "raceid": 25, "driverid": 20, "points": 5.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 157, "raceid": 26, "driverid": 1, "points": 48.0, "position": 1, "positiontext": "1", "wins": 3}, {"driverstandingsid": 158, "raceid": 26, "driverid": 2, "points": 36.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 159, "raceid": 26, "driverid": 3, "points": 8.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 160, "raceid": 26, "driverid": 4, "points": 13.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 161, "raceid": 26, "driverid": 5, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 162, "raceid": 26, "driverid": 6, "points": 8.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 163, "raceid": 26, "driverid": 7, "points": 2.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 164, "raceid": 26, "driverid": 8, "points": 48.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 165, "raceid": 26, "driverid": 9, "points": 46.0, "position": 4, "positiontext": "4", "wins": 1}, {"driverstandingsid": 166, "raceid": 26, "driverid": 15, "points": 20.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 167, "raceid": 26, "driverid": 17, "points": 18.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 168, "raceid": 26, "driverid": 14, "points": 6.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 169, "raceid": 26, "driverid": 18, "points": 3.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 170, "raceid": 26, "driverid": 12, "points": 2.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 171, "raceid": 26, "driverid": 21, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 172, "raceid": 26, "driverid": 22, "points": 11.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 173, "raceid": 26, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 174, "raceid": 26, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 175, "raceid": 26, "driverid": 13, "points": 48.0, "position": 2, "positiontext": "2", "wins": 3}, {"driverstandingsid": 176, "raceid": 26, "driverid": 10, "points": 5.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 177, "raceid": 26, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 178, "raceid": 26, "driverid": 20, "points": 5.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 179, "raceid": 27, "driverid": 1, "points": 58.0, "position": 1, "positiontext": "1", "wins": 4}, {"driverstandingsid": 180, "raceid": 27, "driverid": 2, "points": 41.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 181, "raceid": 27, "driverid": 3, "points": 8.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 182, "raceid": 27, "driverid": 4, "points": 13.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 183, "raceid": 27, "driverid": 5, "points": 28.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 184, "raceid": 27, "driverid": 6, "points": 8.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 185, "raceid": 27, "driverid": 7, "points": 2.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 186, "raceid": 27, "driverid": 8, "points": 51.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 187, "raceid": 27, "driverid": 9, "points": 48.0, "position": 4, "positiontext": "4", "wins": 1}, {"driverstandingsid": 188, "raceid": 27, "driverid": 15, "points": 20.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 189, "raceid": 27, "driverid": 17, "points": 18.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 190, "raceid": 27, "driverid": 14, "points": 6.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 191, "raceid": 27, "driverid": 18, "points": 3.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 192, "raceid": 27, "driverid": 12, "points": 10.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 193, "raceid": 27, "driverid": 21, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 194, "raceid": 27, "driverid": 22, "points": 11.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 195, "raceid": 27, "driverid": 19, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 196, "raceid": 27, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 197, "raceid": 27, "driverid": 13, "points": 54.0, "position": 2, "positiontext": "2", "wins": 3}, {"driverstandingsid": 198, "raceid": 27, "driverid": 10, "points": 5.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 199, "raceid": 27, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 200, "raceid": 27, "driverid": 20, "points": 6.0, "position": 15, "positiontext": "15", "wins": 0}], "races": [{"raceid": 1, "year": 2009, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2009-03-29", "time": "06:00:00", "url": "http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix"}, {"raceid": 2, "year": 2009, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2009-04-05", "time": "09:00:00", "url": "http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix"}, {"raceid": 3, "year": 2009, "round": 3, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2009-04-19", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix"}, {"raceid": 4, "year": 2009, "round": 4, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2009-04-26", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Bahrain_Grand_Prix"}, {"raceid": 5, "year": 2009, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2009-05-10", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Spanish_Grand_Prix"}, {"raceid": 6, "year": 2009, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2009-05-24", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Monaco_Grand_Prix"}, {"raceid": 7, "year": 2009, "round": 7, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2009-06-07", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Turkish_Grand_Prix"}, {"raceid": 8, "year": 2009, "round": 8, "circuitid": 9, "name": "British Grand Prix", "date": "2009-06-21", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_British_Grand_Prix"}, {"raceid": 9, "year": 2009, "round": 9, "circuitid": 20, "name": "German Grand Prix", "date": "2009-07-12", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_German_Grand_Prix"}, {"raceid": 10, "year": 2009, "round": 10, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2009-07-26", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Hungarian_Grand_Prix"}, {"raceid": 11, "year": 2009, "round": 11, "circuitid": 12, "name": "European Grand Prix", "date": "2009-08-23", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_European_Grand_Prix"}, {"raceid": 12, "year": 2009, "round": 12, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2009-08-30", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Belgian_Grand_Prix"}, {"raceid": 13, "year": 2009, "round": 13, "circuitid": 14, "name": "Italian Grand Prix", "date": "2009-09-13", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Italian_Grand_Prix"}, {"raceid": 14, "year": 2009, "round": 14, "circuitid": 15, "name": "Singapore Grand Prix", "date": "2009-09-27", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Singapore_Grand_Prix"}, {"raceid": 15, "year": 2009, "round": 15, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2009-10-04", "time": "05:00:00", "url": "http://en.wikipedia.org/wiki/2009_Japanese_Grand_Prix"}, {"raceid": 16, "year": 2009, "round": 16, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2009-10-18", "time": "16:00:00", "url": "http://en.wikipedia.org/wiki/2009_Brazilian_Grand_Prix"}, {"raceid": 17, "year": 2009, "round": 17, "circuitid": 24, "name": "Abu Dhabi Grand Prix", "date": "2009-11-01", "time": "11:00:00", "url": "http://en.wikipedia.org/wiki/2009_Abu_Dhabi_Grand_Prix"}, {"raceid": 18, "year": 2008, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2008-03-16", "time": "04:30:00", "url": "http://en.wikipedia.org/wiki/2008_Australian_Grand_Prix"}, {"raceid": 19, "year": 2008, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2008-03-23", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2008_Malaysian_Grand_Prix"}, {"raceid": 20, "year": 2008, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2008-04-06", "time": "11:30:00", "url": "http://en.wikipedia.org/wiki/2008_Bahrain_Grand_Prix"}, {"raceid": 21, "year": 2008, "round": 4, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2008-04-27", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Spanish_Grand_Prix"}, {"raceid": 22, "year": 2008, "round": 5, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2008-05-11", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Turkish_Grand_Prix"}, {"raceid": 23, "year": 2008, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2008-05-25", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Monaco_Grand_Prix"}, {"raceid": 24, "year": 2008, "round": 7, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2008-06-08", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2008_Canadian_Grand_Prix"}, {"raceid": 25, "year": 2008, "round": 8, "circuitid": 8, "name": "French Grand Prix", "date": "2008-06-22", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_French_Grand_Prix"}, {"raceid": 26, "year": 2008, "round": 9, "circuitid": 9, "name": "British Grand Prix", "date": "2008-07-06", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_British_Grand_Prix"}, {"raceid": 27, "year": 2008, "round": 10, "circuitid": 10, "name": "German Grand Prix", "date": "2008-07-20", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_German_Grand_Prix"}, {"raceid": 28, "year": 2008, "round": 11, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2008-08-03", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Hungarian_Grand_Prix"}, {"raceid": 29, "year": 2008, "round": 12, "circuitid": 12, "name": "European Grand Prix", "date": "2008-08-24", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_European_Grand_Prix"}, {"raceid": 30, "year": 2008, "round": 13, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2008-09-07", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Belgian_Grand_Prix"}, {"raceid": 31, "year": 2008, "round": 14, "circuitid": 14, "name": "Italian Grand Prix", "date": "2008-09-14", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Italian_Grand_Prix"}, {"raceid": 32, "year": 2008, "round": 15, "circuitid": 15, "name": "Singapore Grand Prix", "date": "2008-09-28", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Singapore_Grand_Prix"}, {"raceid": 33, "year": 2008, "round": 16, "circuitid": 16, "name": "Japanese Grand Prix", "date": "2008-10-12", "time": "04:30:00", "url": "http://en.wikipedia.org/wiki/2008_Japanese_Grand_Prix"}, {"raceid": 34, "year": 2008, "round": 17, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2008-10-19", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2008_Chinese_Grand_Prix"}, {"raceid": 35, "year": 2008, "round": 18, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2008-11-02", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2008_Brazilian_Grand_Prix"}, {"raceid": 36, "year": 2007, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2007-03-18", "time": "03:00:00", "url": "http://en.wikipedia.org/wiki/2007_Australian_Grand_Prix"}, {"raceid": 37, "year": 2007, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2007-04-08", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2007_Malaysian_Grand_Prix"}, {"raceid": 38, "year": 2007, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2007-04-15", "time": "11:30:00", "url": "http://en.wikipedia.org/wiki/2007_Bahrain_Grand_Prix"}, {"raceid": 39, "year": 2007, "round": 4, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2007-05-13", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Spanish_Grand_Prix"}, {"raceid": 40, "year": 2007, "round": 5, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2007-05-27", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Monaco_Grand_Prix"}, {"raceid": 41, "year": 2007, "round": 6, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2007-06-10", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2007_Canadian_Grand_Prix"}, {"raceid": 42, "year": 2007, "round": 7, "circuitid": 19, "name": "United States Grand Prix", "date": "2007-06-17", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2007_United_States_Grand_Prix"}, {"raceid": 43, "year": 2007, "round": 8, "circuitid": 8, "name": "French Grand Prix", "date": "2007-07-01", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_French_Grand_Prix"}, {"raceid": 44, "year": 2007, "round": 9, "circuitid": 9, "name": "British Grand Prix", "date": "2007-07-08", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_British_Grand_Prix"}, {"raceid": 45, "year": 2007, "round": 10, "circuitid": 20, "name": "European Grand Prix", "date": "2007-07-22", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_European_Grand_Prix"}, {"raceid": 46, "year": 2007, "round": 11, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2007-08-05", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Hungarian_Grand_Prix"}, {"raceid": 47, "year": 2007, "round": 12, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2007-08-26", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Turkish_Grand_Prix"}, {"raceid": 48, "year": 2007, "round": 13, "circuitid": 14, "name": "Italian Grand Prix", "date": "2007-09-09", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Italian_Grand_Prix"}, {"raceid": 49, "year": 2007, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2007-09-16", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Belgian_Grand_Prix"}, {"raceid": 50, "year": 2007, "round": 15, "circuitid": 16, "name": "Japanese Grand Prix", "date": "2007-09-30", "time": "04:30:00", "url": "http://en.wikipedia.org/wiki/2007_Japanese_Grand_Prix"}, {"raceid": 51, "year": 2007, "round": 16, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2007-10-07", "time": "06:00:00", "url": "http://en.wikipedia.org/wiki/2007_Chinese_Grand_Prix"}, {"raceid": 52, "year": 2007, "round": 17, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2007-10-21", "time": "16:00:00", "url": "http://en.wikipedia.org/wiki/2007_Brazilian_Grand_Prix"}, {"raceid": 53, "year": 2006, "round": 1, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2006-03-12", "time": "14:30:00", "url": "http://en.wikipedia.org/wiki/2006_Bahrain_Grand_Prix"}, {"raceid": 54, "year": 2006, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2006-03-19", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2006_Malaysian_Grand_Prix"}, {"raceid": 55, "year": 2006, "round": 3, "circuitid": 1, "name": "Australian Grand Prix", "date": "2006-04-02", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Australian_Grand_Prix"}, {"raceid": 56, "year": 2006, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2006-04-23", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_San_Marino_Grand_Prix"}, {"raceid": 57, "year": 2006, "round": 5, "circuitid": 20, "name": "European Grand Prix", "date": "2006-05-07", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_European_Grand_Prix"}, {"raceid": 58, "year": 2006, "round": 6, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2006-05-14", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Spanish_Grand_Prix"}, {"raceid": 59, "year": 2006, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2006-05-28", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Monaco_Grand_Prix"}, {"raceid": 60, "year": 2006, "round": 8, "circuitid": 9, "name": "British Grand Prix", "date": "2006-06-11", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2006_British_Grand_Prix"}, {"raceid": 61, "year": 2006, "round": 9, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2006-06-25", "time": "13:00:00", "url": "http://en.wikipedia.org/wiki/2006_Canadian_Grand_Prix"}, {"raceid": 62, "year": 2006, "round": 10, "circuitid": 19, "name": "United States Grand Prix", "date": "2006-07-02", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_United_States_Grand_Prix"}, {"raceid": 63, "year": 2006, "round": 11, "circuitid": 8, "name": "French Grand Prix", "date": "2006-07-16", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_French_Grand_Prix"}, {"raceid": 64, "year": 2006, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2006-07-30", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_German_Grand_Prix"}, {"raceid": 65, "year": 2006, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2006-08-06", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Hungarian_Grand_Prix"}, {"raceid": 66, "year": 2006, "round": 14, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2006-08-27", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2006_Turkish_Grand_Prix"}, {"raceid": 67, "year": 2006, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2006-09-10", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Italian_Grand_Prix"}, {"raceid": 68, "year": 2006, "round": 16, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2006-10-01", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Chinese_Grand_Prix"}, {"raceid": 69, "year": 2006, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2006-10-08", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Japanese_Grand_Prix"}, {"raceid": 70, "year": 2006, "round": 18, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2006-10-22", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Brazilian_Grand_Prix"}, {"raceid": 71, "year": 2005, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2005-03-06", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Australian_Grand_Prix"}, {"raceid": 72, "year": 2005, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2005-03-20", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2005_Malaysian_Grand_Prix"}, {"raceid": 73, "year": 2005, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2005-04-03", "time": "14:30:00", "url": "http://en.wikipedia.org/wiki/2005_Bahrain_Grand_Prix"}, {"raceid": 74, "year": 2005, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2005-04-24", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_San_Marino_Grand_Prix"}, {"raceid": 75, "year": 2005, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2005-05-08", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Spanish_Grand_Prix"}, {"raceid": 76, "year": 2005, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2005-05-22", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Monaco_Grand_Prix"}, {"raceid": 77, "year": 2005, "round": 7, "circuitid": 20, "name": "European Grand Prix", "date": "2005-05-29", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_European_Grand_Prix"}, {"raceid": 78, "year": 2005, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2005-06-12", "time": "13:00:00", "url": "http://en.wikipedia.org/wiki/2005_Canadian_Grand_Prix"}, {"raceid": 79, "year": 2005, "round": 9, "circuitid": 19, "name": "United States Grand Prix", "date": "2005-06-19", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_United_States_Grand_Prix"}, {"raceid": 80, "year": 2005, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2005-07-03", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_French_Grand_Prix"}, {"raceid": 81, "year": 2005, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2005-07-10", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_British_Grand_Prix"}, {"raceid": 82, "year": 2005, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2005-07-24", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_German_Grand_Prix"}, {"raceid": 83, "year": 2005, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2005-07-31", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Hungarian_Grand_Prix"}, {"raceid": 84, "year": 2005, "round": 14, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2005-08-21", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2005_Turkish_Grand_Prix"}, {"raceid": 85, "year": 2005, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2005-09-04", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Italian_Grand_Prix"}, {"raceid": 86, "year": 2005, "round": 16, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2005-09-11", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Belgian_Grand_Prix"}, {"raceid": 87, "year": 2005, "round": 17, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2005-09-25", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Brazilian_Grand_Prix"}, {"raceid": 88, "year": 2005, "round": 18, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2005-10-09", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Japanese_Grand_Prix"}, {"raceid": 89, "year": 2005, "round": 19, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2005-10-16", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Chinese_Grand_Prix"}, {"raceid": 90, "year": 2004, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2004-03-07", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Australian_Grand_Prix"}, {"raceid": 91, "year": 2004, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2004-03-21", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Malaysian_Grand_Prix"}, {"raceid": 92, "year": 2004, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2004-04-04", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Bahrain_Grand_Prix"}, {"raceid": 93, "year": 2004, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2004-04-25", "time": "", "url": "http://en.wikipedia.org/wiki/2004_San_Marino_Grand_Prix"}, {"raceid": 94, "year": 2004, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2004-05-09", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Spanish_Grand_Prix"}, {"raceid": 95, "year": 2004, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2004-05-23", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Monaco_Grand_Prix"}, {"raceid": 96, "year": 2004, "round": 7, "circuitid": 20, "name": "European Grand Prix", "date": "2004-05-30", "time": "", "url": "http://en.wikipedia.org/wiki/2004_European_Grand_Prix"}, {"raceid": 97, "year": 2004, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2004-06-13", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Canadian_Grand_Prix"}, {"raceid": 98, "year": 2004, "round": 9, "circuitid": 19, "name": "United States Grand Prix", "date": "2004-06-20", "time": "", "url": "http://en.wikipedia.org/wiki/2004_United_States_Grand_Prix"}, {"raceid": 99, "year": 2004, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2004-07-04", "time": "", "url": "http://en.wikipedia.org/wiki/2004_French_Grand_Prix"}, {"raceid": 100, "year": 2004, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2004-07-11", "time": "", "url": "http://en.wikipedia.org/wiki/2004_British_Grand_Prix"}, {"raceid": 101, "year": 2004, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2004-07-25", "time": "", "url": "http://en.wikipedia.org/wiki/2004_German_Grand_Prix"}, {"raceid": 102, "year": 2004, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2004-08-15", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Hungarian_Grand_Prix"}, {"raceid": 103, "year": 2004, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2004-08-29", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Belgian_Grand_Prix"}, {"raceid": 104, "year": 2004, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2004-09-12", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Italian_Grand_Prix"}, {"raceid": 105, "year": 2004, "round": 16, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2004-09-26", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Chinese_Grand_Prix"}, {"raceid": 106, "year": 2004, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2004-10-10", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Japanese_Grand_Prix"}, {"raceid": 107, "year": 2004, "round": 18, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2004-10-24", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Brazilian_Grand_Prix"}, {"raceid": 108, "year": 2003, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2003-03-09", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Australian_Grand_Prix"}, {"raceid": 109, "year": 2003, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2003-03-23", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Malaysian_Grand_Prix"}, {"raceid": 110, "year": 2003, "round": 3, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2003-04-06", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Brazilian_Grand_Prix"}, {"raceid": 111, "year": 2003, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2003-04-20", "time": "", "url": "http://en.wikipedia.org/wiki/2003_San_Marino_Grand_Prix"}, {"raceid": 112, "year": 2003, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2003-05-04", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Spanish_Grand_Prix"}, {"raceid": 113, "year": 2003, "round": 6, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2003-05-18", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Austrian_Grand_Prix"}, {"raceid": 114, "year": 2003, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2003-06-01", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Monaco_Grand_Prix"}, {"raceid": 115, "year": 2003, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2003-06-15", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Canadian_Grand_Prix"}, {"raceid": 116, "year": 2003, "round": 9, "circuitid": 20, "name": "European Grand Prix", "date": "2003-06-29", "time": "", "url": "http://en.wikipedia.org/wiki/2003_European_Grand_Prix"}, {"raceid": 117, "year": 2003, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2003-07-06", "time": "", "url": "http://en.wikipedia.org/wiki/2003_French_Grand_Prix"}, {"raceid": 118, "year": 2003, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2003-07-20", "time": "", "url": "http://en.wikipedia.org/wiki/2003_British_Grand_Prix"}, {"raceid": 119, "year": 2003, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2003-08-03", "time": "", "url": "http://en.wikipedia.org/wiki/2003_German_Grand_Prix"}, {"raceid": 120, "year": 2003, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2003-08-24", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Hungarian_Grand_Prix"}, {"raceid": 121, "year": 2003, "round": 14, "circuitid": 14, "name": "Italian Grand Prix", "date": "2003-09-14", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Italian_Grand_Prix"}, {"raceid": 122, "year": 2003, "round": 15, "circuitid": 19, "name": "United States Grand Prix", "date": "2003-09-28", "time": "", "url": "http://en.wikipedia.org/wiki/2003_United_States_Grand_Prix"}, {"raceid": 123, "year": 2003, "round": 16, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2003-10-12", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Japanese_Grand_Prix"}, {"raceid": 124, "year": 2002, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2002-03-03", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Australian_Grand_Prix"}, {"raceid": 125, "year": 2002, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2002-03-17", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Malaysian_Grand_Prix"}, {"raceid": 126, "year": 2002, "round": 3, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2002-03-31", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Brazilian_Grand_Prix"}, {"raceid": 127, "year": 2002, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2002-04-14", "time": "", "url": "http://en.wikipedia.org/wiki/2002_San_Marino_Grand_Prix"}, {"raceid": 128, "year": 2002, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2002-04-28", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Spanish_Grand_Prix"}, {"raceid": 129, "year": 2002, "round": 6, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2002-05-12", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Austrian_Grand_Prix"}, {"raceid": 130, "year": 2002, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2002-05-26", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Monaco_Grand_Prix"}, {"raceid": 131, "year": 2002, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2002-06-09", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Canadian_Grand_Prix"}, {"raceid": 132, "year": 2002, "round": 9, "circuitid": 20, "name": "European Grand Prix", "date": "2002-06-23", "time": "", "url": "http://en.wikipedia.org/wiki/2002_European_Grand_Prix"}, {"raceid": 133, "year": 2002, "round": 10, "circuitid": 9, "name": "British Grand Prix", "date": "2002-07-07", "time": "", "url": "http://en.wikipedia.org/wiki/2002_British_Grand_Prix"}, {"raceid": 134, "year": 2002, "round": 11, "circuitid": 8, "name": "French Grand Prix", "date": "2002-07-21", "time": "", "url": "http://en.wikipedia.org/wiki/2002_French_Grand_Prix"}, {"raceid": 135, "year": 2002, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2002-07-28", "time": "", "url": "http://en.wikipedia.org/wiki/2002_German_Grand_Prix"}, {"raceid": 136, "year": 2002, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2002-08-18", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Hungarian_Grand_Prix"}, {"raceid": 137, "year": 2002, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2002-09-01", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Belgian_Grand_Prix"}, {"raceid": 138, "year": 2002, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2002-09-15", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Italian_Grand_Prix"}, {"raceid": 139, "year": 2002, "round": 16, "circuitid": 19, "name": "United States Grand Prix", "date": "2002-09-29", "time": "", "url": "http://en.wikipedia.org/wiki/2002_United_States_Grand_Prix"}, {"raceid": 140, "year": 2002, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2002-10-13", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Japanese_Grand_Prix"}, {"raceid": 141, "year": 2001, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2001-03-04", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Australian_Grand_Prix"}, {"raceid": 142, "year": 2001, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2001-03-18", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Malaysian_Grand_Prix"}, {"raceid": 143, "year": 2001, "round": 3, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2001-04-01", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Brazilian_Grand_Prix"}, {"raceid": 144, "year": 2001, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2001-04-15", "time": "", "url": "http://en.wikipedia.org/wiki/2001_San_Marino_Grand_Prix"}, {"raceid": 145, "year": 2001, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2001-04-29", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Spanish_Grand_Prix"}, {"raceid": 146, "year": 2001, "round": 6, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2001-05-13", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Austrian_Grand_Prix"}, {"raceid": 147, "year": 2001, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2001-05-27", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Monaco_Grand_Prix"}, {"raceid": 148, "year": 2001, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2001-06-10", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Canadian_Grand_Prix"}, {"raceid": 149, "year": 2001, "round": 9, "circuitid": 20, "name": "European Grand Prix", "date": "2001-06-24", "time": "", "url": "http://en.wikipedia.org/wiki/2001_European_Grand_Prix"}, {"raceid": 150, "year": 2001, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2001-07-01", "time": "", "url": "http://en.wikipedia.org/wiki/2001_French_Grand_Prix"}, {"raceid": 151, "year": 2001, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2001-07-15", "time": "", "url": "http://en.wikipedia.org/wiki/2001_British_Grand_Prix"}, {"raceid": 152, "year": 2001, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2001-07-29", "time": "", "url": "http://en.wikipedia.org/wiki/2001_German_Grand_Prix"}, {"raceid": 153, "year": 2001, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2001-08-19", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Hungarian_Grand_Prix"}, {"raceid": 154, "year": 2001, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2001-09-02", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Belgian_Grand_Prix"}, {"raceid": 155, "year": 2001, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2001-09-16", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Italian_Grand_Prix"}, {"raceid": 156, "year": 2001, "round": 16, "circuitid": 19, "name": "United States Grand Prix", "date": "2001-09-30", "time": "", "url": "http://en.wikipedia.org/wiki/2001_United_States_Grand_Prix"}, {"raceid": 157, "year": 2001, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2001-10-14", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Japanese_Grand_Prix"}, {"raceid": 158, "year": 2000, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2000-03-12", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Australian_Grand_Prix"}, {"raceid": 159, "year": 2000, "round": 2, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2000-03-26", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Brazilian_Grand_Prix"}, {"raceid": 160, "year": 2000, "round": 3, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2000-04-09", "time": "", "url": "http://en.wikipedia.org/wiki/2000_San_Marino_Grand_Prix"}, {"raceid": 161, "year": 2000, "round": 4, "circuitid": 9, "name": "British Grand Prix", "date": "2000-04-23", "time": "", "url": "http://en.wikipedia.org/wiki/2000_British_Grand_Prix"}, {"raceid": 162, "year": 2000, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2000-05-07", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Spanish_Grand_Prix"}, {"raceid": 163, "year": 2000, "round": 6, "circuitid": 20, "name": "European Grand Prix", "date": "2000-05-21", "time": "", "url": "http://en.wikipedia.org/wiki/2000_European_Grand_Prix"}, {"raceid": 164, "year": 2000, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2000-06-04", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Monaco_Grand_Prix"}, {"raceid": 165, "year": 2000, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2000-06-18", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Canadian_Grand_Prix"}, {"raceid": 166, "year": 2000, "round": 9, "circuitid": 8, "name": "French Grand Prix", "date": "2000-07-02", "time": "", "url": "http://en.wikipedia.org/wiki/2000_French_Grand_Prix"}, {"raceid": 167, "year": 2000, "round": 10, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2000-07-16", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Austrian_Grand_Prix"}, {"raceid": 168, "year": 2000, "round": 11, "circuitid": 10, "name": "German Grand Prix", "date": "2000-07-30", "time": "", "url": "http://en.wikipedia.org/wiki/2000_German_Grand_Prix"}, {"raceid": 169, "year": 2000, "round": 12, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2000-08-13", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Hungarian_Grand_Prix"}, {"raceid": 170, "year": 2000, "round": 13, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2000-08-27", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Belgian_Grand_Prix"}, {"raceid": 171, "year": 2000, "round": 14, "circuitid": 14, "name": "Italian Grand Prix", "date": "2000-09-10", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Italian_Grand_Prix"}, {"raceid": 172, "year": 2000, "round": 15, "circuitid": 19, "name": "United States Grand Prix", "date": "2000-09-24", "time": "", "url": "http://en.wikipedia.org/wiki/2000_United_States_Grand_Prix"}, {"raceid": 173, "year": 2000, "round": 16, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2000-10-08", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Japanese_Grand_Prix"}, {"raceid": 174, "year": 2000, "round": 17, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2000-10-22", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Malaysian_Grand_Prix"}, {"raceid": 175, "year": 1999, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "1999-03-07", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Australian_Grand_Prix"}, {"raceid": 176, "year": 1999, "round": 2, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "1999-04-11", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Brazilian_Grand_Prix"}, {"raceid": 177, "year": 1999, "round": 3, "circuitid": 21, "name": "San Marino Grand Prix", "date": "1999-05-02", "time": "", "url": "http://en.wikipedia.org/wiki/1999_San_Marino_Grand_Prix"}, {"raceid": 178, "year": 1999, "round": 4, "circuitid": 6, "name": "Monaco Grand Prix", "date": "1999-05-16", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Monaco_Grand_Prix"}, {"raceid": 179, "year": 1999, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "1999-05-30", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Spanish_Grand_Prix"}, {"raceid": 180, "year": 1999, "round": 6, "circuitid": 7, "name": "Canadian Grand Prix", "date": "1999-06-13", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Canadian_Grand_Prix"}, {"raceid": 181, "year": 1999, "round": 7, "circuitid": 8, "name": "French Grand Prix", "date": "1999-06-27", "time": "", "url": "http://en.wikipedia.org/wiki/1999_French_Grand_Prix"}, {"raceid": 182, "year": 1999, "round": 8, "circuitid": 9, "name": "British Grand Prix", "date": "1999-07-11", "time": "", "url": "http://en.wikipedia.org/wiki/1999_British_Grand_Prix"}, {"raceid": 183, "year": 1999, "round": 9, "circuitid": 23, "name": "Austrian Grand Prix", "date": "1999-07-25", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Austrian_Grand_Prix"}, {"raceid": 184, "year": 1999, "round": 10, "circuitid": 10, "name": "German Grand Prix", "date": "1999-08-01", "time": "", "url": "http://en.wikipedia.org/wiki/1999_German_Grand_Prix"}, {"raceid": 185, "year": 1999, "round": 11, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "1999-08-15", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Hungarian_Grand_Prix"}, {"raceid": 186, "year": 1999, "round": 12, "circuitid": 13, "name": "Belgian Grand Prix", "date": "1999-08-29", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Belgian_Grand_Prix"}, {"raceid": 187, "year": 1999, "round": 13, "circuitid": 14, "name": "Italian Grand Prix", "date": "1999-09-12", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Italian_Grand_Prix"}, {"raceid": 188, "year": 1999, "round": 14, "circuitid": 20, "name": "European Grand Prix", "date": "1999-09-26", "time": "", "url": "http://en.wikipedia.org/wiki/1999_European_Grand_Prix"}, {"raceid": 189, "year": 1999, "round": 15, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "1999-10-17", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Malaysian_Grand_Prix"}, {"raceid": 190, "year": 1999, "round": 16, "circuitid": 22, "name": "Japanese Grand Prix", "date": "1999-10-31", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Japanese_Grand_Prix"}, {"raceid": 191, "year": 1998, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "1998-03-08", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Australian_Grand_Prix"}, {"raceid": 192, "year": 1998, "round": 2, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "1998-03-29", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Brazilian_Grand_Prix"}, {"raceid": 193, "year": 1998, "round": 3, "circuitid": 25, "name": "Argentine Grand Prix", "date": "1998-04-12", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Argentine_Grand_Prix"}, {"raceid": 194, "year": 1998, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "1998-04-26", "time": "", "url": "http://en.wikipedia.org/wiki/1998_San_Marino_Grand_Prix"}, {"raceid": 195, "year": 1998, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "1998-05-10", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Spanish_Grand_Prix"}, {"raceid": 196, "year": 1998, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "1998-05-24", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Monaco_Grand_Prix"}, {"raceid": 197, "year": 1998, "round": 7, "circuitid": 7, "name": "Canadian Grand Prix", "date": "1998-06-07", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Canadian_Grand_Prix"}, {"raceid": 198, "year": 1998, "round": 8, "circuitid": 8, "name": "French Grand Prix", "date": "1998-06-28", "time": "", "url": "http://en.wikipedia.org/wiki/1998_French_Grand_Prix"}, {"raceid": 199, "year": 1998, "round": 9, "circuitid": 9, "name": "British Grand Prix", "date": "1998-07-12", "time": "", "url": "http://en.wikipedia.org/wiki/1998_British_Grand_Prix"}, {"raceid": 200, "year": 1998, "round": 10, "circuitid": 23, "name": "Austrian Grand Prix", "date": "1998-07-26", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Austrian_Grand_Prix"}]}, "correct_code": "-- Load formula_1__driverstandings data\ndriverstandings = load(\"driverstandings\")\n\nfiltered_driverstandings = driverstandings\n |> filter(positiontext == \"1\")\n |> filter(driverstandingsid > 39)\n |> select(positiontext, position, raceid, driverid, driverstandingsid)\n\nresult = filtered_driverstandings\n |> sort_by(raceid, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__driverstandings data\ndriverstandings = load(\"driverstandings\")\n\nfiltered_driverstandings = driverstandings\n |> filter(positiontext == \"1\")\n |> filter(position > 39)\n |> select(positiontext, position, raceid, driverid, driverstandingsid)\n\nresult = filtered_driverstandings\n |> sort_by(raceid, desc)\n |> take(5)\n\nemit result", "expected_output": [{"positiontext": "1", "position": 1, "raceid": 27, "driverid": 1, "driverstandingsid": 179}, {"positiontext": "1", "position": 1, "raceid": 26, "driverid": 1, "driverstandingsid": 157}, {"positiontext": "1", "position": 1, "raceid": 25, "driverid": 13, "driverstandingsid": 153}, {"positiontext": "1", "position": 1, "raceid": 24, "driverid": 9, "driverstandingsid": 121}, {"positiontext": "1", "position": 1, "raceid": 23, "driverid": 1, "driverstandingsid": 91}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'driverstandingsid' \u2192 'position'", "line_num": 6, "original": "|> filter(driverstandingsid > 39)", "mutated": "|> filter(position > 39)"}], "difficulty": "medium", "domain": "formula_1__driverstandings", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"status": [{"statusid": 1, "status": "Finished"}, {"statusid": 2, "status": "Disqualified"}, {"statusid": 3, "status": "Accident"}, {"statusid": 4, "status": "Collision"}, {"statusid": 5, "status": "Engine"}, {"statusid": 6, "status": "Gearbox"}, {"statusid": 7, "status": "Transmission"}, {"statusid": 8, "status": "Clutch"}, {"statusid": 9, "status": "Hydraulics"}, {"statusid": 10, "status": "Electrical"}, {"statusid": 11, "status": "+1 Lap"}, {"statusid": 12, "status": "+2 Laps"}, {"statusid": 13, "status": "+3 Laps"}, {"statusid": 14, "status": "+4 Laps"}, {"statusid": 15, "status": "+5 Laps"}, {"statusid": 16, "status": "+6 Laps"}, {"statusid": 17, "status": "+7 Laps"}, {"statusid": 18, "status": "+8 Laps"}, {"statusid": 19, "status": "+9 Laps"}, {"statusid": 20, "status": "Spun off"}, {"statusid": 21, "status": "Radiator"}, {"statusid": 22, "status": "Suspension"}, {"statusid": 23, "status": "Brakes"}, {"statusid": 24, "status": "Differential"}, {"statusid": 25, "status": "Overheating"}, {"statusid": 26, "status": "Mechanical"}, {"statusid": 27, "status": "Tyre"}, {"statusid": 28, "status": "Driver Seat"}, {"statusid": 29, "status": "Puncture"}, {"statusid": 30, "status": "Driveshaft"}, {"statusid": 31, "status": "Retired"}, {"statusid": 32, "status": "Fuel pressure"}, {"statusid": 33, "status": "Front wing"}, {"statusid": 34, "status": "Water pressure"}, {"statusid": 35, "status": "Refuelling"}, {"statusid": 36, "status": "Wheel"}, {"statusid": 37, "status": "Throttle"}, {"statusid": 38, "status": "Steering"}, {"statusid": 39, "status": "Technical"}, {"statusid": 40, "status": "Electronics"}, {"statusid": 41, "status": "Broken wing"}, {"statusid": 42, "status": "Heat shield fire"}, {"statusid": 43, "status": "Exhaust"}, {"statusid": 44, "status": "Oil leak"}, {"statusid": 45, "status": "+11 Laps"}, {"statusid": 46, "status": "Wheel rim"}, {"statusid": 47, "status": "Water leak"}, {"statusid": 48, "status": "Fuel pump"}, {"statusid": 49, "status": "Track rod"}, {"statusid": 50, "status": "+17 Laps"}, {"statusid": 51, "status": "Oil pressure"}, {"statusid": 53, "status": "+13 Laps"}, {"statusid": 54, "status": "Withdrew"}, {"statusid": 55, "status": "+12 Laps"}, {"statusid": 56, "status": "Engine fire"}, {"statusid": 58, "status": "+26 Laps"}, {"statusid": 59, "status": "Tyre puncture"}, {"statusid": 60, "status": "Out of fuel"}, {"statusid": 61, "status": "Wheel nut"}, {"statusid": 62, "status": "Not classified"}, {"statusid": 63, "status": "Pneumatics"}, {"statusid": 64, "status": "Handling"}, {"statusid": 65, "status": "Rear wing"}, {"statusid": 66, "status": "Fire"}, {"statusid": 67, "status": "Wheel bearing"}, {"statusid": 68, "status": "Physical"}, {"statusid": 69, "status": "Fuel system"}, {"statusid": 70, "status": "Oil line"}, {"statusid": 71, "status": "Fuel rig"}, {"statusid": 72, "status": "Launch control"}, {"statusid": 73, "status": "Injured"}, {"statusid": 74, "status": "Fuel"}, {"statusid": 75, "status": "Power loss"}, {"statusid": 76, "status": "Vibrations"}, {"statusid": 77, "status": "107% Rule"}, {"statusid": 78, "status": "Safety"}, {"statusid": 79, "status": "Drivetrain"}, {"statusid": 80, "status": "Ignition"}, {"statusid": 81, "status": "Did not qualify"}, {"statusid": 82, "status": "Injury"}, {"statusid": 83, "status": "Chassis"}, {"statusid": 84, "status": "Battery"}, {"statusid": 85, "status": "Stalled"}, {"statusid": 86, "status": "Halfshaft"}, {"statusid": 87, "status": "Crankshaft"}, {"statusid": 88, "status": "+10 Laps"}, {"statusid": 89, "status": "Safety concerns"}, {"statusid": 90, "status": "Not restarted"}, {"statusid": 91, "status": "Alternator"}, {"statusid": 92, "status": "Underweight"}, {"statusid": 93, "status": "Safety belt"}, {"statusid": 94, "status": "Oil pump"}, {"statusid": 95, "status": "Fuel leak"}, {"statusid": 96, "status": "Excluded"}, {"statusid": 97, "status": "Did not prequalify"}, {"statusid": 98, "status": "Injection"}, {"statusid": 99, "status": "Distributor"}, {"statusid": 100, "status": "Driver unwell"}, {"statusid": 101, "status": "Turbo"}, {"statusid": 102, "status": "CV joint"}, {"statusid": 103, "status": "Water pump"}, {"statusid": 104, "status": "Fatal accident"}, {"statusid": 105, "status": "Spark plugs"}, {"statusid": 106, "status": "Fuel pipe"}, {"statusid": 107, "status": "Eye injury"}, {"statusid": 108, "status": "Oil pipe"}, {"statusid": 109, "status": "Axle"}, {"statusid": 110, "status": "Water pipe"}, {"statusid": 111, "status": "+14 Laps"}, {"statusid": 112, "status": "+15 Laps"}, {"statusid": 113, "status": "+25 Laps"}, {"statusid": 114, "status": "+18 Laps"}, {"statusid": 115, "status": "+22 Laps"}, {"statusid": 116, "status": "+16 Laps"}, {"statusid": 117, "status": "+24 Laps"}, {"statusid": 118, "status": "+29 Laps"}, {"statusid": 119, "status": "+23 Laps"}, {"statusid": 120, "status": "+21 Laps"}, {"statusid": 121, "status": "Magneto"}, {"statusid": 122, "status": "+44 Laps"}, {"statusid": 123, "status": "+30 Laps"}, {"statusid": 124, "status": "+19 Laps"}, {"statusid": 125, "status": "+46 Laps"}, {"statusid": 126, "status": "Supercharger"}, {"statusid": 127, "status": "+20 Laps"}, {"statusid": 128, "status": "+42 Laps"}, {"statusid": 129, "status": "Engine misfire"}, {"statusid": 130, "status": "Collision damage"}, {"statusid": 131, "status": "Power Unit"}, {"statusid": 132, "status": "ERS"}, {"statusid": 133, "status": "+49 Laps"}, {"statusid": 134, "status": "+38 Laps"}, {"statusid": 135, "status": "Brake duct"}, {"statusid": 136, "status": "Seat"}]}, "correct_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(status == \"Out of fuel\")\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(total_statusid: sum(statusid), count: count())\n |> compute(computed_val: total_statusid * count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(status == \"Out of fuel\")\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(of: sum(statusid), count: count())\n |> compute(computed_val: total_statusid * count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"status": "Out of fuel", "total_statusid": 60, "count": 1, "computed_val": 60}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'total_statusid' \u2192 'of'", "line_num": 9, "original": "|> aggregate(total_statusid: sum(statusid), count: count())", "mutated": "|> aggregate(of: sum(statusid), count: count())"}], "difficulty": "hard", "domain": "formula_1__status", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"treatments": [{"treatment_id": 1, "dog_id": 14, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-19 04:39:54", "cost_of_treatment": 567}, {"treatment_id": 2, "dog_id": 4, "professional_id": 10, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-15 20:25:34", "cost_of_treatment": 147}, {"treatment_id": 3, "dog_id": 14, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-08 05:26:23", "cost_of_treatment": 429}, {"treatment_id": 4, "dog_id": 2, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-01 04:14:46", "cost_of_treatment": 266}, {"treatment_id": 5, "dog_id": 12, "professional_id": 14, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-23 13:52:10", "cost_of_treatment": 668}, {"treatment_id": 6, "dog_id": 10, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-11 04:23:15", "cost_of_treatment": 313}, {"treatment_id": 7, "dog_id": 15, "professional_id": 14, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-10 11:45:58", "cost_of_treatment": 852}, {"treatment_id": 8, "dog_id": 2, "professional_id": 6, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-24 22:25:58", "cost_of_treatment": 407}, {"treatment_id": 9, "dog_id": 14, "professional_id": 10, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-14 19:10:40", "cost_of_treatment": 139}, {"treatment_id": 10, "dog_id": 10, "professional_id": 7, "treatment_type_code": "WALK", "date_of_treatment": "2018-02-28 17:09:43", "cost_of_treatment": 681}, {"treatment_id": 11, "dog_id": 15, "professional_id": 5, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-13 12:22:58", "cost_of_treatment": 514}, {"treatment_id": 12, "dog_id": 13, "professional_id": 9, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-16 10:27:36", "cost_of_treatment": 428}, {"treatment_id": 13, "dog_id": 7, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-02-26 09:08:53", "cost_of_treatment": 945}, {"treatment_id": 14, "dog_id": 10, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-04 20:33:43", "cost_of_treatment": 349}, {"treatment_id": 15, "dog_id": 1, "professional_id": 6, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-15 19:10:02", "cost_of_treatment": 656}], "treatment_types": [{"treatment_type_code": "EXAM", "treatment_type_description": "Physical examination"}, {"treatment_type_code": "VAC", "treatment_type_description": "Vaccination"}, {"treatment_type_code": "WALK", "treatment_type_description": "Take for a Walk"}]}, "correct_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(date_of_treatment == \"2018-03-08 05:26:23\")\n\nsummary = filtered_treatments\n |> group_by(date_of_treatment)\n |> aggregate(total_cost_of_treatment: sum(cost_of_treatment), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(date_of_treatment == \"2018-03-08 05:26:23s\")\n\nsummary = filtered_treatments\n |> group_by(date_of_treatment)\n |> aggregate(total_cost_of_treatment: sum(cost_of_treatment), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"date_of_treatment": "2018-03-08 05:26:23", "total_cost_of_treatment": 429, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '2018-03-08 05:26:23' \u2192 '2018-03-08 05:26:23s'", "line_num": 5, "original": "|> filter(date_of_treatment == \"2018-03-08 05:26:23\")", "mutated": "|> filter(date_of_treatment == \"2018-03-08 05:26:23s\")"}], "difficulty": "hard", "domain": "dog_kennels__treatments", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"seasons": [{"year": 1950, "url": "http://en.wikipedia.org/wiki/1950_Formula_One_season"}, {"year": 1951, "url": "http://en.wikipedia.org/wiki/1951_Formula_One_season"}, {"year": 1952, "url": "http://en.wikipedia.org/wiki/1952_Formula_One_season"}, {"year": 1953, "url": "http://en.wikipedia.org/wiki/1953_Formula_One_season"}, {"year": 1954, "url": "http://en.wikipedia.org/wiki/1954_Formula_One_season"}, {"year": 1955, "url": "http://en.wikipedia.org/wiki/1955_Formula_One_season"}, {"year": 1956, "url": "http://en.wikipedia.org/wiki/1956_Formula_One_season"}, {"year": 1957, "url": "http://en.wikipedia.org/wiki/1957_Formula_One_season"}, {"year": 1958, "url": "http://en.wikipedia.org/wiki/1958_Formula_One_season"}, {"year": 1959, "url": "http://en.wikipedia.org/wiki/1959_Formula_One_season"}, {"year": 1960, "url": "http://en.wikipedia.org/wiki/1960_Formula_One_season"}, {"year": 1961, "url": "http://en.wikipedia.org/wiki/1961_Formula_One_season"}, {"year": 1962, "url": "http://en.wikipedia.org/wiki/1962_Formula_One_season"}, {"year": 1963, "url": "http://en.wikipedia.org/wiki/1963_Formula_One_season"}, {"year": 1964, "url": "http://en.wikipedia.org/wiki/1964_Formula_One_season"}, {"year": 1965, "url": "http://en.wikipedia.org/wiki/1965_Formula_One_season"}, {"year": 1966, "url": "http://en.wikipedia.org/wiki/1966_Formula_One_season"}, {"year": 1967, "url": "http://en.wikipedia.org/wiki/1967_Formula_One_season"}, {"year": 1968, "url": "http://en.wikipedia.org/wiki/1968_Formula_One_season"}, {"year": 1969, "url": "http://en.wikipedia.org/wiki/1969_Formula_One_season"}, {"year": 1970, "url": "http://en.wikipedia.org/wiki/1970_Formula_One_season"}, {"year": 1971, "url": "http://en.wikipedia.org/wiki/1971_Formula_One_season"}, {"year": 1972, "url": "http://en.wikipedia.org/wiki/1972_Formula_One_season"}, {"year": 1973, "url": "http://en.wikipedia.org/wiki/1973_Formula_One_season"}, {"year": 1974, "url": "http://en.wikipedia.org/wiki/1974_Formula_One_season"}, {"year": 1975, "url": "http://en.wikipedia.org/wiki/1975_Formula_One_season"}, {"year": 1976, "url": "http://en.wikipedia.org/wiki/1976_Formula_One_season"}, {"year": 1977, "url": "http://en.wikipedia.org/wiki/1977_Formula_One_season"}, {"year": 1978, "url": "http://en.wikipedia.org/wiki/1978_Formula_One_season"}, {"year": 1979, "url": "http://en.wikipedia.org/wiki/1979_Formula_One_season"}, {"year": 1980, "url": "http://en.wikipedia.org/wiki/1980_Formula_One_season"}, {"year": 1981, "url": "http://en.wikipedia.org/wiki/1981_Formula_One_season"}, {"year": 1982, "url": "http://en.wikipedia.org/wiki/1982_Formula_One_season"}, {"year": 1983, "url": "http://en.wikipedia.org/wiki/1983_Formula_One_season"}, {"year": 1984, "url": "http://en.wikipedia.org/wiki/1984_Formula_One_season"}, {"year": 1985, "url": "http://en.wikipedia.org/wiki/1985_Formula_One_season"}, {"year": 1986, "url": "http://en.wikipedia.org/wiki/1986_Formula_One_season"}, {"year": 1987, "url": "http://en.wikipedia.org/wiki/1987_Formula_One_season"}, {"year": 1988, "url": "http://en.wikipedia.org/wiki/1988_Formula_One_season"}, {"year": 1989, "url": "http://en.wikipedia.org/wiki/1989_Formula_One_season"}, {"year": 1990, "url": "http://en.wikipedia.org/wiki/1990_Formula_One_season"}, {"year": 1991, "url": "http://en.wikipedia.org/wiki/1991_Formula_One_season"}, {"year": 1992, "url": "http://en.wikipedia.org/wiki/1992_Formula_One_season"}, {"year": 1993, "url": "http://en.wikipedia.org/wiki/1993_Formula_One_season"}, {"year": 1994, "url": "http://en.wikipedia.org/wiki/1994_Formula_One_season"}, {"year": 1995, "url": "http://en.wikipedia.org/wiki/1995_Formula_One_season"}, {"year": 1996, "url": "http://en.wikipedia.org/wiki/1996_Formula_One_season"}, {"year": 1997, "url": "http://en.wikipedia.org/wiki/1997_Formula_One_season"}, {"year": 1998, "url": "http://en.wikipedia.org/wiki/1998_Formula_One_season"}, {"year": 1999, "url": "http://en.wikipedia.org/wiki/1999_Formula_One_season"}, {"year": 2000, "url": "http://en.wikipedia.org/wiki/2000_Formula_One_season"}, {"year": 2001, "url": "http://en.wikipedia.org/wiki/2001_Formula_One_season"}, {"year": 2002, "url": "http://en.wikipedia.org/wiki/2002_Formula_One_season"}, {"year": 2003, "url": "http://en.wikipedia.org/wiki/2003_Formula_One_season"}, {"year": 2004, "url": "http://en.wikipedia.org/wiki/2004_Formula_One_season"}, {"year": 2005, "url": "http://en.wikipedia.org/wiki/2005_Formula_One_season"}, {"year": 2006, "url": "http://en.wikipedia.org/wiki/2006_Formula_One_season"}, {"year": 2007, "url": "http://en.wikipedia.org/wiki/2007_Formula_One_season"}, {"year": 2008, "url": "http://en.wikipedia.org/wiki/2008_Formula_One_season"}, {"year": 2009, "url": "http://en.wikipedia.org/wiki/2009_Formula_One_season"}, {"year": 2010, "url": "http://en.wikipedia.org/wiki/2010_Formula_One_season"}, {"year": 2011, "url": "http://en.wikipedia.org/wiki/2011_Formula_One_season"}, {"year": 2012, "url": "http://en.wikipedia.org/wiki/2012_Formula_One_season"}, {"year": 2013, "url": "http://en.wikipedia.org/wiki/2013_Formula_One_season"}, {"year": 2014, "url": "http://en.wikipedia.org/wiki/2014_Formula_One_season"}, {"year": 2015, "url": "http://en.wikipedia.org/wiki/2015_Formula_One_season"}, {"year": 2016, "url": "https://en.wikipedia.org/wiki/2016_Formula_One_season"}, {"year": 2017, "url": "https://en.wikipedia.org/wiki/2017_Formula_One_season"}, {"year": 2018, "url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship"}]}, "correct_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nfiltered_seasons = seasons\n |> filter(year >= 1969)\n |> select(year, url)\n\nsummary = filtered_seasons\n |> group_by(url)\n |> aggregate(avg_year: avg(year), count: count())\n |> compute(computed_val: count - avg_year)\n\nresult = summary\n |> sort_by(avg_year, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nfiltered_seasons = seasons\n |> filter(year >= 1974)\n |> select(year, url)\n\nsummary = filtered_seasons\n |> group_by(url)\n |> aggregate(avg_year: avg(year), count: count())\n |> compute(computed_val: count - avg_year)\n\nresult = summary\n |> sort_by(avg_year, asc)\n |> take(5)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/1969_Formula_One_season", "avg_year": 1969.0, "count": 1, "computed_val": -1968.0}, {"url": "http://en.wikipedia.org/wiki/1970_Formula_One_season", "avg_year": 1970.0, "count": 1, "computed_val": -1969.0}, {"url": "http://en.wikipedia.org/wiki/1971_Formula_One_season", "avg_year": 1971.0, "count": 1, "computed_val": -1970.0}, {"url": "http://en.wikipedia.org/wiki/1972_Formula_One_season", "avg_year": 1972.0, "count": 1, "computed_val": -1971.0}, {"url": "http://en.wikipedia.org/wiki/1973_Formula_One_season", "avg_year": 1973.0, "count": 1, "computed_val": -1972.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 1969 \u2192 1974", "line_num": 5, "original": "|> filter(year >= 1969)", "mutated": "|> filter(year >= 1974)"}], "difficulty": "hard", "domain": "formula_1__seasons", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"transactions_lots": [{"transaction_id": 3, "lot_id": 11}, {"transaction_id": 3, "lot_id": 8}, {"transaction_id": 2, "lot_id": 11}, {"transaction_id": 3, "lot_id": 14}, {"transaction_id": 12, "lot_id": 10}, {"transaction_id": 15, "lot_id": 10}, {"transaction_id": 10, "lot_id": 10}, {"transaction_id": 1, "lot_id": 1}, {"transaction_id": 1, "lot_id": 14}, {"transaction_id": 3, "lot_id": 4}, {"transaction_id": 14, "lot_id": 9}, {"transaction_id": 7, "lot_id": 1}, {"transaction_id": 12, "lot_id": 15}, {"transaction_id": 6, "lot_id": 3}, {"transaction_id": 2, "lot_id": 1}], "lots": [{"lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"lot_id": 2, "investor_id": 16, "lot_details": "z"}, {"lot_id": 3, "investor_id": 10, "lot_details": "s"}, {"lot_id": 4, "investor_id": 19, "lot_details": "s"}, {"lot_id": 5, "investor_id": 6, "lot_details": "q"}, {"lot_id": 6, "investor_id": 20, "lot_details": "d"}, {"lot_id": 7, "investor_id": 7, "lot_details": "m"}, {"lot_id": 8, "investor_id": 7, "lot_details": "h"}, {"lot_id": 9, "investor_id": 20, "lot_details": "z"}, {"lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"lot_id": 12, "investor_id": 19, "lot_details": "m"}, {"lot_id": 13, "investor_id": 7, "lot_details": "z"}, {"lot_id": 14, "investor_id": 6, "lot_details": "d"}, {"lot_id": 15, "investor_id": 1, "lot_details": "h"}]}, "correct_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\n-- Load lookup data\nlots = load(\"lots\")\n\nenriched = join(transactions_lots, lots, on: lot_id == lot_id)\n\nresult = enriched\n |> sort_by(transaction_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\n-- Load lookup data\nlots = load(\"lots\")\n\nenriched = join(transactions_lots, lots, on: tracking_share_transactions__transactions_lots == lot_id)\n\nresult = enriched\n |> sort_by(transaction_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"transaction_id": 15, "lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"transaction_id": 14, "lot_id": 9, "investor_id": 20, "lot_details": "z"}, {"transaction_id": 12, "lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"transaction_id": 12, "lot_id": 15, "investor_id": 1, "lot_details": "h"}, {"transaction_id": 10, "lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"transaction_id": 7, "lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"transaction_id": 6, "lot_id": 3, "investor_id": 10, "lot_details": "s"}, {"transaction_id": 3, "lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"transaction_id": 3, "lot_id": 8, "investor_id": 7, "lot_details": "h"}, {"transaction_id": 3, "lot_id": 14, "investor_id": 6, "lot_details": "d"}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'lot_id' \u2192 'tracking_share_transactions__transactions_lots'", "line_num": 7, "original": "enriched = join(transactions_lots, lots, on: lot_id == lot_id)", "mutated": "enriched = join(transactions_lots, lots, on: tracking_share_transactions__transactions_lots == lot_id)"}], "difficulty": "hard", "domain": "tracking_share_transactions__transactions_lots", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"room": [{"roomnumber": 101, "roomtype": "Single", "blockfloor": 1, "blockcode": 1, "unavailable": 0}, {"roomnumber": 102, "roomtype": "Single", "blockfloor": 1, "blockcode": 1, "unavailable": 0}, {"roomnumber": 103, "roomtype": "Single", "blockfloor": 1, "blockcode": 1, "unavailable": 0}, {"roomnumber": 111, "roomtype": "Single", "blockfloor": 1, "blockcode": 2, "unavailable": 0}, {"roomnumber": 112, "roomtype": "Single", "blockfloor": 1, "blockcode": 2, "unavailable": 1}, {"roomnumber": 113, "roomtype": "Single", "blockfloor": 1, "blockcode": 2, "unavailable": 0}, {"roomnumber": 121, "roomtype": "Single", "blockfloor": 1, "blockcode": 3, "unavailable": 0}, {"roomnumber": 122, "roomtype": "Single", "blockfloor": 1, "blockcode": 3, "unavailable": 0}, {"roomnumber": 123, "roomtype": "Single", "blockfloor": 1, "blockcode": 3, "unavailable": 0}, {"roomnumber": 201, "roomtype": "Single", "blockfloor": 2, "blockcode": 1, "unavailable": 1}, {"roomnumber": 202, "roomtype": "Single", "blockfloor": 2, "blockcode": 1, "unavailable": 0}, {"roomnumber": 203, "roomtype": "Single", "blockfloor": 2, "blockcode": 1, "unavailable": 0}, {"roomnumber": 211, "roomtype": "Single", "blockfloor": 2, "blockcode": 2, "unavailable": 0}, {"roomnumber": 212, "roomtype": "Single", "blockfloor": 2, "blockcode": 2, "unavailable": 0}, {"roomnumber": 213, "roomtype": "Single", "blockfloor": 2, "blockcode": 2, "unavailable": 1}, {"roomnumber": 221, "roomtype": "Single", "blockfloor": 2, "blockcode": 3, "unavailable": 0}, {"roomnumber": 222, "roomtype": "Single", "blockfloor": 2, "blockcode": 3, "unavailable": 0}, {"roomnumber": 223, "roomtype": "Single", "blockfloor": 2, "blockcode": 3, "unavailable": 0}, {"roomnumber": 301, "roomtype": "Single", "blockfloor": 3, "blockcode": 1, "unavailable": 0}, {"roomnumber": 302, "roomtype": "Single", "blockfloor": 3, "blockcode": 1, "unavailable": 1}, {"roomnumber": 303, "roomtype": "Single", "blockfloor": 3, "blockcode": 1, "unavailable": 0}, {"roomnumber": 311, "roomtype": "Single", "blockfloor": 3, "blockcode": 2, "unavailable": 0}, {"roomnumber": 312, "roomtype": "Single", "blockfloor": 3, "blockcode": 2, "unavailable": 0}, {"roomnumber": 313, "roomtype": "Single", "blockfloor": 3, "blockcode": 2, "unavailable": 0}, {"roomnumber": 321, "roomtype": "Single", "blockfloor": 3, "blockcode": 3, "unavailable": 1}, {"roomnumber": 322, "roomtype": "Single", "blockfloor": 3, "blockcode": 3, "unavailable": 0}, {"roomnumber": 323, "roomtype": "Single", "blockfloor": 3, "blockcode": 3, "unavailable": 0}, {"roomnumber": 401, "roomtype": "Single", "blockfloor": 4, "blockcode": 1, "unavailable": 0}, {"roomnumber": 402, "roomtype": "Single", "blockfloor": 4, "blockcode": 1, "unavailable": 1}, {"roomnumber": 403, "roomtype": "Single", "blockfloor": 4, "blockcode": 1, "unavailable": 0}, {"roomnumber": 411, "roomtype": "Single", "blockfloor": 4, "blockcode": 2, "unavailable": 0}, {"roomnumber": 412, "roomtype": "Single", "blockfloor": 4, "blockcode": 2, "unavailable": 0}, {"roomnumber": 413, "roomtype": "Single", "blockfloor": 4, "blockcode": 2, "unavailable": 0}, {"roomnumber": 421, "roomtype": "Single", "blockfloor": 4, "blockcode": 3, "unavailable": 1}, {"roomnumber": 422, "roomtype": "Single", "blockfloor": 4, "blockcode": 3, "unavailable": 0}, {"roomnumber": 423, "roomtype": "Single", "blockfloor": 4, "blockcode": 3, "unavailable": 0}], "stay": [{"stayid": 3215, "patient": 100000001, "room": 111, "staystart": "2008-05-01", "stayend": "2008-05-04"}, {"stayid": 3216, "patient": 100000003, "room": 123, "staystart": "2008-05-03", "stayend": "2008-05-14"}, {"stayid": 3217, "patient": 100000004, "room": 112, "staystart": "2008-05-02", "stayend": "2008-05-03"}]}, "correct_code": "-- Load hospital_1__room data\nroom = load(\"room\")\n\nfiltered_room = room\n |> filter(roomtype == \"Single\")\n\nsummary = filtered_room\n |> group_by(roomtype)\n |> aggregate(max_blockcode: max(blockcode), count: count())\n\nresult = summary\n |> sort_by(max_blockcode, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load hospital_1__room data\nroom = load(\"room\")\n\nfiltered_room = room\n |> filter(roomtype == \"Single\")\n\nsummary = filtered_room\n |> group_by(roomtype)\n |> aggregate(max_blockcode: sum(blockcode), count: count())\n\nresult = summary\n |> sort_by(max_blockcode, desc)\n |> take(5)\n\nemit result", "expected_output": [{"roomtype": "Single", "max_blockcode": 3, "count": 36}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'sum'", "line_num": 9, "original": "|> aggregate(max_blockcode: max(blockcode), count: count())", "mutated": "|> aggregate(max_blockcode: sum(blockcode), count: count())"}], "difficulty": "medium", "domain": "hospital_1__room", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"paragraphs": [{"paragraph_id": 7, "document_id": 2394, "paragraph_text": "Korea", "other_details": 0}, {"paragraph_id": 9, "document_id": 3, "paragraph_text": "Somalia", "other_details": 0}, {"paragraph_id": 65, "document_id": 50123, "paragraph_text": "Palestinian Territory", "other_details": 0}, {"paragraph_id": 241, "document_id": 651512, "paragraph_text": "Jersey", "other_details": 0}, {"paragraph_id": 3708, "document_id": 33930, "paragraph_text": "UK", "other_details": 0}, {"paragraph_id": 9946, "document_id": 385906526, "paragraph_text": "Fiji", "other_details": 0}, {"paragraph_id": 16615, "document_id": 80, "paragraph_text": "Japan", "other_details": 0}, {"paragraph_id": 1104059, "document_id": 3830, "paragraph_text": "Senegal", "other_details": 0}, {"paragraph_id": 243399026, "document_id": 651512, "paragraph_text": "Indonesia", "other_details": 0}, {"paragraph_id": 280120913, "document_id": 2394, "paragraph_text": "Ukraine", "other_details": 0}, {"paragraph_id": 510442723, "document_id": 2394, "paragraph_text": "Korea", "other_details": 0}, {"paragraph_id": 571212310, "document_id": 16514113, "paragraph_text": "Brazil", "other_details": 0}, {"paragraph_id": 608931827, "document_id": 80, "paragraph_text": "Micronesia", "other_details": 0}, {"paragraph_id": 765713812, "document_id": 16514113, "paragraph_text": "Ireland", "other_details": 0}, {"paragraph_id": 946335436, "document_id": 3540024, "paragraph_text": "Papua New Guinea", "other_details": 0}], "documents": [{"document_id": 0, "template_id": 7, "document_name": "Introduction of OS", "document_description": "n", "other_details": 0}, {"document_id": 1, "template_id": 25, "document_name": "Understanding DB", "document_description": "y", "other_details": 0}, {"document_id": 3, "template_id": 6, "document_name": "Summer Show", "document_description": "u", "other_details": 0}, {"document_id": 76, "template_id": 20, "document_name": "Robbin CV", "document_description": "y", "other_details": 0}, {"document_id": 80, "template_id": 14, "document_name": "Welcome to NY", "document_description": "h", "other_details": 0}, {"document_id": 82, "template_id": 11, "document_name": "Data base", "document_description": "w", "other_details": 0}, {"document_id": 2394, "template_id": 10, "document_name": "Customer reviews", "document_description": "y", "other_details": 0}, {"document_id": 3830, "template_id": 14, "document_name": "Do not panic", "document_description": "k", "other_details": 0}, {"document_id": 33930, "template_id": 1, "document_name": "How Google people work", "document_description": "z", "other_details": 0}, {"document_id": 50123, "template_id": 22, "document_name": "Learning French", "document_description": "r", "other_details": 0}, {"document_id": 651512, "template_id": 21, "document_name": "How to write a CV", "document_description": "f", "other_details": 0}, {"document_id": 801801, "template_id": 4, "document_name": "How to read a book", "document_description": "w", "other_details": 0}, {"document_id": 3540024, "template_id": 8, "document_name": "Palm reading", "document_description": "y", "other_details": 0}, {"document_id": 16514113, "template_id": 25, "document_name": "A history of Arts", "document_description": "h", "other_details": 0}, {"document_id": 385906526, "template_id": 11, "document_name": "About Korea", "document_description": "b", "other_details": 0}]}, "correct_code": "-- Load cre_Doc_Template_Mgt__paragraphs data\nparagraphs = load(\"paragraphs\")\n\nfiltered_paragraphs = paragraphs\n |> filter(paragraph_text == \"UK\")\n |> select(paragraph_id, paragraph_text, document_id)\n\n-- Load lookup data\ndocuments = load(\"documents\")\n\nenriched = join(filtered_paragraphs, documents, on: document_id == document_id)\n |> compute(computed_val: document_id - paragraph_id)\n\nresult = enriched\n |> sort_by(document_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load cre_Doc_Template_Mgt__paragraphs data\nparagraphs = load(\"paragraphs\")\n\nfiltered_paragraphs = paragraphs\n |> filter(UK == \"UK\")\n |> select(paragraph_id, paragraph_text, document_id)\n\n-- Load lookup data\ndocuments = load(\"documents\")\n\nenriched = join(filtered_paragraphs, documents, on: document_id == document_id)\n |> compute(computed_val: document_id - paragraph_id)\n\nresult = enriched\n |> sort_by(document_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"paragraph_id": 3708, "paragraph_text": "UK", "document_id": 33930, "template_id": 1, "document_name": "How Google people work", "document_description": "z", "other_details": 0, "computed_val": 30222}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'paragraph_text' \u2192 'UK'", "line_num": 5, "original": "|> filter(paragraph_text == \"UK\")", "mutated": "|> filter(UK == \"UK\")"}], "difficulty": "hard", "domain": "cre_Doc_Template_Mgt__paragraphs", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"characteristics": [{"characteristic_id": 1, "characteristic_type_code": "Grade", "characteristic_data_type": "numquam", "characteristic_name": "slow", "other_characteristic_details": 0}, {"characteristic_id": 2, "characteristic_type_code": "Grade", "characteristic_data_type": "doloribus", "characteristic_name": "fast", "other_characteristic_details": 0}, {"characteristic_id": 3, "characteristic_type_code": "Purity", "characteristic_data_type": "rem", "characteristic_name": "warm", "other_characteristic_details": 0}, {"characteristic_id": 4, "characteristic_type_code": "Grade", "characteristic_data_type": "aut", "characteristic_name": "hot", "other_characteristic_details": 0}, {"characteristic_id": 5, "characteristic_type_code": "Purity", "characteristic_data_type": "impedit", "characteristic_name": "hot", "other_characteristic_details": 0}, {"characteristic_id": 6, "characteristic_type_code": "Purity", "characteristic_data_type": "qui", "characteristic_name": "warm", "other_characteristic_details": 0}, {"characteristic_id": 7, "characteristic_type_code": "Grade", "characteristic_data_type": "et", "characteristic_name": "cool", "other_characteristic_details": 0}, {"characteristic_id": 8, "characteristic_type_code": "Grade", "characteristic_data_type": "dolores", "characteristic_name": "cool", "other_characteristic_details": 0}, {"characteristic_id": 9, "characteristic_type_code": "Grade", "characteristic_data_type": "quam", "characteristic_name": "cool", "other_characteristic_details": 0}, {"characteristic_id": 10, "characteristic_type_code": "Grade", "characteristic_data_type": "velit", "characteristic_name": "fast", "other_characteristic_details": 0}, {"characteristic_id": 11, "characteristic_type_code": "Purity", "characteristic_data_type": "at", "characteristic_name": "fast", "other_characteristic_details": 0}, {"characteristic_id": 12, "characteristic_type_code": "Grade", "characteristic_data_type": "totam", "characteristic_name": "error", "other_characteristic_details": 0}, {"characteristic_id": 13, "characteristic_type_code": "Purity", "characteristic_data_type": "mollitia", "characteristic_name": "slow", "other_characteristic_details": 0}, {"characteristic_id": 14, "characteristic_type_code": "Purity", "characteristic_data_type": "placeat", "characteristic_name": "slow", "other_characteristic_details": 0}, {"characteristic_id": 15, "characteristic_type_code": "Grade", "characteristic_data_type": "facere", "characteristic_name": "slow", "other_characteristic_details": 0}], "ref_characteristic_types": [{"characteristic_type_code": "Grade", "characteristic_type_description": "Grade"}, {"characteristic_type_code": "Purity", "characteristic_type_description": "Purity"}]}, "correct_code": "-- Load products_gen_characteristics__characteristics data\ncharacteristics = load(\"characteristics\")\n\nfiltered_characteristics = characteristics\n |> filter(characteristic_data_type == \"numquam\")\n |> select(characteristic_type_code, characteristic_name, characteristic_id)\n\nresult = filtered_characteristics\n |> sort_by(characteristic_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__characteristics data\ncharacteristics = load(\"characteristics\")\n\nfiltered_characteristics = characteristics\n |> filter(characteristic_data_type == \"numquam\")\n |> select(characteristic_type_code, characteristic_name, characteristic_id)\n\nresult = filtered_characteristics\n sort_by(characteristic_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"characteristic_type_code": "Grade", "characteristic_name": "slow", "characteristic_id": 1}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> sort_by(characteristic_id, desc)", "mutated": "sort_by(characteristic_id, desc)"}], "difficulty": "easy", "domain": "products_gen_characteristics__characteristics", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"participants_in_events": [{"event_id": 3, "participant_id": 26}, {"event_id": 3, "participant_id": 66}, {"event_id": 8, "participant_id": 86}, {"event_id": 13, "participant_id": 64}, {"event_id": 13, "participant_id": 90}, {"event_id": 16, "participant_id": 60}, {"event_id": 17, "participant_id": 37}, {"event_id": 17, "participant_id": 66}, {"event_id": 38, "participant_id": 66}, {"event_id": 40, "participant_id": 37}, {"event_id": 40, "participant_id": 86}, {"event_id": 57, "participant_id": 90}, {"event_id": 60, "participant_id": 26}, {"event_id": 80, "participant_id": 36}, {"event_id": 80, "participant_id": 66}, {"event_id": 80, "participant_id": 96}, {"event_id": 95, "participant_id": 63}, {"event_id": 96, "participant_id": 90}], "participants": [{"participant_id": 9, "participant_type_code": "Organizer", "participant_details": "Karlee Batz"}, {"participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"participant_id": 28, "participant_type_code": "Organizer", "participant_details": "Lupe Deckow"}, {"participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn"}, {"participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"participant_id": 38, "participant_type_code": "Organizer", "participant_details": "Macy Mayer DDS"}, {"participant_id": 60, "participant_type_code": "Participant", "participant_details": "Dewitt Walter"}, {"participant_id": 63, "participant_type_code": "Participant", "participant_details": "Prof. Michelle Maggio Jr."}, {"participant_id": 64, "participant_type_code": "Participant", "participant_details": "Dr. Jaydon Renner"}, {"participant_id": 66, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}, {"participant_id": 75, "participant_type_code": "Participant", "participant_details": "Berniece Weimann"}, {"participant_id": 86, "participant_type_code": "Organizer", "participant_details": "Neil Blick"}, {"participant_id": 90, "participant_type_code": "Participant", "participant_details": "Dedrick Ebert"}, {"participant_id": 96, "participant_type_code": "Organizer", "participant_details": "Miss Joyce Cremin"}, {"participant_id": 98, "participant_type_code": "Participant", "participant_details": "Dr. Kris Deckow"}]}, "correct_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n |> select(participant_id, event_id)\n\n-- Load lookup data\nparticipants = load(\"participants\")\n |> select(participant_id, participant_type_code, participant_details)\n\nenriched = join(participants_in_events, participants, on: participant_id == participant_id)\n\nresult = enriched\n |> sort_by(event_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n |> select(participant_id, event_id)\n\n-- Load lookup data\nparticipants = load(\"participants\")\n |> select(participant_id, participant_type_code, participant_details)\n\nenriched = join(participants_in_events, participants, on: participant_id == participant_id)\n\nresult = enriched\n |> sort_by(event_id, desc)\n |> take(7)\n\nemit result", "expected_output": [{"participant_id": 90, "event_id": 96, "participant_type_code": "Participant", "participant_details": "Dedrick Ebert"}, {"participant_id": 63, "event_id": 95, "participant_type_code": "Participant", "participant_details": "Prof. Michelle Maggio Jr."}, {"participant_id": 36, "event_id": 80, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn"}, {"participant_id": 66, "event_id": 80, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}, {"participant_id": 96, "event_id": 80, "participant_type_code": "Organizer", "participant_details": "Miss Joyce Cremin"}, {"participant_id": 26, "event_id": 60, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"participant_id": 90, "event_id": 57, "participant_type_code": "Participant", "participant_details": "Dedrick Ebert"}, {"participant_id": 37, "event_id": 40, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"participant_id": 86, "event_id": 40, "participant_type_code": "Organizer", "participant_details": "Neil Blick"}, {"participant_id": 66, "event_id": 38, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 8", "line_num": 13, "original": "|> take(10)", "mutated": "|> take(8)"}, {"category": "logic_bug", "description": "Off-by-one in take: 8 \u2192 7", "line_num": 13, "original": "|> take(8)", "mutated": "|> take(7)"}], "difficulty": "hard", "domain": "local_govt_in_alabama__participants_in_events", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "has_pet": [{"stuid": 1001, "petid": 2001}, {"stuid": 1002, "petid": 2002}, {"stuid": 1002, "petid": 2003}]}, "correct_code": "-- Load pets_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(fname == \"Jun\")\n\nsummary = filtered_student\n |> group_by(lname)\n |> aggregate(max_major: max(major), count: count())\n\nresult = summary\n |> sort_by(max_major, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load pets_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(fname == \"Jun\")\n\nsummary = filtered_student\n |> group_by(lname)\n |> aggregate(max_major: count(major), count: count())\n\nresult = summary\n |> sort_by(max_major, desc)\n |> take(5)\n\nemit result", "expected_output": [{"lname": "Han", "max_major": 100, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'count'", "line_num": 9, "original": "|> aggregate(max_major: max(major), count: count())", "mutated": "|> aggregate(max_major: count(major), count: count())"}], "difficulty": "easy", "domain": "pets_1__student", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"timed_status_of_things": [{"thing_id": 2, "date_and_date": "2016-05-27 23:33:34", "status_of_thing_code": "Open"}, {"thing_id": 2, "date_and_date": "2016-07-17 08:35:27", "status_of_thing_code": "Close"}, {"thing_id": 2, "date_and_date": "2017-06-19 02:59:21", "status_of_thing_code": "In Progress"}, {"thing_id": 10, "date_and_date": "2016-09-06 16:31:13", "status_of_thing_code": "Close"}, {"thing_id": 10, "date_and_date": "2016-11-14 17:30:51", "status_of_thing_code": "Open"}, {"thing_id": 14, "date_and_date": "2017-07-03 02:22:12", "status_of_thing_code": "In Progress"}, {"thing_id": 26, "date_and_date": "2016-04-10 06:32:15", "status_of_thing_code": "Close"}, {"thing_id": 26, "date_and_date": "2017-08-05 02:10:02", "status_of_thing_code": "In Progress"}, {"thing_id": 26, "date_and_date": "2018-02-04 02:44:39", "status_of_thing_code": "Close"}, {"thing_id": 35, "date_and_date": "2017-11-27 06:32:46", "status_of_thing_code": "In Progress"}, {"thing_id": 47, "date_and_date": "2016-04-02 00:57:17", "status_of_thing_code": "In Progress"}, {"thing_id": 47, "date_and_date": "2016-12-02 11:08:16", "status_of_thing_code": "Close"}, {"thing_id": 58, "date_and_date": "2017-05-31 00:52:33", "status_of_thing_code": "In Progress"}, {"thing_id": 80, "date_and_date": "2016-10-08 08:02:57", "status_of_thing_code": "Open"}, {"thing_id": 84, "date_and_date": "2017-12-28 16:05:08", "status_of_thing_code": "Open"}, {"thing_id": 85, "date_and_date": "2017-03-24 12:12:46", "status_of_thing_code": "Close"}, {"thing_id": 92, "date_and_date": "2016-11-24 12:44:00", "status_of_thing_code": "In Progress"}, {"thing_id": 92, "date_and_date": "2017-09-27 01:35:51", "status_of_thing_code": "Close"}], "things": [{"thing_id": 1, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 2, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 10, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 14, "organization_id": 10, "type_of_thing_code": "Furniture", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 26, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 35, "organization_id": 7, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 45, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 46, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 47, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 58, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 68, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 80, "organization_id": 8, "type_of_thing_code": "Furniture", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 84, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 85, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 92, "organization_id": 7, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}]}, "correct_code": "-- Load local_govt_and_lot__timed_status_of_things data\ntimed_status_of_things = load(\"timed_status_of_things\")\n\nfiltered_timed_status_of_things = timed_status_of_things\n |> filter(date_and_date == \"2017-06-19 02:59:21\")\n\nsummary = filtered_timed_status_of_things\n |> group_by(status_of_thing_code)\n |> aggregate(avg_thing_id: avg(thing_id), count: count())\n\nresult = summary\n |> sort_by(avg_thing_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__timed_status_of_things data\ntimed_status_of_things = load(\"timed_status_of_things\")\n\nfiltered_timed_status_of_things = timed_status_of_things\n |> filter(date_and_date != \"2017-06-19 02:59:21\")\n\nsummary = filtered_timed_status_of_things\n |> group_by(status_of_thing_code)\n |> aggregate(avg_thing_id: avg(thing_id), count: count())\n\nresult = summary\n |> sort_by(avg_thing_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"status_of_thing_code": "In Progress", "avg_thing_id": 2.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '!='", "line_num": 5, "original": "|> filter(date_and_date == \"2017-06-19 02:59:21\")", "mutated": "|> filter(date_and_date != \"2017-06-19 02:59:21\")"}], "difficulty": "medium", "domain": "local_govt_and_lot__timed_status_of_things", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"transactions_lots": [{"transaction_id": 3, "lot_id": 11}, {"transaction_id": 3, "lot_id": 8}, {"transaction_id": 2, "lot_id": 11}, {"transaction_id": 3, "lot_id": 14}, {"transaction_id": 12, "lot_id": 10}, {"transaction_id": 15, "lot_id": 10}, {"transaction_id": 10, "lot_id": 10}, {"transaction_id": 1, "lot_id": 1}, {"transaction_id": 1, "lot_id": 14}, {"transaction_id": 3, "lot_id": 4}, {"transaction_id": 14, "lot_id": 9}, {"transaction_id": 7, "lot_id": 1}, {"transaction_id": 12, "lot_id": 15}, {"transaction_id": 6, "lot_id": 3}, {"transaction_id": 2, "lot_id": 1}], "lots": [{"lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"lot_id": 2, "investor_id": 16, "lot_details": "z"}, {"lot_id": 3, "investor_id": 10, "lot_details": "s"}, {"lot_id": 4, "investor_id": 19, "lot_details": "s"}, {"lot_id": 5, "investor_id": 6, "lot_details": "q"}, {"lot_id": 6, "investor_id": 20, "lot_details": "d"}, {"lot_id": 7, "investor_id": 7, "lot_details": "m"}, {"lot_id": 8, "investor_id": 7, "lot_details": "h"}, {"lot_id": 9, "investor_id": 20, "lot_details": "z"}, {"lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"lot_id": 12, "investor_id": 19, "lot_details": "m"}, {"lot_id": 13, "investor_id": 7, "lot_details": "z"}, {"lot_id": 14, "investor_id": 6, "lot_details": "d"}, {"lot_id": 15, "investor_id": 1, "lot_details": "h"}]}, "correct_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\nfiltered_transactions_lots = transactions_lots\n |> filter(lot_id < 8)\n |> compute(computed_val: transaction_id * lot_id)\n\nresult = filtered_transactions_lots\n |> sort_by(lot_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\nfiltered_transactions_lots = transactions_lots\n |> filter(lot_id < 8)\n |> compute(computed_val: transaction_id * lot_id)\n\nresult = filtered_transactions_lots\n |> sort_by(lot_id, desc)\n |> take(2)\n\nemit result", "expected_output": [{"transaction_id": 3, "lot_id": 4, "computed_val": 12}, {"transaction_id": 6, "lot_id": 3, "computed_val": 18}, {"transaction_id": 1, "lot_id": 1, "computed_val": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 2", "line_num": 10, "original": "|> take(3)", "mutated": "|> take(2)"}], "difficulty": "hard", "domain": "tracking_share_transactions__transactions_lots", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"member_of": [{"facid": 7792, "dno": 600, "appt_type": "Primary"}, {"facid": 9210, "dno": 520, "appt_type": "Primary"}, {"facid": 9811, "dno": 550, "appt_type": "Primary"}, {"facid": 9643, "dno": 50, "appt_type": "Primary"}, {"facid": 9379, "dno": 520, "appt_type": "Primary"}, {"facid": 8918, "dno": 600, "appt_type": "Primary"}, {"facid": 7712, "dno": 600, "appt_type": "Primary"}, {"facid": 1121, "dno": 600, "appt_type": "Primary"}, {"facid": 9172, "dno": 600, "appt_type": "Primary"}, {"facid": 8423, "dno": 600, "appt_type": "Primary"}, {"facid": 1148, "dno": 600, "appt_type": "Primary"}, {"facid": 8741, "dno": 600, "appt_type": "Primary"}, {"facid": 3457, "dno": 600, "appt_type": "Primary"}, {"facid": 7723, "dno": 600, "appt_type": "Primary"}, {"facid": 8721, "dno": 600, "appt_type": "Primary"}, {"facid": 2192, "dno": 600, "appt_type": "Primary"}, {"facid": 8114, "dno": 600, "appt_type": "Primary"}, {"facid": 6112, "dno": 600, "appt_type": "Primary"}, {"facid": 9826, "dno": 600, "appt_type": "Primary"}, {"facid": 1193, "dno": 600, "appt_type": "Primary"}, {"facid": 1082, "dno": 600, "appt_type": "Primary"}, {"facid": 4230, "dno": 600, "appt_type": "Primary"}, {"facid": 8989, "dno": 600, "appt_type": "Secondary"}, {"facid": 7271, "dno": 600, "appt_type": "Secondary"}, {"facid": 8721, "dno": 520, "appt_type": "Secondary"}, {"facid": 8741, "dno": 50, "appt_type": "Secondary"}, {"facid": 7271, "dno": 50, "appt_type": "Secondary"}, {"facid": 6182, "dno": 550, "appt_type": "Primary"}, {"facid": 8772, "dno": 550, "appt_type": "Primary"}, {"facid": 2738, "dno": 550, "appt_type": "Primary"}, {"facid": 2881, "dno": 550, "appt_type": "Primary"}, {"facid": 9922, "dno": 550, "appt_type": "Primary"}, {"facid": 6541, "dno": 550, "appt_type": "Primary"}, {"facid": 8102, "dno": 550, "appt_type": "Primary"}, {"facid": 1177, "dno": 550, "appt_type": "Primary"}, {"facid": 9823, "dno": 550, "appt_type": "Primary"}, {"facid": 2311, "dno": 550, "appt_type": "Primary"}, {"facid": 2291, "dno": 550, "appt_type": "Primary"}, {"facid": 8122, "dno": 550, "appt_type": "Primary"}, {"facid": 8989, "dno": 50, "appt_type": "Primary"}, {"facid": 4432, "dno": 50, "appt_type": "Primary"}, {"facid": 5718, "dno": 50, "appt_type": "Primary"}, {"facid": 8791, "dno": 50, "appt_type": "Primary"}, {"facid": 9011, "dno": 50, "appt_type": "Primary"}, {"facid": 6910, "dno": 50, "appt_type": "Primary"}, {"facid": 8723, "dno": 520, "appt_type": "Primary"}, {"facid": 2028, "dno": 520, "appt_type": "Primary"}, {"facid": 8722, "dno": 520, "appt_type": "Primary"}, {"facid": 9191, "dno": 520, "appt_type": "Primary"}, {"facid": 1823, "dno": 520, "appt_type": "Primary"}, {"facid": 7134, "dno": 520, "appt_type": "Primary"}, {"facid": 9199, "dno": 520, "appt_type": "Primary"}, {"facid": 6925, "dno": 520, "appt_type": "Primary"}, {"facid": 7271, "dno": 520, "appt_type": "Primary"}, {"facid": 6191, "dno": 520, "appt_type": "Primary"}, {"facid": 2119, "dno": 520, "appt_type": "Primary"}, {"facid": 9514, "dno": 520, "appt_type": "Primary"}, {"facid": 7231, "dno": 520, "appt_type": "Primary"}, {"facid": 1172, "dno": 520, "appt_type": "Primary"}, {"facid": 8118, "dno": 520, "appt_type": "Primary"}, {"facid": 7506, "dno": 520, "appt_type": "Primary"}, {"facid": 6330, "dno": 520, "appt_type": "Primary"}, {"facid": 9824, "dno": 520, "appt_type": "Primary"}], "faculty": [{"facid": 1082, "lname": "Giuliano", "fname": "Mark", "rank": "Instructor", "sex": "M", "phone": 2424, "room": "224", "building": "NEB"}, {"facid": 1121, "lname": "Goodrich", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3593, "room": "219", "building": "NEB"}, {"facid": 1148, "lname": "Masson", "fname": "Gerald", "rank": "Professor", "sex": "M", "phone": 3402, "room": "224B", "building": "NEB"}, {"facid": 1172, "lname": "Runolfsson", "fname": "Thordur", "rank": "AssocProf", "sex": "M", "phone": 3121, "room": "119", "building": "Barton"}, {"facid": 1177, "lname": "Naiman", "fname": "Daniel", "rank": "Professor", "sex": "M", "phone": 3571, "room": "288", "building": "Krieger"}, {"facid": 1193, "lname": "Jones", "fname": "Stacey", "rank": "Instructor", "sex": "F", "phone": 3550, "room": "224", "building": "NEB"}, {"facid": 1823, "lname": "Davidson", "fname": "Frederic", "rank": "Professor", "sex": "M", "phone": 5629, "room": "119", "building": "Barton"}, {"facid": 2028, "lname": "Brody", "fname": "William", "rank": "Professor", "sex": "M", "phone": 6073, "room": "119", "building": "Barton"}, {"facid": 2119, "lname": "Meyer", "fname": "Gerard", "rank": "Professor", "sex": "M", "phone": 6350, "room": "119", "building": "Barton"}, {"facid": 2192, "lname": "Yarowsky", "fname": "David", "rank": "AsstProf", "sex": "M", "phone": 6587, "room": "324", "building": "NEB"}, {"facid": 2291, "lname": "Scheinerman", "fname": "Edward", "rank": "Professor", "sex": "M", "phone": 6654, "room": "288", "building": "Krieger"}, {"facid": 2311, "lname": "Priebe", "fname": "Carey", "rank": "AsstProf", "sex": "M", "phone": 6953, "room": "288", "building": "Krieger"}, {"facid": 2738, "lname": "Fill", "fname": "James", "rank": "Professor", "sex": "M", "phone": 8209, "room": "288", "building": "Krieger"}, {"facid": 2881, "lname": "Goldman", "fname": "Alan", "rank": "Professor", "sex": "M", "phone": 8335, "room": "288", "building": "Krieger"}, {"facid": 3457, "lname": "Smith", "fname": "Scott", "rank": "AssocProf", "sex": "M", "phone": 1035, "room": "318", "building": "NEB"}, {"facid": 4230, "lname": "Houlahan", "fname": "Joanne", "rank": "Instructor", "sex": "F", "phone": 1260, "room": "328", "building": "NEB"}, {"facid": 4432, "lname": "Burzio", "fname": "Luigi", "rank": "Professor", "sex": "M", "phone": 1813, "room": "288", "building": "Krieger"}, {"facid": 5718, "lname": "Frank", "fname": "Robert", "rank": "AsstProf", "sex": "M", "phone": 1751, "room": "288", "building": "Krieger"}, {"facid": 6112, "lname": "Beach", "fname": "Louis", "rank": "Instructor", "sex": "M", "phone": 1838, "room": "207", "building": "NEB"}, {"facid": 6182, "lname": "Cheng", "fname": "Cheng", "rank": "AsstProf", "sex": "M", "phone": 1856, "room": "288", "building": "Krieger"}, {"facid": 6191, "lname": "Kaplan", "fname": "Alexander", "rank": "Professor", "sex": "M", "phone": 1825, "room": "119", "building": "Barton"}, {"facid": 6330, "lname": "Byrne", "fname": "William", "rank": "Instructor", "sex": "M", "phone": 1691, "room": "119", "building": "Barton"}, {"facid": 6541, "lname": "Han", "fname": "Shih-Ping", "rank": "Professor", "sex": "M", "phone": 1914, "room": "288", "building": "Krieger"}, {"facid": 6910, "lname": "Smolensky", "fname": "Paul", "rank": "Professor", "sex": "M", "phone": 2072, "room": "288", "building": "Krieger"}, {"facid": 6925, "lname": "Iglesias", "fname": "Pablo", "rank": "AsstProf", "sex": "M", "phone": 2021, "room": "119", "building": "Barton"}, {"facid": 7134, "lname": "Goutsias", "fname": "John", "rank": "Professor", "sex": "M", "phone": 2184, "room": "119", "building": "Barton"}, {"facid": 7231, "lname": "Rugh", "fname": "Wilson", "rank": "Professor", "sex": "M", "phone": 2191, "room": "119", "building": "Barton"}, {"facid": 7271, "lname": "Jelinek", "fname": "Frederick", "rank": "Professor", "sex": "M", "phone": 2890, "room": "119", "building": "Barton"}, {"facid": 7506, "lname": "Westgate", "fname": "Charles", "rank": "Professor", "sex": "M", "phone": 2932, "room": "119", "building": "Barton"}, {"facid": 7712, "lname": "Awerbuch", "fname": "Baruch", "rank": "Professor", "sex": "M", "phone": 2105, "room": "220", "building": "NEB"}, {"facid": 7723, "lname": "Taylor", "fname": "Russell", "rank": "Professor", "sex": "M", "phone": 2435, "room": "317", "building": "NEB"}, {"facid": 7792, "lname": "Brill", "fname": "Eric", "rank": "AsstProf", "sex": "M", "phone": 2303, "room": "324B", "building": "NEB"}, {"facid": 8102, "lname": "James", "fname": "Lancelot", "rank": "AsstProf", "sex": "M", "phone": 2792, "room": "288", "building": "Krieger"}, {"facid": 8114, "lname": "Angelopoulou", "fname": "Ellie", "rank": "Instructor", "sex": "F", "phone": 2152, "room": "316", "building": "NEB"}, {"facid": 8118, "lname": "Weinert", "fname": "Howard", "rank": "Professor", "sex": "M", "phone": 3272, "room": "119", "building": "Barton"}, {"facid": 8122, "lname": "Wierman", "fname": "John", "rank": "Professor", "sex": "M", "phone": 3392, "room": "288", "building": "Krieger"}, {"facid": 8423, "lname": "Kumar", "fname": "Subodh", "rank": "AsstProf", "sex": "M", "phone": 2522, "room": "218", "building": "NEB"}, {"facid": 8721, "lname": "Wolff", "fname": "Lawrence", "rank": "AssocProf", "sex": "M", "phone": 2342, "room": "316", "building": "NEB"}, {"facid": 8722, "lname": "Cauwenberghs", "fname": "Gert", "rank": "AsstProf", "sex": "M", "phone": 1372, "room": "119", "building": "Barton"}, {"facid": 8723, "lname": "Andreou", "fname": "Andreas", "rank": "Professor", "sex": "M", "phone": 1402, "room": "119", "building": "Barton"}, {"facid": 8741, "lname": "Salzberg", "fname": "Steven", "rank": "AssocProf", "sex": "M", "phone": 2641, "room": "324A", "building": "NEB"}, {"facid": 8772, "lname": "Cowen", "fname": "Lenore", "rank": "AsstProf", "sex": "F", "phone": 2870, "room": "288", "building": "Krieger"}, {"facid": 8791, "lname": "McCloskey", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3440, "room": "288", "building": "Krieger"}, {"facid": 8918, "lname": "Amir", "fname": "Yair", "rank": "AsstProf", "sex": "M", "phone": 2672, "room": "308", "building": "NEB"}, {"facid": 8989, "lname": "Brent", "fname": "Michael", "rank": "AsstProf", "sex": "M", "phone": 9373, "room": "288", "building": "Krieger"}, {"facid": 9011, "lname": "Rapp", "fname": "Brenda", "rank": "AsstProf", "sex": "F", "phone": 2032, "room": "288", "building": "Krieger"}, {"facid": 9172, "lname": "Kosaraju", "fname": "Rao", "rank": "Professor", "sex": "M", "phone": 2757, "room": "319", "building": "NEB"}, {"facid": 9191, "lname": "Collins", "fname": "Oliver", "rank": "AssocProf", "sex": "M", "phone": 5427, "room": "119", "building": "Barton"}, {"facid": 9199, "lname": "Hughes", "fname": "Brian", "rank": "AssocProf", "sex": "M", "phone": 5666, "room": "119", "building": "Barton"}, {"facid": 9210, "lname": "Joseph", "fname": "Richard", "rank": "Professor", "sex": "M", "phone": 5996, "room": "119", "building": "Barton"}, {"facid": 9379, "lname": "Khurgin", "fname": "Jacob", "rank": "Professor", "sex": "M", "phone": 1060, "room": "119", "building": "Barton"}, {"facid": 9514, "lname": "Prince", "fname": "Jerry", "rank": "AssocProf", "sex": "M", "phone": 5106, "room": "119", "building": "Barton"}, {"facid": 9643, "lname": "Legendre", "fname": "Geraldine", "rank": "AssocProf", "sex": "F", "phone": 8972, "room": "288", "building": "Krieger"}, {"facid": 9811, "lname": "Wu", "fname": "Colin", "rank": "AsstProf", "sex": "M", "phone": 2906, "room": "288", "building": "Krieger"}, {"facid": 9823, "lname": "Pang", "fname": "Jong-Shi", "rank": "Professor", "sex": "M", "phone": 4366, "room": "288", "building": "Krieger"}, {"facid": 9824, "lname": "Glaser", "fname": "Robert", "rank": "Instructor", "sex": "M", "phone": 4396, "room": "119", "building": "Barton"}, {"facid": 9826, "lname": "Delcher", "fname": "Arthur", "rank": "Instructor", "sex": "M", "phone": 2956, "room": "329", "building": "NEB"}, {"facid": 9922, "lname": "Hall", "fname": "Leslie", "rank": "AsstProf", "sex": "F", "phone": 7332, "room": "288", "building": "Krieger"}]}, "correct_code": "-- Load college_3__member_of data\nmember_of = load(\"member_of\")\n\nfiltered_member_of = member_of\n |> filter(appt_type == \"Secondary\")\n |> filter(dno <= 145)\n\nsummary = filtered_member_of\n |> group_by(appt_type)\n |> aggregate(max_facid: max(facid), count: count())\n\nresult = summary\n |> sort_by(max_facid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_3__member_of data\nmember_of = load(\"member_of\")\n\nfiltered_member_of = member_of\n |> filter(appt_type <= \"Secondary\")\n |> filter(dno <= 145)\n\nsummary = filtered_member_of\n |> group_by(appt_type)\n |> aggregate(max_facid: count(facid), count: count())\n\nresult = summary\n |> sort_by(max_facid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"appt_type": "Secondary", "max_facid": 8741, "count": 2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'count'", "line_num": 10, "original": "|> aggregate(max_facid: max(facid), count: count())", "mutated": "|> aggregate(max_facid: count(facid), count: count())"}, {"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(appt_type == \"Secondary\")", "mutated": "|> filter(appt_type <= \"Secondary\")"}], "difficulty": "medium", "domain": "college_3__member_of", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"room": [{"roomnumber": 101, "roomtype": "Single", "blockfloor": 1, "blockcode": 1, "unavailable": 0}, {"roomnumber": 102, "roomtype": "Single", "blockfloor": 1, "blockcode": 1, "unavailable": 0}, {"roomnumber": 103, "roomtype": "Single", "blockfloor": 1, "blockcode": 1, "unavailable": 0}, {"roomnumber": 111, "roomtype": "Single", "blockfloor": 1, "blockcode": 2, "unavailable": 0}, {"roomnumber": 112, "roomtype": "Single", "blockfloor": 1, "blockcode": 2, "unavailable": 1}, {"roomnumber": 113, "roomtype": "Single", "blockfloor": 1, "blockcode": 2, "unavailable": 0}, {"roomnumber": 121, "roomtype": "Single", "blockfloor": 1, "blockcode": 3, "unavailable": 0}, {"roomnumber": 122, "roomtype": "Single", "blockfloor": 1, "blockcode": 3, "unavailable": 0}, {"roomnumber": 123, "roomtype": "Single", "blockfloor": 1, "blockcode": 3, "unavailable": 0}, {"roomnumber": 201, "roomtype": "Single", "blockfloor": 2, "blockcode": 1, "unavailable": 1}, {"roomnumber": 202, "roomtype": "Single", "blockfloor": 2, "blockcode": 1, "unavailable": 0}, {"roomnumber": 203, "roomtype": "Single", "blockfloor": 2, "blockcode": 1, "unavailable": 0}, {"roomnumber": 211, "roomtype": "Single", "blockfloor": 2, "blockcode": 2, "unavailable": 0}, {"roomnumber": 212, "roomtype": "Single", "blockfloor": 2, "blockcode": 2, "unavailable": 0}, {"roomnumber": 213, "roomtype": "Single", "blockfloor": 2, "blockcode": 2, "unavailable": 1}, {"roomnumber": 221, "roomtype": "Single", "blockfloor": 2, "blockcode": 3, "unavailable": 0}, {"roomnumber": 222, "roomtype": "Single", "blockfloor": 2, "blockcode": 3, "unavailable": 0}, {"roomnumber": 223, "roomtype": "Single", "blockfloor": 2, "blockcode": 3, "unavailable": 0}, {"roomnumber": 301, "roomtype": "Single", "blockfloor": 3, "blockcode": 1, "unavailable": 0}, {"roomnumber": 302, "roomtype": "Single", "blockfloor": 3, "blockcode": 1, "unavailable": 1}, {"roomnumber": 303, "roomtype": "Single", "blockfloor": 3, "blockcode": 1, "unavailable": 0}, {"roomnumber": 311, "roomtype": "Single", "blockfloor": 3, "blockcode": 2, "unavailable": 0}, {"roomnumber": 312, "roomtype": "Single", "blockfloor": 3, "blockcode": 2, "unavailable": 0}, {"roomnumber": 313, "roomtype": "Single", "blockfloor": 3, "blockcode": 2, "unavailable": 0}, {"roomnumber": 321, "roomtype": "Single", "blockfloor": 3, "blockcode": 3, "unavailable": 1}, {"roomnumber": 322, "roomtype": "Single", "blockfloor": 3, "blockcode": 3, "unavailable": 0}, {"roomnumber": 323, "roomtype": "Single", "blockfloor": 3, "blockcode": 3, "unavailable": 0}, {"roomnumber": 401, "roomtype": "Single", "blockfloor": 4, "blockcode": 1, "unavailable": 0}, {"roomnumber": 402, "roomtype": "Single", "blockfloor": 4, "blockcode": 1, "unavailable": 1}, {"roomnumber": 403, "roomtype": "Single", "blockfloor": 4, "blockcode": 1, "unavailable": 0}, {"roomnumber": 411, "roomtype": "Single", "blockfloor": 4, "blockcode": 2, "unavailable": 0}, {"roomnumber": 412, "roomtype": "Single", "blockfloor": 4, "blockcode": 2, "unavailable": 0}, {"roomnumber": 413, "roomtype": "Single", "blockfloor": 4, "blockcode": 2, "unavailable": 0}, {"roomnumber": 421, "roomtype": "Single", "blockfloor": 4, "blockcode": 3, "unavailable": 1}, {"roomnumber": 422, "roomtype": "Single", "blockfloor": 4, "blockcode": 3, "unavailable": 0}, {"roomnumber": 423, "roomtype": "Single", "blockfloor": 4, "blockcode": 3, "unavailable": 0}], "stay": [{"stayid": 3215, "patient": 100000001, "room": 111, "staystart": "2008-05-01", "stayend": "2008-05-04"}, {"stayid": 3216, "patient": 100000003, "room": 123, "staystart": "2008-05-03", "stayend": "2008-05-14"}, {"stayid": 3217, "patient": 100000004, "room": 112, "staystart": "2008-05-02", "stayend": "2008-05-03"}]}, "correct_code": "-- Load hospital_1__room data\nroom = load(\"room\")\n\nfiltered_room = room\n |> filter(roomtype == \"Single\")\n |> filter(roomnumber < 145)\n\nsummary = filtered_room\n |> group_by(roomtype)\n |> aggregate(max_unavailable: max(unavailable), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load hospital_1__room data\nroom = load(\"room\")\n\nfiltered_room = room\n |> filter(roomtype == \"Single\")\n |> filter(roomnumber < 145)\n\nsummary = filtered_room\n |> group_by(roomtype)\n |> aggreate(max_unavailable: count(unavailable), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"roomtype": "Single", "max_unavailable": 1, "count": 9}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'aggregate' \u2192 'aggreate'", "line_num": 10, "original": "|> aggregate(max_unavailable: max(unavailable), count: count())", "mutated": "|> aggreate(max_unavailable: max(unavailable), count: count())"}, {"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'count'", "line_num": 10, "original": "|> aggreate(max_unavailable: max(unavailable), count: count())", "mutated": "|> aggreate(max_unavailable: count(unavailable), count: count())"}], "difficulty": "easy", "domain": "hospital_1__room", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"teaches": [{"id": "34175", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "3199", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "6569", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001}, {"id": "28097", "course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "22591", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "90376", "course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008}, {"id": "3199", "course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "34175", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "34175", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "79081", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "80759", "course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "22591", "course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "22591", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003}, {"id": "74420", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "73623", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "6569", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002}, {"id": "95709", "course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "36897", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "74420", "course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002}, {"id": "77346", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "79081", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "6569", "course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008}, {"id": "6569", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004}, {"id": "41930", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "79081", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003}, {"id": "77346", "course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "4233", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "99052", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009}, {"id": "95709", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "63287", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "28097", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "19368", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "42782", "course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002}, {"id": "74420", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "41930", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004}, {"id": "6569", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "6569", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006}, {"id": "77346", "course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "3335", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "43779", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "48507", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "99052", "course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "22591", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "25946", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "6569", "course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "99052", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "22591", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009}, {"id": "77346", "course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "36897", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "99052", "course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008}, {"id": "19368", "course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001}, {"id": "36897", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "22591", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004}, {"id": "95709", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "3335", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "99052", "course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "43779", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "28400", "course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "81991", "course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "48570", "course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010}, {"id": "3199", "course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "74420", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "81991", "course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001}, {"id": "14365", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "74420", "course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "99052", "course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "43779", "course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002}, {"id": "79081", "course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002}, {"id": "99052", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001}, {"id": "50330", "course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007}, {"id": "36897", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002}, {"id": "77346", "course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "14365", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "90643", "course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "77346", "course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010}, {"id": "6569", "course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "43779", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "74420", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "6569", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "22591", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "63287", "course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "79081", "course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "19368", "course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "3199", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002}, {"id": "36897", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "41930", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "22591", "course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "22591", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "15347", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001}, {"id": "99052", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "22591", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "22591", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "22591", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006}, {"id": "95709", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006}, {"id": "65931", "course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "22591", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "99052", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "79081", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "28400", "course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009}, {"id": "6569", "course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003}], "section": [{"course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}, {"course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Gates", "room_number": "314", "time_slot_id": "K"}, {"course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Whitman", "room_number": "434", "time_slot_id": "O"}, {"course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "B"}, {"course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Fairchild", "room_number": "145", "time_slot_id": "D"}, {"course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Alumni", "room_number": "547", "time_slot_id": "J"}, {"course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Saucon", "room_number": "113", "time_slot_id": "J"}, {"course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "building": "Whitman", "room_number": "434", "time_slot_id": "F"}, {"course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Drown", "room_number": "757", "time_slot_id": "D"}, {"course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Power", "room_number": "717", "time_slot_id": "D"}, {"course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "G"}, {"course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "K"}, {"course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "I"}, {"course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Main", "room_number": "45", "time_slot_id": "L"}, {"course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Bronfman", "room_number": "700", "time_slot_id": "N"}, {"course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Saucon", "room_number": "180", "time_slot_id": "M"}, {"course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "113", "time_slot_id": "O"}, {"course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Taylor", "room_number": "812", "time_slot_id": "O"}, {"course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "N"}, {"course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Saucon", "room_number": "844", "time_slot_id": "O"}, {"course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Saucon", "room_number": "180", "time_slot_id": "P"}, {"course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Whitman", "room_number": "134", "time_slot_id": "K"}, {"course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lamberton", "room_number": "134", "time_slot_id": "G"}, {"course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Main", "room_number": "45", "time_slot_id": "K"}, {"course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Saucon", "room_number": "113", "time_slot_id": "K"}, {"course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "D"}, {"course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Fairchild", "room_number": "145", "time_slot_id": "I"}, {"course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "143", "time_slot_id": "H"}, {"course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lambeau", "room_number": "348", "time_slot_id": "J"}, {"course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "L"}, {"course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Alumni", "room_number": "143", "time_slot_id": "O"}, {"course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "183", "time_slot_id": "A"}, {"course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Alumni", "room_number": "547", "time_slot_id": "G"}, {"course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "H"}, {"course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Nassau", "room_number": "45", "time_slot_id": "F"}, {"course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lamberton", "room_number": "143", "time_slot_id": "I"}, {"course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "D"}, {"course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "M"}, {"course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Stabler", "room_number": "105", "time_slot_id": "F"}, {"course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Chandler", "room_number": "804", "time_slot_id": "D"}, {"course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Garfield", "room_number": "119", "time_slot_id": "A"}, {"course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "D"}, {"course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "building": "Gates", "room_number": "707", "time_slot_id": "K"}, {"course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "G"}, {"course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Gates", "room_number": "314", "time_slot_id": "A"}, {"course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "M"}, {"course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "D"}, {"course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "C"}, {"course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Gates", "room_number": "707", "time_slot_id": "E"}, {"course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Chandler", "room_number": "375", "time_slot_id": "C"}, {"course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Polya", "room_number": "808", "time_slot_id": "B"}, {"course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Alumni", "room_number": "547", "time_slot_id": "A"}, {"course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "P"}, {"course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "E"}, {"course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Lamberton", "room_number": "143", "time_slot_id": "B"}, {"course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "E"}, {"course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Nassau", "room_number": "45", "time_slot_id": "L"}, {"course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "building": "Bronfman", "room_number": "700", "time_slot_id": "L"}, {"course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Gates", "room_number": "707", "time_slot_id": "F"}, {"course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "B"}, {"course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Whitman", "room_number": "434", "time_slot_id": "H"}, {"course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "M"}, {"course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Drown", "room_number": "757", "time_slot_id": "C"}, {"course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "812", "time_slot_id": "C"}, {"course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Rathbone", "room_number": "261", "time_slot_id": "E"}, {"course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "building": "Main", "room_number": "425", "time_slot_id": "O"}, {"course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "A"}, {"course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Power", "room_number": "972", "time_slot_id": "I"}, {"course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "building": "Power", "room_number": "717", "time_slot_id": "L"}, {"course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "D"}, {"course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Drown", "room_number": "757", "time_slot_id": "L"}, {"course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Taylor", "room_number": "812", "time_slot_id": "I"}, {"course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Chandler", "room_number": "375", "time_slot_id": "D"}, {"course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Power", "room_number": "717", "time_slot_id": "P"}, {"course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Taylor", "room_number": "812", "time_slot_id": "P"}, {"course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "building": "Stabler", "room_number": "105", "time_slot_id": "J"}, {"course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Power", "room_number": "972", "time_slot_id": "D"}]}, "correct_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(course_id == \"852\")\n |> filter(year >= 2005)\n\nsummary = filtered_teaches\n |> group_by(id)\n |> aggregate(min_year: min(year), count: count())\n |> compute(computed_val: count + min_year)\n\nresult = summary\n |> sort_by(min_year, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(course_id == \"852\")\n |> filter(year >= 2005)\n\nsummary = filtered_teaches\n |> group_by(id)\n |> aggregate(computed_val: min(year), count: count())\n |> compute(computed_val: count + min_year)\n\nresult = summary\n |> sort_by(min_year, asc)\n |> take(5)\n\nemit result", "expected_output": [{"id": "63287", "min_year": 2008, "count": 1, "computed_val": 2009}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'min_year' \u2192 'computed_val'", "line_num": 10, "original": "|> aggregate(min_year: min(year), count: count())", "mutated": "|> aggregate(computed_val: min(year), count: count())"}], "difficulty": "medium", "domain": "college_2__teaches", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"takes": [{"id": "65901", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "24932", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B-"}, {"id": "61332", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "73492", "course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A "}, {"id": "65715", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B+"}, {"id": "58300", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "760", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "69730", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A "}, {"id": "94836", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "49391", "course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "48850", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C-"}, {"id": "68999", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A+"}, {"id": "53469", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C "}, {"id": "74016", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A-"}, {"id": "49073", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "C-"}, {"id": "52866", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "83314", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A "}, {"id": "70359", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A-"}, {"id": "88993", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C+"}, {"id": "97042", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A-"}, {"id": "33460", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C+"}, {"id": "81207", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A+"}, {"id": "68010", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "A+"}, {"id": "15517", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A+"}, {"id": "8957", "course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "8986", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A "}, {"id": "7956", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C "}, {"id": "792", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "A-"}, {"id": "84189", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B-"}, {"id": "92659", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "C "}, {"id": "22198", "course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "8957", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B "}, {"id": "36244", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A-"}, {"id": "97658", "course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "A "}, {"id": "89104", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "5393", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "80248", "course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B-"}, {"id": "30222", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "64155", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "A+"}, {"id": "99660", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A "}, {"id": "8517", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B-"}, {"id": "31820", "course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "grade": "B-"}, {"id": "46769", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "43505", "course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A+"}, {"id": "79589", "course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "grade": "A "}, {"id": "70235", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "11126", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "27366", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A-"}, {"id": "3576", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "3127", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B "}, {"id": "39619", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "33651", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C-"}, {"id": "62520", "course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C-"}, {"id": "86573", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B "}, {"id": "792", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B-"}, {"id": "27528", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B "}, {"id": "52945", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "37103", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C+"}, {"id": "11126", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "62152", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "3127", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B "}, {"id": "2848", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "A "}, {"id": "20985", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "69628", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B "}, {"id": "78572", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C "}, {"id": "60366", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A "}, {"id": "52741", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "72501", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "5250", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C-"}, {"id": "38013", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "C "}, {"id": "88417", "course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "grade": "A-"}, {"id": "2286", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A "}, {"id": "15083", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "336", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A-"}, {"id": "64934", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "A-"}, {"id": "499", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C-"}, {"id": "56598", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C-"}, {"id": "46074", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C-"}, {"id": "47627", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "85063", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "A+"}, {"id": "43032", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "34055", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "16250", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B+"}, {"id": "16907", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "A "}, {"id": "66356", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B+"}, {"id": "3335", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C "}, {"id": "72501", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C-"}, {"id": "18583", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "53152", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "grade": "C-"}, {"id": "17924", "course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "grade": "A+"}, {"id": "77729", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "B+"}, {"id": "4248", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "46106", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C-"}, {"id": "14621", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "grade": "C-"}, {"id": "14829", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "50658", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B "}, {"id": "44706", "course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C-"}, {"id": "92949", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C "}, {"id": "66969", "course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "grade": "C-"}, {"id": "97658", "course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "17607", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "52876", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "A "}, {"id": "56058", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "B-"}, {"id": "15883", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "99271", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "C-"}, {"id": "67560", "course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "grade": "B "}, {"id": "85063", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C "}, {"id": "7287", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B-"}, {"id": "35462", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "49450", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "78922", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "B+"}, {"id": "94569", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "1018", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "32245", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "51093", "course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C-"}, {"id": "29390", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "B+"}, {"id": "47379", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "10204", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "90381", "course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "grade": "C-"}, {"id": "36926", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B "}, {"id": "70688", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A "}, {"id": "54728", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "15070", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "52741", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A "}, {"id": "79469", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "C+"}, {"id": "79446", "course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A+"}, {"id": "44551", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C-"}, {"id": "83622", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A+"}, {"id": "64196", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "A "}, {"id": "88140", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C-"}, {"id": "28361", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "51008", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B+"}, {"id": "1110", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "96134", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "C-"}, {"id": "98830", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "14874", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "23270", "course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "993", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "B-"}, {"id": "19791", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A-"}, {"id": "57083", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B "}, {"id": "72528", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A+"}, {"id": "95953", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C+"}, {"id": "35357", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "62520", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B "}, {"id": "50583", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "B "}, {"id": "93354", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "A "}, {"id": "55857", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B+"}, {"id": "53048", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "89414", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "99710", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "A+"}, {"id": "95852", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C-"}, {"id": "84702", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "82918", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C-"}, {"id": "70452", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C "}, {"id": "38271", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "67425", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "78892", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "79205", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "A-"}, {"id": "42298", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "83836", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B-"}, {"id": "56598", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A+"}, {"id": "34322", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "56755", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "grade": "C+"}, {"id": "68248", "course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A-"}, {"id": "36845", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C+"}, {"id": "48660", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A-"}, {"id": "91799", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "89551", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "B+"}, {"id": "87965", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C "}, {"id": "12683", "course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C-"}, {"id": "87439", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A "}, {"id": "16467", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "C-"}, {"id": "49701", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "B-"}, {"id": "37350", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "B+"}, {"id": "42843", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C "}, {"id": "94766", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "grade": "B "}, {"id": "65676", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A "}, {"id": "27094", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "12214", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "C-"}, {"id": "81566", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C+"}, {"id": "37101", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A "}, {"id": "18709", "course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "A+"}, {"id": "86934", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C-"}, {"id": "99660", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "41890", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A+"}, {"id": "83592", "course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B+"}, {"id": "37219", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "B "}, {"id": "88302", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "A-"}, {"id": "75040", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C+"}, {"id": "36052", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "A-"}, {"id": "72186", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A+"}, {"id": "76759", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C+"}, {"id": "27804", "course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "99189", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "77898", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "47001", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "3639", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "80912", "course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A "}, {"id": "52371", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "99719", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B-"}], "section": [{"course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}, {"course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Gates", "room_number": "314", "time_slot_id": "K"}, {"course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Whitman", "room_number": "434", "time_slot_id": "O"}, {"course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "B"}, {"course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Fairchild", "room_number": "145", "time_slot_id": "D"}, {"course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Alumni", "room_number": "547", "time_slot_id": "J"}, {"course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Saucon", "room_number": "113", "time_slot_id": "J"}, {"course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "building": "Whitman", "room_number": "434", "time_slot_id": "F"}, {"course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Drown", "room_number": "757", "time_slot_id": "D"}, {"course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Power", "room_number": "717", "time_slot_id": "D"}, {"course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "G"}, {"course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "K"}, {"course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "I"}, {"course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Main", "room_number": "45", "time_slot_id": "L"}, {"course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Bronfman", "room_number": "700", "time_slot_id": "N"}, {"course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Saucon", "room_number": "180", "time_slot_id": "M"}, {"course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "113", "time_slot_id": "O"}, {"course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Taylor", "room_number": "812", "time_slot_id": "O"}, {"course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "N"}, {"course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Saucon", "room_number": "844", "time_slot_id": "O"}, {"course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Saucon", "room_number": "180", "time_slot_id": "P"}, {"course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Whitman", "room_number": "134", "time_slot_id": "K"}, {"course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lamberton", "room_number": "134", "time_slot_id": "G"}, {"course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Main", "room_number": "45", "time_slot_id": "K"}, {"course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Saucon", "room_number": "113", "time_slot_id": "K"}, {"course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "D"}, {"course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Fairchild", "room_number": "145", "time_slot_id": "I"}, {"course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "143", "time_slot_id": "H"}, {"course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lambeau", "room_number": "348", "time_slot_id": "J"}, {"course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "L"}, {"course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Alumni", "room_number": "143", "time_slot_id": "O"}, {"course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "183", "time_slot_id": "A"}, {"course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Alumni", "room_number": "547", "time_slot_id": "G"}, {"course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "H"}, {"course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Nassau", "room_number": "45", "time_slot_id": "F"}, {"course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lamberton", "room_number": "143", "time_slot_id": "I"}, {"course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "D"}, {"course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "M"}, {"course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Stabler", "room_number": "105", "time_slot_id": "F"}, {"course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Chandler", "room_number": "804", "time_slot_id": "D"}, {"course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Garfield", "room_number": "119", "time_slot_id": "A"}, {"course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "D"}, {"course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "building": "Gates", "room_number": "707", "time_slot_id": "K"}, {"course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "G"}, {"course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Gates", "room_number": "314", "time_slot_id": "A"}, {"course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "M"}, {"course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "D"}, {"course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "C"}, {"course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Gates", "room_number": "707", "time_slot_id": "E"}, {"course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Chandler", "room_number": "375", "time_slot_id": "C"}, {"course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Polya", "room_number": "808", "time_slot_id": "B"}, {"course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Alumni", "room_number": "547", "time_slot_id": "A"}, {"course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "P"}, {"course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "E"}, {"course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Lamberton", "room_number": "143", "time_slot_id": "B"}, {"course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "E"}, {"course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Nassau", "room_number": "45", "time_slot_id": "L"}, {"course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "building": "Bronfman", "room_number": "700", "time_slot_id": "L"}, {"course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Gates", "room_number": "707", "time_slot_id": "F"}, {"course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "B"}, {"course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Whitman", "room_number": "434", "time_slot_id": "H"}, {"course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "M"}, {"course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Drown", "room_number": "757", "time_slot_id": "C"}, {"course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "812", "time_slot_id": "C"}, {"course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Rathbone", "room_number": "261", "time_slot_id": "E"}, {"course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "building": "Main", "room_number": "425", "time_slot_id": "O"}, {"course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "A"}, {"course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Power", "room_number": "972", "time_slot_id": "I"}, {"course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "building": "Power", "room_number": "717", "time_slot_id": "L"}, {"course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "D"}, {"course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Drown", "room_number": "757", "time_slot_id": "L"}, {"course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Taylor", "room_number": "812", "time_slot_id": "I"}, {"course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Chandler", "room_number": "375", "time_slot_id": "D"}, {"course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Power", "room_number": "717", "time_slot_id": "P"}, {"course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Taylor", "room_number": "812", "time_slot_id": "P"}, {"course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "building": "Stabler", "room_number": "105", "time_slot_id": "J"}, {"course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Power", "room_number": "972", "time_slot_id": "D"}]}, "correct_code": "-- Load college_2__takes data\ntakes = load(\"takes\")\n |> select(id, course_id, grade, year)\n\nresult = takes\n |> sort_by(year, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_2__takes data\ntakes = load(\"takes\")\n |> select(id, course_id, grade, year)\n\nresult = takes\n |> sort_by(year, asc)\n |> take(5)\n\nemit result", "expected_output": [{"id": "65715", "course_id": "843", "grade": "B+", "year": 2010}, {"id": "69730", "course_id": "313", "grade": "A ", "year": 2010}, {"id": "88993", "course_id": "313", "grade": "C+", "year": 2010}, {"id": "7956", "course_id": "692", "grade": "C ", "year": 2010}, {"id": "27366", "course_id": "443", "grade": "A-", "year": 2010}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 6, "original": "|> sort_by(year, desc)", "mutated": "|> sort_by(year, asc)"}], "difficulty": "medium", "domain": "college_2__takes", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"order_deliveries": [{"location_code": "27 City Rd", "actual_order_id": 11, "delivery_status_code": "Ready", "driver_employee_id": 6, "truck_id": 11, "delivery_date": "2018-03-21 00:57:22"}, {"location_code": "27 City Rd", "actual_order_id": 1, "delivery_status_code": "On Road", "driver_employee_id": 4, "truck_id": 10, "delivery_date": "2018-02-26 01:32:49"}, {"location_code": "27 City Rd", "actual_order_id": 3, "delivery_status_code": "Ready", "driver_employee_id": 1, "truck_id": 2, "delivery_date": "2018-03-08 17:17:12"}, {"location_code": "73 Nancy Av", "actual_order_id": 2, "delivery_status_code": "Delivered", "driver_employee_id": 12, "truck_id": 10, "delivery_date": "2018-03-17 19:42:08"}, {"location_code": "73 Nancy Av", "actual_order_id": 2, "delivery_status_code": "On Road", "driver_employee_id": 1, "truck_id": 6, "delivery_date": "2018-03-05 03:03:24"}, {"location_code": "34 Benz St", "actual_order_id": 14, "delivery_status_code": "Delivered", "driver_employee_id": 11, "truck_id": 6, "delivery_date": "2018-03-12 20:45:27"}, {"location_code": "73 Nancy Av", "actual_order_id": 6, "delivery_status_code": "On Road", "driver_employee_id": 11, "truck_id": 11, "delivery_date": "2018-03-22 22:09:56"}, {"location_code": "34 Benz St", "actual_order_id": 6, "delivery_status_code": "Delivered", "driver_employee_id": 2, "truck_id": 10, "delivery_date": "2018-03-06 22:39:17"}, {"location_code": "34 Benz St", "actual_order_id": 5, "delivery_status_code": "Delivered", "driver_employee_id": 14, "truck_id": 6, "delivery_date": "2018-03-02 09:03:13"}, {"location_code": "73 Nancy Av", "actual_order_id": 8, "delivery_status_code": "Ready", "driver_employee_id": 13, "truck_id": 4, "delivery_date": "2018-03-17 09:09:06"}, {"location_code": "58 Roof Av", "actual_order_id": 9, "delivery_status_code": "Ready", "driver_employee_id": 3, "truck_id": 9, "delivery_date": "2018-02-26 13:22:53"}, {"location_code": "58 Roof Av", "actual_order_id": 5, "delivery_status_code": "Ready", "driver_employee_id": 8, "truck_id": 1, "delivery_date": "2018-03-20 20:36:44"}, {"location_code": "58 Roof Av", "actual_order_id": 9, "delivery_status_code": "Ready", "driver_employee_id": 14, "truck_id": 5, "delivery_date": "2018-03-14 05:16:17"}, {"location_code": "58 Roof Av", "actual_order_id": 10, "delivery_status_code": "Ready", "driver_employee_id": 13, "truck_id": 11, "delivery_date": "2018-03-18 02:35:08"}, {"location_code": "34 Benz St", "actual_order_id": 4, "delivery_status_code": "On Road", "driver_employee_id": 1, "truck_id": 2, "delivery_date": "2018-03-01 00:50:45"}], "trucks": [{"truck_id": 1, "truck_licence_number": "58110", "truck_details": "Frida"}, {"truck_id": 2, "truck_licence_number": "33822", "truck_details": "Randy"}, {"truck_id": 3, "truck_licence_number": "17106", "truck_details": "Laverna"}, {"truck_id": 4, "truck_licence_number": "24474", "truck_details": "Kaya"}, {"truck_id": 5, "truck_licence_number": "63359", "truck_details": "Queen"}, {"truck_id": 6, "truck_licence_number": "25232", "truck_details": "Deon"}, {"truck_id": 7, "truck_licence_number": "92426", "truck_details": "Stacy"}, {"truck_id": 8, "truck_licence_number": "69863", "truck_details": "Rebeka"}, {"truck_id": 9, "truck_licence_number": "78683", "truck_details": "Bud"}, {"truck_id": 10, "truck_licence_number": "47865", "truck_details": "Holly"}, {"truck_id": 11, "truck_licence_number": "49160", "truck_details": "Rosamond"}, {"truck_id": 12, "truck_licence_number": "32054", "truck_details": "Ricky"}, {"truck_id": 13, "truck_licence_number": "87695", "truck_details": "Joanny"}, {"truck_id": 14, "truck_licence_number": "75871", "truck_details": "Luisa"}, {"truck_id": 15, "truck_licence_number": "89343", "truck_details": "Efren"}]}, "correct_code": "-- Load customer_deliveries__order_deliveries data\norder_deliveries = load(\"order_deliveries\")\n\nfiltered_order_deliveries = order_deliveries\n |> filter(delivery_status_code == \"Ready\")\n |> filter(driver_employee_id >= 6)\n |> select(location_code, actual_order_id, truck_id, driver_employee_id)\n |> compute(computed_val: truck_id * driver_employee_id)\n\nresult = filtered_order_deliveries\n |> sort_by(actual_order_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load customer_deliveries__order_deliveries data\norder_deliveries = load(\"order_deliveries\")\n\nfiltered_order_deliveries = order_deliveries\n |> filter(delivery_status_code == \"ready\")\n |> filter(driver_employee_id >= 6)\n |> select(location_code, actual_order_id, truck_id, driver_employee_id)\n |> compute(computed_val: truck_id * driver_employee_id)\n\nresult = filtered_order_deliveries\n |> sort_by(actual_order_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"location_code": "58 Roof Av", "actual_order_id": 5, "truck_id": 1, "driver_employee_id": 8, "computed_val": 8}, {"location_code": "73 Nancy Av", "actual_order_id": 8, "truck_id": 4, "driver_employee_id": 13, "computed_val": 52}, {"location_code": "58 Roof Av", "actual_order_id": 9, "truck_id": 5, "driver_employee_id": 14, "computed_val": 70}, {"location_code": "58 Roof Av", "actual_order_id": 10, "truck_id": 11, "driver_employee_id": 13, "computed_val": 143}, {"location_code": "27 City Rd", "actual_order_id": 11, "truck_id": 11, "driver_employee_id": 6, "computed_val": 66}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Ready' \u2192 'ready'", "line_num": 5, "original": "|> filter(delivery_status_code == \"Ready\")", "mutated": "|> filter(delivery_status_code == \"ready\")"}], "difficulty": "hard", "domain": "customer_deliveries__order_deliveries", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"tasks": [{"task_id": 1, "project_id": 1, "task_details": "a", "eg_agree_objectives": 0}, {"task_id": 2, "project_id": 2, "task_details": "b", "eg_agree_objectives": 0}, {"task_id": 3, "project_id": 3, "task_details": "c", "eg_agree_objectives": 0}, {"task_id": 4, "project_id": 4, "task_details": "q", "eg_agree_objectives": 0}, {"task_id": 5, "project_id": 5, "task_details": "w", "eg_agree_objectives": 0}, {"task_id": 6, "project_id": 6, "task_details": "e", "eg_agree_objectives": 0}, {"task_id": 7, "project_id": 7, "task_details": "r", "eg_agree_objectives": 0}, {"task_id": 8, "project_id": 8, "task_details": "t", "eg_agree_objectives": 0}, {"task_id": 9, "project_id": 9, "task_details": "y", "eg_agree_objectives": 0}, {"task_id": 10, "project_id": 10, "task_details": "u", "eg_agree_objectives": 0}, {"task_id": 11, "project_id": 11, "task_details": "i", "eg_agree_objectives": 0}, {"task_id": 12, "project_id": 12, "task_details": "m", "eg_agree_objectives": 0}, {"task_id": 13, "project_id": 13, "task_details": "n", "eg_agree_objectives": 0}, {"task_id": 14, "project_id": 14, "task_details": "o", "eg_agree_objectives": 0}, {"task_id": 15, "project_id": 15, "task_details": "p", "eg_agree_objectives": 0}], "projects": [{"project_id": 1, "organisation_id": 15, "project_details": "porro"}, {"project_id": 2, "organisation_id": 11, "project_details": "et"}, {"project_id": 3, "organisation_id": 7, "project_details": "sint"}, {"project_id": 4, "organisation_id": 4, "project_details": "doloremque"}, {"project_id": 5, "organisation_id": 11, "project_details": "vel"}, {"project_id": 6, "organisation_id": 10, "project_details": "deserunt"}, {"project_id": 7, "organisation_id": 3, "project_details": "deleniti"}, {"project_id": 8, "organisation_id": 1, "project_details": "ad"}, {"project_id": 9, "organisation_id": 4, "project_details": "sed"}, {"project_id": 10, "organisation_id": 4, "project_details": "consectetur"}, {"project_id": 11, "organisation_id": 13, "project_details": "impedit"}, {"project_id": 12, "organisation_id": 12, "project_details": "omnis"}, {"project_id": 13, "organisation_id": 3, "project_details": "non"}, {"project_id": 14, "organisation_id": 1, "project_details": "beatae"}, {"project_id": 15, "organisation_id": 5, "project_details": "dolorem"}]}, "correct_code": "-- Load tracking_grants_for_research__tasks data\ntasks = load(\"tasks\")\n\nfiltered_tasks = tasks\n |> filter(project_id <= 7)\n |> select(task_details, task_id, project_id)\n\n-- Load lookup data\nprojects = load(\"projects\")\n |> select(project_details, project_id, organisation_id)\n\nenriched = join(filtered_tasks, projects, on: project_id == project_id)\n |> compute(computed_val: task_id - project_id)\n\nresult = enriched\n |> sort_by(task_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__tasks data\ntasks = load(\"tasks\")\n\nfiltered_tasks = tasks\n |> filter(project_id <= 8)\n |> select(task_details, task_id, project_id)\n\n-- Load lookup data\nprojects = load(\"projects\")\n |> select(project_details, project_id, organisation_id)\n\nenriched = join(filtered_tasks, projects, on: project_id == project_id)\n |> compute(computed_val: task_id - project_id)\n\nresult = enriched\n |> sort_by(task_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"task_details": "a", "task_id": 1, "project_id": 1, "project_details": "porro", "organisation_id": 15, "computed_val": 0}, {"task_details": "b", "task_id": 2, "project_id": 2, "project_details": "et", "organisation_id": 11, "computed_val": 0}, {"task_details": "c", "task_id": 3, "project_id": 3, "project_details": "sint", "organisation_id": 7, "computed_val": 0}, {"task_details": "q", "task_id": 4, "project_id": 4, "project_details": "doloremque", "organisation_id": 4, "computed_val": 0}, {"task_details": "w", "task_id": 5, "project_id": 5, "project_details": "vel", "organisation_id": 11, "computed_val": 0}, {"task_details": "e", "task_id": 6, "project_id": 6, "project_details": "deserunt", "organisation_id": 10, "computed_val": 0}, {"task_details": "r", "task_id": 7, "project_id": 7, "project_details": "deleniti", "organisation_id": 3, "computed_val": 0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 7 \u2192 8", "line_num": 5, "original": "|> filter(project_id <= 7)", "mutated": "|> filter(project_id <= 8)"}], "difficulty": "hard", "domain": "tracking_grants_for_research__tasks", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"problems": [{"problem_id": 1, "product_id": 4, "closure_authorised_by_staff_id": 4, "reported_by_staff_id": 2, "date_problem_reported": "1978-06-26 19:10:17", "date_problem_closed": "2012-07-22 19:24:26", "problem_description": "x", "other_problem_details": "p"}, {"problem_id": 2, "product_id": 8, "closure_authorised_by_staff_id": 3, "reported_by_staff_id": 10, "date_problem_reported": "1988-11-07 16:09:31", "date_problem_closed": "1973-06-07 04:13:51", "problem_description": "w", "other_problem_details": "p"}, {"problem_id": 3, "product_id": 1, "closure_authorised_by_staff_id": 4, "reported_by_staff_id": 1, "date_problem_reported": "1995-05-14 08:32:56", "date_problem_closed": "1997-02-26 05:06:15", "problem_description": "r", "other_problem_details": "i"}, {"problem_id": 4, "product_id": 13, "closure_authorised_by_staff_id": 8, "reported_by_staff_id": 7, "date_problem_reported": "1973-10-12 10:51:23", "date_problem_closed": "1993-06-19 10:02:59", "problem_description": "y", "other_problem_details": "c"}, {"problem_id": 5, "product_id": 4, "closure_authorised_by_staff_id": 12, "reported_by_staff_id": 11, "date_problem_reported": "1986-11-13 07:30:55", "date_problem_closed": "2013-05-24 20:33:11", "problem_description": "a", "other_problem_details": "k"}, {"problem_id": 6, "product_id": 1, "closure_authorised_by_staff_id": 5, "reported_by_staff_id": 4, "date_problem_reported": "2010-10-05 02:25:37", "date_problem_closed": "1998-07-03 14:53:59", "problem_description": "p", "other_problem_details": "l"}, {"problem_id": 7, "product_id": 2, "closure_authorised_by_staff_id": 2, "reported_by_staff_id": 7, "date_problem_reported": "1996-04-19 15:54:13", "date_problem_closed": "1974-09-20 13:42:19", "problem_description": "a", "other_problem_details": "l"}, {"problem_id": 8, "product_id": 2, "closure_authorised_by_staff_id": 4, "reported_by_staff_id": 1, "date_problem_reported": "1976-12-18 23:54:41", "date_problem_closed": "1982-08-26 10:58:01", "problem_description": "w", "other_problem_details": "f"}, {"problem_id": 9, "product_id": 15, "closure_authorised_by_staff_id": 14, "reported_by_staff_id": 13, "date_problem_reported": "2010-10-11 13:36:00", "date_problem_closed": "1995-06-10 18:41:08", "problem_description": "i", "other_problem_details": "v"}, {"problem_id": 10, "product_id": 4, "closure_authorised_by_staff_id": 13, "reported_by_staff_id": 10, "date_problem_reported": "1993-12-29 23:22:21", "date_problem_closed": "1990-04-13 21:15:50", "problem_description": "d", "other_problem_details": "s"}, {"problem_id": 11, "product_id": 5, "closure_authorised_by_staff_id": 1, "reported_by_staff_id": 14, "date_problem_reported": "1970-02-23 17:46:12", "date_problem_closed": "1971-02-06 15:23:23", "problem_description": "d", "other_problem_details": "v"}, {"problem_id": 12, "product_id": 6, "closure_authorised_by_staff_id": 9, "reported_by_staff_id": 2, "date_problem_reported": "1970-05-20 15:38:46", "date_problem_closed": "1997-10-18 20:09:57", "problem_description": "j", "other_problem_details": "c"}, {"problem_id": 13, "product_id": 1, "closure_authorised_by_staff_id": 9, "reported_by_staff_id": 5, "date_problem_reported": "1971-06-15 02:50:52", "date_problem_closed": "2004-06-20 01:08:25", "problem_description": "c", "other_problem_details": "f"}, {"problem_id": 14, "product_id": 1, "closure_authorised_by_staff_id": 6, "reported_by_staff_id": 13, "date_problem_reported": "1977-10-22 15:48:13", "date_problem_closed": "1970-09-05 08:04:43", "problem_description": "s", "other_problem_details": "s"}, {"problem_id": 15, "product_id": 7, "closure_authorised_by_staff_id": 9, "reported_by_staff_id": 10, "date_problem_reported": "1970-10-27 16:35:34", "date_problem_closed": "1999-09-28 21:29:12", "problem_description": "r", "other_problem_details": "m"}], "product": [{"product_id": 1, "product_name": "rose", "product_details": "k"}, {"product_id": 2, "product_name": "yellow", "product_details": "q"}, {"product_id": 3, "product_name": "chat", "product_details": "e"}, {"product_id": 4, "product_name": "wechat", "product_details": "r"}, {"product_id": 5, "product_name": "life", "product_details": "q"}, {"product_id": 6, "product_name": "keep", "product_details": "d"}, {"product_id": 7, "product_name": "messager", "product_details": "m"}, {"product_id": 8, "product_name": "hangout", "product_details": "u"}, {"product_id": 9, "product_name": "twitter", "product_details": "z"}, {"product_id": 10, "product_name": "blog", "product_details": "d"}, {"product_id": 11, "product_name": "snapchat", "product_details": "e"}, {"product_id": 12, "product_name": "doulingo", "product_details": "q"}, {"product_id": 13, "product_name": "learn", "product_details": "h"}, {"product_id": 14, "product_name": "teach", "product_details": "n"}, {"product_id": 15, "product_name": "game", "product_details": "j"}]}, "correct_code": "-- Load tracking_software_problems__problems data\nproblems = load(\"problems\")\n\nfiltered_problems = problems\n |> filter(problem_description == \"y\")\n\nsummary = filtered_problems\n |> group_by(date_problem_closed)\n |> aggregate(total_product_id: sum(product_id), count: count())\n\nresult = summary\n |> sort_by(total_product_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_software_problems__problems data\nproblems = load(\"problems\")\n\nfiltered_problems = problems\n |> filter(problem_description == \"date_problem_closed\")\n\nsummary = filtered_problems\n |> group_by(date_problem_closed)\n |> aggregate(total_product_id: sum(product_id), count: count())\n\nresult = summary\n |> sort_by(total_product_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"date_problem_closed": "1993-06-19 10:02:59", "total_product_id": 13, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'y' \u2192 'date_problem_closed'", "line_num": 5, "original": "|> filter(problem_description == \"y\")", "mutated": "|> filter(problem_description == \"date_problem_closed\")"}], "difficulty": "medium", "domain": "tracking_software_problems__problems", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "has_pet": [{"stuid": 1001, "petid": 2001}, {"stuid": 1002, "petid": 2002}, {"stuid": 1002, "petid": 2003}]}, "correct_code": "-- Load pets_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(advisor <= 3195)\n |> select(lname, major, stuid)\n\nresult = filtered_student\n |> sort_by(stuid, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load pets_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> fliter(advisor <= 3195)\n |> select(lname, major, stuid)\n\nresult = filtered_student\n |> sort_by(stuid, asc)\n |> take(5)\n\nemit result", "expected_output": [{"lname": "Smith", "major": 600, "stuid": 1001}, {"lname": "Gompers", "major": 600, "stuid": 1005}, {"lname": "Schultz", "major": 600, "stuid": 1006}, {"lname": "Tai", "major": 600, "stuid": 1009}, {"lname": "Lee", "major": 600, "stuid": 1010}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'filter' \u2192 'fliter'", "line_num": 5, "original": "|> filter(advisor <= 3195)", "mutated": "|> fliter(advisor <= 3195)"}], "difficulty": "easy", "domain": "pets_1__student", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"course": [{"cid": "600.101", "cname": "COMPUTER LITERACY", "credits": 3, "instructor": 6112, "days": "MTW", "hours": "3", "dno": 600}, {"cid": "600.103", "cname": "INTRODUCTION TO COMPUTER SCIENCE", "credits": 1, "instructor": 4230, "days": "Th", "hours": "4", "dno": 600}, {"cid": "600.107", "cname": "INTRO TO PROGRAMMING IN JAVA", "credits": 3, "instructor": 1193, "days": "MTW", "hours": "3", "dno": 600}, {"cid": "600.109", "cname": "INTRO TO PROGRAMMING IN C/C++", "credits": 3, "instructor": 4230, "days": "MTW", "hours": "12", "dno": 600}, {"cid": "600.113", "cname": "EXPLORING THE INTERNET", "credits": 3, "instructor": 6112, "days": "MTW", "hours": "4", "dno": 600}, {"cid": "600.121", "cname": "JAVA PROGRAMMING", "credits": 3, "instructor": 6112, "days": "ThF", "hours": "10:30-12", "dno": 600}, {"cid": "600.211", "cname": "UNIX SYSTEMS PROGRAMMING", "credits": 3, "instructor": 6112, "days": "ThF", "hours": "1-2:15", "dno": 600}, {"cid": "600.227", "cname": "DATA STRUCTURES in JAVA", "credits": 3, "instructor": 1121, "days": "MTW", "hours": "9", "dno": 600}, {"cid": "600.232", "cname": "MULTIMEDIA COMPUTING", "credits": 3, "instructor": 9826, "days": "MW", "hours": "1-2:30", "dno": 600}, {"cid": "600.271", "cname": "COMPUTATIONAL MODELS", "credits": 3, "instructor": 9172, "days": "MTW", "hours": "1", "dno": 600}, {"cid": "600.303", "cname": "SUPERCOMPUTING", "credits": 1, "instructor": 9826, "days": "W", "hours": "4-6:20", "dno": 600}, {"cid": "600.315", "cname": "DATABASE SYSTEMS", "credits": 3, "instructor": 2192, "days": "ThF", "hours": "2:30-4", "dno": 600}, {"cid": "600.333", "cname": "COMPUTER SYSTEM FUNDAMENTALS", "credits": 3, "instructor": 1148, "days": "MTW", "hours": "8", "dno": 600}, {"cid": "600.337", "cname": "DISTRIBUTED SYSTEMS", "credits": 3, "instructor": 8918, "days": "M", "hours": "3", "dno": 600}, {"cid": "600.363", "cname": "INTRODUCTION TO ALGORITHMS", "credits": 3, "instructor": 7712, "days": "MTW", "hours": "9", "dno": 600}, {"cid": "600.415", "cname": "DATABASE SYSTEMS", "credits": 3, "instructor": 2192, "days": "ThF", "hours": "2:30-4", "dno": 600}, {"cid": "600.433", "cname": "COMPUTER SYSTEMS", "credits": 3, "instructor": 1148, "days": "MTW", "hours": "8", "dno": 600}, {"cid": "600.437", "cname": "DISTRIBUTED SYSTEMS", "credits": 3, "instructor": 8918, "days": "M", "hours": "3", "dno": 600}, {"cid": "600.445", "cname": "QUANTITATIVE MEDICAL COMPUTING", "credits": 3, "instructor": 7723, "days": "ThF", "hours": "1-2:15", "dno": 600}, {"cid": "600.461", "cname": "COMPUTER VISION", "credits": 3, "instructor": 8114, "days": "MTW", "hours": "1", "dno": 600}, {"cid": "600.463", "cname": "ALGORITHMS I", "credits": 3, "instructor": 7712, "days": "MTW", "hours": "9", "dno": 600}, {"cid": "600.465", "cname": "INTRO TO NATURAL LANGUAGE PROCESSING", "credits": 3, "instructor": 7792, "days": "MTW", "hours": "2", "dno": 600}, {"cid": "600.509", "cname": "COMPUTER SCIENCE INTERNSHIP", "credits": 3, "instructor": 1121, "days": "M", "hours": "1", "dno": 600}, {"cid": "600.601", "cname": "COMPUTER SCIENCE SEMINAR", "credits": 1, "instructor": 6191, "days": "ThF", "hours": "10:30-12", "dno": 600}, {"cid": "600.657", "cname": "HIGH PERFORMANCE GRAPHICS AND MODELING", "credits": 3, "instructor": 8423, "days": "M", "hours": "4-5:30", "dno": 600}, {"cid": "600.787", "cname": "SEMINAR ON COMPUTATIONAL GEOMETRY", "credits": 3, "instructor": 1121, "days": "Th", "hours": "2", "dno": 600}, {"cid": "550.111", "cname": "STATISTICAL ANALYSIS", "credits": 4, "instructor": 2311, "days": "MTW", "hours": "12", "dno": 550}, {"cid": "550.171", "cname": "DISCRETE MATHEMATICS", "credits": 4, "instructor": 8772, "days": "MTW", "hours": "11", "dno": 550}, {"cid": "500.203", "cname": "ACCOUNTING I", "credits": 3, "instructor": 9823, "days": "T", "hours": "6:15-8:45", "dno": 550}, {"cid": "500.204", "cname": "ACCOUNTING II", "credits": 3, "instructor": 9823, "days": "Th", "hours": "6:15-8:45", "dno": 550}, {"cid": "500.205", "cname": "BUSINESS LAW I", "credits": 3, "instructor": 8791, "days": "W", "hours": "6:15-8:45", "dno": 550}, {"cid": "500.206", "cname": "BUSINESS LAW II", "credits": 3, "instructor": 8791, "days": "M", "hours": "6:15-8:45", "dno": 550}, {"cid": "550.291", "cname": "LINEAR ALGEBRA AND DIFFERENTIAL EQNS", "credits": 4, "instructor": 6541, "days": "MTW", "hours": "9", "dno": 550}, {"cid": "550.310", "cname": "PROBABILITY AND STATISTICS", "credits": 4, "instructor": 8102, "days": "MTW", "hours": "10", "dno": 550}, {"cid": "550.361", "cname": "INTRODUCTION TO OPTIMIZATION", "credits": 4, "instructor": 2881, "days": "MTW", "hours": "2", "dno": 550}, {"cid": "550.413", "cname": "APPLIED STATISTICS AND DATA ANALYSIS", "credits": 4, "instructor": 1177, "days": "MTW", "hours": "11", "dno": 550}, {"cid": "550.420", "cname": "INTRODUCTION TO PROBABILITY", "credits": 4, "instructor": 2738, "days": "MTW", "hours": "1", "dno": 550}, {"cid": "550.471", "cname": "COMBINATORIAL ANALYSIS", "credits": 4, "instructor": 8772, "days": "MTW", "hours": "12", "dno": 550}, {"cid": "550.620", "cname": "PROBABILITY THEORY I", "credits": 3, "instructor": 2738, "days": "MTW", "hours": "2", "dno": 550}, {"cid": "550.626", "cname": "STOCHASTIC PROCESSES II", "credits": 3, "instructor": 8102, "days": "MTW", "hours": "1", "dno": 550}, {"cid": "550.631", "cname": "STATISTICAL INFERENCE", "credits": 3, "instructor": 6182, "days": "MTW", "hours": "3", "dno": 550}, {"cid": "550.661", "cname": "FOUNDATIONS OF OPTIMIZATION", "credits": 3, "instructor": 9823, "days": "MTW", "hours": "10", "dno": 550}, {"cid": "550.671", "cname": "COMBINATORIAL ANALYSIS", "credits": 3, "instructor": 8772, "days": "MTW", "hours": "12", "dno": 550}, {"cid": "550.681", "cname": "NUMERICAL ANALYSIS", "credits": 3, "instructor": 6541, "days": "MTW", "hours": "11", "dno": 550}, {"cid": "550.721", "cname": "PERCOLATION THEORY", "credits": 3, "instructor": 8122, "days": "MTW", "hours": "9", "dno": 550}, {"cid": "550.750", "cname": "TOPICS IN OPERATIONS RESEARCH", "credits": 3, "instructor": 9922, "days": "MW", "hours": "3-4:30", "dno": 550}, {"cid": "550.790", "cname": "TOPICS IN APPLIED MATH", "credits": 2, "instructor": 2881, "days": "MT", "hours": "4:30-6", "dno": 550}, {"cid": "520.137", "cname": "INTRODUCTION TO ECE", "credits": 3, "instructor": 8723, "days": "MTW", "hours": "11", "dno": 520}, {"cid": "520.213", "cname": "CIRCUITS", "credits": 4, "instructor": 9210, "days": "MTW", "hours": "2", "dno": 520}, {"cid": "520.219", "cname": "FIELDS, MATTER AND WAVES", "credits": 3, "instructor": 9210, "days": "MTW", "hours": "3", "dno": 520}, {"cid": "520.325", "cname": "INTEGRATED ELECTRONICS", "credits": 3, "instructor": 6191, "days": "MTW", "hours": "3", "dno": 520}, {"cid": "520.345", "cname": "ECE LABORATORY", "credits": 3, "instructor": 1823, "days": "W", "hours": "2", "dno": 520}, {"cid": "520.349", "cname": "MICROPROCESSOR LAB I", "credits": 3, "instructor": 9824, "days": "Th", "hours": "8", "dno": 520}, {"cid": "520.353", "cname": "CONTROL SYSTEMS", "credits": 3, "instructor": 6925, "days": "MTW", "hours": "10", "dno": 520}, {"cid": "520.401", "cname": "BASIC COMMUNICATIONS", "credits": 3, "instructor": 6191, "days": "MTW", "hours": "1", "dno": 520}, {"cid": "520.410", "cname": "FIBER OPTICS AND PHOTONICS", "credits": 3, "instructor": 6191, "days": "MTW", "hours": "1", "dno": 520}, {"cid": "520.419", "cname": "ITERATIVE ALGORITHMS", "credits": 3, "instructor": 2119, "days": "MT", "hours": "4-5:15", "dno": 520}, {"cid": "520.421", "cname": "INTRODUCTION TO NON-LINEAR SYSTEMS", "credits": 3, "instructor": 7231, "days": "MTW", "hours": "9", "dno": 520}, {"cid": "520.432", "cname": "TOPICS IN MEDICAL IMAGING SYSTEMS", "credits": 3, "instructor": 9514, "days": "TTh", "hours": "8:30-10", "dno": 520}, {"cid": "520.435", "cname": "DIGITAL SIGNAL PROCESSING", "credits": 4, "instructor": 8118, "days": "MTW", "hours": "11", "dno": 520}, {"cid": "520.475", "cname": "PROCESSING AND RECOGNITION OF SPEECH", "credits": 3, "instructor": 6330, "days": "TW", "hours": "2-3:30", "dno": 520}, {"cid": "520.490", "cname": "ANALOG AND DIGITAL VLSI SYSTEMS", "credits": 3, "instructor": 8722, "days": "ThF", "hours": "10:30-12", "dno": 520}, {"cid": "520.603", "cname": "ELECTROMAGNETIC WAVES", "credits": 4, "instructor": 9210, "days": "Th", "hours": "1-4:30", "dno": 520}, {"cid": "520.605", "cname": "SOLID STATE PHYSICS", "credits": 3, "instructor": 9379, "days": "Tu", "hours": "1-4", "dno": 520}, {"cid": "520.609", "cname": "NONLINEAR TECHNICAL IMAGE PROCESSING", "credits": 3, "instructor": 7134, "days": "Th", "hours": "1-4", "dno": 520}, {"cid": "520.651", "cname": "RANDOM SIGNAL ANALYSIS", "credits": 3, "instructor": 9514, "days": "ThF", "hours": "10:30-12", "dno": 520}, {"cid": "050.102", "cname": "LANGUAGE AND MIND", "credits": 3, "instructor": 4432, "days": "MTW", "hours": "10", "dno": 50}, {"cid": "050.109", "cname": "MIND, BRAIN, COMPUTERS", "credits": 3, "instructor": 6910, "days": "MW", "hours": "2-3:15", "dno": 50}, {"cid": "050.203", "cname": "COGNITIVE NEUROSCIENCE", "credits": 4, "instructor": 9011, "days": "MT", "hours": "3:30-4:45", "dno": 50}, {"cid": "050.325", "cname": "SOUND STRUCTURES IN NATURAL LANGUAGE", "credits": 3, "instructor": 4432, "days": "T", "hours": "10-12", "dno": 50}, {"cid": "050.370", "cname": "FORMAL METHODS IN COGNITIVE SCIENCE", "credits": 3, "instructor": 6910, "days": "MW", "hours": "11:30", "dno": 50}, {"cid": "050.381", "cname": "LANGUAGE DEVELOPMENT", "credits": 3, "instructor": 8989, "days": "T", "hours": "1-3", "dno": 50}, {"cid": "050.427", "cname": "THE HISTORY OF ROMANCE LANGUAGES", "credits": 3, "instructor": 4432, "days": "W", "hours": "1-3", "dno": 50}, {"cid": "050.670", "cname": "FORMAL METHODS IN COGNITIVE SCIENCE", "credits": 3, "instructor": 4432, "days": "MW", "hours": "11:30-12:45", "dno": 50}, {"cid": "050.802", "cname": "RESEARCH SEMINAR IN COGNITIVE PROCESSES", "credits": 1, "instructor": 9011, "days": "W", "hours": "1-3", "dno": 50}, {"cid": "050.821", "cname": "COMP. MODELS OF SENTENCE PROCESSING", "credits": 3, "instructor": 5718, "days": "M", "hours": "1-4", "dno": 50}], "faculty": [{"facid": 1082, "lname": "Giuliano", "fname": "Mark", "rank": "Instructor", "sex": "M", "phone": 2424, "room": "224", "building": "NEB"}, {"facid": 1121, "lname": "Goodrich", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3593, "room": "219", "building": "NEB"}, {"facid": 1148, "lname": "Masson", "fname": "Gerald", "rank": "Professor", "sex": "M", "phone": 3402, "room": "224B", "building": "NEB"}, {"facid": 1172, "lname": "Runolfsson", "fname": "Thordur", "rank": "AssocProf", "sex": "M", "phone": 3121, "room": "119", "building": "Barton"}, {"facid": 1177, "lname": "Naiman", "fname": "Daniel", "rank": "Professor", "sex": "M", "phone": 3571, "room": "288", "building": "Krieger"}, {"facid": 1193, "lname": "Jones", "fname": "Stacey", "rank": "Instructor", "sex": "F", "phone": 3550, "room": "224", "building": "NEB"}, {"facid": 1823, "lname": "Davidson", "fname": "Frederic", "rank": "Professor", "sex": "M", "phone": 5629, "room": "119", "building": "Barton"}, {"facid": 2028, "lname": "Brody", "fname": "William", "rank": "Professor", "sex": "M", "phone": 6073, "room": "119", "building": "Barton"}, {"facid": 2119, "lname": "Meyer", "fname": "Gerard", "rank": "Professor", "sex": "M", "phone": 6350, "room": "119", "building": "Barton"}, {"facid": 2192, "lname": "Yarowsky", "fname": "David", "rank": "AsstProf", "sex": "M", "phone": 6587, "room": "324", "building": "NEB"}, {"facid": 2291, "lname": "Scheinerman", "fname": "Edward", "rank": "Professor", "sex": "M", "phone": 6654, "room": "288", "building": "Krieger"}, {"facid": 2311, "lname": "Priebe", "fname": "Carey", "rank": "AsstProf", "sex": "M", "phone": 6953, "room": "288", "building": "Krieger"}, {"facid": 2738, "lname": "Fill", "fname": "James", "rank": "Professor", "sex": "M", "phone": 8209, "room": "288", "building": "Krieger"}, {"facid": 2881, "lname": "Goldman", "fname": "Alan", "rank": "Professor", "sex": "M", "phone": 8335, "room": "288", "building": "Krieger"}, {"facid": 3457, "lname": "Smith", "fname": "Scott", "rank": "AssocProf", "sex": "M", "phone": 1035, "room": "318", "building": "NEB"}, {"facid": 4230, "lname": "Houlahan", "fname": "Joanne", "rank": "Instructor", "sex": "F", "phone": 1260, "room": "328", "building": "NEB"}, {"facid": 4432, "lname": "Burzio", "fname": "Luigi", "rank": "Professor", "sex": "M", "phone": 1813, "room": "288", "building": "Krieger"}, {"facid": 5718, "lname": "Frank", "fname": "Robert", "rank": "AsstProf", "sex": "M", "phone": 1751, "room": "288", "building": "Krieger"}, {"facid": 6112, "lname": "Beach", "fname": "Louis", "rank": "Instructor", "sex": "M", "phone": 1838, "room": "207", "building": "NEB"}, {"facid": 6182, "lname": "Cheng", "fname": "Cheng", "rank": "AsstProf", "sex": "M", "phone": 1856, "room": "288", "building": "Krieger"}, {"facid": 6191, "lname": "Kaplan", "fname": "Alexander", "rank": "Professor", "sex": "M", "phone": 1825, "room": "119", "building": "Barton"}, {"facid": 6330, "lname": "Byrne", "fname": "William", "rank": "Instructor", "sex": "M", "phone": 1691, "room": "119", "building": "Barton"}, {"facid": 6541, "lname": "Han", "fname": "Shih-Ping", "rank": "Professor", "sex": "M", "phone": 1914, "room": "288", "building": "Krieger"}, {"facid": 6910, "lname": "Smolensky", "fname": "Paul", "rank": "Professor", "sex": "M", "phone": 2072, "room": "288", "building": "Krieger"}, {"facid": 6925, "lname": "Iglesias", "fname": "Pablo", "rank": "AsstProf", "sex": "M", "phone": 2021, "room": "119", "building": "Barton"}, {"facid": 7134, "lname": "Goutsias", "fname": "John", "rank": "Professor", "sex": "M", "phone": 2184, "room": "119", "building": "Barton"}, {"facid": 7231, "lname": "Rugh", "fname": "Wilson", "rank": "Professor", "sex": "M", "phone": 2191, "room": "119", "building": "Barton"}, {"facid": 7271, "lname": "Jelinek", "fname": "Frederick", "rank": "Professor", "sex": "M", "phone": 2890, "room": "119", "building": "Barton"}, {"facid": 7506, "lname": "Westgate", "fname": "Charles", "rank": "Professor", "sex": "M", "phone": 2932, "room": "119", "building": "Barton"}, {"facid": 7712, "lname": "Awerbuch", "fname": "Baruch", "rank": "Professor", "sex": "M", "phone": 2105, "room": "220", "building": "NEB"}, {"facid": 7723, "lname": "Taylor", "fname": "Russell", "rank": "Professor", "sex": "M", "phone": 2435, "room": "317", "building": "NEB"}, {"facid": 7792, "lname": "Brill", "fname": "Eric", "rank": "AsstProf", "sex": "M", "phone": 2303, "room": "324B", "building": "NEB"}, {"facid": 8102, "lname": "James", "fname": "Lancelot", "rank": "AsstProf", "sex": "M", "phone": 2792, "room": "288", "building": "Krieger"}, {"facid": 8114, "lname": "Angelopoulou", "fname": "Ellie", "rank": "Instructor", "sex": "F", "phone": 2152, "room": "316", "building": "NEB"}, {"facid": 8118, "lname": "Weinert", "fname": "Howard", "rank": "Professor", "sex": "M", "phone": 3272, "room": "119", "building": "Barton"}, {"facid": 8122, "lname": "Wierman", "fname": "John", "rank": "Professor", "sex": "M", "phone": 3392, "room": "288", "building": "Krieger"}, {"facid": 8423, "lname": "Kumar", "fname": "Subodh", "rank": "AsstProf", "sex": "M", "phone": 2522, "room": "218", "building": "NEB"}, {"facid": 8721, "lname": "Wolff", "fname": "Lawrence", "rank": "AssocProf", "sex": "M", "phone": 2342, "room": "316", "building": "NEB"}, {"facid": 8722, "lname": "Cauwenberghs", "fname": "Gert", "rank": "AsstProf", "sex": "M", "phone": 1372, "room": "119", "building": "Barton"}, {"facid": 8723, "lname": "Andreou", "fname": "Andreas", "rank": "Professor", "sex": "M", "phone": 1402, "room": "119", "building": "Barton"}, {"facid": 8741, "lname": "Salzberg", "fname": "Steven", "rank": "AssocProf", "sex": "M", "phone": 2641, "room": "324A", "building": "NEB"}, {"facid": 8772, "lname": "Cowen", "fname": "Lenore", "rank": "AsstProf", "sex": "F", "phone": 2870, "room": "288", "building": "Krieger"}, {"facid": 8791, "lname": "McCloskey", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3440, "room": "288", "building": "Krieger"}, {"facid": 8918, "lname": "Amir", "fname": "Yair", "rank": "AsstProf", "sex": "M", "phone": 2672, "room": "308", "building": "NEB"}, {"facid": 8989, "lname": "Brent", "fname": "Michael", "rank": "AsstProf", "sex": "M", "phone": 9373, "room": "288", "building": "Krieger"}, {"facid": 9011, "lname": "Rapp", "fname": "Brenda", "rank": "AsstProf", "sex": "F", "phone": 2032, "room": "288", "building": "Krieger"}, {"facid": 9172, "lname": "Kosaraju", "fname": "Rao", "rank": "Professor", "sex": "M", "phone": 2757, "room": "319", "building": "NEB"}, {"facid": 9191, "lname": "Collins", "fname": "Oliver", "rank": "AssocProf", "sex": "M", "phone": 5427, "room": "119", "building": "Barton"}, {"facid": 9199, "lname": "Hughes", "fname": "Brian", "rank": "AssocProf", "sex": "M", "phone": 5666, "room": "119", "building": "Barton"}, {"facid": 9210, "lname": "Joseph", "fname": "Richard", "rank": "Professor", "sex": "M", "phone": 5996, "room": "119", "building": "Barton"}, {"facid": 9379, "lname": "Khurgin", "fname": "Jacob", "rank": "Professor", "sex": "M", "phone": 1060, "room": "119", "building": "Barton"}, {"facid": 9514, "lname": "Prince", "fname": "Jerry", "rank": "AssocProf", "sex": "M", "phone": 5106, "room": "119", "building": "Barton"}, {"facid": 9643, "lname": "Legendre", "fname": "Geraldine", "rank": "AssocProf", "sex": "F", "phone": 8972, "room": "288", "building": "Krieger"}, {"facid": 9811, "lname": "Wu", "fname": "Colin", "rank": "AsstProf", "sex": "M", "phone": 2906, "room": "288", "building": "Krieger"}, {"facid": 9823, "lname": "Pang", "fname": "Jong-Shi", "rank": "Professor", "sex": "M", "phone": 4366, "room": "288", "building": "Krieger"}, {"facid": 9824, "lname": "Glaser", "fname": "Robert", "rank": "Instructor", "sex": "M", "phone": 4396, "room": "119", "building": "Barton"}, {"facid": 9826, "lname": "Delcher", "fname": "Arthur", "rank": "Instructor", "sex": "M", "phone": 2956, "room": "329", "building": "NEB"}, {"facid": 9922, "lname": "Hall", "fname": "Leslie", "rank": "AsstProf", "sex": "F", "phone": 7332, "room": "288", "building": "Krieger"}]}, "correct_code": "-- Load college_3__course data\ncourse = load(\"course\")\n\nfiltered_course = course\n |> filter(credits < 2)\n\nsummary = filtered_course\n |> group_by(hours)\n |> aggregate(min_dno: min(dno), count: count())\n |> compute(computed_val: min_dno / count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_3__course data\ncourse = load(\"course\")\n\nfiltered_course = course\n |> filter(credits < 2)\n\nsummary = filtered_course\n |> group_by(hours)\n |> aggregate(min_dno: min(dno), count: count())\n |> compute(computed_val: min_dno / count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"hours": "4", "min_dno": 600, "count": 1, "computed_val": 600.0}, {"hours": "4-6:20", "min_dno": 600, "count": 1, "computed_val": 600.0}, {"hours": "10:30-12", "min_dno": 600, "count": 1, "computed_val": 600.0}, {"hours": "1-3", "min_dno": 50, "count": 1, "computed_val": 50.0}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 3", "line_num": 14, "original": "|> take(5)", "mutated": "|> take(3)"}], "difficulty": "hard", "domain": "college_3__course", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"project_staff": [{"staff_id": 0.0, "project_id": 2, "role_code": "leader", "date_from": "1981-10-04 22:44:50", "date_to": "1985-05-30 22:26:30", "other_details": 0}, {"staff_id": 674810.0, "project_id": 5, "role_code": "leader", "date_from": "2003-04-19 15:06:20", "date_to": "2010-12-08 11:55:36", "other_details": 0}, {"staff_id": 779.0, "project_id": 2, "role_code": "researcher", "date_from": "1981-10-09 21:32:53", "date_to": "2004-12-16 13:03:36", "other_details": 0}, {"staff_id": 6572.0, "project_id": 4, "role_code": "researcher", "date_from": "1983-02-07 17:55:59", "date_to": "2004-07-28 03:11:47", "other_details": 0}, {"staff_id": 5353407.0, "project_id": 15, "role_code": "leader", "date_from": "2004-11-01 23:52:38", "date_to": "1988-03-04 19:30:05", "other_details": 0}, {"staff_id": 5137097.0, "project_id": 7, "role_code": "researcher", "date_from": "1991-01-11 16:57:50", "date_to": "1993-06-09 12:44:28", "other_details": 0}, {"staff_id": 29.0, "project_id": 9, "role_code": "researcher", "date_from": "2005-01-13 11:49:48", "date_to": "1973-07-19 04:51:26", "other_details": 0}, {"staff_id": 3.0, "project_id": 8, "role_code": "researcher", "date_from": "1970-03-25 06:18:11", "date_to": "1985-12-05 12:00:58", "other_details": 0}, {"staff_id": 3100031.0, "project_id": 11, "role_code": "researcher", "date_from": "1972-01-17 19:42:16", "date_to": "2016-03-15 00:33:18", "other_details": 0}, {"staff_id": 49698449.0, "project_id": 1, "role_code": "leader", "date_from": "1970-04-06 15:50:21", "date_to": "1983-03-19 16:06:31", "other_details": 0}, {"staff_id": 45.0, "project_id": 11, "role_code": "researcher", "date_from": "2000-08-28 11:49:17", "date_to": "2007-02-02 17:26:02", "other_details": 0}, {"staff_id": 37.0, "project_id": 5, "role_code": "researcher", "date_from": "1989-04-24 23:51:54", "date_to": "2002-03-19 18:00:36", "other_details": 0}, {"staff_id": 6065505.0, "project_id": 3, "role_code": "leader", "date_from": "1999-10-21 22:07:15", "date_to": "2008-09-25 20:06:28", "other_details": 0}, {"staff_id": 56.0, "project_id": 1, "role_code": "leader", "date_from": "1970-01-02 15:35:05", "date_to": "1985-09-22 09:06:08", "other_details": 0}, {"staff_id": 13739108.0, "project_id": 2, "role_code": "researcher", "date_from": "1973-12-12 11:46:28", "date_to": "1971-07-19 22:49:05", "other_details": 0}], "projects": [{"project_id": 1, "organisation_id": 15, "project_details": "porro"}, {"project_id": 2, "organisation_id": 11, "project_details": "et"}, {"project_id": 3, "organisation_id": 7, "project_details": "sint"}, {"project_id": 4, "organisation_id": 4, "project_details": "doloremque"}, {"project_id": 5, "organisation_id": 11, "project_details": "vel"}, {"project_id": 6, "organisation_id": 10, "project_details": "deserunt"}, {"project_id": 7, "organisation_id": 3, "project_details": "deleniti"}, {"project_id": 8, "organisation_id": 1, "project_details": "ad"}, {"project_id": 9, "organisation_id": 4, "project_details": "sed"}, {"project_id": 10, "organisation_id": 4, "project_details": "consectetur"}, {"project_id": 11, "organisation_id": 13, "project_details": "impedit"}, {"project_id": 12, "organisation_id": 12, "project_details": "omnis"}, {"project_id": 13, "organisation_id": 3, "project_details": "non"}, {"project_id": 14, "organisation_id": 1, "project_details": "beatae"}, {"project_id": 15, "organisation_id": 5, "project_details": "dolorem"}]}, "correct_code": "-- Load tracking_grants_for_research__project_staff data\nproject_staff = load(\"project_staff\")\n\nsummary = project_staff\n |> group_by(date_from)\n |> aggregate(min_staff_id: min(staff_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__project_staff data\nproject_staff = load(\"project_staff\")\n\nsummary = project_staff\n |> group_by(date_from)\n |> aggregate(min_staff_id: min(staff_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n take(10)\n\nemit result", "expected_output": [{"date_from": "1981-10-04 22:44:50", "min_staff_id": 0.0, "count": 1}, {"date_from": "2003-04-19 15:06:20", "min_staff_id": 674810.0, "count": 1}, {"date_from": "1981-10-09 21:32:53", "min_staff_id": 779.0, "count": 1}, {"date_from": "1983-02-07 17:55:59", "min_staff_id": 6572.0, "count": 1}, {"date_from": "2004-11-01 23:52:38", "min_staff_id": 5353407.0, "count": 1}, {"date_from": "1991-01-11 16:57:50", "min_staff_id": 5137097.0, "count": 1}, {"date_from": "2005-01-13 11:49:48", "min_staff_id": 29.0, "count": 1}, {"date_from": "1970-03-25 06:18:11", "min_staff_id": 3.0, "count": 1}, {"date_from": "1972-01-17 19:42:16", "min_staff_id": 3100031.0, "count": 1}, {"date_from": "1970-04-06 15:50:21", "min_staff_id": 49698449.0, "count": 1}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 10, "original": "|> take(10)", "mutated": "take(10)"}], "difficulty": "easy", "domain": "tracking_grants_for_research__project_staff", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "sportsinfo": [{"stuid": 1001, "sportname": "Athletics", "hoursperweek": 2, "gamesplayed": 5, "onscholarship": "N"}, {"stuid": 1002, "sportname": "Football", "hoursperweek": 7, "gamesplayed": 20, "onscholarship": "Y"}, {"stuid": 1003, "sportname": "Football", "hoursperweek": 45, "gamesplayed": 18, "onscholarship": "Y"}, {"stuid": 1005, "sportname": "Lacrosse", "hoursperweek": 35, "gamesplayed": 16, "onscholarship": "N"}, {"stuid": 1015, "sportname": "Lacrosse", "hoursperweek": 25, "gamesplayed": 41, "onscholarship": "Y"}, {"stuid": 1018, "sportname": "Lacrosse", "hoursperweek": 39, "gamesplayed": 25, "onscholarship": "N"}, {"stuid": 1019, "sportname": "Swimming", "hoursperweek": 8, "gamesplayed": 16, "onscholarship": "Y"}, {"stuid": 1019, "sportname": "Tennis", "hoursperweek": 19, "gamesplayed": 62, "onscholarship": "N"}, {"stuid": 1022, "sportname": "Baseball", "hoursperweek": 29, "gamesplayed": 31, "onscholarship": "N"}, {"stuid": 1023, "sportname": "Basketball", "hoursperweek": 14, "gamesplayed": 8, "onscholarship": "Y"}, {"stuid": 1023, "sportname": "Tennis", "hoursperweek": 1, "gamesplayed": 56, "onscholarship": "Y"}, {"stuid": 1026, "sportname": "Cricket", "hoursperweek": 23, "gamesplayed": 37, "onscholarship": "Y"}, {"stuid": 1033, "sportname": "Soccer", "hoursperweek": 45, "gamesplayed": 45, "onscholarship": "Y"}, {"stuid": 1035, "sportname": "Curling", "hoursperweek": 50, "gamesplayed": 94, "onscholarship": "N"}]}, "correct_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(age < 19)\n |> select(lname, stuid)\n\nresult = filtered_student\n |> sort_by(stuid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n filter(age < 19)\n |> select(lname, stuid)\n\nresult = filtered_student\n |> sort_by(stuid, asc)\n |> taek(3)\n\nemit result", "expected_output": [{"lname": "Smith", "stuid": 1001}, {"lname": "Schultz", "stuid": 1006}, {"lname": "Apap", "stuid": 1007}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(age < 19)", "mutated": "filter(age < 19)"}, {"category": "syntax", "description": "Typo in keyword: 'take' \u2192 'taek'", "line_num": 10, "original": "|> take(3)", "mutated": "|> taek(3)"}], "difficulty": "easy", "domain": "game_1__student", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"city": [{"id": 1, "name": "Kabul", "countrycode": "AFG", "district": "Kabol", "population": 1780000}, {"id": 2, "name": "Qandahar", "countrycode": "AFG", "district": "Qandahar", "population": 237500}, {"id": 3, "name": "Herat", "countrycode": "AFG", "district": "Herat", "population": 186800}, {"id": 4, "name": "Mazar-e-Sharif", "countrycode": "AFG", "district": "Balkh", "population": 127800}, {"id": 5, "name": "Amsterdam", "countrycode": "NLD", "district": "Noord-Holland", "population": 731200}, {"id": 6, "name": "Rotterdam", "countrycode": "NLD", "district": "Zuid-Holland", "population": 593321}, {"id": 7, "name": "Haag", "countrycode": "NLD", "district": "Zuid-Holland", "population": 440900}, {"id": 8, "name": "Utrecht", "countrycode": "NLD", "district": "Utrecht", "population": 234323}, {"id": 9, "name": "Eindhoven", "countrycode": "NLD", "district": "Noord-Brabant", "population": 201843}, {"id": 10, "name": "Tilburg", "countrycode": "NLD", "district": "Noord-Brabant", "population": 193238}, {"id": 11, "name": "Groningen", "countrycode": "NLD", "district": "Groningen", "population": 172701}, {"id": 12, "name": "Breda", "countrycode": "NLD", "district": "Noord-Brabant", "population": 160398}, {"id": 13, "name": "Apeldoorn", "countrycode": "NLD", "district": "Gelderland", "population": 153491}, {"id": 14, "name": "Nijmegen", "countrycode": "NLD", "district": "Gelderland", "population": 152463}, {"id": 15, "name": "Enschede", "countrycode": "NLD", "district": "Overijssel", "population": 149544}, {"id": 16, "name": "Haarlem", "countrycode": "NLD", "district": "Noord-Holland", "population": 148772}, {"id": 17, "name": "Almere", "countrycode": "NLD", "district": "Flevoland", "population": 142465}, {"id": 18, "name": "Arnhem", "countrycode": "NLD", "district": "Gelderland", "population": 138020}, {"id": 19, "name": "Zaanstad", "countrycode": "NLD", "district": "Noord-Holland", "population": 135621}, {"id": 20, "name": "\u00b4s-Hertogenbosch", "countrycode": "NLD", "district": "Noord-Brabant", "population": 129170}, {"id": 21, "name": "Amersfoort", "countrycode": "NLD", "district": "Utrecht", "population": 126270}, {"id": 22, "name": "Maastricht", "countrycode": "NLD", "district": "Limburg", "population": 122087}, {"id": 23, "name": "Dordrecht", "countrycode": "NLD", "district": "Zuid-Holland", "population": 119811}, {"id": 24, "name": "Leiden", "countrycode": "NLD", "district": "Zuid-Holland", "population": 117196}, {"id": 25, "name": "Haarlemmermeer", "countrycode": "NLD", "district": "Noord-Holland", "population": 110722}, {"id": 26, "name": "Zoetermeer", "countrycode": "NLD", "district": "Zuid-Holland", "population": 110214}, {"id": 27, "name": "Emmen", "countrycode": "NLD", "district": "Drenthe", "population": 105853}, {"id": 28, "name": "Zwolle", "countrycode": "NLD", "district": "Overijssel", "population": 105819}, {"id": 29, "name": "Ede", "countrycode": "NLD", "district": "Gelderland", "population": 101574}, {"id": 30, "name": "Delft", "countrycode": "NLD", "district": "Zuid-Holland", "population": 95268}, {"id": 31, "name": "Heerlen", "countrycode": "NLD", "district": "Limburg", "population": 95052}, {"id": 32, "name": "Alkmaar", "countrycode": "NLD", "district": "Noord-Holland", "population": 92713}, {"id": 33, "name": "Willemstad", "countrycode": "ANT", "district": "Cura\u00e7ao", "population": 2345}, {"id": 34, "name": "Tirana", "countrycode": "ALB", "district": "Tirana", "population": 270000}, {"id": 35, "name": "Alger", "countrycode": "DZA", "district": "Alger", "population": 2168000}, {"id": 36, "name": "Oran", "countrycode": "DZA", "district": "Oran", "population": 609823}, {"id": 37, "name": "Constantine", "countrycode": "DZA", "district": "Constantine", "population": 443727}, {"id": 38, "name": "Annaba", "countrycode": "DZA", "district": "Annaba", "population": 222518}, {"id": 39, "name": "Batna", "countrycode": "DZA", "district": "Batna", "population": 183377}, {"id": 40, "name": "S\u00e9tif", "countrycode": "DZA", "district": "S\u00e9tif", "population": 179055}, {"id": 41, "name": "Sidi Bel Abb\u00e8s", "countrycode": "DZA", "district": "Sidi Bel Abb\u00e8s", "population": 153106}, {"id": 42, "name": "Skikda", "countrycode": "DZA", "district": "Skikda", "population": 128747}, {"id": 43, "name": "Biskra", "countrycode": "DZA", "district": "Biskra", "population": 128281}, {"id": 44, "name": "Blida (el-Boulaida)", "countrycode": "DZA", "district": "Blida", "population": 127284}, {"id": 45, "name": "B\u00e9ja\u00efa", "countrycode": "DZA", "district": "B\u00e9ja\u00efa", "population": 117162}, {"id": 46, "name": "Mostaganem", "countrycode": "DZA", "district": "Mostaganem", "population": 115212}, {"id": 47, "name": "T\u00e9bessa", "countrycode": "DZA", "district": "T\u00e9bessa", "population": 112007}, {"id": 48, "name": "Tlemcen (Tilimsen)", "countrycode": "DZA", "district": "Tlemcen", "population": 110242}, {"id": 49, "name": "B\u00e9char", "countrycode": "DZA", "district": "B\u00e9char", "population": 107311}, {"id": 50, "name": "Tiaret", "countrycode": "DZA", "district": "Tiaret", "population": 100118}, {"id": 51, "name": "Ech-Chleff (el-Asnam)", "countrycode": "DZA", "district": "Chlef", "population": 96794}, {"id": 52, "name": "Gharda\u00efa", "countrycode": "DZA", "district": "Gharda\u00efa", "population": 89415}, {"id": 53, "name": "Tafuna", "countrycode": "ASM", "district": "Tutuila", "population": 5200}, {"id": 54, "name": "Fagatogo", "countrycode": "ASM", "district": "Tutuila", "population": 2323}, {"id": 55, "name": "Andorra la Vella", "countrycode": "AND", "district": "Andorra la Vella", "population": 21189}, {"id": 56, "name": "Luanda", "countrycode": "AGO", "district": "Luanda", "population": 2022000}, {"id": 57, "name": "Huambo", "countrycode": "AGO", "district": "Huambo", "population": 163100}, {"id": 58, "name": "Lobito", "countrycode": "AGO", "district": "Benguela", "population": 130000}, {"id": 59, "name": "Benguela", "countrycode": "AGO", "district": "Benguela", "population": 128300}, {"id": 60, "name": "Namibe", "countrycode": "AGO", "district": "Namibe", "population": 118200}, {"id": 61, "name": "South Hill", "countrycode": "AIA", "district": "\u2013", "population": 961}, {"id": 62, "name": "The Valley", "countrycode": "AIA", "district": "\u2013", "population": 595}, {"id": 63, "name": "Saint John\u00b4s", "countrycode": "ATG", "district": "St John", "population": 24000}, {"id": 64, "name": "Dubai", "countrycode": "ARE", "district": "Dubai", "population": 669181}, {"id": 65, "name": "Abu Dhabi", "countrycode": "ARE", "district": "Abu Dhabi", "population": 398695}, {"id": 66, "name": "Sharja", "countrycode": "ARE", "district": "Sharja", "population": 320095}, {"id": 67, "name": "al-Ayn", "countrycode": "ARE", "district": "Abu Dhabi", "population": 225970}, {"id": 68, "name": "Ajman", "countrycode": "ARE", "district": "Ajman", "population": 114395}, {"id": 69, "name": "Buenos Aires", "countrycode": "ARG", "district": "Distrito Federal", "population": 2982146}, {"id": 70, "name": "La Matanza", "countrycode": "ARG", "district": "Buenos Aires", "population": 1266461}, {"id": 71, "name": "C\u00f3rdoba", "countrycode": "ARG", "district": "C\u00f3rdoba", "population": 1157507}, {"id": 72, "name": "Rosario", "countrycode": "ARG", "district": "Santa F\u00e9", "population": 907718}, {"id": 73, "name": "Lomas de Zamora", "countrycode": "ARG", "district": "Buenos Aires", "population": 622013}, {"id": 74, "name": "Quilmes", "countrycode": "ARG", "district": "Buenos Aires", "population": 559249}, {"id": 75, "name": "Almirante Brown", "countrycode": "ARG", "district": "Buenos Aires", "population": 538918}, {"id": 76, "name": "La Plata", "countrycode": "ARG", "district": "Buenos Aires", "population": 521936}, {"id": 77, "name": "Mar del Plata", "countrycode": "ARG", "district": "Buenos Aires", "population": 512880}, {"id": 78, "name": "San Miguel de Tucum\u00e1n", "countrycode": "ARG", "district": "Tucum\u00e1n", "population": 470809}, {"id": 79, "name": "Lan\u00fas", "countrycode": "ARG", "district": "Buenos Aires", "population": 469735}, {"id": 80, "name": "Merlo", "countrycode": "ARG", "district": "Buenos Aires", "population": 463846}, {"id": 81, "name": "General San Mart\u00edn", "countrycode": "ARG", "district": "Buenos Aires", "population": 422542}, {"id": 82, "name": "Salta", "countrycode": "ARG", "district": "Salta", "population": 367550}, {"id": 83, "name": "Moreno", "countrycode": "ARG", "district": "Buenos Aires", "population": 356993}, {"id": 84, "name": "Santa F\u00e9", "countrycode": "ARG", "district": "Santa F\u00e9", "population": 353063}, {"id": 85, "name": "Avellaneda", "countrycode": "ARG", "district": "Buenos Aires", "population": 353046}, {"id": 86, "name": "Tres de Febrero", "countrycode": "ARG", "district": "Buenos Aires", "population": 352311}, {"id": 87, "name": "Mor\u00f3n", "countrycode": "ARG", "district": "Buenos Aires", "population": 349246}, {"id": 88, "name": "Florencio Varela", "countrycode": "ARG", "district": "Buenos Aires", "population": 315432}, {"id": 89, "name": "San Isidro", "countrycode": "ARG", "district": "Buenos Aires", "population": 306341}, {"id": 90, "name": "Tigre", "countrycode": "ARG", "district": "Buenos Aires", "population": 296226}, {"id": 91, "name": "Malvinas Argentinas", "countrycode": "ARG", "district": "Buenos Aires", "population": 290335}, {"id": 92, "name": "Vicente L\u00f3pez", "countrycode": "ARG", "district": "Buenos Aires", "population": 288341}, {"id": 93, "name": "Berazategui", "countrycode": "ARG", "district": "Buenos Aires", "population": 276916}, {"id": 94, "name": "Corrientes", "countrycode": "ARG", "district": "Corrientes", "population": 258103}, {"id": 95, "name": "San Miguel", "countrycode": "ARG", "district": "Buenos Aires", "population": 248700}, {"id": 96, "name": "Bah\u00eda Blanca", "countrycode": "ARG", "district": "Buenos Aires", "population": 239810}, {"id": 97, "name": "Esteban Echeverr\u00eda", "countrycode": "ARG", "district": "Buenos Aires", "population": 235760}, {"id": 98, "name": "Resistencia", "countrycode": "ARG", "district": "Chaco", "population": 229212}, {"id": 99, "name": "Jos\u00e9 C. Paz", "countrycode": "ARG", "district": "Buenos Aires", "population": 221754}, {"id": 100, "name": "Paran\u00e1", "countrycode": "ARG", "district": "Entre Rios", "population": 207041}, {"id": 101, "name": "Godoy Cruz", "countrycode": "ARG", "district": "Mendoza", "population": 206998}, {"id": 102, "name": "Posadas", "countrycode": "ARG", "district": "Misiones", "population": 201273}, {"id": 103, "name": "Guaymall\u00e9n", "countrycode": "ARG", "district": "Mendoza", "population": 200595}, {"id": 104, "name": "Santiago del Estero", "countrycode": "ARG", "district": "Santiago del Estero", "population": 189947}, {"id": 105, "name": "San Salvador de Jujuy", "countrycode": "ARG", "district": "Jujuy", "population": 178748}, {"id": 106, "name": "Hurlingham", "countrycode": "ARG", "district": "Buenos Aires", "population": 170028}, {"id": 107, "name": "Neuqu\u00e9n", "countrycode": "ARG", "district": "Neuqu\u00e9n", "population": 167296}, {"id": 108, "name": "Ituzaing\u00f3", "countrycode": "ARG", "district": "Buenos Aires", "population": 158197}, {"id": 109, "name": "San Fernando", "countrycode": "ARG", "district": "Buenos Aires", "population": 153036}, {"id": 110, "name": "Formosa", "countrycode": "ARG", "district": "Formosa", "population": 147636}, {"id": 111, "name": "Las Heras", "countrycode": "ARG", "district": "Mendoza", "population": 145823}, {"id": 112, "name": "La Rioja", "countrycode": "ARG", "district": "La Rioja", "population": 138117}, {"id": 113, "name": "San Fernando del Valle de Cata", "countrycode": "ARG", "district": "Catamarca", "population": 134935}, {"id": 114, "name": "R\u00edo Cuarto", "countrycode": "ARG", "district": "C\u00f3rdoba", "population": 134355}, {"id": 115, "name": "Comodoro Rivadavia", "countrycode": "ARG", "district": "Chubut", "population": 124104}, {"id": 116, "name": "Mendoza", "countrycode": "ARG", "district": "Mendoza", "population": 123027}, {"id": 117, "name": "San Nicol\u00e1s de los Arroyos", "countrycode": "ARG", "district": "Buenos Aires", "population": 119302}, {"id": 118, "name": "San Juan", "countrycode": "ARG", "district": "San Juan", "population": 119152}, {"id": 119, "name": "Escobar", "countrycode": "ARG", "district": "Buenos Aires", "population": 116675}, {"id": 120, "name": "Concordia", "countrycode": "ARG", "district": "Entre Rios", "population": 116485}, {"id": 121, "name": "Pilar", "countrycode": "ARG", "district": "Buenos Aires", "population": 113428}, {"id": 122, "name": "San Luis", "countrycode": "ARG", "district": "San Luis", "population": 110136}, {"id": 123, "name": "Ezeiza", "countrycode": "ARG", "district": "Buenos Aires", "population": 99578}, {"id": 124, "name": "San Rafael", "countrycode": "ARG", "district": "Mendoza", "population": 94651}, {"id": 125, "name": "Tandil", "countrycode": "ARG", "district": "Buenos Aires", "population": 91101}, {"id": 126, "name": "Yerevan", "countrycode": "ARM", "district": "Yerevan", "population": 1248700}, {"id": 127, "name": "Gjumri", "countrycode": "ARM", "district": "\u0160irak", "population": 211700}, {"id": 128, "name": "Vanadzor", "countrycode": "ARM", "district": "Lori", "population": 172700}, {"id": 129, "name": "Oranjestad", "countrycode": "ABW", "district": "\u2013", "population": 29034}, {"id": 130, "name": "Sydney", "countrycode": "AUS", "district": "New South Wales", "population": 3276207}, {"id": 131, "name": "Melbourne", "countrycode": "AUS", "district": "Victoria", "population": 2865329}, {"id": 132, "name": "Brisbane", "countrycode": "AUS", "district": "Queensland", "population": 1291117}, {"id": 133, "name": "Perth", "countrycode": "AUS", "district": "West Australia", "population": 1096829}, {"id": 134, "name": "Adelaide", "countrycode": "AUS", "district": "South Australia", "population": 978100}, {"id": 135, "name": "Canberra", "countrycode": "AUS", "district": "Capital Region", "population": 322723}, {"id": 136, "name": "Gold Coast", "countrycode": "AUS", "district": "Queensland", "population": 311932}, {"id": 137, "name": "Newcastle", "countrycode": "AUS", "district": "New South Wales", "population": 270324}, {"id": 138, "name": "Central Coast", "countrycode": "AUS", "district": "New South Wales", "population": 227657}, {"id": 139, "name": "Wollongong", "countrycode": "AUS", "district": "New South Wales", "population": 219761}, {"id": 140, "name": "Hobart", "countrycode": "AUS", "district": "Tasmania", "population": 126118}, {"id": 141, "name": "Geelong", "countrycode": "AUS", "district": "Victoria", "population": 125382}, {"id": 142, "name": "Townsville", "countrycode": "AUS", "district": "Queensland", "population": 109914}, {"id": 143, "name": "Cairns", "countrycode": "AUS", "district": "Queensland", "population": 92273}, {"id": 144, "name": "Baku", "countrycode": "AZE", "district": "Baki", "population": 1787800}, {"id": 145, "name": "G\u00e4nc\u00e4", "countrycode": "AZE", "district": "G\u00e4nc\u00e4", "population": 299300}, {"id": 146, "name": "Sumqayit", "countrycode": "AZE", "district": "Sumqayit", "population": 283000}, {"id": 147, "name": "Ming\u00e4\u00e7evir", "countrycode": "AZE", "district": "Ming\u00e4\u00e7evir", "population": 93900}, {"id": 148, "name": "Nassau", "countrycode": "BHS", "district": "New Providence", "population": 172000}, {"id": 149, "name": "al-Manama", "countrycode": "BHR", "district": "al-Manama", "population": 148000}, {"id": 150, "name": "Dhaka", "countrycode": "BGD", "district": "Dhaka", "population": 3612850}, {"id": 151, "name": "Chittagong", "countrycode": "BGD", "district": "Chittagong", "population": 1392860}, {"id": 152, "name": "Khulna", "countrycode": "BGD", "district": "Khulna", "population": 663340}, {"id": 153, "name": "Rajshahi", "countrycode": "BGD", "district": "Rajshahi", "population": 294056}, {"id": 154, "name": "Narayanganj", "countrycode": "BGD", "district": "Dhaka", "population": 202134}, {"id": 155, "name": "Rangpur", "countrycode": "BGD", "district": "Rajshahi", "population": 191398}, {"id": 156, "name": "Mymensingh", "countrycode": "BGD", "district": "Dhaka", "population": 188713}, {"id": 157, "name": "Barisal", "countrycode": "BGD", "district": "Barisal", "population": 170232}, {"id": 158, "name": "Tungi", "countrycode": "BGD", "district": "Dhaka", "population": 168702}, {"id": 159, "name": "Jessore", "countrycode": "BGD", "district": "Khulna", "population": 139710}, {"id": 160, "name": "Comilla", "countrycode": "BGD", "district": "Chittagong", "population": 135313}, {"id": 161, "name": "Nawabganj", "countrycode": "BGD", "district": "Rajshahi", "population": 130577}, {"id": 162, "name": "Dinajpur", "countrycode": "BGD", "district": "Rajshahi", "population": 127815}, {"id": 163, "name": "Bogra", "countrycode": "BGD", "district": "Rajshahi", "population": 120170}, {"id": 164, "name": "Sylhet", "countrycode": "BGD", "district": "Sylhet", "population": 117396}, {"id": 165, "name": "Brahmanbaria", "countrycode": "BGD", "district": "Chittagong", "population": 109032}, {"id": 166, "name": "Tangail", "countrycode": "BGD", "district": "Dhaka", "population": 106004}, {"id": 167, "name": "Jamalpur", "countrycode": "BGD", "district": "Dhaka", "population": 103556}, {"id": 168, "name": "Pabna", "countrycode": "BGD", "district": "Rajshahi", "population": 103277}, {"id": 169, "name": "Naogaon", "countrycode": "BGD", "district": "Rajshahi", "population": 101266}, {"id": 170, "name": "Sirajganj", "countrycode": "BGD", "district": "Rajshahi", "population": 99669}, {"id": 171, "name": "Narsinghdi", "countrycode": "BGD", "district": "Dhaka", "population": 98342}, {"id": 172, "name": "Saidpur", "countrycode": "BGD", "district": "Rajshahi", "population": 96777}, {"id": 173, "name": "Gazipur", "countrycode": "BGD", "district": "Dhaka", "population": 96717}, {"id": 174, "name": "Bridgetown", "countrycode": "BRB", "district": "St Michael", "population": 6070}, {"id": 175, "name": "Antwerpen", "countrycode": "BEL", "district": "Antwerpen", "population": 446525}, {"id": 176, "name": "Gent", "countrycode": "BEL", "district": "East Flanderi", "population": 224180}, {"id": 177, "name": "Charleroi", "countrycode": "BEL", "district": "Hainaut", "population": 200827}, {"id": 178, "name": "Li\u00e8ge", "countrycode": "BEL", "district": "Li\u00e8ge", "population": 185639}, {"id": 179, "name": "Bruxelles [Brussel]", "countrycode": "BEL", "district": "Bryssel", "population": 133859}, {"id": 180, "name": "Brugge", "countrycode": "BEL", "district": "West Flanderi", "population": 116246}, {"id": 181, "name": "Schaerbeek", "countrycode": "BEL", "district": "Bryssel", "population": 105692}, {"id": 182, "name": "Namur", "countrycode": "BEL", "district": "Namur", "population": 105419}, {"id": 183, "name": "Mons", "countrycode": "BEL", "district": "Hainaut", "population": 90935}, {"id": 184, "name": "Belize City", "countrycode": "BLZ", "district": "Belize City", "population": 55810}, {"id": 185, "name": "Belmopan", "countrycode": "BLZ", "district": "Cayo", "population": 7105}, {"id": 186, "name": "Cotonou", "countrycode": "BEN", "district": "Atlantique", "population": 536827}, {"id": 187, "name": "Porto-Novo", "countrycode": "BEN", "district": "Ou\u00e9m\u00e9", "population": 194000}, {"id": 188, "name": "Djougou", "countrycode": "BEN", "district": "Atacora", "population": 134099}, {"id": 189, "name": "Parakou", "countrycode": "BEN", "district": "Borgou", "population": 103577}, {"id": 190, "name": "Saint George", "countrycode": "BMU", "district": "Saint George\u00b4s", "population": 1800}, {"id": 191, "name": "Hamilton", "countrycode": "BMU", "district": "Hamilton", "population": 1200}, {"id": 192, "name": "Thimphu", "countrycode": "BTN", "district": "Thimphu", "population": 22000}, {"id": 193, "name": "Santa Cruz de la Sierra", "countrycode": "BOL", "district": "Santa Cruz", "population": 935361}, {"id": 194, "name": "La Paz", "countrycode": "BOL", "district": "La Paz", "population": 758141}, {"id": 195, "name": "El Alto", "countrycode": "BOL", "district": "La Paz", "population": 534466}, {"id": 196, "name": "Cochabamba", "countrycode": "BOL", "district": "Cochabamba", "population": 482800}, {"id": 197, "name": "Oruro", "countrycode": "BOL", "district": "Oruro", "population": 223553}, {"id": 198, "name": "Sucre", "countrycode": "BOL", "district": "Chuquisaca", "population": 178426}, {"id": 199, "name": "Potos\u00ed", "countrycode": "BOL", "district": "Potos\u00ed", "population": 140642}, {"id": 200, "name": "Tarija", "countrycode": "BOL", "district": "Tarija", "population": 125255}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(countrycode == \"BGD\")\n\nsummary = filtered_city\n |> group_by(name)\n |> aggregate(avg_population: avg(population), count: count())\n\nresult = summary\n |> sort_by(avg_population, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(countrycode == \"population\")\n\nsummary = filtered_city\n |> group_by(name)\n |> aggregate(avg_population: avg(population), count: count())\n\nresult = summary\n |> sort_by(avg_population, asc)\n |> take(9)\n\nemit result", "expected_output": [{"name": "Gazipur", "avg_population": 96717.0, "count": 1}, {"name": "Saidpur", "avg_population": 96777.0, "count": 1}, {"name": "Narsinghdi", "avg_population": 98342.0, "count": 1}, {"name": "Sirajganj", "avg_population": 99669.0, "count": 1}, {"name": "Naogaon", "avg_population": 101266.0, "count": 1}, {"name": "Pabna", "avg_population": 103277.0, "count": 1}, {"name": "Jamalpur", "avg_population": 103556.0, "count": 1}, {"name": "Tangail", "avg_population": 106004.0, "count": 1}, {"name": "Brahmanbaria", "avg_population": 109032.0, "count": 1}, {"name": "Sylhet", "avg_population": 117396.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 9", "line_num": 13, "original": "|> take(10)", "mutated": "|> take(9)"}, {"category": "wrong_col", "description": "Wrong column reference: 'BGD' \u2192 'population'", "line_num": 5, "original": "|> filter(countrycode == \"BGD\")", "mutated": "|> filter(countrycode == \"population\")"}], "difficulty": "hard", "domain": "world_1__city", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"advisor": [{"s_id": "24746", "i_id": "19368"}, {"s_id": "79352", "i_id": "95030"}, {"s_id": "76672", "i_id": "22591"}, {"s_id": "14182", "i_id": "77346"}, {"s_id": "44985", "i_id": "31955"}, {"s_id": "96052", "i_id": "73623"}, {"s_id": "35175", "i_id": "90643"}, {"s_id": "44271", "i_id": "58558"}, {"s_id": "40897", "i_id": "73623"}, {"s_id": "92839", "i_id": "25946"}, {"s_id": "79329", "i_id": "58558"}, {"s_id": "97101", "i_id": "48570"}, {"s_id": "24865", "i_id": "6569"}, {"s_id": "36052", "i_id": "31955"}, {"s_id": "98940", "i_id": "99052"}, {"s_id": "21395", "i_id": "58558"}, {"s_id": "55859", "i_id": "28097"}, {"s_id": "74016", "i_id": "74420"}, {"s_id": "93061", "i_id": "64871"}, {"s_id": "94998", "i_id": "50330"}, {"s_id": "30772", "i_id": "57180"}, {"s_id": "1968", "i_id": "3335"}, {"s_id": "90567", "i_id": "48507"}, {"s_id": "49611", "i_id": "58558"}, {"s_id": "81538", "i_id": "59795"}, {"s_id": "68999", "i_id": "6569"}, {"s_id": "74639", "i_id": "41930"}, {"s_id": "66054", "i_id": "25946"}, {"s_id": "792", "i_id": "48507"}, {"s_id": "60267", "i_id": "81991"}, {"s_id": "17769", "i_id": "36897"}, {"s_id": "39580", "i_id": "3199"}, {"s_id": "89106", "i_id": "15347"}, {"s_id": "37856", "i_id": "25946"}, {"s_id": "58307", "i_id": "48507"}, {"s_id": "57985", "i_id": "52647"}, {"s_id": "72014", "i_id": "22591"}, {"s_id": "2795", "i_id": "28400"}, {"s_id": "89000", "i_id": "58558"}, {"s_id": "46442", "i_id": "48570"}, {"s_id": "60040", "i_id": "15347"}, {"s_id": "19791", "i_id": "59795"}, {"s_id": "4582", "i_id": "64871"}, {"s_id": "108", "i_id": "77346"}, {"s_id": "1533", "i_id": "50885"}, {"s_id": "7123", "i_id": "65931"}, {"s_id": "44584", "i_id": "64871"}, {"s_id": "32954", "i_id": "90376"}, {"s_id": "98056", "i_id": "73623"}, {"s_id": "76953", "i_id": "79081"}, {"s_id": "81884", "i_id": "3199"}, {"s_id": "22057", "i_id": "48507"}, {"s_id": "21126", "i_id": "52647"}, {"s_id": "82918", "i_id": "81991"}, {"s_id": "4173", "i_id": "25946"}, {"s_id": "83022", "i_id": "64871"}, {"s_id": "25525", "i_id": "96895"}, {"s_id": "75040", "i_id": "80759"}, {"s_id": "31624", "i_id": "41930"}, {"s_id": "64893", "i_id": "96895"}, {"s_id": "59920", "i_id": "72553"}, {"s_id": "38602", "i_id": "77346"}, {"s_id": "21401", "i_id": "79081"}, {"s_id": "93004", "i_id": "15347"}, {"s_id": "38899", "i_id": "37687"}, {"s_id": "75241", "i_id": "28097"}, {"s_id": "98830", "i_id": "80759"}, {"s_id": "37101", "i_id": "80759"}, {"s_id": "4508", "i_id": "28097"}, {"s_id": "32130", "i_id": "16807"}, {"s_id": "56755", "i_id": "79653"}, {"s_id": "11510", "i_id": "95709"}, {"s_id": "3335", "i_id": "74420"}, {"s_id": "61081", "i_id": "80759"}, {"s_id": "33651", "i_id": "96895"}, {"s_id": "8251", "i_id": "73623"}, {"s_id": "10705", "i_id": "6569"}, {"s_id": "64082", "i_id": "74426"}, {"s_id": "59517", "i_id": "34175"}, {"s_id": "91569", "i_id": "14365"}, {"s_id": "88085", "i_id": "28400"}, {"s_id": "96722", "i_id": "58558"}, {"s_id": "36379", "i_id": "42782"}, {"s_id": "69581", "i_id": "25946"}, {"s_id": "65329", "i_id": "3335"}, {"s_id": "49214", "i_id": "4034"}, {"s_id": "64155", "i_id": "36897"}, {"s_id": "58594", "i_id": "74420"}, {"s_id": "71904", "i_id": "95030"}, {"s_id": "69241", "i_id": "72553"}, {"s_id": "58889", "i_id": "3335"}, {"s_id": "30341", "i_id": "79081"}, {"s_id": "70688", "i_id": "97302"}, {"s_id": "81258", "i_id": "58558"}, {"s_id": "63090", "i_id": "25946"}, {"s_id": "70572", "i_id": "35579"}, {"s_id": "58413", "i_id": "28400"}, {"s_id": "93171", "i_id": "6569"}, {"s_id": "35138", "i_id": "41930"}, {"s_id": "77289", "i_id": "59795"}, {"s_id": "93571", "i_id": "57180"}, {"s_id": "14554", "i_id": "22591"}, {"s_id": "46725", "i_id": "90376"}, {"s_id": "99730", "i_id": "3199"}, {"s_id": "10527", "i_id": "36897"}, {"s_id": "898", "i_id": "22591"}, {"s_id": "64297", "i_id": "43779"}, {"s_id": "10204", "i_id": "65931"}, {"s_id": "36926", "i_id": "43779"}, {"s_id": "49618", "i_id": "74426"}, {"s_id": "34329", "i_id": "81991"}, {"s_id": "84410", "i_id": "81991"}, {"s_id": "29435", "i_id": "77346"}, {"s_id": "62636", "i_id": "79081"}, {"s_id": "8483", "i_id": "74426"}, {"s_id": "2177", "i_id": "50330"}, {"s_id": "43348", "i_id": "81991"}, {"s_id": "37430", "i_id": "41930"}, {"s_id": "37586", "i_id": "81991"}, {"s_id": "55238", "i_id": "35579"}, {"s_id": "34404", "i_id": "74426"}, {"s_id": "59539", "i_id": "28400"}, {"s_id": "43123", "i_id": "95030"}, {"s_id": "19582", "i_id": "96895"}, {"s_id": "88553", "i_id": "31955"}, {"s_id": "5898", "i_id": "34175"}, {"s_id": "2419", "i_id": "73623"}, {"s_id": "31516", "i_id": "95030"}, {"s_id": "3487", "i_id": "4034"}, {"s_id": "66269", "i_id": "58558"}, {"s_id": "54622", "i_id": "4034"}, {"s_id": "19638", "i_id": "4034"}, {"s_id": "88418", "i_id": "57180"}, {"s_id": "86802", "i_id": "35579"}, {"s_id": "63361", "i_id": "90643"}, {"s_id": "6367", "i_id": "14365"}, {"s_id": "84239", "i_id": "22591"}, {"s_id": "4940", "i_id": "15347"}, {"s_id": "90663", "i_id": "77346"}, {"s_id": "38476", "i_id": "95030"}, {"s_id": "96003", "i_id": "3335"}, {"s_id": "64914", "i_id": "14365"}, {"s_id": "41599", "i_id": "48507"}, {"s_id": "22226", "i_id": "64871"}, {"s_id": "96153", "i_id": "28097"}, {"s_id": "44998", "i_id": "36897"}, {"s_id": "74163", "i_id": "80759"}, {"s_id": "75046", "i_id": "16807"}, {"s_id": "97679", "i_id": "43779"}, {"s_id": "94894", "i_id": "78699"}, {"s_id": "44881", "i_id": "22591"}, {"s_id": "98619", "i_id": "77346"}, {"s_id": "86753", "i_id": "22591"}, {"s_id": "87054", "i_id": "35579"}, {"s_id": "39046", "i_id": "19368"}, {"s_id": "29031", "i_id": "78699"}, {"s_id": "97355", "i_id": "28400"}, {"s_id": "24010", "i_id": "80759"}, {"s_id": "21789", "i_id": "63395"}, {"s_id": "52157", "i_id": "65931"}, {"s_id": "64938", "i_id": "52647"}, {"s_id": "94535", "i_id": "50885"}, {"s_id": "58595", "i_id": "31955"}, {"s_id": "72979", "i_id": "41930"}, {"s_id": "32506", "i_id": "28097"}, {"s_id": "31690", "i_id": "14365"}, {"s_id": "87044", "i_id": "36897"}, {"s_id": "34236", "i_id": "57180"}, {"s_id": "18808", "i_id": "77346"}, {"s_id": "91063", "i_id": "52647"}, {"s_id": "48462", "i_id": "52647"}, {"s_id": "41965", "i_id": "65931"}, {"s_id": "31137", "i_id": "50330"}, {"s_id": "7602", "i_id": "63287"}, {"s_id": "84845", "i_id": "6569"}, {"s_id": "28252", "i_id": "90643"}, {"s_id": "10736", "i_id": "90643"}, {"s_id": "58465", "i_id": "59795"}, {"s_id": "64140", "i_id": "52647"}, {"s_id": "6523", "i_id": "43779"}, {"s_id": "64067", "i_id": "77346"}, {"s_id": "99399", "i_id": "4034"}, {"s_id": "21337", "i_id": "43779"}, {"s_id": "15457", "i_id": "95709"}, {"s_id": "26102", "i_id": "99052"}, {"s_id": "31337", "i_id": "50330"}, {"s_id": "67425", "i_id": "42782"}, {"s_id": "48640", "i_id": "3335"}, {"s_id": "72741", "i_id": "80759"}, {"s_id": "29803", "i_id": "3199"}, {"s_id": "38895", "i_id": "15347"}, {"s_id": "49391", "i_id": "16807"}, {"s_id": "13741", "i_id": "4034"}, {"s_id": "59538", "i_id": "42782"}, {"s_id": "9360", "i_id": "28097"}, {"s_id": "53728", "i_id": "57180"}, {"s_id": "77898", "i_id": "15347"}, {"s_id": "32419", "i_id": "95030"}, {"s_id": "37521", "i_id": "4034"}, {"s_id": "97065", "i_id": "79653"}], "instructor": [{"id": "63395", "name": "McKinnon", "dept_name": "Cybernetics", "salary": 94333.99}, {"id": "78699", "name": "Pingr", "dept_name": "Statistics", "salary": 59303.62}, {"id": "96895", "name": "Mird", "dept_name": "Marketing", "salary": 119921.41}, {"id": "4233", "name": "Luo", "dept_name": "English", "salary": 88791.45}, {"id": "4034", "name": "Murata", "dept_name": "Athletics", "salary": 61387.56}, {"id": "50885", "name": "Konstantinides", "dept_name": "Languages", "salary": 32570.5}, {"id": "79653", "name": "Levine", "dept_name": "Elec. Eng.", "salary": 89805.83}, {"id": "50330", "name": "Shuming", "dept_name": "Physics", "salary": 108011.81}, {"id": "80759", "name": "Queiroz", "dept_name": "Biology", "salary": 45538.32}, {"id": "73623", "name": "Sullivan", "dept_name": "Elec. Eng.", "salary": 90038.09}, {"id": "97302", "name": "Bertolino", "dept_name": "Mech. Eng.", "salary": 51647.57}, {"id": "57180", "name": "Hau", "dept_name": "Accounting", "salary": 43966.29}, {"id": "74420", "name": "Voronina", "dept_name": "Physics", "salary": 121141.99}, {"id": "35579", "name": "Soisalon-Soininen", "dept_name": "Psychology", "salary": 62579.61}, {"id": "31955", "name": "Moreira", "dept_name": "Accounting", "salary": 71351.42}, {"id": "37687", "name": "Arias", "dept_name": "Statistics", "salary": 104563.38}, {"id": "6569", "name": "Mingoz", "dept_name": "Finance", "salary": 105311.38}, {"id": "16807", "name": "Yazdi", "dept_name": "Athletics", "salary": 98333.65}, {"id": "14365", "name": "Lembr", "dept_name": "Accounting", "salary": 32241.56}, {"id": "90643", "name": "Choll", "dept_name": "Statistics", "salary": 57807.09}, {"id": "81991", "name": "Valtchev", "dept_name": "Biology", "salary": 77036.18}, {"id": "95030", "name": "Arinb", "dept_name": "Statistics", "salary": 54805.11}, {"id": "15347", "name": "Bawa", "dept_name": "Athletics", "salary": 72140.88}, {"id": "74426", "name": "Kenje", "dept_name": "Marketing", "salary": 106554.73}, {"id": "42782", "name": "Vicentino", "dept_name": "Elec. Eng.", "salary": 34272.67}, {"id": "58558", "name": "Dusserre", "dept_name": "Marketing", "salary": 66143.25}, {"id": "63287", "name": "Jaekel", "dept_name": "Athletics", "salary": 103146.87}, {"id": "59795", "name": "Desyl", "dept_name": "Languages", "salary": 48803.38}, {"id": "22591", "name": "DAgostino", "dept_name": "Psychology", "salary": 59706.49}, {"id": "48570", "name": "Sarkar", "dept_name": "Pol. Sci.", "salary": 87549.8}, {"id": "79081", "name": "Ullman ", "dept_name": "Accounting", "salary": 47307.1}, {"id": "52647", "name": "Bancilhon", "dept_name": "Pol. Sci.", "salary": 87958.01}, {"id": "25946", "name": "Liley", "dept_name": "Languages", "salary": 90891.69}, {"id": "36897", "name": "Morris", "dept_name": "Marketing", "salary": 43770.36}, {"id": "72553", "name": "Yin", "dept_name": "English", "salary": 46397.59}, {"id": "3199", "name": "Gustafsson", "dept_name": "Elec. Eng.", "salary": 82534.37}, {"id": "34175", "name": "Bondi", "dept_name": "Comp. Sci.", "salary": 115469.11}, {"id": "48507", "name": "Lent", "dept_name": "Mech. Eng.", "salary": 107978.47}, {"id": "65931", "name": "Pimenta", "dept_name": "Cybernetics", "salary": 79866.95}, {"id": "3335", "name": "Bourrier", "dept_name": "Comp. Sci.", "salary": 80797.83}, {"id": "64871", "name": "Gutierrez", "dept_name": "Statistics", "salary": 45310.53}, {"id": "95709", "name": "Sakurai", "dept_name": "English", "salary": 118143.98}, {"id": "43779", "name": "Romero", "dept_name": "Astronomy", "salary": 79070.08}, {"id": "77346", "name": "Mahmoud", "dept_name": "Geology", "salary": 99382.59}, {"id": "28097", "name": "Kean", "dept_name": "English", "salary": 35023.18}, {"id": "90376", "name": "Bietzk", "dept_name": "Cybernetics", "salary": 117836.5}, {"id": "28400", "name": "Atanassov", "dept_name": "Statistics", "salary": 84982.92}, {"id": "41930", "name": "Tung", "dept_name": "Athletics", "salary": 50482.03}, {"id": "19368", "name": "Wieland", "dept_name": "Pol. Sci.", "salary": 124651.41}, {"id": "99052", "name": "Dale", "dept_name": "Cybernetics", "salary": 93348.83}]}, "correct_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(s_id == \"86802\")\n |> select(i_id, s_id)\n\nemit filtered_advisor", "buggy_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(s_id <= \"86802\")\n |> select(i_id, s_id)\n\nemit filtered_advisor", "expected_output": [{"i_id": "35579", "s_id": "86802"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(s_id == \"86802\")", "mutated": "|> filter(s_id <= \"86802\")"}], "difficulty": "easy", "domain": "college_2__advisor", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"treatments": [{"treatment_id": 1, "dog_id": 14, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-19 04:39:54", "cost_of_treatment": 567}, {"treatment_id": 2, "dog_id": 4, "professional_id": 10, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-15 20:25:34", "cost_of_treatment": 147}, {"treatment_id": 3, "dog_id": 14, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-08 05:26:23", "cost_of_treatment": 429}, {"treatment_id": 4, "dog_id": 2, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-01 04:14:46", "cost_of_treatment": 266}, {"treatment_id": 5, "dog_id": 12, "professional_id": 14, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-23 13:52:10", "cost_of_treatment": 668}, {"treatment_id": 6, "dog_id": 10, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-11 04:23:15", "cost_of_treatment": 313}, {"treatment_id": 7, "dog_id": 15, "professional_id": 14, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-10 11:45:58", "cost_of_treatment": 852}, {"treatment_id": 8, "dog_id": 2, "professional_id": 6, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-24 22:25:58", "cost_of_treatment": 407}, {"treatment_id": 9, "dog_id": 14, "professional_id": 10, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-14 19:10:40", "cost_of_treatment": 139}, {"treatment_id": 10, "dog_id": 10, "professional_id": 7, "treatment_type_code": "WALK", "date_of_treatment": "2018-02-28 17:09:43", "cost_of_treatment": 681}, {"treatment_id": 11, "dog_id": 15, "professional_id": 5, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-13 12:22:58", "cost_of_treatment": 514}, {"treatment_id": 12, "dog_id": 13, "professional_id": 9, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-16 10:27:36", "cost_of_treatment": 428}, {"treatment_id": 13, "dog_id": 7, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-02-26 09:08:53", "cost_of_treatment": 945}, {"treatment_id": 14, "dog_id": 10, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-04 20:33:43", "cost_of_treatment": 349}, {"treatment_id": 15, "dog_id": 1, "professional_id": 6, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-15 19:10:02", "cost_of_treatment": 656}], "treatment_types": [{"treatment_type_code": "EXAM", "treatment_type_description": "Physical examination"}, {"treatment_type_code": "VAC", "treatment_type_description": "Vaccination"}, {"treatment_type_code": "WALK", "treatment_type_description": "Take for a Walk"}]}, "correct_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nsummary = treatments\n |> group_by(date_of_treatment)\n |> aggregate(min_treatment_id: min(treatment_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nsummary = treatments\n |> group_by(date_of_treatment)\n |> aggregate(date_of_treatment: min(treatment_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"date_of_treatment": "2018-03-19 04:39:54", "min_treatment_id": 1, "count": 1}, {"date_of_treatment": "2018-03-15 20:25:34", "min_treatment_id": 2, "count": 1}, {"date_of_treatment": "2018-03-08 05:26:23", "min_treatment_id": 3, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'min_treatment_id' \u2192 'date_of_treatment'", "line_num": 6, "original": "|> aggregate(min_treatment_id: min(treatment_id), count: count())", "mutated": "|> aggregate(date_of_treatment: min(treatment_id), count: count())"}], "difficulty": "medium", "domain": "dog_kennels__treatments", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"constructorstandings": [{"constructorstandingsid": 1, "raceid": 18, "constructorid": 1, "points": 14.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 2, "raceid": 18, "constructorid": 2, "points": 8.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 3, "raceid": 18, "constructorid": 3, "points": 9.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 4, "raceid": 18, "constructorid": 4, "points": 5.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 5, "raceid": 18, "constructorid": 5, "points": 2.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 6, "raceid": 18, "constructorid": 6, "points": 1.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 7, "raceid": 19, "constructorid": 1, "points": 24.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 8, "raceid": 19, "constructorid": 2, "points": 19.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 9, "raceid": 19, "constructorid": 3, "points": 9.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 10, "raceid": 19, "constructorid": 4, "points": 6.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 11, "raceid": 19, "constructorid": 5, "points": 2.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 12, "raceid": 19, "constructorid": 6, "points": 11.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 13, "raceid": 19, "constructorid": 7, "points": 5.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 14, "raceid": 19, "constructorid": 9, "points": 2.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 15, "raceid": 19, "constructorid": 11, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 16, "raceid": 19, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 17, "raceid": 19, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 18, "raceid": 20, "constructorid": 1, "points": 28.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 19, "raceid": 20, "constructorid": 2, "points": 30.0, "position": 1, "positiontext": "1", "wins": 0}, {"constructorstandingsid": 20, "raceid": 20, "constructorid": 3, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 21, "raceid": 20, "constructorid": 4, "points": 6.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 22, "raceid": 20, "constructorid": 5, "points": 2.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 23, "raceid": 20, "constructorid": 6, "points": 29.0, "position": 2, "positiontext": "2", "wins": 2}, {"constructorstandingsid": 24, "raceid": 20, "constructorid": 7, "points": 8.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 25, "raceid": 20, "constructorid": 9, "points": 4.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 26, "raceid": 20, "constructorid": 11, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 27, "raceid": 20, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 28, "raceid": 20, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 29, "raceid": 21, "constructorid": 1, "points": 34.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 30, "raceid": 21, "constructorid": 2, "points": 35.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 31, "raceid": 21, "constructorid": 3, "points": 12.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 32, "raceid": 21, "constructorid": 4, "points": 6.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 33, "raceid": 21, "constructorid": 5, "points": 2.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 34, "raceid": 21, "constructorid": 6, "points": 47.0, "position": 1, "positiontext": "1", "wins": 3}, {"constructorstandingsid": 35, "raceid": 21, "constructorid": 7, "points": 9.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 36, "raceid": 21, "constructorid": 9, "points": 8.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 37, "raceid": 21, "constructorid": 11, "points": 3.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 38, "raceid": 21, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 39, "raceid": 21, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 40, "raceid": 22, "constructorid": 1, "points": 42.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 41, "raceid": 22, "constructorid": 2, "points": 44.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 42, "raceid": 22, "constructorid": 3, "points": 13.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 43, "raceid": 22, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 44, "raceid": 22, "constructorid": 5, "points": 2.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 45, "raceid": 22, "constructorid": 6, "points": 63.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 46, "raceid": 22, "constructorid": 7, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 47, "raceid": 22, "constructorid": 9, "points": 10.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 48, "raceid": 22, "constructorid": 11, "points": 3.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 49, "raceid": 22, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 50, "raceid": 22, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 51, "raceid": 23, "constructorid": 1, "points": 53.0, "position": 2, "positiontext": "2", "wins": 2}, {"constructorstandingsid": 52, "raceid": 23, "constructorid": 2, "points": 52.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 53, "raceid": 23, "constructorid": 3, "points": 15.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 54, "raceid": 23, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 55, "raceid": 23, "constructorid": 5, "points": 6.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 56, "raceid": 23, "constructorid": 6, "points": 69.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 57, "raceid": 23, "constructorid": 7, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 58, "raceid": 23, "constructorid": 9, "points": 15.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 59, "raceid": 23, "constructorid": 11, "points": 6.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 60, "raceid": 23, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 61, "raceid": 23, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 62, "raceid": 24, "constructorid": 1, "points": 53.0, "position": 3, "positiontext": "3", "wins": 2}, {"constructorstandingsid": 63, "raceid": 24, "constructorid": 2, "points": 70.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 64, "raceid": 24, "constructorid": 3, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 65, "raceid": 24, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 66, "raceid": 24, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 67, "raceid": 24, "constructorid": 6, "points": 73.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 68, "raceid": 24, "constructorid": 7, "points": 17.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 69, "raceid": 24, "constructorid": 9, "points": 21.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 70, "raceid": 24, "constructorid": 11, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 71, "raceid": 24, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 72, "raceid": 24, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 73, "raceid": 25, "constructorid": 1, "points": 58.0, "position": 3, "positiontext": "3", "wins": 2}, {"constructorstandingsid": 74, "raceid": 25, "constructorid": 2, "points": 74.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 75, "raceid": 25, "constructorid": 3, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 76, "raceid": 25, "constructorid": 4, "points": 12.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 77, "raceid": 25, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 78, "raceid": 25, "constructorid": 6, "points": 91.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 79, "raceid": 25, "constructorid": 7, "points": 23.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 80, "raceid": 25, "constructorid": 9, "points": 24.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 81, "raceid": 25, "constructorid": 11, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 82, "raceid": 25, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 83, "raceid": 25, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 84, "raceid": 26, "constructorid": 1, "points": 72.0, "position": 3, "positiontext": "3", "wins": 3}, {"constructorstandingsid": 85, "raceid": 26, "constructorid": 2, "points": 82.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 86, "raceid": 26, "constructorid": 3, "points": 16.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 87, "raceid": 26, "constructorid": 4, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 88, "raceid": 26, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 89, "raceid": 26, "constructorid": 6, "points": 96.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 90, "raceid": 26, "constructorid": 7, "points": 25.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 91, "raceid": 26, "constructorid": 9, "points": 24.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 92, "raceid": 26, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 93, "raceid": 26, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 94, "raceid": 26, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 95, "raceid": 27, "constructorid": 1, "points": 86.0, "position": 3, "positiontext": "3", "wins": 4}, {"constructorstandingsid": 96, "raceid": 27, "constructorid": 2, "points": 89.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 97, "raceid": 27, "constructorid": 3, "points": 16.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 98, "raceid": 27, "constructorid": 4, "points": 23.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 99, "raceid": 27, "constructorid": 5, "points": 8.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 100, "raceid": 27, "constructorid": 6, "points": 105.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 101, "raceid": 27, "constructorid": 7, "points": 25.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 102, "raceid": 27, "constructorid": 9, "points": 24.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 103, "raceid": 27, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 104, "raceid": 27, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 105, "raceid": 27, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 106, "raceid": 28, "constructorid": 1, "points": 100.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 107, "raceid": 28, "constructorid": 2, "points": 90.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 108, "raceid": 28, "constructorid": 3, "points": 16.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 109, "raceid": 28, "constructorid": 4, "points": 31.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 110, "raceid": 28, "constructorid": 5, "points": 8.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 111, "raceid": 28, "constructorid": 6, "points": 111.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 112, "raceid": 28, "constructorid": 7, "points": 35.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 113, "raceid": 28, "constructorid": 9, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 114, "raceid": 28, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 115, "raceid": 28, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 116, "raceid": 28, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 117, "raceid": 29, "constructorid": 1, "points": 113.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 118, "raceid": 29, "constructorid": 2, "points": 96.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 119, "raceid": 29, "constructorid": 3, "points": 17.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 120, "raceid": 29, "constructorid": 4, "points": 31.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 121, "raceid": 29, "constructorid": 5, "points": 11.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 122, "raceid": 29, "constructorid": 6, "points": 121.0, "position": 1, "positiontext": "1", "wins": 6}, {"constructorstandingsid": 123, "raceid": 29, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 124, "raceid": 29, "constructorid": 9, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 125, "raceid": 29, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 126, "raceid": 29, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 127, "raceid": 29, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 128, "raceid": 30, "constructorid": 1, "points": 119.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 129, "raceid": 30, "constructorid": 2, "points": 107.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 130, "raceid": 30, "constructorid": 3, "points": 17.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 131, "raceid": 30, "constructorid": 4, "points": 36.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 132, "raceid": 30, "constructorid": 5, "points": 17.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 133, "raceid": 30, "constructorid": 6, "points": 131.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 134, "raceid": 30, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 135, "raceid": 30, "constructorid": 9, "points": 25.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 136, "raceid": 30, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 137, "raceid": 30, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 138, "raceid": 30, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 139, "raceid": 31, "constructorid": 1, "points": 129.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 140, "raceid": 31, "constructorid": 2, "points": 117.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 141, "raceid": 31, "constructorid": 3, "points": 17.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 142, "raceid": 31, "constructorid": 4, "points": 41.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 143, "raceid": 31, "constructorid": 5, "points": 27.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 144, "raceid": 31, "constructorid": 6, "points": 134.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 145, "raceid": 31, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 146, "raceid": 31, "constructorid": 9, "points": 26.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 147, "raceid": 31, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 148, "raceid": 31, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 149, "raceid": 31, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 150, "raceid": 32, "constructorid": 1, "points": 135.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 151, "raceid": 32, "constructorid": 2, "points": 120.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 152, "raceid": 32, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 153, "raceid": 32, "constructorid": 4, "points": 51.0, "position": 4, "positiontext": "4", "wins": 1}, {"constructorstandingsid": 154, "raceid": 32, "constructorid": 5, "points": 31.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 155, "raceid": 32, "constructorid": 6, "points": 134.0, "position": 2, "positiontext": "2", "wins": 7}, {"constructorstandingsid": 156, "raceid": 32, "constructorid": 7, "points": 46.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 157, "raceid": 32, "constructorid": 9, "points": 28.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 158, "raceid": 32, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 159, "raceid": 32, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 160, "raceid": 32, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 161, "raceid": 33, "constructorid": 1, "points": 135.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 162, "raceid": 33, "constructorid": 2, "points": 128.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 163, "raceid": 33, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 164, "raceid": 33, "constructorid": 4, "points": 66.0, "position": 4, "positiontext": "4", "wins": 2}, {"constructorstandingsid": 165, "raceid": 33, "constructorid": 5, "points": 34.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 166, "raceid": 33, "constructorid": 6, "points": 142.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 167, "raceid": 33, "constructorid": 7, "points": 50.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 168, "raceid": 33, "constructorid": 9, "points": 29.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 169, "raceid": 33, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 170, "raceid": 33, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 171, "raceid": 33, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 183, "raceid": 35, "constructorid": 1, "points": 151.0, "position": 2, "positiontext": "2", "wins": 6}, {"constructorstandingsid": 184, "raceid": 35, "constructorid": 2, "points": 135.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 185, "raceid": 35, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 186, "raceid": 35, "constructorid": 4, "points": 80.0, "position": 4, "positiontext": "4", "wins": 2}, {"constructorstandingsid": 187, "raceid": 35, "constructorid": 5, "points": 39.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 188, "raceid": 35, "constructorid": 6, "points": 172.0, "position": 1, "positiontext": "1", "wins": 8}, {"constructorstandingsid": 189, "raceid": 35, "constructorid": 7, "points": 56.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 190, "raceid": 35, "constructorid": 9, "points": 29.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 191, "raceid": 35, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 192, "raceid": 35, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 193, "raceid": 35, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 567, "raceid": 71, "constructorid": 4, "points": 16.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 568, "raceid": 71, "constructorid": 6, "points": 8.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 569, "raceid": 71, "constructorid": 9, "points": 7.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 570, "raceid": 71, "constructorid": 3, "points": 4.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 571, "raceid": 71, "constructorid": 1, "points": 4.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 572, "raceid": 71, "constructorid": 7, "points": 0.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 573, "raceid": 71, "constructorid": 15, "points": 0.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 574, "raceid": 71, "constructorid": 17, "points": 0.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 575, "raceid": 71, "constructorid": 18, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 576, "raceid": 72, "constructorid": 4, "points": 26.0, "position": 1, "positiontext": "1", "wins": 2}, {"constructorstandingsid": 577, "raceid": 72, "constructorid": 6, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 578, "raceid": 72, "constructorid": 9, "points": 11.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 579, "raceid": 72, "constructorid": 3, "points": 10.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 580, "raceid": 72, "constructorid": 1, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 581, "raceid": 72, "constructorid": 7, "points": 12.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 582, "raceid": 72, "constructorid": 15, "points": 0.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 583, "raceid": 72, "constructorid": 17, "points": 0.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 584, "raceid": 72, "constructorid": 18, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}], "constructors": [{"constructorid": 1, "constructorref": "mclaren", "name": "McLaren", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren"}, {"constructorid": 2, "constructorref": "bmw_sauber", "name": "BMW Sauber", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW_Sauber"}, {"constructorid": 3, "constructorref": "williams", "name": "Williams", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering"}, {"constructorid": 4, "constructorref": "renault", "name": "Renault", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Renault_F1"}, {"constructorid": 5, "constructorref": "toro_rosso", "name": "Toro Rosso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Toro_Rosso"}, {"constructorid": 6, "constructorref": "ferrari", "name": "Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Ferrari"}, {"constructorid": 7, "constructorref": "toyota", "name": "Toyota", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Toyota_Racing"}, {"constructorid": 8, "constructorref": "super_aguri", "name": "Super Aguri", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Super_Aguri_F1"}, {"constructorid": 9, "constructorref": "red_bull", "name": "Red Bull", "nationality": "Austrian", "url": "http://en.wikipedia.org/wiki/Red_Bull_Racing"}, {"constructorid": 10, "constructorref": "force_india", "name": "Force India", "nationality": "Indian", "url": "http://en.wikipedia.org/wiki/Force_India"}, {"constructorid": 11, "constructorref": "honda", "name": "Honda", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Honda_Racing_F1"}, {"constructorid": 12, "constructorref": "spyker", "name": "Spyker", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Spyker_F1"}, {"constructorid": 13, "constructorref": "mf1", "name": "MF1", "nationality": "Russian", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 14, "constructorref": "spyker_mf1", "name": "Spyker MF1", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 15, "constructorref": "sauber", "name": "Sauber", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Sauber"}, {"constructorid": 16, "constructorref": "bar", "name": "BAR", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_American_Racing"}, {"constructorid": 17, "constructorref": "jordan", "name": "Jordan", "nationality": "Irish", "url": "http://en.wikipedia.org/wiki/Jordan_Grand_Prix"}, {"constructorid": 18, "constructorref": "minardi", "name": "Minardi", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Minardi"}, {"constructorid": 19, "constructorref": "jaguar", "name": "Jaguar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Jaguar_Racing"}, {"constructorid": 20, "constructorref": "prost", "name": "Prost", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Prost_Grand_Prix"}, {"constructorid": 21, "constructorref": "arrows", "name": "Arrows", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Arrows_Grand_Prix_International"}, {"constructorid": 22, "constructorref": "benetton", "name": "Benetton", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Benetton_Formula"}, {"constructorid": 23, "constructorref": "brawn", "name": "Brawn", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brawn_GP"}, {"constructorid": 24, "constructorref": "stewart", "name": "Stewart", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Stewart_Grand_Prix"}, {"constructorid": 25, "constructorref": "tyrrell", "name": "Tyrrell", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Tyrrell_Racing"}, {"constructorid": 26, "constructorref": "lola", "name": "Lola", "nationality": "British", "url": "http://en.wikipedia.org/wiki/MasterCard_Lola"}, {"constructorid": 27, "constructorref": "ligier", "name": "Ligier", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Ligier"}, {"constructorid": 28, "constructorref": "forti", "name": "Forti", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Forti"}, {"constructorid": 29, "constructorref": "footwork", "name": "Footwork", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Footwork_Arrows"}, {"constructorid": 30, "constructorref": "pacific", "name": "Pacific", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Pacific_Racing"}, {"constructorid": 31, "constructorref": "simtek", "name": "Simtek", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Simtek"}, {"constructorid": 32, "constructorref": "team_lotus", "name": "Team Lotus", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 33, "constructorref": "larrousse", "name": "Larrousse", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Larrousse"}, {"constructorid": 34, "constructorref": "brabham", "name": "Brabham", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 35, "constructorref": "dallara", "name": "Dallara", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Dallara"}, {"constructorid": 36, "constructorref": "fondmetal", "name": "Fondmetal", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Fondmetal"}, {"constructorid": 37, "constructorref": "march", "name": "March", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 38, "constructorref": "moda", "name": "Andrea Moda", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Andrea_Moda_Formula"}, {"constructorid": 39, "constructorref": "ags", "name": "AGS", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Automobiles_Gonfaronnaises_Sportives"}, {"constructorid": 40, "constructorref": "lambo", "name": "Lambo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Modena_(racing_team)"}, {"constructorid": 41, "constructorref": "leyton", "name": "Leyton House", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Leyton_House"}, {"constructorid": 42, "constructorref": "coloni", "name": "Coloni", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Enzo_Coloni_Racing_Car_Systems"}, {"constructorid": 44, "constructorref": "eurobrun", "name": "Euro Brun", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Euro_Brun"}, {"constructorid": 45, "constructorref": "osella", "name": "Osella", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Osella"}, {"constructorid": 46, "constructorref": "onyx", "name": "Onyx", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Onyx_(racing_team)"}, {"constructorid": 47, "constructorref": "life", "name": "Life", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Life_(Racing_Team)"}, {"constructorid": 48, "constructorref": "rial", "name": "Rial", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Rial_%28racing_team%29"}, {"constructorid": 49, "constructorref": "zakspeed", "name": "Zakspeed", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Zakspeed"}, {"constructorid": 50, "constructorref": "ram", "name": "RAM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/RAM_Racing"}, {"constructorid": 51, "constructorref": "alfa", "name": "Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Alfa_Romeo_(Formula_One)"}, {"constructorid": 52, "constructorref": "spirit", "name": "Spirit", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Spirit_(racing_team)"}, {"constructorid": 53, "constructorref": "toleman", "name": "Toleman", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Toleman"}, {"constructorid": 54, "constructorref": "ats", "name": "ATS", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/ATS_(wheels)"}, {"constructorid": 55, "constructorref": "theodore", "name": "Theodore", "nationality": "Hong Kong", "url": "http://en.wikipedia.org/wiki/Theodore_Racing"}, {"constructorid": 56, "constructorref": "fittipaldi", "name": "Fittipaldi", "nationality": "Brazilian", "url": "http://en.wikipedia.org/wiki/Fittipaldi_%28constructor%29"}, {"constructorid": 57, "constructorref": "ensign", "name": "Ensign", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ensign_%28racing_team%29"}, {"constructorid": 58, "constructorref": "shadow", "name": "Shadow", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}, {"constructorid": 59, "constructorref": "wolf", "name": "Wolf", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Walter_Wolf_Racing"}, {"constructorid": 60, "constructorref": "merzario", "name": "Merzario", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Merzario"}, {"constructorid": 61, "constructorref": "kauhsen", "name": "Kauhsen", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Kauhsen"}, {"constructorid": 62, "constructorref": "rebaque", "name": "Rebaque", "nationality": "Mexican", "url": "http://en.wikipedia.org/wiki/Rebaque"}, {"constructorid": 63, "constructorref": "surtees", "name": "Surtees", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Surtees"}, {"constructorid": 64, "constructorref": "hesketh", "name": "Hesketh", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hesketh_Racing"}, {"constructorid": 65, "constructorref": "martini", "name": "Martini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Martini_(cars)"}, {"constructorid": 66, "constructorref": "brm", "name": "BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 67, "constructorref": "penske", "name": "Penske", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Penske_Racing"}, {"constructorid": 68, "constructorref": "lec", "name": "LEC", "nationality": "British", "url": "http://en.wikipedia.org/wiki/LEC_(Formula_One)"}, {"constructorid": 69, "constructorref": "mcguire", "name": "McGuire", "nationality": "Australian", "url": "http://en.wikipedia.org/wiki/McGuire_(Formula_One)"}, {"constructorid": 70, "constructorref": "boro", "name": "Boro", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Boro_(Formula_One)"}, {"constructorid": 71, "constructorref": "apollon", "name": "Apollon", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Apollon_(Formula_One)"}, {"constructorid": 72, "constructorref": "kojima", "name": "Kojima", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Kojima_Engineering"}, {"constructorid": 73, "constructorref": "parnelli", "name": "Parnelli", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Parnelli"}, {"constructorid": 74, "constructorref": "maki", "name": "Maki", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Maki_(cars)"}, {"constructorid": 75, "constructorref": "hill", "name": "Embassy Hill", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hill_(constructor)"}, {"constructorid": 76, "constructorref": "lyncar", "name": "Lyncar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Lyncar"}, {"constructorid": 77, "constructorref": "trojan", "name": "Trojan", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Trojan_(Racing_team)"}, {"constructorid": 78, "constructorref": "amon", "name": "Amon", "nationality": "New Zealand", "url": "http://en.wikipedia.org/wiki/Amon_(Formula_One_team)"}, {"constructorid": 79, "constructorref": "token", "name": "Token", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Token_(Racing_team)"}, {"constructorid": 80, "constructorref": "iso_marlboro", "name": "Iso Marlboro", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Iso_Marlboro"}, {"constructorid": 81, "constructorref": "tecno", "name": "Tecno", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tecno"}, {"constructorid": 82, "constructorref": "matra", "name": "Matra", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 83, "constructorref": "politoys", "name": "Politoys", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frank_Williams_Racing_Cars"}, {"constructorid": 84, "constructorref": "connew", "name": "Connew", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connew"}, {"constructorid": 85, "constructorref": "bellasi", "name": "Bellasi", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Bellasi"}, {"constructorid": 86, "constructorref": "tomaso", "name": "De Tomaso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 87, "constructorref": "cooper", "name": "Cooper", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 88, "constructorref": "eagle", "name": "Eagle", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 89, "constructorref": "lds", "name": "LDS", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 90, "constructorref": "protos", "name": "Protos", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Protos_(constructor)"}, {"constructorid": 91, "constructorref": "shannon", "name": "Shannon", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shannon_(Formula_One)"}, {"constructorid": 92, "constructorref": "scirocco", "name": "Scirocco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Scirocco-Powell"}, {"constructorid": 93, "constructorref": "re", "name": "RE", "nationality": "Rhodesian", "url": "http://en.wikipedia.org/wiki/RE_%28automobile%29"}, {"constructorid": 94, "constructorref": "brp", "name": "BRP", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_Racing_Partnership"}, {"constructorid": 95, "constructorref": "porsche", "name": "Porsche", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Porsche_in_Formula_One"}, {"constructorid": 96, "constructorref": "derrington", "name": "Derrington", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Derrington-Francis"}, {"constructorid": 97, "constructorref": "gilby", "name": "Gilby", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Gilby"}, {"constructorid": 98, "constructorref": "stebro", "name": "Stebro", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Stebro"}, {"constructorid": 99, "constructorref": "emeryson", "name": "Emeryson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Emeryson"}, {"constructorid": 100, "constructorref": "enb", "name": "ENB", "nationality": "Belgium", "url": "http://en.wikipedia.org/wiki/Ecurie_Nationale_Belge"}, {"constructorid": 101, "constructorref": "jbw", "name": "JBW", "nationality": "British", "url": "http://en.wikipedia.org/wiki/JBW"}, {"constructorid": 102, "constructorref": "ferguson", "name": "Ferguson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ferguson_Research_Ltd."}, {"constructorid": 103, "constructorref": "mbm", "name": "MBM", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Monteverdi_Basel_Motors"}, {"constructorid": 104, "constructorref": "behra-porsche", "name": "Behra-Porsche", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Behra-Porsche"}, {"constructorid": 105, "constructorref": "maserati", "name": "Maserati", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Maserati"}, {"constructorid": 106, "constructorref": "scarab", "name": "Scarab", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Scarab_(constructor)"}, {"constructorid": 107, "constructorref": "watson", "name": "Watson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/A.J._Watson"}, {"constructorid": 108, "constructorref": "epperly", "name": "Epperly", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Epperly"}, {"constructorid": 109, "constructorref": "phillips", "name": "Phillips", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Phillips_(constructor)"}, {"constructorid": 110, "constructorref": "lesovsky", "name": "Lesovsky", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Lesovsky"}, {"constructorid": 111, "constructorref": "trevis", "name": "Trevis", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Trevis"}, {"constructorid": 112, "constructorref": "meskowski", "name": "Meskowski", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Meskowski"}, {"constructorid": 113, "constructorref": "kurtis_kraft", "name": "Kurtis Kraft", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kurtis_Kraft"}, {"constructorid": 114, "constructorref": "kuzma", "name": "Kuzma", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kuzma_(constructor)"}, {"constructorid": 115, "constructorref": "vhristensen", "name": "Christensen", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Christensen_(constructor)"}, {"constructorid": 116, "constructorref": "ewing", "name": "Ewing", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Ewing_(constructor)"}, {"constructorid": 117, "constructorref": "aston_martin", "name": "Aston Martin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Martin"}, {"constructorid": 118, "constructorref": "vanwall", "name": "Vanwall", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Vanwall"}, {"constructorid": 119, "constructorref": "moore", "name": "Moore", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Moore_(constructor)"}, {"constructorid": 120, "constructorref": "dunn", "name": "Dunn", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Dunn_Engineering"}, {"constructorid": 121, "constructorref": "elder", "name": "Elder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Elder_(constructor)"}, {"constructorid": 122, "constructorref": "sutton", "name": "Sutton", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sutton_(constructor)"}, {"constructorid": 123, "constructorref": "fry", "name": "Fry", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Fry_(racing_team)"}, {"constructorid": 124, "constructorref": "tec-mec", "name": "Tec-Mec", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tec-Mec"}, {"constructorid": 125, "constructorref": "connaught", "name": "Connaught", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connaught_Engineering"}, {"constructorid": 126, "constructorref": "alta", "name": "Alta", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Alta_auto_racing_team"}, {"constructorid": 127, "constructorref": "osca", "name": "OSCA", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Officine_Specializate_Costruzione_Automobili"}, {"constructorid": 128, "constructorref": "gordini", "name": "Gordini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Gordini"}, {"constructorid": 129, "constructorref": "stevens", "name": "Stevens", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Stevens_(constructor)"}, {"constructorid": 130, "constructorref": "bugatti", "name": "Bugatti", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Bugatti"}, {"constructorid": 131, "constructorref": "mercedes", "name": "Mercedes", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One"}, {"constructorid": 132, "constructorref": "lancia", "name": "Lancia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Lancia_in_Formula_One"}, {"constructorid": 133, "constructorref": "hwm", "name": "HWM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hersham_and_Walton_Motors"}, {"constructorid": 134, "constructorref": "schroeder", "name": "Schroeder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Schroeder_(constructor)"}, {"constructorid": 135, "constructorref": "pawl", "name": "Pawl", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pawl_(constructor)"}, {"constructorid": 136, "constructorref": "pankratz", "name": "Pankratz", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pankratz"}, {"constructorid": 137, "constructorref": "arzani-volpini", "name": "Arzani-Volpini", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Arzani-Volpini"}, {"constructorid": 138, "constructorref": "nichels", "name": "Nichels", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Nichels"}, {"constructorid": 139, "constructorref": "bromme", "name": "Bromme", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Bromme"}, {"constructorid": 140, "constructorref": "klenk", "name": "Klenk", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Klenk"}, {"constructorid": 141, "constructorref": "simca", "name": "Simca", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Simca"}, {"constructorid": 142, "constructorref": "turner", "name": "Turner", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Turner_(constructor)"}, {"constructorid": 143, "constructorref": "del_roy", "name": "Del Roy", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Del_Roy"}, {"constructorid": 144, "constructorref": "veritas", "name": "Veritas", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Veritas_(constructor)"}, {"constructorid": 145, "constructorref": "bmw", "name": "BMW", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW"}, {"constructorid": 146, "constructorref": "emw", "name": "EMW", "nationality": "East German", "url": "http://en.wikipedia.org/wiki/Eisenacher_Motorenwerk"}, {"constructorid": 147, "constructorref": "afm", "name": "AFM", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Alex_von_Falkenhausen_Motorenbau"}, {"constructorid": 148, "constructorref": "frazer_nash", "name": "Frazer Nash", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frazer_Nash"}, {"constructorid": 149, "constructorref": "sherman", "name": "Sherman", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sherman_(constructor)"}, {"constructorid": 150, "constructorref": "deidt", "name": "Deidt", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Deidt"}, {"constructorid": 151, "constructorref": "era", "name": "ERA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/English_Racing_Automobiles"}, {"constructorid": 152, "constructorref": "butterworth", "name": "Aston Butterworth", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Butterworth"}, {"constructorid": 153, "constructorref": "cisitalia", "name": "Cisitalia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Cisitalia"}, {"constructorid": 154, "constructorref": "lago", "name": "Talbot-Lago", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Talbot-Lago"}, {"constructorid": 155, "constructorref": "hall", "name": "Hall", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Hall_(constructor)"}, {"constructorid": 156, "constructorref": "marchese", "name": "Marchese", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Marchese_(constructor)"}, {"constructorid": 157, "constructorref": "langley", "name": "Langley", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Langley_(constructor)"}, {"constructorid": 158, "constructorref": "rae", "name": "Rae", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Rae_(motorsport)"}, {"constructorid": 159, "constructorref": "olson", "name": "Olson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Olson_(constructor)"}, {"constructorid": 160, "constructorref": "wetteroth", "name": "Wetteroth", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Wetteroth"}, {"constructorid": 161, "constructorref": "adams", "name": "Adams", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Adams_(constructor)"}, {"constructorid": 162, "constructorref": "snowberger", "name": "Snowberger", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Snowberger"}, {"constructorid": 163, "constructorref": "milano", "name": "Milano", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Milano"}, {"constructorid": 164, "constructorref": "hrt", "name": "HRT", "nationality": "Spanish", "url": "http://en.wikipedia.org/wiki/Hispania_Racing"}, {"constructorid": 166, "constructorref": "virgin", "name": "Virgin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Virgin_Racing"}, {"constructorid": 167, "constructorref": "cooper-maserati", "name": "Cooper-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 168, "constructorref": "cooper-osca", "name": "Cooper-OSCA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 169, "constructorref": "cooper-borgward", "name": "Cooper-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 170, "constructorref": "cooper-climax", "name": "Cooper-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 171, "constructorref": "cooper-castellotti", "name": "Cooper-Castellotti", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 172, "constructorref": "lotus-climax", "name": "Lotus-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 173, "constructorref": "lotus-maserati", "name": "Lotus-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 174, "constructorref": "de_tomaso-osca", "name": "De Tomaso-Osca", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 175, "constructorref": "de_tomaso-alfa_romeo", "name": "De Tomaso-Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 176, "constructorref": "lotus-brm", "name": "Lotus-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 177, "constructorref": "lotus-borgward", "name": "Lotus-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 178, "constructorref": "cooper-alfa_romeo", "name": "Cooper-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 179, "constructorref": "de_tomaso-ferrari", "name": "De Tomaso-Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 180, "constructorref": "lotus-ford", "name": "Lotus-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 181, "constructorref": "brabham-brm", "name": "Brabham-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 182, "constructorref": "brabham-ford", "name": "Brabham-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 183, "constructorref": "brabham-climax", "name": "Brabham-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 184, "constructorref": "lds-climax", "name": "LDS-Climax", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 185, "constructorref": "lds-alfa_romeo", "name": "LDS-Alfa Romeo", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 186, "constructorref": "cooper-ford", "name": "Cooper-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 187, "constructorref": "mclaren-ford", "name": "McLaren-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 188, "constructorref": "mclaren-seren", "name": "McLaren-Serenissima", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 189, "constructorref": "eagle-climax", "name": "Eagle-Climax", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 190, "constructorref": "eagle-weslake", "name": "Eagle-Weslake", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 191, "constructorref": "brabham-repco", "name": "Brabham-Repco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 192, "constructorref": "cooper-ferrari", "name": "Cooper-Ferrari", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 193, "constructorref": "cooper-ats", "name": "Cooper-ATS", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 194, "constructorref": "mclaren-brm", "name": "McLaren-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 195, "constructorref": "cooper-brm", "name": "Cooper-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 196, "constructorref": "matra-ford", "name": "Matra-Ford", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 197, "constructorref": "brm-ford", "name": "BRM-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 198, "constructorref": "mclaren-alfa_romeo", "name": "McLaren-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 199, "constructorref": "march-alfa_romeo", "name": "March-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 200, "constructorref": "march-ford", "name": "March-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 201, "constructorref": "lotus-pw", "name": "Lotus-Pratt &amp; Whitney", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 202, "constructorref": "shadow-ford", "name": "Shadow-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}]}, "correct_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n |> select(position, positiontext, raceid, points, constructorstandingsid)\n\nsummary = constructorstandings\n |> group_by(positiontext)\n |> aggregate(min_raceid: min(raceid), count: count())\n\nresult = summary\n |> sort_by(min_raceid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n |> select(position, raceid, raceid, points, constructorstandingsid)\n\nsummary = constructorstandings\n |> group_by(positiontext)\n |> aggregate(min_raceid: min(raceid), count: count())\n\nresult = summary\n |> sort_by(min_raceid, asc)\n |> take(3)\n\nemit result", "expected_output": [{"positiontext": "1", "min_raceid": 18, "count": 19}, {"positiontext": "3", "min_raceid": 18, "count": 19}, {"positiontext": "2", "min_raceid": 18, "count": 19}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'positiontext' \u2192 'raceid'", "line_num": 3, "original": "|> select(position, positiontext, raceid, points, constructorstandingsid)", "mutated": "|> select(position, raceid, raceid, points, constructorstandingsid)"}], "difficulty": "medium", "domain": "formula_1__constructorstandings", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"actual_orders": [{"actual_order_id": 1, "order_status_code": "Success", "regular_order_id": 8, "actual_order_date": "2018-03-02 23:26:19"}, {"actual_order_id": 2, "order_status_code": "Cancel", "regular_order_id": 15, "actual_order_date": "2018-03-02 08:33:39"}, {"actual_order_id": 3, "order_status_code": "Cancel", "regular_order_id": 4, "actual_order_date": "2018-02-25 10:13:36"}, {"actual_order_id": 4, "order_status_code": "Cancel", "regular_order_id": 10, "actual_order_date": "2018-03-21 01:34:52"}, {"actual_order_id": 5, "order_status_code": "Cancel", "regular_order_id": 14, "actual_order_date": "2018-02-28 15:31:06"}, {"actual_order_id": 6, "order_status_code": "Success", "regular_order_id": 12, "actual_order_date": "2018-03-12 05:33:57"}, {"actual_order_id": 7, "order_status_code": "Success", "regular_order_id": 1, "actual_order_date": "2018-03-06 12:20:31"}, {"actual_order_id": 8, "order_status_code": "Cancel", "regular_order_id": 11, "actual_order_date": "2018-03-22 19:30:17"}, {"actual_order_id": 9, "order_status_code": "Success", "regular_order_id": 6, "actual_order_date": "2018-03-13 05:43:25"}, {"actual_order_id": 10, "order_status_code": "Success", "regular_order_id": 13, "actual_order_date": "2018-03-05 17:31:36"}, {"actual_order_id": 11, "order_status_code": "Cancel", "regular_order_id": 4, "actual_order_date": "2018-03-16 00:28:09"}, {"actual_order_id": 12, "order_status_code": "Cancel", "regular_order_id": 12, "actual_order_date": "2018-02-26 01:55:52"}, {"actual_order_id": 13, "order_status_code": "Cancel", "regular_order_id": 8, "actual_order_date": "2018-03-11 10:45:05"}, {"actual_order_id": 14, "order_status_code": "Cancel", "regular_order_id": 4, "actual_order_date": "2018-03-12 11:24:59"}, {"actual_order_id": 15, "order_status_code": "Cancel", "regular_order_id": 7, "actual_order_date": "2018-03-10 18:22:34"}], "regular_orders": [{"regular_order_id": 1, "distributer_id": 12}, {"regular_order_id": 2, "distributer_id": 15}, {"regular_order_id": 3, "distributer_id": 6}, {"regular_order_id": 4, "distributer_id": 3}, {"regular_order_id": 5, "distributer_id": 8}, {"regular_order_id": 6, "distributer_id": 14}, {"regular_order_id": 7, "distributer_id": 2}, {"regular_order_id": 8, "distributer_id": 15}, {"regular_order_id": 9, "distributer_id": 10}, {"regular_order_id": 10, "distributer_id": 7}, {"regular_order_id": 11, "distributer_id": 3}, {"regular_order_id": 12, "distributer_id": 1}, {"regular_order_id": 13, "distributer_id": 1}, {"regular_order_id": 14, "distributer_id": 15}, {"regular_order_id": 15, "distributer_id": 15}]}, "correct_code": "-- Load customer_deliveries__actual_orders data\nactual_orders = load(\"actual_orders\")\n\nfiltered_actual_orders = actual_orders\n |> filter(actual_order_date == \"2018-02-25 10:13:36\")\n |> filter(regular_order_id >= 1)\n\nsummary = filtered_actual_orders\n |> group_by(order_status_code)\n |> aggregate(max_actual_order_id: max(actual_order_id), count: count())\n\nresult = summary\n |> sort_by(max_actual_order_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_orders data\nactual_orders = load(\"actual_orders\")\n\nfiltered_actual_orders = actual_orders\n |> filter(actual_order_date > \"2018-02-25 10:13:36\")\n |> filter(regular_order_id >= 1)\n\nsummary = filtered_actual_orders\n |> group_by(25)\n |> aggregate(max_actual_order_id: max(actual_order_id), count: count())\n\nresult = summary\n |> sort_by(max_actual_order_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"order_status_code": "Cancel", "max_actual_order_id": 3, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>'", "line_num": 5, "original": "|> filter(actual_order_date == \"2018-02-25 10:13:36\")", "mutated": "|> filter(actual_order_date > \"2018-02-25 10:13:36\")"}, {"category": "wrong_col", "description": "Wrong column reference: 'order_status_code' \u2192 '25'", "line_num": 9, "original": "|> group_by(order_status_code)", "mutated": "|> group_by(25)"}], "difficulty": "medium", "domain": "customer_deliveries__actual_orders", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"countrylanguage": [{"countrycode": "ABW", "language": "Dutch", "isofficial": "T", "percentage": 5.3}, {"countrycode": "ABW", "language": "English", "isofficial": "F", "percentage": 9.5}, {"countrycode": "ABW", "language": "Papiamento", "isofficial": "F", "percentage": 76.7}, {"countrycode": "ABW", "language": "Spanish", "isofficial": "F", "percentage": 7.4}, {"countrycode": "AFG", "language": "Balochi", "isofficial": "F", "percentage": 0.9}, {"countrycode": "AFG", "language": "Dari", "isofficial": "T", "percentage": 32.1}, {"countrycode": "AFG", "language": "Pashto", "isofficial": "T", "percentage": 52.4}, {"countrycode": "AFG", "language": "Turkmenian", "isofficial": "F", "percentage": 1.9}, {"countrycode": "AFG", "language": "Uzbek", "isofficial": "F", "percentage": 8.8}, {"countrycode": "AGO", "language": "Ambo", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Chokwe", "isofficial": "F", "percentage": 4.2}, {"countrycode": "AGO", "language": "Kongo", "isofficial": "F", "percentage": 13.2}, {"countrycode": "AGO", "language": "Luchazi", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Luimbe-nganguela", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Luvale", "isofficial": "F", "percentage": 3.6}, {"countrycode": "AGO", "language": "Mbundu", "isofficial": "F", "percentage": 21.6}, {"countrycode": "AGO", "language": "Nyaneka-nkhumbi", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Ovimbundu", "isofficial": "F", "percentage": 37.2}, {"countrycode": "AIA", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ALB", "language": "Albaniana", "isofficial": "T", "percentage": 97.9}, {"countrycode": "ALB", "language": "Greek", "isofficial": "F", "percentage": 1.8}, {"countrycode": "ALB", "language": "Macedonian", "isofficial": "F", "percentage": 0.1}, {"countrycode": "AND", "language": "Catalan", "isofficial": "T", "percentage": 32.3}, {"countrycode": "AND", "language": "French", "isofficial": "F", "percentage": 6.2}, {"countrycode": "AND", "language": "Portuguese", "isofficial": "F", "percentage": 10.8}, {"countrycode": "AND", "language": "Spanish", "isofficial": "F", "percentage": 44.6}, {"countrycode": "ANT", "language": "Dutch", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ANT", "language": "English", "isofficial": "F", "percentage": 7.8}, {"countrycode": "ANT", "language": "Papiamento", "isofficial": "T", "percentage": 86.2}, {"countrycode": "ARE", "language": "Arabic", "isofficial": "T", "percentage": 42.0}, {"countrycode": "ARE", "language": "Hindi", "isofficial": "F", "percentage": 0.0}, {"countrycode": "ARG", "language": "Indian Languages", "isofficial": "F", "percentage": 0.3}, {"countrycode": "ARG", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "ARG", "language": "Spanish", "isofficial": "T", "percentage": 96.8}, {"countrycode": "ARM", "language": "Armenian", "isofficial": "T", "percentage": 93.4}, {"countrycode": "ARM", "language": "Azerbaijani", "isofficial": "F", "percentage": 2.6}, {"countrycode": "ASM", "language": "English", "isofficial": "T", "percentage": 3.1}, {"countrycode": "ASM", "language": "Samoan", "isofficial": "T", "percentage": 90.6}, {"countrycode": "ASM", "language": "Tongan", "isofficial": "F", "percentage": 3.1}, {"countrycode": "ATG", "language": "Creole English", "isofficial": "F", "percentage": 95.7}, {"countrycode": "ATG", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "AUS", "language": "Arabic", "isofficial": "F", "percentage": 1.0}, {"countrycode": "AUS", "language": "Canton Chinese", "isofficial": "F", "percentage": 1.1}, {"countrycode": "AUS", "language": "English", "isofficial": "T", "percentage": 81.2}, {"countrycode": "AUS", "language": "German", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Greek", "isofficial": "F", "percentage": 1.6}, {"countrycode": "AUS", "language": "Italian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUS", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Vietnamese", "isofficial": "F", "percentage": 0.8}, {"countrycode": "AUT", "language": "Czech", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "German", "isofficial": "T", "percentage": 92.0}, {"countrycode": "AUT", "language": "Hungarian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Polish", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Romanian", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUT", "language": "Slovene", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Turkish", "isofficial": "F", "percentage": 1.5}, {"countrycode": "AZE", "language": "Armenian", "isofficial": "F", "percentage": 2.0}, {"countrycode": "AZE", "language": "Azerbaijani", "isofficial": "T", "percentage": 89.0}, {"countrycode": "AZE", "language": "Lezgian", "isofficial": "F", "percentage": 2.3}, {"countrycode": "AZE", "language": "Russian", "isofficial": "F", "percentage": 3.0}, {"countrycode": "BDI", "language": "French", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BDI", "language": "Kirundi", "isofficial": "T", "percentage": 98.1}, {"countrycode": "BDI", "language": "Swahili", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BEL", "language": "Arabic", "isofficial": "F", "percentage": 1.6}, {"countrycode": "BEL", "language": "Dutch", "isofficial": "T", "percentage": 59.2}, {"countrycode": "BEL", "language": "French", "isofficial": "T", "percentage": 32.6}, {"countrycode": "BEL", "language": "German", "isofficial": "T", "percentage": 1.0}, {"countrycode": "BEL", "language": "Italian", "isofficial": "F", "percentage": 2.4}, {"countrycode": "BEL", "language": "Turkish", "isofficial": "F", "percentage": 0.9}, {"countrycode": "BEN", "language": "Adja", "isofficial": "F", "percentage": 11.1}, {"countrycode": "BEN", "language": "Aizo", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Bariba", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Fon", "isofficial": "F", "percentage": 39.8}, {"countrycode": "BEN", "language": "Ful", "isofficial": "F", "percentage": 5.6}, {"countrycode": "BEN", "language": "Joruba", "isofficial": "F", "percentage": 12.2}, {"countrycode": "BEN", "language": "Somba", "isofficial": "F", "percentage": 6.7}, {"countrycode": "BFA", "language": "Busansi", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BFA", "language": "Dagara", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BFA", "language": "Dyula", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BFA", "language": "Ful", "isofficial": "F", "percentage": 9.7}, {"countrycode": "BFA", "language": "Gurma", "isofficial": "F", "percentage": 5.7}, {"countrycode": "BFA", "language": "Mossi", "isofficial": "F", "percentage": 50.2}, {"countrycode": "BGD", "language": "Bengali", "isofficial": "T", "percentage": 97.7}, {"countrycode": "BGD", "language": "Chakma", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BGD", "language": "Garo", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Khasi", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Marma", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BGD", "language": "Santhali", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Tripuri", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGR", "language": "Bulgariana", "isofficial": "T", "percentage": 83.2}, {"countrycode": "BGR", "language": "Macedonian", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BGR", "language": "Romani", "isofficial": "F", "percentage": 3.7}, {"countrycode": "BGR", "language": "Turkish", "isofficial": "F", "percentage": 9.4}, {"countrycode": "BHR", "language": "Arabic", "isofficial": "T", "percentage": 67.7}, {"countrycode": "BHR", "language": "English", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BHS", "language": "Creole English", "isofficial": "F", "percentage": 89.7}, {"countrycode": "BHS", "language": "Creole French", "isofficial": "F", "percentage": 10.3}, {"countrycode": "BIH", "language": "Serbo-Croatian", "isofficial": "T", "percentage": 99.2}, {"countrycode": "BLR", "language": "Belorussian", "isofficial": "T", "percentage": 65.6}, {"countrycode": "BLR", "language": "Polish", "isofficial": "F", "percentage": 0.6}, {"countrycode": "BLR", "language": "Russian", "isofficial": "T", "percentage": 32.0}, {"countrycode": "BLR", "language": "Ukrainian", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BLZ", "language": "English", "isofficial": "T", "percentage": 50.8}, {"countrycode": "BLZ", "language": "Garifuna", "isofficial": "F", "percentage": 6.8}, {"countrycode": "BLZ", "language": "Maya Languages", "isofficial": "F", "percentage": 9.6}, {"countrycode": "BLZ", "language": "Spanish", "isofficial": "F", "percentage": 31.6}, {"countrycode": "BMU", "language": "English", "isofficial": "T", "percentage": 100.0}, {"countrycode": "BOL", "language": "Aimar\u00e1", "isofficial": "T", "percentage": 3.2}, {"countrycode": "BOL", "language": "Guaran\u00ed", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BOL", "language": "Ket\u0161ua", "isofficial": "T", "percentage": 8.1}, {"countrycode": "BOL", "language": "Spanish", "isofficial": "T", "percentage": 87.7}, {"countrycode": "BRA", "language": "German", "isofficial": "F", "percentage": 0.5}, {"countrycode": "BRA", "language": "Indian Languages", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BRA", "language": "Italian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Japanese", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Portuguese", "isofficial": "T", "percentage": 97.5}, {"countrycode": "BRB", "language": "Bajan", "isofficial": "F", "percentage": 95.1}, {"countrycode": "BRB", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BRN", "language": "Chinese", "isofficial": "F", "percentage": 9.3}, {"countrycode": "BRN", "language": "English", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BRN", "language": "Malay", "isofficial": "T", "percentage": 45.5}, {"countrycode": "BRN", "language": "Malay-English", "isofficial": "F", "percentage": 28.8}, {"countrycode": "BTN", "language": "Asami", "isofficial": "F", "percentage": 15.2}, {"countrycode": "BTN", "language": "Dzongkha", "isofficial": "T", "percentage": 50.0}, {"countrycode": "BTN", "language": "Nepali", "isofficial": "F", "percentage": 34.8}, {"countrycode": "BWA", "language": "Khoekhoe", "isofficial": "F", "percentage": 2.5}, {"countrycode": "BWA", "language": "Ndebele", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BWA", "language": "San", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BWA", "language": "Shona", "isofficial": "F", "percentage": 12.3}, {"countrycode": "BWA", "language": "Tswana", "isofficial": "F", "percentage": 75.5}, {"countrycode": "CAF", "language": "Banda", "isofficial": "F", "percentage": 23.5}, {"countrycode": "CAF", "language": "Gbaya", "isofficial": "F", "percentage": 23.8}, {"countrycode": "CAF", "language": "Mandjia", "isofficial": "F", "percentage": 14.8}, {"countrycode": "CAF", "language": "Mbum", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAF", "language": "Ngbaka", "isofficial": "F", "percentage": 7.5}, {"countrycode": "CAF", "language": "Sara", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAN", "language": "Chinese", "isofficial": "F", "percentage": 2.5}, {"countrycode": "CAN", "language": "Dutch", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CAN", "language": "English", "isofficial": "T", "percentage": 60.4}, {"countrycode": "CAN", "language": "Eskimo Languages", "isofficial": "F", "percentage": 0.1}, {"countrycode": "CAN", "language": "French", "isofficial": "T", "percentage": 23.4}, {"countrycode": "CAN", "language": "German", "isofficial": "F", "percentage": 1.6}, {"countrycode": "CAN", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "CAN", "language": "Polish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Portuguese", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Punjabi", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Spanish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Ukrainian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CCK", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "CCK", "language": "Malay", "isofficial": "F", "percentage": 0.0}, {"countrycode": "CHE", "language": "French", "isofficial": "T", "percentage": 19.2}, {"countrycode": "CHE", "language": "German", "isofficial": "T", "percentage": 63.6}, {"countrycode": "CHE", "language": "Italian", "isofficial": "T", "percentage": 7.7}, {"countrycode": "CHE", "language": "Romansh", "isofficial": "T", "percentage": 0.6}, {"countrycode": "CHL", "language": "Aimar\u00e1", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHL", "language": "Araucan", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CHL", "language": "Rapa nui", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHL", "language": "Spanish", "isofficial": "T", "percentage": 89.7}, {"countrycode": "CHN", "language": "Chinese", "isofficial": "T", "percentage": 92.0}, {"countrycode": "CHN", "language": "Dong", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Hui", "isofficial": "F", "percentage": 0.8}, {"countrycode": "CHN", "language": "Mant\u0161u", "isofficial": "F", "percentage": 0.9}, {"countrycode": "CHN", "language": "Miao", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CHN", "language": "Mongolian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Puyi", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Tibetan", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Tujia", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHN", "language": "Uighur", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Yi", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Zhuang", "isofficial": "F", "percentage": 1.4}, {"countrycode": "CIV", "language": "Akan", "isofficial": "F", "percentage": 30.0}, {"countrycode": "CIV", "language": "Gur", "isofficial": "F", "percentage": 11.7}, {"countrycode": "CIV", "language": "Kru", "isofficial": "F", "percentage": 10.5}, {"countrycode": "CIV", "language": "Malinke", "isofficial": "F", "percentage": 11.4}, {"countrycode": "CIV", "language": "[South]Mande", "isofficial": "F", "percentage": 7.7}, {"countrycode": "CMR", "language": "Bamileke-bamum", "isofficial": "F", "percentage": 18.6}, {"countrycode": "CMR", "language": "Duala", "isofficial": "F", "percentage": 10.9}, {"countrycode": "CMR", "language": "Fang", "isofficial": "F", "percentage": 19.7}, {"countrycode": "CMR", "language": "Ful", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CMR", "language": "Maka", "isofficial": "F", "percentage": 4.9}, {"countrycode": "CMR", "language": "Mandara", "isofficial": "F", "percentage": 5.7}, {"countrycode": "CMR", "language": "Masana", "isofficial": "F", "percentage": 3.9}, {"countrycode": "CMR", "language": "Tikar", "isofficial": "F", "percentage": 7.4}, {"countrycode": "COD", "language": "Boa", "isofficial": "F", "percentage": 2.3}, {"countrycode": "COD", "language": "Chokwe", "isofficial": "F", "percentage": 1.8}, {"countrycode": "COD", "language": "Kongo", "isofficial": "F", "percentage": 16.0}, {"countrycode": "COD", "language": "Luba", "isofficial": "F", "percentage": 18.0}, {"countrycode": "COD", "language": "Mongo", "isofficial": "F", "percentage": 13.5}, {"countrycode": "COD", "language": "Ngala and Bangi", "isofficial": "F", "percentage": 5.8}, {"countrycode": "COD", "language": "Rundi", "isofficial": "F", "percentage": 3.8}, {"countrycode": "COD", "language": "Rwanda", "isofficial": "F", "percentage": 10.3}, {"countrycode": "COD", "language": "Teke", "isofficial": "F", "percentage": 2.7}, {"countrycode": "COD", "language": "Zande", "isofficial": "F", "percentage": 6.1}, {"countrycode": "COG", "language": "Kongo", "isofficial": "F", "percentage": 51.5}, {"countrycode": "COG", "language": "Mbete", "isofficial": "F", "percentage": 4.8}, {"countrycode": "COG", "language": "Mboshi", "isofficial": "F", "percentage": 11.4}, {"countrycode": "COG", "language": "Punu", "isofficial": "F", "percentage": 2.9}, {"countrycode": "COG", "language": "Sango", "isofficial": "F", "percentage": 2.6}, {"countrycode": "COG", "language": "Teke", "isofficial": "F", "percentage": 17.3}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(language == \"French\")\n\nsummary = filtered_countrylanguage\n |> group_by(countrycode)\n |> aggregate(max_percentage: max(percentage), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n |> select(name, localname, code)\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(language < \"French\")\n\nsummary = filtered_countrylanguage\n |> group_by(countrycode)\n |> aggregate(max_percentage: max(percentage), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n |> select(name, localname, code)\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"countrycode": "AND", "max_percentage": 6.2, "count": 1, "name": "Andorra", "localname": "Andorra", "code": "AND"}, {"countrycode": "BDI", "max_percentage": 0.0, "count": 1, "name": "Burundi", "localname": "Burundi/Uburundi", "code": "BDI"}, {"countrycode": "BEL", "max_percentage": 32.6, "count": 1, "name": "Belgium", "localname": "Belgi\u00eb/Belgique", "code": "BEL"}, {"countrycode": "CAN", "max_percentage": 23.4, "count": 1, "name": "Canada", "localname": "Canada", "code": "CAN"}, {"countrycode": "CHE", "max_percentage": 19.2, "count": 1, "name": "Switzerland", "localname": "Schweiz/Suisse/Svizzera/Svizra", "code": "CHE"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<'", "line_num": 5, "original": "|> filter(language == \"French\")", "mutated": "|> filter(language < \"French\")"}], "difficulty": "medium", "domain": "world_1__countrylanguage", "num_nodes": 6, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"match_season": [{"season": 1996.0, "player": "Steve Ralston Category:Articles with hCards", "position": "Midfielder", "country": 6, "team": 1, "draft_pick_number": 18, "draft_class": "1996 MLS College Draft", "college": "Florida International"}, {"season": 1997.0, "player": "Mike Duhaney Category:Articles with hCards", "position": "Defender", "country": 6, "team": 2, "draft_pick_number": 87, "draft_class": "1996 MLS Inaugural Player Draft", "college": "UNLV"}, {"season": 1998.0, "player": "Ben Olsen Category:Articles with hCards", "position": "Midfielder", "country": 4, "team": 3, "draft_pick_number": 2, "draft_class": "Project-40", "college": "Virginia"}, {"season": 1999.0, "player": "Jay Heaps Category:Articles with hCards", "position": "Defender", "country": 5, "team": 4, "draft_pick_number": 5, "draft_class": "1999 MLS College Draft", "college": "Duke"}, {"season": 2000.0, "player": "Carlos Bocanegra Category:Articles with hCards", "position": "Defender", "country": 5, "team": 5, "draft_pick_number": 4, "draft_class": "2000 MLS SuperDraft", "college": "UCLA"}, {"season": 2001.0, "player": "Rodrigo Faria Category:Articles with hCards", "position": "Forward", "country": 4, "team": 5, "draft_pick_number": 13, "draft_class": "2001 MLS SuperDraft", "college": "Concordia College"}, {"season": 2002.0, "player": "Kyle Martino Category:Articles with hCards", "position": "Midfielder", "country": 6, "team": 3, "draft_pick_number": 8, "draft_class": "2002 MLS SuperDraft", "college": "Virginia"}, {"season": 2003.0, "player": "Damani Ralph Category:Articles with hCards", "position": "Forward", "country": 1, "team": 2, "draft_pick_number": 18, "draft_class": "2003 MLS SuperDraft", "college": "Connecticut"}, {"season": 2004.0, "player": "Clint Dempsey Category:Articles with hCards", "position": "Midfielder", "country": 6, "team": 3, "draft_pick_number": 8, "draft_class": "2004 MLS SuperDraft", "college": "Furman"}, {"season": 2005.0, "player": "Michael Parkhurst Category:Articles with hCards", "position": "Defender", "country": 6, "team": 4, "draft_pick_number": 9, "draft_class": "2005 MLS SuperDraft", "college": "Wake Forest"}, {"season": 2006.0, "player": "Jonathan Bornstein Category:Articles with hCards", "position": "Defender", "country": 6, "team": 10, "draft_pick_number": 37, "draft_class": "2006 MLS SuperDraft", "college": "UCLA"}, {"season": 2007.0, "player": "Maurice Edu Category:Articles with hCards", "position": "Midfielder", "country": 4, "team": 9, "draft_pick_number": 1, "draft_class": "2007 MLS SuperDraft", "college": "Maryland"}, {"season": 2008.0, "player": "Sean Franklin Category:Articles with hCards", "position": "Defender", "country": 6, "team": 5, "draft_pick_number": 4, "draft_class": "2008 MLS SuperDraft", "college": "Cal State Northridge"}, {"season": 2009.0, "player": "Omar Gonzalez Category:Articles with hCards", "position": "Defender", "country": 6, "team": 5, "draft_pick_number": 3, "draft_class": "2009 MLS SuperDraft", "college": "Maryland"}, {"season": 2010.0, "player": "Andy Najar Category:Articles with hCards", "position": "Midfielder", "country": 4, "team": 5, "draft_pick_number": 6, "draft_class": "D.C. United Academy", "college": "none"}, {"season": 2011.0, "player": "C. J. Sapong Category:Articles with hCards", "position": "Forward", "country": 6, "team": 3, "draft_pick_number": 10, "draft_class": "2011 MLS SuperDraft", "college": "James Madison"}], "country": [{"country_id": 1, "country_name": "Indonesia", "capital": "Jakarta", "official_native_language": "Bahasa Indonesia"}, {"country_id": 2, "country_name": "Iran", "capital": "Tehran", "official_native_language": "Persian ( Arabic script )"}, {"country_id": 3, "country_name": "Iraq", "capital": "Baghdad", "official_native_language": "Arabic ( Arabic script ) Kurdish"}, {"country_id": 4, "country_name": "Ireland", "capital": "Dublin", "official_native_language": "Irish English"}, {"country_id": 5, "country_name": "Isle of Man", "capital": "Douglas", "official_native_language": "English Manx"}, {"country_id": 6, "country_name": "United States", "capital": "Washington", "official_native_language": "English"}]}, "correct_code": "-- Load match_season__match_season data\nmatch_season = load(\"match_season\")\n\nfiltered_match_season = match_season\n |> filter(player == \"Andy Najar Category:Articles with hCards\")\n |> filter(draft_pick_number < 34)\n\nsummary = filtered_match_season\n |> group_by(position)\n |> aggregate(min_season: min(season), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load match_season__match_season data\nmatch_season = load(\"match_season\")\n\nfiltered_match_season = match_season\n |> filter(player == \"Andy Najar Category:Articles with hCards\")\n |> filter(draft_pick_number < 34)\n\nsummary = filtered_match_season\n |> grp_by(position)\n |> aggregate(min_season: min(season), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"position": "Midfielder", "min_season": 2010.0, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'group_by' \u2192 'grp_by'", "line_num": 9, "original": "|> group_by(position)", "mutated": "|> grp_by(position)"}], "difficulty": "easy", "domain": "match_season__match_season", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"takes": [{"id": "65901", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "24932", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B-"}, {"id": "61332", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "73492", "course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A "}, {"id": "65715", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B+"}, {"id": "58300", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "760", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "69730", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A "}, {"id": "94836", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "49391", "course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "48850", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C-"}, {"id": "68999", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A+"}, {"id": "53469", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C "}, {"id": "74016", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A-"}, {"id": "49073", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "C-"}, {"id": "52866", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "83314", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A "}, {"id": "70359", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A-"}, {"id": "88993", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C+"}, {"id": "97042", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A-"}, {"id": "33460", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C+"}, {"id": "81207", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A+"}, {"id": "68010", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "A+"}, {"id": "15517", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A+"}, {"id": "8957", "course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "8986", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A "}, {"id": "7956", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C "}, {"id": "792", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "A-"}, {"id": "84189", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B-"}, {"id": "92659", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "C "}, {"id": "22198", "course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "8957", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B "}, {"id": "36244", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A-"}, {"id": "97658", "course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "A "}, {"id": "89104", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "5393", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "80248", "course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B-"}, {"id": "30222", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "64155", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "A+"}, {"id": "99660", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A "}, {"id": "8517", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B-"}, {"id": "31820", "course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "grade": "B-"}, {"id": "46769", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "43505", "course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A+"}, {"id": "79589", "course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "grade": "A "}, {"id": "70235", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "11126", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "27366", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A-"}, {"id": "3576", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "3127", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B "}, {"id": "39619", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "33651", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C-"}, {"id": "62520", "course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C-"}, {"id": "86573", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B "}, {"id": "792", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B-"}, {"id": "27528", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B "}, {"id": "52945", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "37103", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C+"}, {"id": "11126", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "62152", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "3127", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B "}, {"id": "2848", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "A "}, {"id": "20985", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "69628", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B "}, {"id": "78572", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C "}, {"id": "60366", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A "}, {"id": "52741", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "72501", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "5250", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C-"}, {"id": "38013", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "C "}, {"id": "88417", "course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "grade": "A-"}, {"id": "2286", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A "}, {"id": "15083", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "336", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A-"}, {"id": "64934", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "A-"}, {"id": "499", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C-"}, {"id": "56598", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C-"}, {"id": "46074", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C-"}, {"id": "47627", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "85063", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "A+"}, {"id": "43032", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "34055", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "16250", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B+"}, {"id": "16907", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "A "}, {"id": "66356", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B+"}, {"id": "3335", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C "}, {"id": "72501", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C-"}, {"id": "18583", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "53152", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "grade": "C-"}, {"id": "17924", "course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "grade": "A+"}, {"id": "77729", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "B+"}, {"id": "4248", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "46106", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C-"}, {"id": "14621", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "grade": "C-"}, {"id": "14829", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "50658", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B "}, {"id": "44706", "course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C-"}, {"id": "92949", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C "}, {"id": "66969", "course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "grade": "C-"}, {"id": "97658", "course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "17607", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "52876", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "A "}, {"id": "56058", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "B-"}, {"id": "15883", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "99271", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "C-"}, {"id": "67560", "course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "grade": "B "}, {"id": "85063", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C "}, {"id": "7287", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B-"}, {"id": "35462", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "49450", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "78922", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "B+"}, {"id": "94569", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "1018", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "32245", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "51093", "course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C-"}, {"id": "29390", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "B+"}, {"id": "47379", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "10204", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "90381", "course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "grade": "C-"}, {"id": "36926", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B "}, {"id": "70688", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A "}, {"id": "54728", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "15070", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "52741", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A "}, {"id": "79469", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "C+"}, {"id": "79446", "course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A+"}, {"id": "44551", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C-"}, {"id": "83622", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A+"}, {"id": "64196", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "A "}, {"id": "88140", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C-"}, {"id": "28361", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "51008", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B+"}, {"id": "1110", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "96134", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "C-"}, {"id": "98830", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "14874", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "23270", "course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "993", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "B-"}, {"id": "19791", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A-"}, {"id": "57083", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B "}, {"id": "72528", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A+"}, {"id": "95953", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C+"}, {"id": "35357", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "62520", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B "}, {"id": "50583", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "B "}, {"id": "93354", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "A "}, {"id": "55857", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B+"}, {"id": "53048", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "89414", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "99710", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "A+"}, {"id": "95852", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C-"}, {"id": "84702", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "82918", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C-"}, {"id": "70452", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C "}, {"id": "38271", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "67425", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "78892", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "79205", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "A-"}, {"id": "42298", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "83836", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B-"}, {"id": "56598", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A+"}, {"id": "34322", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "56755", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "grade": "C+"}, {"id": "68248", "course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A-"}, {"id": "36845", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C+"}, {"id": "48660", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A-"}, {"id": "91799", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "89551", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "B+"}, {"id": "87965", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C "}, {"id": "12683", "course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C-"}, {"id": "87439", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A "}, {"id": "16467", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "C-"}, {"id": "49701", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "B-"}, {"id": "37350", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "B+"}, {"id": "42843", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C "}, {"id": "94766", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "grade": "B "}, {"id": "65676", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A "}, {"id": "27094", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "12214", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "C-"}, {"id": "81566", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C+"}, {"id": "37101", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A "}, {"id": "18709", "course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "A+"}, {"id": "86934", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C-"}, {"id": "99660", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "41890", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A+"}, {"id": "83592", "course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B+"}, {"id": "37219", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "B "}, {"id": "88302", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "A-"}, {"id": "75040", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C+"}, {"id": "36052", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "A-"}, {"id": "72186", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A+"}, {"id": "76759", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C+"}, {"id": "27804", "course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "99189", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "77898", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "47001", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "3639", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "80912", "course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A "}, {"id": "52371", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "99719", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B-"}], "section": [{"course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}, {"course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Gates", "room_number": "314", "time_slot_id": "K"}, {"course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Whitman", "room_number": "434", "time_slot_id": "O"}, {"course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "B"}, {"course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Fairchild", "room_number": "145", "time_slot_id": "D"}, {"course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Alumni", "room_number": "547", "time_slot_id": "J"}, {"course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Saucon", "room_number": "113", "time_slot_id": "J"}, {"course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "building": "Whitman", "room_number": "434", "time_slot_id": "F"}, {"course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Drown", "room_number": "757", "time_slot_id": "D"}, {"course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Power", "room_number": "717", "time_slot_id": "D"}, {"course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "G"}, {"course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "K"}, {"course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "I"}, {"course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Main", "room_number": "45", "time_slot_id": "L"}, {"course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Bronfman", "room_number": "700", "time_slot_id": "N"}, {"course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Saucon", "room_number": "180", "time_slot_id": "M"}, {"course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "113", "time_slot_id": "O"}, {"course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Taylor", "room_number": "812", "time_slot_id": "O"}, {"course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "N"}, {"course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Saucon", "room_number": "844", "time_slot_id": "O"}, {"course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Saucon", "room_number": "180", "time_slot_id": "P"}, {"course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Whitman", "room_number": "134", "time_slot_id": "K"}, {"course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lamberton", "room_number": "134", "time_slot_id": "G"}, {"course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Main", "room_number": "45", "time_slot_id": "K"}, {"course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Saucon", "room_number": "113", "time_slot_id": "K"}, {"course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "D"}, {"course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Fairchild", "room_number": "145", "time_slot_id": "I"}, {"course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "143", "time_slot_id": "H"}, {"course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lambeau", "room_number": "348", "time_slot_id": "J"}, {"course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "L"}, {"course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Alumni", "room_number": "143", "time_slot_id": "O"}, {"course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "183", "time_slot_id": "A"}, {"course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Alumni", "room_number": "547", "time_slot_id": "G"}, {"course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "H"}, {"course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Nassau", "room_number": "45", "time_slot_id": "F"}, {"course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lamberton", "room_number": "143", "time_slot_id": "I"}, {"course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "D"}, {"course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "M"}, {"course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Stabler", "room_number": "105", "time_slot_id": "F"}, {"course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Chandler", "room_number": "804", "time_slot_id": "D"}, {"course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Garfield", "room_number": "119", "time_slot_id": "A"}, {"course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "D"}, {"course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "building": "Gates", "room_number": "707", "time_slot_id": "K"}, {"course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "G"}, {"course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Gates", "room_number": "314", "time_slot_id": "A"}, {"course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "M"}, {"course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "D"}, {"course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "C"}, {"course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Gates", "room_number": "707", "time_slot_id": "E"}, {"course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Chandler", "room_number": "375", "time_slot_id": "C"}, {"course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Polya", "room_number": "808", "time_slot_id": "B"}, {"course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Alumni", "room_number": "547", "time_slot_id": "A"}, {"course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "P"}, {"course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "E"}, {"course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Lamberton", "room_number": "143", "time_slot_id": "B"}, {"course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "E"}, {"course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Nassau", "room_number": "45", "time_slot_id": "L"}, {"course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "building": "Bronfman", "room_number": "700", "time_slot_id": "L"}, {"course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Gates", "room_number": "707", "time_slot_id": "F"}, {"course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "B"}, {"course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Whitman", "room_number": "434", "time_slot_id": "H"}, {"course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "M"}, {"course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Drown", "room_number": "757", "time_slot_id": "C"}, {"course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "812", "time_slot_id": "C"}, {"course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Rathbone", "room_number": "261", "time_slot_id": "E"}, {"course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "building": "Main", "room_number": "425", "time_slot_id": "O"}, {"course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "A"}, {"course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Power", "room_number": "972", "time_slot_id": "I"}, {"course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "building": "Power", "room_number": "717", "time_slot_id": "L"}, {"course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "D"}, {"course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Drown", "room_number": "757", "time_slot_id": "L"}, {"course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Taylor", "room_number": "812", "time_slot_id": "I"}, {"course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Chandler", "room_number": "375", "time_slot_id": "D"}, {"course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Power", "room_number": "717", "time_slot_id": "P"}, {"course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Taylor", "room_number": "812", "time_slot_id": "P"}, {"course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "building": "Stabler", "room_number": "105", "time_slot_id": "J"}, {"course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Power", "room_number": "972", "time_slot_id": "D"}]}, "correct_code": "-- Load college_2__takes data\ntakes = load(\"takes\")\n\nfiltered_takes = takes\n |> filter(sec_id == \"3\")\n |> select(id, sec_id, course_id, year)\n\nsummary = filtered_takes\n |> group_by(sec_id)\n |> aggregate(min_year: min(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__takes data\ntakes = load(\"takes\")\n\nfiltered_takes = takes\n |> filter(sec_id == \"3x\")\n |> select(id, sec_id, course_id, year)\n\nsummary = filtered_takes\n |> group_by(sec_id)\n |> aggregate(min_year: min(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"sec_id": "3", "min_year": 2008, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '3' \u2192 '3x'", "line_num": 5, "original": "|> filter(sec_id == \"3\")", "mutated": "|> filter(sec_id == \"3x\")"}], "difficulty": "medium", "domain": "college_2__takes", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"friend": [{"student_id": 1510, "friend_id": 1381}, {"student_id": 1510, "friend_id": 1689}, {"student_id": 1689, "friend_id": 1709}, {"student_id": 1381, "friend_id": 1247}, {"student_id": 1709, "friend_id": 1247}, {"student_id": 1689, "friend_id": 1782}, {"student_id": 1782, "friend_id": 1468}, {"student_id": 1782, "friend_id": 1316}, {"student_id": 1782, "friend_id": 1304}, {"student_id": 1468, "friend_id": 1101}, {"student_id": 1468, "friend_id": 1641}, {"student_id": 1101, "friend_id": 1641}, {"student_id": 1247, "friend_id": 1911}, {"student_id": 1247, "friend_id": 1501}, {"student_id": 1911, "friend_id": 1501}, {"student_id": 1501, "friend_id": 1934}, {"student_id": 1316, "friend_id": 1934}, {"student_id": 1934, "friend_id": 1304}, {"student_id": 1304, "friend_id": 1661}, {"student_id": 1661, "friend_id": 1025}], "highschooler": [{"id": 1510, "name": "Jordan", "grade": 9}, {"id": 1689, "name": "Gabriel", "grade": 9}, {"id": 1381, "name": "Tiffany", "grade": 9}, {"id": 1709, "name": "Cassandra", "grade": 9}, {"id": 1101, "name": "Haley", "grade": 10}, {"id": 1782, "name": "Andrew", "grade": 10}, {"id": 1468, "name": "Kris", "grade": 10}, {"id": 1641, "name": "Brittany", "grade": 10}, {"id": 1247, "name": "Alexis", "grade": 11}, {"id": 1316, "name": "Austin", "grade": 11}, {"id": 1911, "name": "Gabriel", "grade": 11}, {"id": 1501, "name": "Jessica", "grade": 11}, {"id": 1304, "name": "Jordan", "grade": 12}, {"id": 1025, "name": "John", "grade": 12}, {"id": 1934, "name": "Kyle", "grade": 12}, {"id": 1661, "name": "Logan", "grade": 12}]}, "correct_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n |> select(student_id, friend_id)\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n\nenriched = join(friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(friend_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n |> select(student_id, friend_id)\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n\nenriched = join(friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(friend_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"student_id": 1661, "friend_id": 1025, "id": 1025, "name": "John", "grade": 12}, {"student_id": 1468, "friend_id": 1101, "id": 1101, "name": "Haley", "grade": 10}, {"student_id": 1381, "friend_id": 1247, "id": 1247, "name": "Alexis", "grade": 11}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 11, "original": "|> sort_by(friend_id, asc)", "mutated": "|> sort_by(friend_id, desc)"}], "difficulty": "medium", "domain": "network_1__friend", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "sportsinfo": [{"stuid": 1001, "sportname": "Athletics", "hoursperweek": 2, "gamesplayed": 5, "onscholarship": "N"}, {"stuid": 1002, "sportname": "Football", "hoursperweek": 7, "gamesplayed": 20, "onscholarship": "Y"}, {"stuid": 1003, "sportname": "Football", "hoursperweek": 45, "gamesplayed": 18, "onscholarship": "Y"}, {"stuid": 1005, "sportname": "Lacrosse", "hoursperweek": 35, "gamesplayed": 16, "onscholarship": "N"}, {"stuid": 1015, "sportname": "Lacrosse", "hoursperweek": 25, "gamesplayed": 41, "onscholarship": "Y"}, {"stuid": 1018, "sportname": "Lacrosse", "hoursperweek": 39, "gamesplayed": 25, "onscholarship": "N"}, {"stuid": 1019, "sportname": "Swimming", "hoursperweek": 8, "gamesplayed": 16, "onscholarship": "Y"}, {"stuid": 1019, "sportname": "Tennis", "hoursperweek": 19, "gamesplayed": 62, "onscholarship": "N"}, {"stuid": 1022, "sportname": "Baseball", "hoursperweek": 29, "gamesplayed": 31, "onscholarship": "N"}, {"stuid": 1023, "sportname": "Basketball", "hoursperweek": 14, "gamesplayed": 8, "onscholarship": "Y"}, {"stuid": 1023, "sportname": "Tennis", "hoursperweek": 1, "gamesplayed": 56, "onscholarship": "Y"}, {"stuid": 1026, "sportname": "Cricket", "hoursperweek": 23, "gamesplayed": 37, "onscholarship": "Y"}, {"stuid": 1033, "sportname": "Soccer", "hoursperweek": 45, "gamesplayed": 45, "onscholarship": "Y"}, {"stuid": 1035, "sportname": "Curling", "hoursperweek": 50, "gamesplayed": 94, "onscholarship": "N"}]}, "correct_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(sex == \"M\")\n\nsummary = filtered_student\n |> group_by(lname)\n |> aggregate(avg_major: avg(major), count: count())\n\nresult = summary\n |> sort_by(avg_major, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(sex == \"M\")\n\nsummary = filtered_student\n |> group_by(lname)\n |> aggregate(avg_major: avg(major), count: count())\n\nresult = summary\n |> sort_by(avg_major, asc)\n |> take(12)\n\nemit result", "expected_output": [{"lname": "Epp", "avg_major": 50.0, "count": 1}, {"lname": "Han", "avg_major": 100.0, "count": 1}, {"lname": "Thornton", "avg_major": 520.0, "count": 1}, {"lname": "Andreou", "avg_major": 520.0, "count": 1}, {"lname": "Shieber", "avg_major": 520.0, "count": 1}, {"lname": "Goldman", "avg_major": 520.0, "count": 1}, {"lname": "Brody", "avg_major": 520.0, "count": 1}, {"lname": "Woods", "avg_major": 540.0, "count": 1}, {"lname": "Rugh", "avg_major": 550.0, "count": 1}, {"lname": "Brown", "avg_major": 550.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 12", "line_num": 13, "original": "|> take(10)", "mutated": "|> take(12)"}], "difficulty": "medium", "domain": "game_1__student", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"city": [{"id": 1, "name": "Kabul", "countrycode": "AFG", "district": "Kabol", "population": 1780000}, {"id": 2, "name": "Qandahar", "countrycode": "AFG", "district": "Qandahar", "population": 237500}, {"id": 3, "name": "Herat", "countrycode": "AFG", "district": "Herat", "population": 186800}, {"id": 4, "name": "Mazar-e-Sharif", "countrycode": "AFG", "district": "Balkh", "population": 127800}, {"id": 5, "name": "Amsterdam", "countrycode": "NLD", "district": "Noord-Holland", "population": 731200}, {"id": 6, "name": "Rotterdam", "countrycode": "NLD", "district": "Zuid-Holland", "population": 593321}, {"id": 7, "name": "Haag", "countrycode": "NLD", "district": "Zuid-Holland", "population": 440900}, {"id": 8, "name": "Utrecht", "countrycode": "NLD", "district": "Utrecht", "population": 234323}, {"id": 9, "name": "Eindhoven", "countrycode": "NLD", "district": "Noord-Brabant", "population": 201843}, {"id": 10, "name": "Tilburg", "countrycode": "NLD", "district": "Noord-Brabant", "population": 193238}, {"id": 11, "name": "Groningen", "countrycode": "NLD", "district": "Groningen", "population": 172701}, {"id": 12, "name": "Breda", "countrycode": "NLD", "district": "Noord-Brabant", "population": 160398}, {"id": 13, "name": "Apeldoorn", "countrycode": "NLD", "district": "Gelderland", "population": 153491}, {"id": 14, "name": "Nijmegen", "countrycode": "NLD", "district": "Gelderland", "population": 152463}, {"id": 15, "name": "Enschede", "countrycode": "NLD", "district": "Overijssel", "population": 149544}, {"id": 16, "name": "Haarlem", "countrycode": "NLD", "district": "Noord-Holland", "population": 148772}, {"id": 17, "name": "Almere", "countrycode": "NLD", "district": "Flevoland", "population": 142465}, {"id": 18, "name": "Arnhem", "countrycode": "NLD", "district": "Gelderland", "population": 138020}, {"id": 19, "name": "Zaanstad", "countrycode": "NLD", "district": "Noord-Holland", "population": 135621}, {"id": 20, "name": "\u00b4s-Hertogenbosch", "countrycode": "NLD", "district": "Noord-Brabant", "population": 129170}, {"id": 21, "name": "Amersfoort", "countrycode": "NLD", "district": "Utrecht", "population": 126270}, {"id": 22, "name": "Maastricht", "countrycode": "NLD", "district": "Limburg", "population": 122087}, {"id": 23, "name": "Dordrecht", "countrycode": "NLD", "district": "Zuid-Holland", "population": 119811}, {"id": 24, "name": "Leiden", "countrycode": "NLD", "district": "Zuid-Holland", "population": 117196}, {"id": 25, "name": "Haarlemmermeer", "countrycode": "NLD", "district": "Noord-Holland", "population": 110722}, {"id": 26, "name": "Zoetermeer", "countrycode": "NLD", "district": "Zuid-Holland", "population": 110214}, {"id": 27, "name": "Emmen", "countrycode": "NLD", "district": "Drenthe", "population": 105853}, {"id": 28, "name": "Zwolle", "countrycode": "NLD", "district": "Overijssel", "population": 105819}, {"id": 29, "name": "Ede", "countrycode": "NLD", "district": "Gelderland", "population": 101574}, {"id": 30, "name": "Delft", "countrycode": "NLD", "district": "Zuid-Holland", "population": 95268}, {"id": 31, "name": "Heerlen", "countrycode": "NLD", "district": "Limburg", "population": 95052}, {"id": 32, "name": "Alkmaar", "countrycode": "NLD", "district": "Noord-Holland", "population": 92713}, {"id": 33, "name": "Willemstad", "countrycode": "ANT", "district": "Cura\u00e7ao", "population": 2345}, {"id": 34, "name": "Tirana", "countrycode": "ALB", "district": "Tirana", "population": 270000}, {"id": 35, "name": "Alger", "countrycode": "DZA", "district": "Alger", "population": 2168000}, {"id": 36, "name": "Oran", "countrycode": "DZA", "district": "Oran", "population": 609823}, {"id": 37, "name": "Constantine", "countrycode": "DZA", "district": "Constantine", "population": 443727}, {"id": 38, "name": "Annaba", "countrycode": "DZA", "district": "Annaba", "population": 222518}, {"id": 39, "name": "Batna", "countrycode": "DZA", "district": "Batna", "population": 183377}, {"id": 40, "name": "S\u00e9tif", "countrycode": "DZA", "district": "S\u00e9tif", "population": 179055}, {"id": 41, "name": "Sidi Bel Abb\u00e8s", "countrycode": "DZA", "district": "Sidi Bel Abb\u00e8s", "population": 153106}, {"id": 42, "name": "Skikda", "countrycode": "DZA", "district": "Skikda", "population": 128747}, {"id": 43, "name": "Biskra", "countrycode": "DZA", "district": "Biskra", "population": 128281}, {"id": 44, "name": "Blida (el-Boulaida)", "countrycode": "DZA", "district": "Blida", "population": 127284}, {"id": 45, "name": "B\u00e9ja\u00efa", "countrycode": "DZA", "district": "B\u00e9ja\u00efa", "population": 117162}, {"id": 46, "name": "Mostaganem", "countrycode": "DZA", "district": "Mostaganem", "population": 115212}, {"id": 47, "name": "T\u00e9bessa", "countrycode": "DZA", "district": "T\u00e9bessa", "population": 112007}, {"id": 48, "name": "Tlemcen (Tilimsen)", "countrycode": "DZA", "district": "Tlemcen", "population": 110242}, {"id": 49, "name": "B\u00e9char", "countrycode": "DZA", "district": "B\u00e9char", "population": 107311}, {"id": 50, "name": "Tiaret", "countrycode": "DZA", "district": "Tiaret", "population": 100118}, {"id": 51, "name": "Ech-Chleff (el-Asnam)", "countrycode": "DZA", "district": "Chlef", "population": 96794}, {"id": 52, "name": "Gharda\u00efa", "countrycode": "DZA", "district": "Gharda\u00efa", "population": 89415}, {"id": 53, "name": "Tafuna", "countrycode": "ASM", "district": "Tutuila", "population": 5200}, {"id": 54, "name": "Fagatogo", "countrycode": "ASM", "district": "Tutuila", "population": 2323}, {"id": 55, "name": "Andorra la Vella", "countrycode": "AND", "district": "Andorra la Vella", "population": 21189}, {"id": 56, "name": "Luanda", "countrycode": "AGO", "district": "Luanda", "population": 2022000}, {"id": 57, "name": "Huambo", "countrycode": "AGO", "district": "Huambo", "population": 163100}, {"id": 58, "name": "Lobito", "countrycode": "AGO", "district": "Benguela", "population": 130000}, {"id": 59, "name": "Benguela", "countrycode": "AGO", "district": "Benguela", "population": 128300}, {"id": 60, "name": "Namibe", "countrycode": "AGO", "district": "Namibe", "population": 118200}, {"id": 61, "name": "South Hill", "countrycode": "AIA", "district": "\u2013", "population": 961}, {"id": 62, "name": "The Valley", "countrycode": "AIA", "district": "\u2013", "population": 595}, {"id": 63, "name": "Saint John\u00b4s", "countrycode": "ATG", "district": "St John", "population": 24000}, {"id": 64, "name": "Dubai", "countrycode": "ARE", "district": "Dubai", "population": 669181}, {"id": 65, "name": "Abu Dhabi", "countrycode": "ARE", "district": "Abu Dhabi", "population": 398695}, {"id": 66, "name": "Sharja", "countrycode": "ARE", "district": "Sharja", "population": 320095}, {"id": 67, "name": "al-Ayn", "countrycode": "ARE", "district": "Abu Dhabi", "population": 225970}, {"id": 68, "name": "Ajman", "countrycode": "ARE", "district": "Ajman", "population": 114395}, {"id": 69, "name": "Buenos Aires", "countrycode": "ARG", "district": "Distrito Federal", "population": 2982146}, {"id": 70, "name": "La Matanza", "countrycode": "ARG", "district": "Buenos Aires", "population": 1266461}, {"id": 71, "name": "C\u00f3rdoba", "countrycode": "ARG", "district": "C\u00f3rdoba", "population": 1157507}, {"id": 72, "name": "Rosario", "countrycode": "ARG", "district": "Santa F\u00e9", "population": 907718}, {"id": 73, "name": "Lomas de Zamora", "countrycode": "ARG", "district": "Buenos Aires", "population": 622013}, {"id": 74, "name": "Quilmes", "countrycode": "ARG", "district": "Buenos Aires", "population": 559249}, {"id": 75, "name": "Almirante Brown", "countrycode": "ARG", "district": "Buenos Aires", "population": 538918}, {"id": 76, "name": "La Plata", "countrycode": "ARG", "district": "Buenos Aires", "population": 521936}, {"id": 77, "name": "Mar del Plata", "countrycode": "ARG", "district": "Buenos Aires", "population": 512880}, {"id": 78, "name": "San Miguel de Tucum\u00e1n", "countrycode": "ARG", "district": "Tucum\u00e1n", "population": 470809}, {"id": 79, "name": "Lan\u00fas", "countrycode": "ARG", "district": "Buenos Aires", "population": 469735}, {"id": 80, "name": "Merlo", "countrycode": "ARG", "district": "Buenos Aires", "population": 463846}, {"id": 81, "name": "General San Mart\u00edn", "countrycode": "ARG", "district": "Buenos Aires", "population": 422542}, {"id": 82, "name": "Salta", "countrycode": "ARG", "district": "Salta", "population": 367550}, {"id": 83, "name": "Moreno", "countrycode": "ARG", "district": "Buenos Aires", "population": 356993}, {"id": 84, "name": "Santa F\u00e9", "countrycode": "ARG", "district": "Santa F\u00e9", "population": 353063}, {"id": 85, "name": "Avellaneda", "countrycode": "ARG", "district": "Buenos Aires", "population": 353046}, {"id": 86, "name": "Tres de Febrero", "countrycode": "ARG", "district": "Buenos Aires", "population": 352311}, {"id": 87, "name": "Mor\u00f3n", "countrycode": "ARG", "district": "Buenos Aires", "population": 349246}, {"id": 88, "name": "Florencio Varela", "countrycode": "ARG", "district": "Buenos Aires", "population": 315432}, {"id": 89, "name": "San Isidro", "countrycode": "ARG", "district": "Buenos Aires", "population": 306341}, {"id": 90, "name": "Tigre", "countrycode": "ARG", "district": "Buenos Aires", "population": 296226}, {"id": 91, "name": "Malvinas Argentinas", "countrycode": "ARG", "district": "Buenos Aires", "population": 290335}, {"id": 92, "name": "Vicente L\u00f3pez", "countrycode": "ARG", "district": "Buenos Aires", "population": 288341}, {"id": 93, "name": "Berazategui", "countrycode": "ARG", "district": "Buenos Aires", "population": 276916}, {"id": 94, "name": "Corrientes", "countrycode": "ARG", "district": "Corrientes", "population": 258103}, {"id": 95, "name": "San Miguel", "countrycode": "ARG", "district": "Buenos Aires", "population": 248700}, {"id": 96, "name": "Bah\u00eda Blanca", "countrycode": "ARG", "district": "Buenos Aires", "population": 239810}, {"id": 97, "name": "Esteban Echeverr\u00eda", "countrycode": "ARG", "district": "Buenos Aires", "population": 235760}, {"id": 98, "name": "Resistencia", "countrycode": "ARG", "district": "Chaco", "population": 229212}, {"id": 99, "name": "Jos\u00e9 C. Paz", "countrycode": "ARG", "district": "Buenos Aires", "population": 221754}, {"id": 100, "name": "Paran\u00e1", "countrycode": "ARG", "district": "Entre Rios", "population": 207041}, {"id": 101, "name": "Godoy Cruz", "countrycode": "ARG", "district": "Mendoza", "population": 206998}, {"id": 102, "name": "Posadas", "countrycode": "ARG", "district": "Misiones", "population": 201273}, {"id": 103, "name": "Guaymall\u00e9n", "countrycode": "ARG", "district": "Mendoza", "population": 200595}, {"id": 104, "name": "Santiago del Estero", "countrycode": "ARG", "district": "Santiago del Estero", "population": 189947}, {"id": 105, "name": "San Salvador de Jujuy", "countrycode": "ARG", "district": "Jujuy", "population": 178748}, {"id": 106, "name": "Hurlingham", "countrycode": "ARG", "district": "Buenos Aires", "population": 170028}, {"id": 107, "name": "Neuqu\u00e9n", "countrycode": "ARG", "district": "Neuqu\u00e9n", "population": 167296}, {"id": 108, "name": "Ituzaing\u00f3", "countrycode": "ARG", "district": "Buenos Aires", "population": 158197}, {"id": 109, "name": "San Fernando", "countrycode": "ARG", "district": "Buenos Aires", "population": 153036}, {"id": 110, "name": "Formosa", "countrycode": "ARG", "district": "Formosa", "population": 147636}, {"id": 111, "name": "Las Heras", "countrycode": "ARG", "district": "Mendoza", "population": 145823}, {"id": 112, "name": "La Rioja", "countrycode": "ARG", "district": "La Rioja", "population": 138117}, {"id": 113, "name": "San Fernando del Valle de Cata", "countrycode": "ARG", "district": "Catamarca", "population": 134935}, {"id": 114, "name": "R\u00edo Cuarto", "countrycode": "ARG", "district": "C\u00f3rdoba", "population": 134355}, {"id": 115, "name": "Comodoro Rivadavia", "countrycode": "ARG", "district": "Chubut", "population": 124104}, {"id": 116, "name": "Mendoza", "countrycode": "ARG", "district": "Mendoza", "population": 123027}, {"id": 117, "name": "San Nicol\u00e1s de los Arroyos", "countrycode": "ARG", "district": "Buenos Aires", "population": 119302}, {"id": 118, "name": "San Juan", "countrycode": "ARG", "district": "San Juan", "population": 119152}, {"id": 119, "name": "Escobar", "countrycode": "ARG", "district": "Buenos Aires", "population": 116675}, {"id": 120, "name": "Concordia", "countrycode": "ARG", "district": "Entre Rios", "population": 116485}, {"id": 121, "name": "Pilar", "countrycode": "ARG", "district": "Buenos Aires", "population": 113428}, {"id": 122, "name": "San Luis", "countrycode": "ARG", "district": "San Luis", "population": 110136}, {"id": 123, "name": "Ezeiza", "countrycode": "ARG", "district": "Buenos Aires", "population": 99578}, {"id": 124, "name": "San Rafael", "countrycode": "ARG", "district": "Mendoza", "population": 94651}, {"id": 125, "name": "Tandil", "countrycode": "ARG", "district": "Buenos Aires", "population": 91101}, {"id": 126, "name": "Yerevan", "countrycode": "ARM", "district": "Yerevan", "population": 1248700}, {"id": 127, "name": "Gjumri", "countrycode": "ARM", "district": "\u0160irak", "population": 211700}, {"id": 128, "name": "Vanadzor", "countrycode": "ARM", "district": "Lori", "population": 172700}, {"id": 129, "name": "Oranjestad", "countrycode": "ABW", "district": "\u2013", "population": 29034}, {"id": 130, "name": "Sydney", "countrycode": "AUS", "district": "New South Wales", "population": 3276207}, {"id": 131, "name": "Melbourne", "countrycode": "AUS", "district": "Victoria", "population": 2865329}, {"id": 132, "name": "Brisbane", "countrycode": "AUS", "district": "Queensland", "population": 1291117}, {"id": 133, "name": "Perth", "countrycode": "AUS", "district": "West Australia", "population": 1096829}, {"id": 134, "name": "Adelaide", "countrycode": "AUS", "district": "South Australia", "population": 978100}, {"id": 135, "name": "Canberra", "countrycode": "AUS", "district": "Capital Region", "population": 322723}, {"id": 136, "name": "Gold Coast", "countrycode": "AUS", "district": "Queensland", "population": 311932}, {"id": 137, "name": "Newcastle", "countrycode": "AUS", "district": "New South Wales", "population": 270324}, {"id": 138, "name": "Central Coast", "countrycode": "AUS", "district": "New South Wales", "population": 227657}, {"id": 139, "name": "Wollongong", "countrycode": "AUS", "district": "New South Wales", "population": 219761}, {"id": 140, "name": "Hobart", "countrycode": "AUS", "district": "Tasmania", "population": 126118}, {"id": 141, "name": "Geelong", "countrycode": "AUS", "district": "Victoria", "population": 125382}, {"id": 142, "name": "Townsville", "countrycode": "AUS", "district": "Queensland", "population": 109914}, {"id": 143, "name": "Cairns", "countrycode": "AUS", "district": "Queensland", "population": 92273}, {"id": 144, "name": "Baku", "countrycode": "AZE", "district": "Baki", "population": 1787800}, {"id": 145, "name": "G\u00e4nc\u00e4", "countrycode": "AZE", "district": "G\u00e4nc\u00e4", "population": 299300}, {"id": 146, "name": "Sumqayit", "countrycode": "AZE", "district": "Sumqayit", "population": 283000}, {"id": 147, "name": "Ming\u00e4\u00e7evir", "countrycode": "AZE", "district": "Ming\u00e4\u00e7evir", "population": 93900}, {"id": 148, "name": "Nassau", "countrycode": "BHS", "district": "New Providence", "population": 172000}, {"id": 149, "name": "al-Manama", "countrycode": "BHR", "district": "al-Manama", "population": 148000}, {"id": 150, "name": "Dhaka", "countrycode": "BGD", "district": "Dhaka", "population": 3612850}, {"id": 151, "name": "Chittagong", "countrycode": "BGD", "district": "Chittagong", "population": 1392860}, {"id": 152, "name": "Khulna", "countrycode": "BGD", "district": "Khulna", "population": 663340}, {"id": 153, "name": "Rajshahi", "countrycode": "BGD", "district": "Rajshahi", "population": 294056}, {"id": 154, "name": "Narayanganj", "countrycode": "BGD", "district": "Dhaka", "population": 202134}, {"id": 155, "name": "Rangpur", "countrycode": "BGD", "district": "Rajshahi", "population": 191398}, {"id": 156, "name": "Mymensingh", "countrycode": "BGD", "district": "Dhaka", "population": 188713}, {"id": 157, "name": "Barisal", "countrycode": "BGD", "district": "Barisal", "population": 170232}, {"id": 158, "name": "Tungi", "countrycode": "BGD", "district": "Dhaka", "population": 168702}, {"id": 159, "name": "Jessore", "countrycode": "BGD", "district": "Khulna", "population": 139710}, {"id": 160, "name": "Comilla", "countrycode": "BGD", "district": "Chittagong", "population": 135313}, {"id": 161, "name": "Nawabganj", "countrycode": "BGD", "district": "Rajshahi", "population": 130577}, {"id": 162, "name": "Dinajpur", "countrycode": "BGD", "district": "Rajshahi", "population": 127815}, {"id": 163, "name": "Bogra", "countrycode": "BGD", "district": "Rajshahi", "population": 120170}, {"id": 164, "name": "Sylhet", "countrycode": "BGD", "district": "Sylhet", "population": 117396}, {"id": 165, "name": "Brahmanbaria", "countrycode": "BGD", "district": "Chittagong", "population": 109032}, {"id": 166, "name": "Tangail", "countrycode": "BGD", "district": "Dhaka", "population": 106004}, {"id": 167, "name": "Jamalpur", "countrycode": "BGD", "district": "Dhaka", "population": 103556}, {"id": 168, "name": "Pabna", "countrycode": "BGD", "district": "Rajshahi", "population": 103277}, {"id": 169, "name": "Naogaon", "countrycode": "BGD", "district": "Rajshahi", "population": 101266}, {"id": 170, "name": "Sirajganj", "countrycode": "BGD", "district": "Rajshahi", "population": 99669}, {"id": 171, "name": "Narsinghdi", "countrycode": "BGD", "district": "Dhaka", "population": 98342}, {"id": 172, "name": "Saidpur", "countrycode": "BGD", "district": "Rajshahi", "population": 96777}, {"id": 173, "name": "Gazipur", "countrycode": "BGD", "district": "Dhaka", "population": 96717}, {"id": 174, "name": "Bridgetown", "countrycode": "BRB", "district": "St Michael", "population": 6070}, {"id": 175, "name": "Antwerpen", "countrycode": "BEL", "district": "Antwerpen", "population": 446525}, {"id": 176, "name": "Gent", "countrycode": "BEL", "district": "East Flanderi", "population": 224180}, {"id": 177, "name": "Charleroi", "countrycode": "BEL", "district": "Hainaut", "population": 200827}, {"id": 178, "name": "Li\u00e8ge", "countrycode": "BEL", "district": "Li\u00e8ge", "population": 185639}, {"id": 179, "name": "Bruxelles [Brussel]", "countrycode": "BEL", "district": "Bryssel", "population": 133859}, {"id": 180, "name": "Brugge", "countrycode": "BEL", "district": "West Flanderi", "population": 116246}, {"id": 181, "name": "Schaerbeek", "countrycode": "BEL", "district": "Bryssel", "population": 105692}, {"id": 182, "name": "Namur", "countrycode": "BEL", "district": "Namur", "population": 105419}, {"id": 183, "name": "Mons", "countrycode": "BEL", "district": "Hainaut", "population": 90935}, {"id": 184, "name": "Belize City", "countrycode": "BLZ", "district": "Belize City", "population": 55810}, {"id": 185, "name": "Belmopan", "countrycode": "BLZ", "district": "Cayo", "population": 7105}, {"id": 186, "name": "Cotonou", "countrycode": "BEN", "district": "Atlantique", "population": 536827}, {"id": 187, "name": "Porto-Novo", "countrycode": "BEN", "district": "Ou\u00e9m\u00e9", "population": 194000}, {"id": 188, "name": "Djougou", "countrycode": "BEN", "district": "Atacora", "population": 134099}, {"id": 189, "name": "Parakou", "countrycode": "BEN", "district": "Borgou", "population": 103577}, {"id": 190, "name": "Saint George", "countrycode": "BMU", "district": "Saint George\u00b4s", "population": 1800}, {"id": 191, "name": "Hamilton", "countrycode": "BMU", "district": "Hamilton", "population": 1200}, {"id": 192, "name": "Thimphu", "countrycode": "BTN", "district": "Thimphu", "population": 22000}, {"id": 193, "name": "Santa Cruz de la Sierra", "countrycode": "BOL", "district": "Santa Cruz", "population": 935361}, {"id": 194, "name": "La Paz", "countrycode": "BOL", "district": "La Paz", "population": 758141}, {"id": 195, "name": "El Alto", "countrycode": "BOL", "district": "La Paz", "population": 534466}, {"id": 196, "name": "Cochabamba", "countrycode": "BOL", "district": "Cochabamba", "population": 482800}, {"id": 197, "name": "Oruro", "countrycode": "BOL", "district": "Oruro", "population": 223553}, {"id": 198, "name": "Sucre", "countrycode": "BOL", "district": "Chuquisaca", "population": 178426}, {"id": 199, "name": "Potos\u00ed", "countrycode": "BOL", "district": "Potos\u00ed", "population": 140642}, {"id": 200, "name": "Tarija", "countrycode": "BOL", "district": "Tarija", "population": 125255}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(district == \"Thimphu\")\n\nsummary = filtered_city\n |> group_by(countrycode)\n |> aggregate(min_population: min(population), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(summary, country, on: countrycode == code)\n |> compute(computed_val: count * population)\n\nresult = enriched\n |> sort_by(countrycode, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(district == \"Thimph\")\n\nsummary = filtered_city\n |> group_by(countrycode)\n |> aggregate(min_population: min(population), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(summary, country, on: countrycode == code)\n |> compute(computed_val: count * population)\n\nresult = enriched\n |> sort_by(countrycode, desc)\n |> take(1)\n\nemit result", "expected_output": [{"countrycode": "BTN", "min_population": 22000, "count": 1, "code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT", "computed_val": 2124000}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Thimphu' \u2192 'Thimph'", "line_num": 5, "original": "|> filter(district == \"Thimphu\")", "mutated": "|> filter(district == \"Thimph\")"}, {"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 19, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "hard", "domain": "world_1__city", "num_nodes": 6, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"course": [{"cid": "600.101", "cname": "COMPUTER LITERACY", "credits": 3, "instructor": 6112, "days": "MTW", "hours": "3", "dno": 600}, {"cid": "600.103", "cname": "INTRODUCTION TO COMPUTER SCIENCE", "credits": 1, "instructor": 4230, "days": "Th", "hours": "4", "dno": 600}, {"cid": "600.107", "cname": "INTRO TO PROGRAMMING IN JAVA", "credits": 3, "instructor": 1193, "days": "MTW", "hours": "3", "dno": 600}, {"cid": "600.109", "cname": "INTRO TO PROGRAMMING IN C/C++", "credits": 3, "instructor": 4230, "days": "MTW", "hours": "12", "dno": 600}, {"cid": "600.113", "cname": "EXPLORING THE INTERNET", "credits": 3, "instructor": 6112, "days": "MTW", "hours": "4", "dno": 600}, {"cid": "600.121", "cname": "JAVA PROGRAMMING", "credits": 3, "instructor": 6112, "days": "ThF", "hours": "10:30-12", "dno": 600}, {"cid": "600.211", "cname": "UNIX SYSTEMS PROGRAMMING", "credits": 3, "instructor": 6112, "days": "ThF", "hours": "1-2:15", "dno": 600}, {"cid": "600.227", "cname": "DATA STRUCTURES in JAVA", "credits": 3, "instructor": 1121, "days": "MTW", "hours": "9", "dno": 600}, {"cid": "600.232", "cname": "MULTIMEDIA COMPUTING", "credits": 3, "instructor": 9826, "days": "MW", "hours": "1-2:30", "dno": 600}, {"cid": "600.271", "cname": "COMPUTATIONAL MODELS", "credits": 3, "instructor": 9172, "days": "MTW", "hours": "1", "dno": 600}, {"cid": "600.303", "cname": "SUPERCOMPUTING", "credits": 1, "instructor": 9826, "days": "W", "hours": "4-6:20", "dno": 600}, {"cid": "600.315", "cname": "DATABASE SYSTEMS", "credits": 3, "instructor": 2192, "days": "ThF", "hours": "2:30-4", "dno": 600}, {"cid": "600.333", "cname": "COMPUTER SYSTEM FUNDAMENTALS", "credits": 3, "instructor": 1148, "days": "MTW", "hours": "8", "dno": 600}, {"cid": "600.337", "cname": "DISTRIBUTED SYSTEMS", "credits": 3, "instructor": 8918, "days": "M", "hours": "3", "dno": 600}, {"cid": "600.363", "cname": "INTRODUCTION TO ALGORITHMS", "credits": 3, "instructor": 7712, "days": "MTW", "hours": "9", "dno": 600}, {"cid": "600.415", "cname": "DATABASE SYSTEMS", "credits": 3, "instructor": 2192, "days": "ThF", "hours": "2:30-4", "dno": 600}, {"cid": "600.433", "cname": "COMPUTER SYSTEMS", "credits": 3, "instructor": 1148, "days": "MTW", "hours": "8", "dno": 600}, {"cid": "600.437", "cname": "DISTRIBUTED SYSTEMS", "credits": 3, "instructor": 8918, "days": "M", "hours": "3", "dno": 600}, {"cid": "600.445", "cname": "QUANTITATIVE MEDICAL COMPUTING", "credits": 3, "instructor": 7723, "days": "ThF", "hours": "1-2:15", "dno": 600}, {"cid": "600.461", "cname": "COMPUTER VISION", "credits": 3, "instructor": 8114, "days": "MTW", "hours": "1", "dno": 600}, {"cid": "600.463", "cname": "ALGORITHMS I", "credits": 3, "instructor": 7712, "days": "MTW", "hours": "9", "dno": 600}, {"cid": "600.465", "cname": "INTRO TO NATURAL LANGUAGE PROCESSING", "credits": 3, "instructor": 7792, "days": "MTW", "hours": "2", "dno": 600}, {"cid": "600.509", "cname": "COMPUTER SCIENCE INTERNSHIP", "credits": 3, "instructor": 1121, "days": "M", "hours": "1", "dno": 600}, {"cid": "600.601", "cname": "COMPUTER SCIENCE SEMINAR", "credits": 1, "instructor": 6191, "days": "ThF", "hours": "10:30-12", "dno": 600}, {"cid": "600.657", "cname": "HIGH PERFORMANCE GRAPHICS AND MODELING", "credits": 3, "instructor": 8423, "days": "M", "hours": "4-5:30", "dno": 600}, {"cid": "600.787", "cname": "SEMINAR ON COMPUTATIONAL GEOMETRY", "credits": 3, "instructor": 1121, "days": "Th", "hours": "2", "dno": 600}, {"cid": "550.111", "cname": "STATISTICAL ANALYSIS", "credits": 4, "instructor": 2311, "days": "MTW", "hours": "12", "dno": 550}, {"cid": "550.171", "cname": "DISCRETE MATHEMATICS", "credits": 4, "instructor": 8772, "days": "MTW", "hours": "11", "dno": 550}, {"cid": "500.203", "cname": "ACCOUNTING I", "credits": 3, "instructor": 9823, "days": "T", "hours": "6:15-8:45", "dno": 550}, {"cid": "500.204", "cname": "ACCOUNTING II", "credits": 3, "instructor": 9823, "days": "Th", "hours": "6:15-8:45", "dno": 550}, {"cid": "500.205", "cname": "BUSINESS LAW I", "credits": 3, "instructor": 8791, "days": "W", "hours": "6:15-8:45", "dno": 550}, {"cid": "500.206", "cname": "BUSINESS LAW II", "credits": 3, "instructor": 8791, "days": "M", "hours": "6:15-8:45", "dno": 550}, {"cid": "550.291", "cname": "LINEAR ALGEBRA AND DIFFERENTIAL EQNS", "credits": 4, "instructor": 6541, "days": "MTW", "hours": "9", "dno": 550}, {"cid": "550.310", "cname": "PROBABILITY AND STATISTICS", "credits": 4, "instructor": 8102, "days": "MTW", "hours": "10", "dno": 550}, {"cid": "550.361", "cname": "INTRODUCTION TO OPTIMIZATION", "credits": 4, "instructor": 2881, "days": "MTW", "hours": "2", "dno": 550}, {"cid": "550.413", "cname": "APPLIED STATISTICS AND DATA ANALYSIS", "credits": 4, "instructor": 1177, "days": "MTW", "hours": "11", "dno": 550}, {"cid": "550.420", "cname": "INTRODUCTION TO PROBABILITY", "credits": 4, "instructor": 2738, "days": "MTW", "hours": "1", "dno": 550}, {"cid": "550.471", "cname": "COMBINATORIAL ANALYSIS", "credits": 4, "instructor": 8772, "days": "MTW", "hours": "12", "dno": 550}, {"cid": "550.620", "cname": "PROBABILITY THEORY I", "credits": 3, "instructor": 2738, "days": "MTW", "hours": "2", "dno": 550}, {"cid": "550.626", "cname": "STOCHASTIC PROCESSES II", "credits": 3, "instructor": 8102, "days": "MTW", "hours": "1", "dno": 550}, {"cid": "550.631", "cname": "STATISTICAL INFERENCE", "credits": 3, "instructor": 6182, "days": "MTW", "hours": "3", "dno": 550}, {"cid": "550.661", "cname": "FOUNDATIONS OF OPTIMIZATION", "credits": 3, "instructor": 9823, "days": "MTW", "hours": "10", "dno": 550}, {"cid": "550.671", "cname": "COMBINATORIAL ANALYSIS", "credits": 3, "instructor": 8772, "days": "MTW", "hours": "12", "dno": 550}, {"cid": "550.681", "cname": "NUMERICAL ANALYSIS", "credits": 3, "instructor": 6541, "days": "MTW", "hours": "11", "dno": 550}, {"cid": "550.721", "cname": "PERCOLATION THEORY", "credits": 3, "instructor": 8122, "days": "MTW", "hours": "9", "dno": 550}, {"cid": "550.750", "cname": "TOPICS IN OPERATIONS RESEARCH", "credits": 3, "instructor": 9922, "days": "MW", "hours": "3-4:30", "dno": 550}, {"cid": "550.790", "cname": "TOPICS IN APPLIED MATH", "credits": 2, "instructor": 2881, "days": "MT", "hours": "4:30-6", "dno": 550}, {"cid": "520.137", "cname": "INTRODUCTION TO ECE", "credits": 3, "instructor": 8723, "days": "MTW", "hours": "11", "dno": 520}, {"cid": "520.213", "cname": "CIRCUITS", "credits": 4, "instructor": 9210, "days": "MTW", "hours": "2", "dno": 520}, {"cid": "520.219", "cname": "FIELDS, MATTER AND WAVES", "credits": 3, "instructor": 9210, "days": "MTW", "hours": "3", "dno": 520}, {"cid": "520.325", "cname": "INTEGRATED ELECTRONICS", "credits": 3, "instructor": 6191, "days": "MTW", "hours": "3", "dno": 520}, {"cid": "520.345", "cname": "ECE LABORATORY", "credits": 3, "instructor": 1823, "days": "W", "hours": "2", "dno": 520}, {"cid": "520.349", "cname": "MICROPROCESSOR LAB I", "credits": 3, "instructor": 9824, "days": "Th", "hours": "8", "dno": 520}, {"cid": "520.353", "cname": "CONTROL SYSTEMS", "credits": 3, "instructor": 6925, "days": "MTW", "hours": "10", "dno": 520}, {"cid": "520.401", "cname": "BASIC COMMUNICATIONS", "credits": 3, "instructor": 6191, "days": "MTW", "hours": "1", "dno": 520}, {"cid": "520.410", "cname": "FIBER OPTICS AND PHOTONICS", "credits": 3, "instructor": 6191, "days": "MTW", "hours": "1", "dno": 520}, {"cid": "520.419", "cname": "ITERATIVE ALGORITHMS", "credits": 3, "instructor": 2119, "days": "MT", "hours": "4-5:15", "dno": 520}, {"cid": "520.421", "cname": "INTRODUCTION TO NON-LINEAR SYSTEMS", "credits": 3, "instructor": 7231, "days": "MTW", "hours": "9", "dno": 520}, {"cid": "520.432", "cname": "TOPICS IN MEDICAL IMAGING SYSTEMS", "credits": 3, "instructor": 9514, "days": "TTh", "hours": "8:30-10", "dno": 520}, {"cid": "520.435", "cname": "DIGITAL SIGNAL PROCESSING", "credits": 4, "instructor": 8118, "days": "MTW", "hours": "11", "dno": 520}, {"cid": "520.475", "cname": "PROCESSING AND RECOGNITION OF SPEECH", "credits": 3, "instructor": 6330, "days": "TW", "hours": "2-3:30", "dno": 520}, {"cid": "520.490", "cname": "ANALOG AND DIGITAL VLSI SYSTEMS", "credits": 3, "instructor": 8722, "days": "ThF", "hours": "10:30-12", "dno": 520}, {"cid": "520.603", "cname": "ELECTROMAGNETIC WAVES", "credits": 4, "instructor": 9210, "days": "Th", "hours": "1-4:30", "dno": 520}, {"cid": "520.605", "cname": "SOLID STATE PHYSICS", "credits": 3, "instructor": 9379, "days": "Tu", "hours": "1-4", "dno": 520}, {"cid": "520.609", "cname": "NONLINEAR TECHNICAL IMAGE PROCESSING", "credits": 3, "instructor": 7134, "days": "Th", "hours": "1-4", "dno": 520}, {"cid": "520.651", "cname": "RANDOM SIGNAL ANALYSIS", "credits": 3, "instructor": 9514, "days": "ThF", "hours": "10:30-12", "dno": 520}, {"cid": "050.102", "cname": "LANGUAGE AND MIND", "credits": 3, "instructor": 4432, "days": "MTW", "hours": "10", "dno": 50}, {"cid": "050.109", "cname": "MIND, BRAIN, COMPUTERS", "credits": 3, "instructor": 6910, "days": "MW", "hours": "2-3:15", "dno": 50}, {"cid": "050.203", "cname": "COGNITIVE NEUROSCIENCE", "credits": 4, "instructor": 9011, "days": "MT", "hours": "3:30-4:45", "dno": 50}, {"cid": "050.325", "cname": "SOUND STRUCTURES IN NATURAL LANGUAGE", "credits": 3, "instructor": 4432, "days": "T", "hours": "10-12", "dno": 50}, {"cid": "050.370", "cname": "FORMAL METHODS IN COGNITIVE SCIENCE", "credits": 3, "instructor": 6910, "days": "MW", "hours": "11:30", "dno": 50}, {"cid": "050.381", "cname": "LANGUAGE DEVELOPMENT", "credits": 3, "instructor": 8989, "days": "T", "hours": "1-3", "dno": 50}, {"cid": "050.427", "cname": "THE HISTORY OF ROMANCE LANGUAGES", "credits": 3, "instructor": 4432, "days": "W", "hours": "1-3", "dno": 50}, {"cid": "050.670", "cname": "FORMAL METHODS IN COGNITIVE SCIENCE", "credits": 3, "instructor": 4432, "days": "MW", "hours": "11:30-12:45", "dno": 50}, {"cid": "050.802", "cname": "RESEARCH SEMINAR IN COGNITIVE PROCESSES", "credits": 1, "instructor": 9011, "days": "W", "hours": "1-3", "dno": 50}, {"cid": "050.821", "cname": "COMP. MODELS OF SENTENCE PROCESSING", "credits": 3, "instructor": 5718, "days": "M", "hours": "1-4", "dno": 50}], "faculty": [{"facid": 1082, "lname": "Giuliano", "fname": "Mark", "rank": "Instructor", "sex": "M", "phone": 2424, "room": "224", "building": "NEB"}, {"facid": 1121, "lname": "Goodrich", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3593, "room": "219", "building": "NEB"}, {"facid": 1148, "lname": "Masson", "fname": "Gerald", "rank": "Professor", "sex": "M", "phone": 3402, "room": "224B", "building": "NEB"}, {"facid": 1172, "lname": "Runolfsson", "fname": "Thordur", "rank": "AssocProf", "sex": "M", "phone": 3121, "room": "119", "building": "Barton"}, {"facid": 1177, "lname": "Naiman", "fname": "Daniel", "rank": "Professor", "sex": "M", "phone": 3571, "room": "288", "building": "Krieger"}, {"facid": 1193, "lname": "Jones", "fname": "Stacey", "rank": "Instructor", "sex": "F", "phone": 3550, "room": "224", "building": "NEB"}, {"facid": 1823, "lname": "Davidson", "fname": "Frederic", "rank": "Professor", "sex": "M", "phone": 5629, "room": "119", "building": "Barton"}, {"facid": 2028, "lname": "Brody", "fname": "William", "rank": "Professor", "sex": "M", "phone": 6073, "room": "119", "building": "Barton"}, {"facid": 2119, "lname": "Meyer", "fname": "Gerard", "rank": "Professor", "sex": "M", "phone": 6350, "room": "119", "building": "Barton"}, {"facid": 2192, "lname": "Yarowsky", "fname": "David", "rank": "AsstProf", "sex": "M", "phone": 6587, "room": "324", "building": "NEB"}, {"facid": 2291, "lname": "Scheinerman", "fname": "Edward", "rank": "Professor", "sex": "M", "phone": 6654, "room": "288", "building": "Krieger"}, {"facid": 2311, "lname": "Priebe", "fname": "Carey", "rank": "AsstProf", "sex": "M", "phone": 6953, "room": "288", "building": "Krieger"}, {"facid": 2738, "lname": "Fill", "fname": "James", "rank": "Professor", "sex": "M", "phone": 8209, "room": "288", "building": "Krieger"}, {"facid": 2881, "lname": "Goldman", "fname": "Alan", "rank": "Professor", "sex": "M", "phone": 8335, "room": "288", "building": "Krieger"}, {"facid": 3457, "lname": "Smith", "fname": "Scott", "rank": "AssocProf", "sex": "M", "phone": 1035, "room": "318", "building": "NEB"}, {"facid": 4230, "lname": "Houlahan", "fname": "Joanne", "rank": "Instructor", "sex": "F", "phone": 1260, "room": "328", "building": "NEB"}, {"facid": 4432, "lname": "Burzio", "fname": "Luigi", "rank": "Professor", "sex": "M", "phone": 1813, "room": "288", "building": "Krieger"}, {"facid": 5718, "lname": "Frank", "fname": "Robert", "rank": "AsstProf", "sex": "M", "phone": 1751, "room": "288", "building": "Krieger"}, {"facid": 6112, "lname": "Beach", "fname": "Louis", "rank": "Instructor", "sex": "M", "phone": 1838, "room": "207", "building": "NEB"}, {"facid": 6182, "lname": "Cheng", "fname": "Cheng", "rank": "AsstProf", "sex": "M", "phone": 1856, "room": "288", "building": "Krieger"}, {"facid": 6191, "lname": "Kaplan", "fname": "Alexander", "rank": "Professor", "sex": "M", "phone": 1825, "room": "119", "building": "Barton"}, {"facid": 6330, "lname": "Byrne", "fname": "William", "rank": "Instructor", "sex": "M", "phone": 1691, "room": "119", "building": "Barton"}, {"facid": 6541, "lname": "Han", "fname": "Shih-Ping", "rank": "Professor", "sex": "M", "phone": 1914, "room": "288", "building": "Krieger"}, {"facid": 6910, "lname": "Smolensky", "fname": "Paul", "rank": "Professor", "sex": "M", "phone": 2072, "room": "288", "building": "Krieger"}, {"facid": 6925, "lname": "Iglesias", "fname": "Pablo", "rank": "AsstProf", "sex": "M", "phone": 2021, "room": "119", "building": "Barton"}, {"facid": 7134, "lname": "Goutsias", "fname": "John", "rank": "Professor", "sex": "M", "phone": 2184, "room": "119", "building": "Barton"}, {"facid": 7231, "lname": "Rugh", "fname": "Wilson", "rank": "Professor", "sex": "M", "phone": 2191, "room": "119", "building": "Barton"}, {"facid": 7271, "lname": "Jelinek", "fname": "Frederick", "rank": "Professor", "sex": "M", "phone": 2890, "room": "119", "building": "Barton"}, {"facid": 7506, "lname": "Westgate", "fname": "Charles", "rank": "Professor", "sex": "M", "phone": 2932, "room": "119", "building": "Barton"}, {"facid": 7712, "lname": "Awerbuch", "fname": "Baruch", "rank": "Professor", "sex": "M", "phone": 2105, "room": "220", "building": "NEB"}, {"facid": 7723, "lname": "Taylor", "fname": "Russell", "rank": "Professor", "sex": "M", "phone": 2435, "room": "317", "building": "NEB"}, {"facid": 7792, "lname": "Brill", "fname": "Eric", "rank": "AsstProf", "sex": "M", "phone": 2303, "room": "324B", "building": "NEB"}, {"facid": 8102, "lname": "James", "fname": "Lancelot", "rank": "AsstProf", "sex": "M", "phone": 2792, "room": "288", "building": "Krieger"}, {"facid": 8114, "lname": "Angelopoulou", "fname": "Ellie", "rank": "Instructor", "sex": "F", "phone": 2152, "room": "316", "building": "NEB"}, {"facid": 8118, "lname": "Weinert", "fname": "Howard", "rank": "Professor", "sex": "M", "phone": 3272, "room": "119", "building": "Barton"}, {"facid": 8122, "lname": "Wierman", "fname": "John", "rank": "Professor", "sex": "M", "phone": 3392, "room": "288", "building": "Krieger"}, {"facid": 8423, "lname": "Kumar", "fname": "Subodh", "rank": "AsstProf", "sex": "M", "phone": 2522, "room": "218", "building": "NEB"}, {"facid": 8721, "lname": "Wolff", "fname": "Lawrence", "rank": "AssocProf", "sex": "M", "phone": 2342, "room": "316", "building": "NEB"}, {"facid": 8722, "lname": "Cauwenberghs", "fname": "Gert", "rank": "AsstProf", "sex": "M", "phone": 1372, "room": "119", "building": "Barton"}, {"facid": 8723, "lname": "Andreou", "fname": "Andreas", "rank": "Professor", "sex": "M", "phone": 1402, "room": "119", "building": "Barton"}, {"facid": 8741, "lname": "Salzberg", "fname": "Steven", "rank": "AssocProf", "sex": "M", "phone": 2641, "room": "324A", "building": "NEB"}, {"facid": 8772, "lname": "Cowen", "fname": "Lenore", "rank": "AsstProf", "sex": "F", "phone": 2870, "room": "288", "building": "Krieger"}, {"facid": 8791, "lname": "McCloskey", "fname": "Michael", "rank": "Professor", "sex": "M", "phone": 3440, "room": "288", "building": "Krieger"}, {"facid": 8918, "lname": "Amir", "fname": "Yair", "rank": "AsstProf", "sex": "M", "phone": 2672, "room": "308", "building": "NEB"}, {"facid": 8989, "lname": "Brent", "fname": "Michael", "rank": "AsstProf", "sex": "M", "phone": 9373, "room": "288", "building": "Krieger"}, {"facid": 9011, "lname": "Rapp", "fname": "Brenda", "rank": "AsstProf", "sex": "F", "phone": 2032, "room": "288", "building": "Krieger"}, {"facid": 9172, "lname": "Kosaraju", "fname": "Rao", "rank": "Professor", "sex": "M", "phone": 2757, "room": "319", "building": "NEB"}, {"facid": 9191, "lname": "Collins", "fname": "Oliver", "rank": "AssocProf", "sex": "M", "phone": 5427, "room": "119", "building": "Barton"}, {"facid": 9199, "lname": "Hughes", "fname": "Brian", "rank": "AssocProf", "sex": "M", "phone": 5666, "room": "119", "building": "Barton"}, {"facid": 9210, "lname": "Joseph", "fname": "Richard", "rank": "Professor", "sex": "M", "phone": 5996, "room": "119", "building": "Barton"}, {"facid": 9379, "lname": "Khurgin", "fname": "Jacob", "rank": "Professor", "sex": "M", "phone": 1060, "room": "119", "building": "Barton"}, {"facid": 9514, "lname": "Prince", "fname": "Jerry", "rank": "AssocProf", "sex": "M", "phone": 5106, "room": "119", "building": "Barton"}, {"facid": 9643, "lname": "Legendre", "fname": "Geraldine", "rank": "AssocProf", "sex": "F", "phone": 8972, "room": "288", "building": "Krieger"}, {"facid": 9811, "lname": "Wu", "fname": "Colin", "rank": "AsstProf", "sex": "M", "phone": 2906, "room": "288", "building": "Krieger"}, {"facid": 9823, "lname": "Pang", "fname": "Jong-Shi", "rank": "Professor", "sex": "M", "phone": 4366, "room": "288", "building": "Krieger"}, {"facid": 9824, "lname": "Glaser", "fname": "Robert", "rank": "Instructor", "sex": "M", "phone": 4396, "room": "119", "building": "Barton"}, {"facid": 9826, "lname": "Delcher", "fname": "Arthur", "rank": "Instructor", "sex": "M", "phone": 2956, "room": "329", "building": "NEB"}, {"facid": 9922, "lname": "Hall", "fname": "Leslie", "rank": "AsstProf", "sex": "F", "phone": 7332, "room": "288", "building": "Krieger"}]}, "correct_code": "-- Load college_3__course data\ncourse = load(\"course\")\n\nfiltered_course = course\n |> filter(hours == \"2:30-4\")\n |> filter(dno > 304)\n |> select(cid, credits, days, cname, instructor)\n\n-- Load lookup data\nfaculty = load(\"faculty\")\n |> select(facid, sex, rank)\n\nenriched = join(filtered_course, faculty, on: instructor == facid)\n |> compute(computed_val: credits * instructor)\n\nresult = enriched\n |> sort_by(credits, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_3__course data\ncourse = load(\"course\")\n\nfiltered_course = course\n |> filter(hours == \"2:30-4\")\n |> filter(dno > 304)\n |> select(cid, credits, days, cname, instructor)\n\n-- Load lookup data\nfaculty = load(\"faculty\")\n |> select(facid, sex, rank)\n\nenriched = join(filtered_course, faculty, on: facid == instructor)\n |> compute(computed_val: credits * instructor)\n\nresult = enriched\n |> sort_by(credits, asc)\n |> take(3)\n\nemit result", "expected_output": [{"cid": "600.315", "credits": 3, "days": "ThF", "cname": "DATABASE SYSTEMS", "instructor": 2192, "facid": 2192, "sex": "M", "rank": "AsstProf", "computed_val": 6576}, {"cid": "600.415", "credits": 3, "days": "ThF", "cname": "DATABASE SYSTEMS", "instructor": 2192, "facid": 2192, "sex": "M", "rank": "AsstProf", "computed_val": 6576}], "bug_info": [{"category": "join_bug", "description": "Swapped join keys: 'instructor == facid' \u2192 'facid == instructor'", "line_num": 13, "original": "enriched = join(filtered_course, faculty, on: instructor == facid)", "mutated": "enriched = join(filtered_course, faculty, on: facid == instructor)"}], "difficulty": "hard", "domain": "college_3__course", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"regular_order_products": [{"regular_order_id": 5, "product_id": 3}, {"regular_order_id": 2, "product_id": 3}, {"regular_order_id": 10, "product_id": 1}, {"regular_order_id": 8, "product_id": 5}, {"regular_order_id": 12, "product_id": 2}, {"regular_order_id": 1, "product_id": 4}, {"regular_order_id": 6, "product_id": 3}, {"regular_order_id": 3, "product_id": 6}, {"regular_order_id": 3, "product_id": 1}, {"regular_order_id": 9, "product_id": 6}, {"regular_order_id": 5, "product_id": 5}, {"regular_order_id": 1, "product_id": 1}, {"regular_order_id": 7, "product_id": 4}, {"regular_order_id": 6, "product_id": 4}, {"regular_order_id": 13, "product_id": 2}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\nresult = regular_order_products\n |> sort_by(regular_order_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\nresult = regular_order_products\n |> sort_by(regular_order_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"regular_order_id": 1, "product_id": 4}, {"regular_order_id": 1, "product_id": 1}, {"regular_order_id": 2, "product_id": 3}, {"regular_order_id": 3, "product_id": 6}, {"regular_order_id": 3, "product_id": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 5, "original": "|> sort_by(regular_order_id, asc)", "mutated": "|> sort_by(regular_order_id, desc)"}], "difficulty": "medium", "domain": "customer_deliveries__regular_order_products", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"time_slot": [{"time_slot_id": "A", "day": "M", "start_hr": 8, "start_min": 0, "end_hr": 8, "end_min": 50}, {"time_slot_id": "A", "day": "W", "start_hr": 8, "start_min": 0, "end_hr": 8, "end_min": 50}, {"time_slot_id": "A", "day": "F", "start_hr": 8, "start_min": 0, "end_hr": 8, "end_min": 50}, {"time_slot_id": "B", "day": "M", "start_hr": 9, "start_min": 0, "end_hr": 9, "end_min": 50}, {"time_slot_id": "B", "day": "W", "start_hr": 9, "start_min": 0, "end_hr": 9, "end_min": 50}, {"time_slot_id": "B", "day": "F", "start_hr": 9, "start_min": 0, "end_hr": 9, "end_min": 50}, {"time_slot_id": "C", "day": "M", "start_hr": 11, "start_min": 0, "end_hr": 11, "end_min": 50}, {"time_slot_id": "C", "day": "W", "start_hr": 11, "start_min": 0, "end_hr": 11, "end_min": 50}, {"time_slot_id": "C", "day": "F", "start_hr": 11, "start_min": 0, "end_hr": 11, "end_min": 50}, {"time_slot_id": "D", "day": "M", "start_hr": 13, "start_min": 0, "end_hr": 13, "end_min": 50}, {"time_slot_id": "D", "day": "W", "start_hr": 13, "start_min": 0, "end_hr": 13, "end_min": 50}, {"time_slot_id": "D", "day": "F", "start_hr": 13, "start_min": 0, "end_hr": 13, "end_min": 50}, {"time_slot_id": "E", "day": "T", "start_hr": 10, "start_min": 30, "end_hr": 11, "end_min": 45}, {"time_slot_id": "E", "day": "R", "start_hr": 10, "start_min": 30, "end_hr": 11, "end_min": 45}, {"time_slot_id": "F", "day": "T", "start_hr": 14, "start_min": 30, "end_hr": 15, "end_min": 45}, {"time_slot_id": "F", "day": "R", "start_hr": 14, "start_min": 30, "end_hr": 15, "end_min": 45}, {"time_slot_id": "G", "day": "M", "start_hr": 16, "start_min": 0, "end_hr": 16, "end_min": 50}, {"time_slot_id": "G", "day": "W", "start_hr": 16, "start_min": 0, "end_hr": 16, "end_min": 50}, {"time_slot_id": "G", "day": "F", "start_hr": 16, "start_min": 0, "end_hr": 16, "end_min": 50}, {"time_slot_id": "H", "day": "W", "start_hr": 10, "start_min": 0, "end_hr": 12, "end_min": 30}]}, "correct_code": "-- Load college_2__time_slot data\ntime_slot = load(\"time_slot\")\n\nsummary = time_slot\n |> group_by(day)\n |> aggregate(max_end_min: max(end_min), count: count())\n |> compute(computed_val: count * max_end_min)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__time_slot data\ntime_slot = load(\"time_slot\")\n\nsummary = time_slot\n |> group_by(day)\n |> aggregate(max_end_min: max(end_min), count: count())\n |> compute(computed_val: count * max_end_min)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"day": "T", "max_end_min": 45, "count": 2, "computed_val": 90}, {"day": "R", "max_end_min": 45, "count": 2, "computed_val": 90}, {"day": "M", "max_end_min": 50, "count": 5, "computed_val": 250}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 10, "original": "|> sort_by(count, asc)", "mutated": "|> sort_by(count, desc)"}], "difficulty": "medium", "domain": "college_2__time_slot", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"regular_order_products": [{"regular_order_id": 5, "product_id": 3}, {"regular_order_id": 2, "product_id": 3}, {"regular_order_id": 10, "product_id": 1}, {"regular_order_id": 8, "product_id": 5}, {"regular_order_id": 12, "product_id": 2}, {"regular_order_id": 1, "product_id": 4}, {"regular_order_id": 6, "product_id": 3}, {"regular_order_id": 3, "product_id": 6}, {"regular_order_id": 3, "product_id": 1}, {"regular_order_id": 9, "product_id": 6}, {"regular_order_id": 5, "product_id": 5}, {"regular_order_id": 1, "product_id": 1}, {"regular_order_id": 7, "product_id": 4}, {"regular_order_id": 6, "product_id": 4}, {"regular_order_id": 13, "product_id": 2}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_id, product_description, product_price)\n\nenriched = join(regular_order_products, products, on: product_id == product_id)\n |> compute(computed_val: regular_order_id - product_id)\n\nresult = enriched\n |> sort_by(product_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_id, product_description, product_price)\n\nenriched = join(regular_order_products, products, on: product_id == product_id)\n |> compute(computed_val: regular_order_id - product_id)\n\nresult = enriched\n |> sort_by(regular_order_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"regular_order_id": 3, "product_id": 6, "product_description": "bad condition", "product_price": 5022.39, "computed_val": -3}, {"regular_order_id": 9, "product_id": 6, "product_description": "bad condition", "product_price": 5022.39, "computed_val": 3}, {"regular_order_id": 8, "product_id": 5, "product_description": "good condition", "product_price": 3644.45, "computed_val": 3}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'product_id' \u2192 'regular_order_id'", "line_num": 12, "original": "|> sort_by(product_id, desc)", "mutated": "|> sort_by(regular_order_id, desc)"}], "difficulty": "hard", "domain": "customer_deliveries__regular_order_products", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"projects": [{"project_id": 1, "organisation_id": 15, "project_details": "porro"}, {"project_id": 2, "organisation_id": 11, "project_details": "et"}, {"project_id": 3, "organisation_id": 7, "project_details": "sint"}, {"project_id": 4, "organisation_id": 4, "project_details": "doloremque"}, {"project_id": 5, "organisation_id": 11, "project_details": "vel"}, {"project_id": 6, "organisation_id": 10, "project_details": "deserunt"}, {"project_id": 7, "organisation_id": 3, "project_details": "deleniti"}, {"project_id": 8, "organisation_id": 1, "project_details": "ad"}, {"project_id": 9, "organisation_id": 4, "project_details": "sed"}, {"project_id": 10, "organisation_id": 4, "project_details": "consectetur"}, {"project_id": 11, "organisation_id": 13, "project_details": "impedit"}, {"project_id": 12, "organisation_id": 12, "project_details": "omnis"}, {"project_id": 13, "organisation_id": 3, "project_details": "non"}, {"project_id": 14, "organisation_id": 1, "project_details": "beatae"}, {"project_id": 15, "organisation_id": 5, "project_details": "dolorem"}], "organisations": [{"organisation_id": 1, "organisation_type": "RES", "organisation_details": "et"}, {"organisation_id": 2, "organisation_type": "RES", "organisation_details": "eius"}, {"organisation_id": 3, "organisation_type": "RES", "organisation_details": "impedit"}, {"organisation_id": 4, "organisation_type": "SPON", "organisation_details": "eos"}, {"organisation_id": 5, "organisation_type": "SPON", "organisation_details": "tenetur"}, {"organisation_id": 6, "organisation_type": "RES", "organisation_details": "dolorem"}, {"organisation_id": 7, "organisation_type": "RES", "organisation_details": "itaque"}, {"organisation_id": 8, "organisation_type": "SPON", "organisation_details": "aperiam"}, {"organisation_id": 9, "organisation_type": "RES", "organisation_details": "a"}, {"organisation_id": 10, "organisation_type": "SPON", "organisation_details": "officiis"}, {"organisation_id": 11, "organisation_type": "SPON", "organisation_details": "eveniet"}, {"organisation_id": 12, "organisation_type": "RES", "organisation_details": "itaque"}, {"organisation_id": 13, "organisation_type": "SPON", "organisation_details": "voluptas"}, {"organisation_id": 14, "organisation_type": "RES", "organisation_details": "quo"}, {"organisation_id": 15, "organisation_type": "SPON", "organisation_details": "consequuntur"}]}, "correct_code": "-- Load tracking_grants_for_research__projects data\nprojects = load(\"projects\")\n |> select(project_details, organisation_id, project_id)\n\nsummary = projects\n |> group_by(project_details)\n |> aggregate(max_project_id: max(project_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__projects data\nprojects = load(\"projects\")\n |> select(project_details, organisation_id, project_id)\n\nsummary = projects\n |> group_by(project_details)\n |> aggregate(max_project_id: avg(project_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"project_details": "porro", "max_project_id": 1, "count": 1}, {"project_details": "et", "max_project_id": 2, "count": 1}, {"project_details": "sint", "max_project_id": 3, "count": 1}, {"project_details": "doloremque", "max_project_id": 4, "count": 1}, {"project_details": "vel", "max_project_id": 5, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 3", "line_num": 11, "original": "|> take(5)", "mutated": "|> take(3)"}, {"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'avg'", "line_num": 7, "original": "|> aggregate(max_project_id: max(project_id), count: count())", "mutated": "|> aggregate(max_project_id: avg(project_id), count: count())"}], "difficulty": "medium", "domain": "tracking_grants_for_research__projects", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"problem_log": [{"problem_log_id": 1, "assigned_to_staff_id": 11, "problem_id": 11, "problem_category_code": "Middleware", "problem_status_code": "Solved", "log_entry_date": "2011-03-13 13:11:57", "log_entry_description": "t", "log_entry_fix": "k", "other_log_details": "p"}, {"problem_log_id": 2, "assigned_to_staff_id": 11, "problem_id": 8, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1976-03-31 14:03:02", "log_entry_description": "a", "log_entry_fix": "k", "other_log_details": "s"}, {"problem_log_id": 3, "assigned_to_staff_id": 12, "problem_id": 1, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1974-12-11 01:06:22", "log_entry_description": "b", "log_entry_fix": "j", "other_log_details": "e"}, {"problem_log_id": 4, "assigned_to_staff_id": 12, "problem_id": 12, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-04-02 11:07:29", "log_entry_description": "a", "log_entry_fix": "t", "other_log_details": "b"}, {"problem_log_id": 5, "assigned_to_staff_id": 6, "problem_id": 12, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "1976-09-17 09:01:12", "log_entry_description": "c", "log_entry_fix": "n", "other_log_details": "u"}, {"problem_log_id": 6, "assigned_to_staff_id": 2, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1983-07-01 02:12:36", "log_entry_description": "h", "log_entry_fix": "g", "other_log_details": "n"}, {"problem_log_id": 7, "assigned_to_staff_id": 13, "problem_id": 1, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1974-09-13 00:37:26", "log_entry_description": "s", "log_entry_fix": "c", "other_log_details": "v"}, {"problem_log_id": 8, "assigned_to_staff_id": 4, "problem_id": 15, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1999-08-17 00:00:18", "log_entry_description": "j", "log_entry_fix": "h", "other_log_details": "j"}, {"problem_log_id": 9, "assigned_to_staff_id": 10, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-06-21 22:33:35", "log_entry_description": "p", "log_entry_fix": "i", "other_log_details": "f"}, {"problem_log_id": 10, "assigned_to_staff_id": 6, "problem_id": 1, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "2001-05-14 10:03:53", "log_entry_description": "d", "log_entry_fix": "x", "other_log_details": "d"}, {"problem_log_id": 11, "assigned_to_staff_id": 1, "problem_id": 8, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1973-03-12 16:30:50", "log_entry_description": "w", "log_entry_fix": "k", "other_log_details": "a"}, {"problem_log_id": 12, "assigned_to_staff_id": 4, "problem_id": 10, "problem_category_code": "Middleware", "problem_status_code": "Solved", "log_entry_date": "1997-08-31 08:19:12", "log_entry_description": "c", "log_entry_fix": "y", "other_log_details": "c"}, {"problem_log_id": 13, "assigned_to_staff_id": 6, "problem_id": 10, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "2009-04-10 19:09:30", "log_entry_description": "q", "log_entry_fix": "t", "other_log_details": "o"}, {"problem_log_id": 14, "assigned_to_staff_id": 8, "problem_id": 4, "problem_category_code": "Datatabase", "problem_status_code": "Reported", "log_entry_date": "2011-11-12 23:30:53", "log_entry_description": "a", "log_entry_fix": "s", "other_log_details": "c"}, {"problem_log_id": 15, "assigned_to_staff_id": 5, "problem_id": 7, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1982-11-17 06:05:52", "log_entry_description": "v", "log_entry_fix": "o", "other_log_details": "d"}], "problem_category_codes": [{"problem_category_code": "Datatabase", "problem_category_description": "Database design or contents."}, {"problem_category_code": "GUI", "problem_category_description": "User Interface."}, {"problem_category_code": "Middleware", "problem_category_description": "Infrastructrure and Architecture"}]}, "correct_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n\nfiltered_problem_log = problem_log\n |> filter(log_entry_description == \"p\")\n |> filter(problem_log_id >= 4)\n\nresult = filtered_problem_log\n |> sort_by(assigned_to_staff_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n\nfiltered_problem_log = problem_log\n |> filter(log_entry_description == \"p\")\n |> filter(problem_log_id >= 4)\n\nresult = filtered_problem_log\n |> sort_bi(assigned_to_staff_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"problem_log_id": 9, "assigned_to_staff_id": 10, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-06-21 22:33:35", "log_entry_description": "p", "log_entry_fix": "i", "other_log_details": "f"}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'sort_bi'", "line_num": 9, "original": "|> sort_by(assigned_to_staff_id, asc)", "mutated": "|> sort_bi(assigned_to_staff_id, asc)"}], "difficulty": "easy", "domain": "tracking_software_problems__problem_log", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"seasons": [{"year": 1950, "url": "http://en.wikipedia.org/wiki/1950_Formula_One_season"}, {"year": 1951, "url": "http://en.wikipedia.org/wiki/1951_Formula_One_season"}, {"year": 1952, "url": "http://en.wikipedia.org/wiki/1952_Formula_One_season"}, {"year": 1953, "url": "http://en.wikipedia.org/wiki/1953_Formula_One_season"}, {"year": 1954, "url": "http://en.wikipedia.org/wiki/1954_Formula_One_season"}, {"year": 1955, "url": "http://en.wikipedia.org/wiki/1955_Formula_One_season"}, {"year": 1956, "url": "http://en.wikipedia.org/wiki/1956_Formula_One_season"}, {"year": 1957, "url": "http://en.wikipedia.org/wiki/1957_Formula_One_season"}, {"year": 1958, "url": "http://en.wikipedia.org/wiki/1958_Formula_One_season"}, {"year": 1959, "url": "http://en.wikipedia.org/wiki/1959_Formula_One_season"}, {"year": 1960, "url": "http://en.wikipedia.org/wiki/1960_Formula_One_season"}, {"year": 1961, "url": "http://en.wikipedia.org/wiki/1961_Formula_One_season"}, {"year": 1962, "url": "http://en.wikipedia.org/wiki/1962_Formula_One_season"}, {"year": 1963, "url": "http://en.wikipedia.org/wiki/1963_Formula_One_season"}, {"year": 1964, "url": "http://en.wikipedia.org/wiki/1964_Formula_One_season"}, {"year": 1965, "url": "http://en.wikipedia.org/wiki/1965_Formula_One_season"}, {"year": 1966, "url": "http://en.wikipedia.org/wiki/1966_Formula_One_season"}, {"year": 1967, "url": "http://en.wikipedia.org/wiki/1967_Formula_One_season"}, {"year": 1968, "url": "http://en.wikipedia.org/wiki/1968_Formula_One_season"}, {"year": 1969, "url": "http://en.wikipedia.org/wiki/1969_Formula_One_season"}, {"year": 1970, "url": "http://en.wikipedia.org/wiki/1970_Formula_One_season"}, {"year": 1971, "url": "http://en.wikipedia.org/wiki/1971_Formula_One_season"}, {"year": 1972, "url": "http://en.wikipedia.org/wiki/1972_Formula_One_season"}, {"year": 1973, "url": "http://en.wikipedia.org/wiki/1973_Formula_One_season"}, {"year": 1974, "url": "http://en.wikipedia.org/wiki/1974_Formula_One_season"}, {"year": 1975, "url": "http://en.wikipedia.org/wiki/1975_Formula_One_season"}, {"year": 1976, "url": "http://en.wikipedia.org/wiki/1976_Formula_One_season"}, {"year": 1977, "url": "http://en.wikipedia.org/wiki/1977_Formula_One_season"}, {"year": 1978, "url": "http://en.wikipedia.org/wiki/1978_Formula_One_season"}, {"year": 1979, "url": "http://en.wikipedia.org/wiki/1979_Formula_One_season"}, {"year": 1980, "url": "http://en.wikipedia.org/wiki/1980_Formula_One_season"}, {"year": 1981, "url": "http://en.wikipedia.org/wiki/1981_Formula_One_season"}, {"year": 1982, "url": "http://en.wikipedia.org/wiki/1982_Formula_One_season"}, {"year": 1983, "url": "http://en.wikipedia.org/wiki/1983_Formula_One_season"}, {"year": 1984, "url": "http://en.wikipedia.org/wiki/1984_Formula_One_season"}, {"year": 1985, "url": "http://en.wikipedia.org/wiki/1985_Formula_One_season"}, {"year": 1986, "url": "http://en.wikipedia.org/wiki/1986_Formula_One_season"}, {"year": 1987, "url": "http://en.wikipedia.org/wiki/1987_Formula_One_season"}, {"year": 1988, "url": "http://en.wikipedia.org/wiki/1988_Formula_One_season"}, {"year": 1989, "url": "http://en.wikipedia.org/wiki/1989_Formula_One_season"}, {"year": 1990, "url": "http://en.wikipedia.org/wiki/1990_Formula_One_season"}, {"year": 1991, "url": "http://en.wikipedia.org/wiki/1991_Formula_One_season"}, {"year": 1992, "url": "http://en.wikipedia.org/wiki/1992_Formula_One_season"}, {"year": 1993, "url": "http://en.wikipedia.org/wiki/1993_Formula_One_season"}, {"year": 1994, "url": "http://en.wikipedia.org/wiki/1994_Formula_One_season"}, {"year": 1995, "url": "http://en.wikipedia.org/wiki/1995_Formula_One_season"}, {"year": 1996, "url": "http://en.wikipedia.org/wiki/1996_Formula_One_season"}, {"year": 1997, "url": "http://en.wikipedia.org/wiki/1997_Formula_One_season"}, {"year": 1998, "url": "http://en.wikipedia.org/wiki/1998_Formula_One_season"}, {"year": 1999, "url": "http://en.wikipedia.org/wiki/1999_Formula_One_season"}, {"year": 2000, "url": "http://en.wikipedia.org/wiki/2000_Formula_One_season"}, {"year": 2001, "url": "http://en.wikipedia.org/wiki/2001_Formula_One_season"}, {"year": 2002, "url": "http://en.wikipedia.org/wiki/2002_Formula_One_season"}, {"year": 2003, "url": "http://en.wikipedia.org/wiki/2003_Formula_One_season"}, {"year": 2004, "url": "http://en.wikipedia.org/wiki/2004_Formula_One_season"}, {"year": 2005, "url": "http://en.wikipedia.org/wiki/2005_Formula_One_season"}, {"year": 2006, "url": "http://en.wikipedia.org/wiki/2006_Formula_One_season"}, {"year": 2007, "url": "http://en.wikipedia.org/wiki/2007_Formula_One_season"}, {"year": 2008, "url": "http://en.wikipedia.org/wiki/2008_Formula_One_season"}, {"year": 2009, "url": "http://en.wikipedia.org/wiki/2009_Formula_One_season"}, {"year": 2010, "url": "http://en.wikipedia.org/wiki/2010_Formula_One_season"}, {"year": 2011, "url": "http://en.wikipedia.org/wiki/2011_Formula_One_season"}, {"year": 2012, "url": "http://en.wikipedia.org/wiki/2012_Formula_One_season"}, {"year": 2013, "url": "http://en.wikipedia.org/wiki/2013_Formula_One_season"}, {"year": 2014, "url": "http://en.wikipedia.org/wiki/2014_Formula_One_season"}, {"year": 2015, "url": "http://en.wikipedia.org/wiki/2015_Formula_One_season"}, {"year": 2016, "url": "https://en.wikipedia.org/wiki/2016_Formula_One_season"}, {"year": 2017, "url": "https://en.wikipedia.org/wiki/2017_Formula_One_season"}, {"year": 2018, "url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship"}]}, "correct_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(avg_year: avg(year), count: count())\n |> compute(computed_val: count - avg_year)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(avg_year: avg(year), count: count())\n |> compute(computed_val: count - avg_year)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(1)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/1950_Formula_One_season", "avg_year": 1950.0, "count": 1, "computed_val": -1949.0}, {"url": "http://en.wikipedia.org/wiki/1951_Formula_One_season", "avg_year": 1951.0, "count": 1, "computed_val": -1950.0}, {"url": "http://en.wikipedia.org/wiki/1952_Formula_One_season", "avg_year": 1952.0, "count": 1, "computed_val": -1951.0}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 11, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "hard", "domain": "formula_1__seasons", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"time_slot": [{"time_slot_id": "A", "day": "M", "start_hr": 8, "start_min": 0, "end_hr": 8, "end_min": 50}, {"time_slot_id": "A", "day": "W", "start_hr": 8, "start_min": 0, "end_hr": 8, "end_min": 50}, {"time_slot_id": "A", "day": "F", "start_hr": 8, "start_min": 0, "end_hr": 8, "end_min": 50}, {"time_slot_id": "B", "day": "M", "start_hr": 9, "start_min": 0, "end_hr": 9, "end_min": 50}, {"time_slot_id": "B", "day": "W", "start_hr": 9, "start_min": 0, "end_hr": 9, "end_min": 50}, {"time_slot_id": "B", "day": "F", "start_hr": 9, "start_min": 0, "end_hr": 9, "end_min": 50}, {"time_slot_id": "C", "day": "M", "start_hr": 11, "start_min": 0, "end_hr": 11, "end_min": 50}, {"time_slot_id": "C", "day": "W", "start_hr": 11, "start_min": 0, "end_hr": 11, "end_min": 50}, {"time_slot_id": "C", "day": "F", "start_hr": 11, "start_min": 0, "end_hr": 11, "end_min": 50}, {"time_slot_id": "D", "day": "M", "start_hr": 13, "start_min": 0, "end_hr": 13, "end_min": 50}, {"time_slot_id": "D", "day": "W", "start_hr": 13, "start_min": 0, "end_hr": 13, "end_min": 50}, {"time_slot_id": "D", "day": "F", "start_hr": 13, "start_min": 0, "end_hr": 13, "end_min": 50}, {"time_slot_id": "E", "day": "T", "start_hr": 10, "start_min": 30, "end_hr": 11, "end_min": 45}, {"time_slot_id": "E", "day": "R", "start_hr": 10, "start_min": 30, "end_hr": 11, "end_min": 45}, {"time_slot_id": "F", "day": "T", "start_hr": 14, "start_min": 30, "end_hr": 15, "end_min": 45}, {"time_slot_id": "F", "day": "R", "start_hr": 14, "start_min": 30, "end_hr": 15, "end_min": 45}, {"time_slot_id": "G", "day": "M", "start_hr": 16, "start_min": 0, "end_hr": 16, "end_min": 50}, {"time_slot_id": "G", "day": "W", "start_hr": 16, "start_min": 0, "end_hr": 16, "end_min": 50}, {"time_slot_id": "G", "day": "F", "start_hr": 16, "start_min": 0, "end_hr": 16, "end_min": 50}, {"time_slot_id": "H", "day": "W", "start_hr": 10, "start_min": 0, "end_hr": 12, "end_min": 30}]}, "correct_code": "-- Load college_2__time_slot data\ntime_slot = load(\"time_slot\")\n\nfiltered_time_slot = time_slot\n |> filter(day == \"W\")\n\nsummary = filtered_time_slot\n |> group_by(day)\n |> aggregate(min_start_min: min(start_min), count: count())\n\nresult = summary\n |> sort_by(min_start_min, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__time_slot data\ntime_slot = load(\"time_slot\")\n\nfiltered_time_slot = time_slot\n |> filter(day == \"w\")\n\nsummary = filtered_time_slot\n |> group_by(day)\n |> aggregate(min_start_min: min(start_min), count: count())\n\nresult = summary\n |> sort_by(min_start_min, asc)\n |> take(3)\n\nemit result", "expected_output": [{"day": "W", "min_start_min": 0, "count": 6}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'W' \u2192 'w'", "line_num": 5, "original": "|> filter(day == \"W\")", "mutated": "|> filter(day == \"w\")"}], "difficulty": "hard", "domain": "college_2__time_slot", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"things": [{"thing_id": 1, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 2, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 10, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 14, "organization_id": 10, "type_of_thing_code": "Furniture", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 26, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 35, "organization_id": 7, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 45, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 46, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 47, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 58, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 68, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 80, "organization_id": 8, "type_of_thing_code": "Furniture", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 84, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 85, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 92, "organization_id": 7, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}], "customer_events": [{"customer_event_id": 70, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10, "thing_id": 1}, {"customer_event_id": 160, "customer_id": 5, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23, "thing_id": 80}, {"customer_event_id": 166, "customer_id": 16, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28, "thing_id": 14}, {"customer_event_id": 216, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37, "thing_id": 46}, {"customer_event_id": 226, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38, "thing_id": 80}, {"customer_event_id": 256, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43, "thing_id": 2}, {"customer_event_id": 428, "customer_id": 63, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45, "thing_id": 68}, {"customer_event_id": 530, "customer_id": 4, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47, "thing_id": 10}, {"customer_event_id": 559, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58, "thing_id": 1}, {"customer_event_id": 591, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "resident_id": 67, "thing_id": 10}, {"customer_event_id": 606, "customer_id": 31, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "resident_id": 83, "thing_id": 85}, {"customer_event_id": 627, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "resident_id": 87, "thing_id": 92}, {"customer_event_id": 817, "customer_id": 19, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "resident_id": 88, "thing_id": 10}]}, "correct_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n |> select(type_of_thing_code, service_type_code, organization_id, thing_id)\n\nsummary = things\n |> group_by(type_of_thing_code)\n |> aggregate(min_thing_id: min(thing_id), count: count())\n\nresult = summary\n |> sort_by(min_thing_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n |> select(type_of_thing_code, service_type_code, organization_id, thing_id)\n\nsummary = things\n |> group_by(type_of_thing_code)\n |> aggregate(min_thing_id: min(thing_id), count: count())\n\nresult = summary\n |> sort_by(type_of_thing_code, desc)\n |> take(5)\n\nemit result", "expected_output": [{"type_of_thing_code": "Furniture", "min_thing_id": 14, "count": 2}, {"type_of_thing_code": "Commen", "min_thing_id": 10, "count": 8}, {"type_of_thing_code": "Electronics", "min_thing_id": 1, "count": 5}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'min_thing_id' \u2192 'type_of_thing_code'", "line_num": 10, "original": "|> sort_by(min_thing_id, desc)", "mutated": "|> sort_by(type_of_thing_code, desc)"}], "difficulty": "medium", "domain": "local_govt_and_lot__things", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"wine": [{"no": 1, "grape": "Zinfandel", "winery": "Robert Biale", "appelation": "St. Helena", "state": "California", "name": "Old Kraft Vineyard", "year": 2008, "price": 44, "score": 93, "cases": 275, "drink": "now"}, {"no": 2, "grape": "Zinfandel", "winery": "Chiarello Family", "appelation": "Napa Valley", "state": "California", "name": "Giana", "year": 2008, "price": 35, "score": 93, "cases": 480, "drink": "now"}, {"no": 3, "grape": "Zinfandel", "winery": "Robert Biale", "appelation": "Napa Valley", "state": "California", "name": "Black Chicken", "year": 2008, "price": 40, "score": 91, "cases": 2700, "drink": "2012"}, {"no": 4, "grape": "Zinfandel", "winery": "Robert Biale", "appelation": "Napa Valley", "state": "California", "name": "Napa Ranches", "year": 2008, "price": 38, "score": 89, "cases": 525, "drink": "now"}, {"no": 5, "grape": "Zinfandel", "winery": "Robert Biale", "appelation": "St. Helena", "state": "California", "name": "Varozza Vineyard", "year": 2008, "price": 44, "score": 88, "cases": 275, "drink": "2012"}, {"no": 6, "grape": "Zinfandel", "winery": "Pedroncelli", "appelation": "Dry Creek Valley", "state": "California", "name": "Mother Clone", "year": 2008, "price": 15, "score": 88, "cases": 6000, "drink": "now"}, {"no": 7, "grape": "Zinfandel", "winery": "Rutherford Ranch", "appelation": "Napa Valley", "state": "California", "name": "Zinfandel", "year": 2007, "price": 18, "score": 87, "cases": 1552, "drink": "now"}, {"no": 8, "grape": "Sauvignon Blanc", "winery": "Altamura", "appelation": "Napa Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2007, "price": 48, "score": 92, "cases": 500, "drink": "now"}, {"no": 9, "grape": "Sauvignon Blanc", "winery": "Capture", "appelation": "Sonoma County", "state": "California", "name": "Les Pionniers", "year": 2009, "price": 36, "score": 92, "cases": 360, "drink": "now"}, {"no": 10, "grape": "Sauvignon Blanc", "winery": "Brander", "appelation": "Santa Ynez Valley", "state": "California", "name": "Cuvee Nicolas", "year": 2009, "price": 25, "score": 91, "cases": 377, "drink": "now"}, {"no": 11, "grape": "Sauvignon Blanc", "winery": "Capture", "appelation": "California", "state": "California", "name": "Tradition", "year": 2009, "price": 30, "score": 91, "cases": 875, "drink": "now"}, {"no": 12, "grape": "Sauvignon Blanc", "winery": "John Anthony", "appelation": "Carneros", "state": "California", "name": "Church Vineyard", "year": 2009, "price": 28, "score": 91, "cases": 354, "drink": "now"}, {"no": 13, "grape": "Sauvignon Blanc", "winery": "Peter Michael", "appelation": "Knights Valley", "state": "California", "name": "LApres-Midi", "year": 2008, "price": 48, "score": 91, "cases": 1260, "drink": "now"}, {"no": 14, "grape": "Sauvignon Blanc", "winery": "Grey Stack", "appelation": "Bennett Valley", "state": "California", "name": "Rosemarys Block Dry Stack Vineyard", "year": 2009, "price": 28, "score": 90, "cases": 700, "drink": "now"}, {"no": 15, "grape": "Sauvignon Blanc", "winery": "Round Pond Estate", "appelation": "Rutherford", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 26, "score": 90, "cases": 714, "drink": "now"}, {"no": 16, "grape": "Sauvignon Blanc", "winery": "Beckmen", "appelation": "Santa Ynez Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 16, "score": 89, "cases": 1500, "drink": "now"}, {"no": 17, "grape": "Sauvignon Blanc", "winery": "Beltane Ranch", "appelation": "Sonoma Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 23, "score": 89, "cases": 413, "drink": "now"}, {"no": 18, "grape": "Sauvignon Blanc", "winery": "Brander", "appelation": "Santa Ynez Valley", "state": "California", "name": "Mesa Verde Vineyard", "year": 2009, "price": 22, "score": 89, "cases": 380, "drink": "now"}, {"no": 19, "grape": "Sauvignon Blanc", "winery": "Cade", "appelation": "Napa Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 26, "score": 89, "cases": 5200, "drink": "now"}, {"no": 20, "grape": "Sauvignon Blanc", "winery": "Jericho Canyon", "appelation": "Napa Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 25, "score": 89, "cases": 370, "drink": "now"}, {"no": 21, "grape": "Sauvignon Blanc", "winery": "John Anthony", "appelation": "Napa Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 19, "score": 89, "cases": 3098, "drink": "now"}, {"no": 22, "grape": "Sauvignon Blanc", "winery": "Kenzo", "appelation": "Napa Valley", "state": "California", "name": "Asatsuyu", "year": 2008, "price": 60, "score": 89, "cases": 600, "drink": "now"}, {"no": 23, "grape": "Sauvignon Blanc", "winery": "Madrigal", "appelation": "Napa Valley", "state": "California", "name": "Estate", "year": 2009, "price": 25, "score": 89, "cases": 200, "drink": "now"}, {"no": 24, "grape": "Sauvignon Blanc", "winery": "Joseph Phelps", "appelation": "St. Helena", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 32, "score": 89, "cases": 2000, "drink": "now"}, {"no": 25, "grape": "Sauvignon Blanc", "winery": "Sbragia Family", "appelation": "Dry Creek Valley", "state": "California", "name": "Home Ranch", "year": 2009, "price": 20, "score": 89, "cases": 1698, "drink": "now"}, {"no": 26, "grape": "Sauvignon Blanc", "winery": "Selene", "appelation": "Carneros", "state": "California", "name": "Hyde Vineyards", "year": 2009, "price": 27, "score": 89, "cases": 750, "drink": "now"}, {"no": 27, "grape": "Sauvignon Blanc", "winery": "Brander", "appelation": "Santa Ynez Valley", "state": "California", "name": "Purisma Mountain", "year": 2009, "price": 25, "score": 88, "cases": 260, "drink": "now"}, {"no": 28, "grape": "Sauvignon Blanc", "winery": "Cimarone", "appelation": "Happy Canyon of Santa Barbara", "state": "California", "name": "3CV Grassini Family Vineyards", "year": 2009, "price": 21, "score": 88, "cases": 270, "drink": "now"}, {"no": 29, "grape": "Sauvignon Blanc", "winery": "Sbragia Family", "appelation": "Dry Creek Valley", "state": "California", "name": "Schmidt Ranch", "year": 2009, "price": 24, "score": 88, "cases": 602, "drink": "now"}, {"no": 30, "grape": "Sauvignon Blanc", "winery": "Azur", "appelation": "Rutherford", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 24, "score": 87, "cases": 1000, "drink": "now"}, {"no": 31, "grape": "Sauvignon Blanc", "winery": "Brander", "appelation": "Santa Ynez Valley", "state": "California", "name": "Cuvee Natalie", "year": 2009, "price": 18, "score": 87, "cases": 857, "drink": "now"}, {"no": 32, "grape": "Sauvignon Blanc", "winery": "Brander", "appelation": "Santa Ynez Valley", "state": "California", "name": "au Naturel", "year": 2009, "price": 32, "score": 87, "cases": 759, "drink": "now"}, {"no": 33, "grape": "Sauvignon Blanc", "winery": "Handley", "appelation": "Dry Creek Valley", "state": "California", "name": "Handley Vineyard", "year": 2008, "price": 15, "score": 87, "cases": 1214, "drink": "now"}, {"no": 34, "grape": "Sauvignon Blanc", "winery": "Imagery", "appelation": "Sonoma Valley", "state": "California", "name": "Wow Oui", "year": 2009, "price": 27, "score": 87, "cases": 874, "drink": "now"}, {"no": 35, "grape": "Sauvignon Blanc", "winery": "Koehler", "appelation": "Santa Ynez Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 12, "score": 87, "cases": 505, "drink": "now"}, {"no": 36, "grape": "Sauvignon Blanc", "winery": "Pomelo", "appelation": "California", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 10, "score": 87, "cases": 50000, "drink": "now"}, {"no": 37, "grape": "Sauvignon Blanc", "winery": "Twomey", "appelation": "Napa Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 25, "score": 87, "cases": 3326, "drink": "now"}, {"no": 38, "grape": "Sauvignon Blanc", "winery": "White Oak", "appelation": "Russian River Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 16, "score": 87, "cases": 2000, "drink": "now"}, {"no": 39, "grape": "Sauvignon Blanc", "winery": "Benziger", "appelation": "Sonoma-Lake Counties", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 15, "score": 86, "cases": 20000, "drink": "now"}, {"no": 40, "grape": "Sauvignon Blanc", "winery": "Kunde Estate", "appelation": "Sonoma Valley", "state": "California", "name": "Magnolia Lane", "year": 2009, "price": 16, "score": 86, "cases": 15000, "drink": "now"}, {"no": 41, "grape": "Sauvignon Blanc", "winery": "J. Lohr", "appelation": "Napa Valley", "state": "California", "name": "Carols Vineyard", "year": 2009, "price": 24, "score": 86, "cases": 2900, "drink": "now"}, {"no": 42, "grape": "Sauvignon Blanc", "winery": "Pedroncelli", "appelation": "Dry Creek Valley", "state": "California", "name": "East Side Vineyards", "year": 2009, "price": 12, "score": 86, "cases": 5100, "drink": "now"}, {"no": 43, "grape": "Sauvignon Blanc", "winery": "Star Lane", "appelation": "Santa Ynez Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 20, "score": 86, "cases": 2800, "drink": "now"}, {"no": 44, "grape": "Sauvignon Blanc", "winery": "Angeline", "appelation": "Russian River Valley", "state": "California", "name": "Sauvignon Blanc", "year": 2009, "price": 14, "score": 85, "cases": 8500, "drink": "now"}, {"no": 45, "grape": "Sauvignon Blanc", "winery": "Manifesto!", "appelation": "North Coast", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 12, "score": 85, "cases": 8100, "drink": "now"}, {"no": 46, "grape": "Sauvignon Blanc", "winery": "Mirassou", "appelation": "California", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 12, "score": 85, "cases": 42000, "drink": "now"}, {"no": 47, "grape": "Sauvignon Blanc", "winery": "No", "appelation": "Lake County", "state": "California", "name": "Sauvignon Blanc", "year": 2008, "price": 12, "score": 85, "cases": 4210, "drink": "now"}, {"no": 48, "grape": "Cabernet Sauvingnon", "winery": "Chappellet", "appelation": "Napa Valley", "state": "California", "name": "Pritchard Hill", "year": 2007, "price": 135, "score": 96, "cases": 3368, "drink": "now"}, {"no": 49, "grape": "Cabernet Sauvingnon", "winery": "Lewis", "appelation": "Napa Valley", "state": "California", "name": "Reserve", "year": 2007, "price": 130, "score": 95, "cases": 1700, "drink": "now"}, {"no": 50, "grape": "Cabernet Sauvingnon", "winery": "Neyers", "appelation": "Napa Valley", "state": "California", "name": "Neyers Ranch - Conn Valley", "year": 2007, "price": 48, "score": 95, "cases": 575, "drink": "now"}, {"no": 51, "grape": "Cabernet Sauvingnon", "winery": "Ramey", "appelation": "Napa Valley", "state": "California", "name": "Annum", "year": 2007, "price": 85, "score": 95, "cases": 1700, "drink": "now"}, {"no": 52, "grape": "Cabernet Sauvingnon", "winery": "Round Pond Estate", "appelation": "Rutherford", "state": "California", "name": "Cabernet Sauvignon", "year": 2007, "price": 50, "score": 94, "cases": 4018, "drink": "now"}, {"no": 53, "grape": "Cabernet Sauvingnon", "winery": "Carter", "appelation": "Napa Valley", "state": "California", "name": "Beckstoffer To Kalon Vineyard", "year": 2007, "price": 125, "score": 92, "cases": 190, "drink": "now"}, {"no": 54, "grape": "Cabernet Sauvingnon", "winery": "Carter", "appelation": "Napa Valley", "state": "California", "name": "Coliseum Block", "year": 2007, "price": 125, "score": 92, "cases": 277, "drink": "now"}, {"no": 55, "grape": "Cabernet Sauvingnon", "winery": "Ehlers Estate", "appelation": "St. Helena", "state": "California", "name": "1886", "year": 2007, "price": 95, "score": 92, "cases": 800, "drink": "now"}, {"no": 56, "grape": "Cabernet Sauvingnon", "winery": "Fontanella Family", "appelation": "Mount Vedeer", "state": "California", "name": "Cabernet Sauvignon", "year": 2007, "price": 50, "score": 92, "cases": 650, "drink": "2010"}, {"no": 57, "grape": "Cabernet Sauvingnon", "winery": "Janzen", "appelation": "Napa Valley", "state": "California", "name": "Beckstoffer To Kalon Vineyard", "year": 2007, "price": 135, "score": 92, "cases": 235, "drink": "now"}, {"no": 58, "grape": "Cabernet Sauvingnon", "winery": "Morlet", "appelation": "Napa Valley", "state": "California", "name": "Couer de Valee", "year": 2007, "price": 175, "score": 92, "cases": 250, "drink": "now"}, {"no": 59, "grape": "Cabernet Sauvingnon", "winery": "Penche", "appelation": "Napa Valley", "state": "California", "name": "Cabernet Sauvignon", "year": 2006, "price": 60, "score": 92, "cases": 354, "drink": "now"}, {"no": 60, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Russian River Valley", "state": "California", "name": "Amber Ridge Vineyard", "year": 2008, "price": 72, "score": 95, "cases": 600, "drink": "now"}, {"no": 61, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Russian River Valley", "state": "California", "name": "Keefer Ranch", "year": 2008, "price": 72, "score": 95, "cases": 613, "drink": "now"}, {"no": 62, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Russian River Valley", "state": "California", "name": "Koplen Vineyard", "year": 2008, "price": 72, "score": 95, "cases": 792, "drink": "now"}, {"no": 63, "grape": "Pinot Noir", "winery": "Patz & Hall", "appelation": "Russian River Valley", "state": "California", "name": "Freestone Hill", "year": 2007, "price": 70, "score": 95, "cases": 245, "drink": "now"}, {"no": 64, "grape": "Pinot Noir", "winery": "Foxen", "appelation": "Santa Maria Valley", "state": "California", "name": "Julias Vineyard", "year": 2008, "price": 56, "score": 94, "cases": 670, "drink": "now"}, {"no": 65, "grape": "Pinot Noir", "winery": "Paul Hobbs", "appelation": "Napa Valley", "state": "California", "name": "Carneros Hyde Vineyard", "year": 2008, "price": 75, "score": 94, "cases": 741, "drink": "now"}, {"no": 66, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Russian River Valley", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 52, "score": 94, "cases": 3632, "drink": "now"}, {"no": 67, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Garys Vineyard", "year": 2008, "price": 72, "score": 94, "cases": 422, "drink": "now"}, {"no": 68, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Sonoma Coast", "state": "California", "name": "Kanzler Vineyard", "year": 2008, "price": 72, "score": 94, "cases": 564, "drink": "now"}, {"no": 69, "grape": "Pinot Noir", "winery": "Lynmar", "appelation": "Russian River Valley", "state": "California", "name": "Five Sisters", "year": 2007, "price": 100, "score": 94, "cases": 147, "drink": "now"}, {"no": 70, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Pisoni Vineyard", "year": 2008, "price": 72, "score": 93, "cases": 115, "drink": "now"}, {"no": 71, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Rosellas Vineyard", "year": 2008, "price": 72, "score": 93, "cases": 255, "drink": "now"}, {"no": 72, "grape": "Pinot Noir", "winery": "Landmark", "appelation": "Sonoma Coast", "state": "California", "name": "Kanzler Vineyard", "year": 2008, "price": 65, "score": 93, "cases": 200, "drink": "now"}, {"no": 73, "grape": "Pinot Noir", "winery": "Lynmar", "appelation": "Russian River Valley", "state": "California", "name": "Valley Bliss Block", "year": 2008, "price": 70, "score": 93, "cases": 152, "drink": "now"}, {"no": 74, "grape": "Pinot Noir", "winery": "Patz & Hall", "appelation": "Sonoma Coast", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 42, "score": 93, "cases": 3103, "drink": "now"}, {"no": 75, "grape": "Pinot Noir", "winery": "Valdez Family", "appelation": "Russian River Valley", "state": "California", "name": "Lancel Creek Vineyard", "year": 2007, "price": 55, "score": 93, "cases": 130, "drink": "now"}, {"no": 76, "grape": "Pinot Noir", "winery": "De Loach", "appelation": "Green Valley of Russian River Valley", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 45, "score": 92, "cases": 1467, "drink": "now"}, {"no": 77, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "California", "state": "California", "name": "4-Barrel", "year": 2008, "price": 72, "score": 92, "cases": 97, "drink": "now"}, {"no": 78, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Sonoma Coast", "state": "California", "name": "Gaps Crown Vineyard", "year": 2008, "price": 68, "score": 92, "cases": 690, "drink": "now"}, {"no": 79, "grape": "Pinot Noir", "winery": "Kosta Browne", "appelation": "Sonoma Coast", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 52, "score": 90, "cases": 3554, "drink": "now"}, {"no": 80, "grape": "Pinot Noir", "winery": "Rusack", "appelation": "Sta. Rita Hills", "state": "California", "name": "Reserve", "year": 2008, "price": 40, "score": 89, "cases": 340, "drink": "now"}, {"no": 81, "grape": "Pinot Noir", "winery": "Acacia", "appelation": "California", "state": "California", "name": "A by Acacia", "year": 2008, "price": 17, "score": 88, "cases": 58231, "drink": "now"}, {"no": 82, "grape": "Pinot Noir", "winery": "Alma Rosa", "appelation": "Sta. Rita Hills", "state": "California", "name": "La Encantada Vineyard", "year": 2008, "price": 43, "score": 88, "cases": 591, "drink": "now"}, {"no": 83, "grape": "Pinot Noir", "winery": "Alma Rosa", "appelation": "Sta. Rita Hills", "state": "California", "name": "La Encantada Vineyard Clone 667", "year": 2008, "price": 43, "score": 88, "cases": 358, "drink": "now"}, {"no": 84, "grape": "Pinot Noir", "winery": "Artesa", "appelation": "Carneros", "state": "California", "name": "Estate Reserve", "year": 2007, "price": 40, "score": 88, "cases": 3527, "drink": "now"}, {"no": 85, "grape": "Pinot Noir", "winery": "Robert Mondavi", "appelation": "Napa Valley", "state": "California", "name": "Carneros", "year": 2008, "price": 28, "score": 88, "cases": 30300, "drink": "now"}, {"no": 86, "grape": "Pinot Noir", "winery": "Pfendler", "appelation": "Sonoma Coast", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 45, "score": 88, "cases": 400, "drink": "now"}, {"no": 87, "grape": "Pinot Noir", "winery": "Roar", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Garys Vineyard", "year": 2008, "price": 50, "score": 88, "cases": 710, "drink": "now"}, {"no": 88, "grape": "Pinot Noir", "winery": "Rusack", "appelation": "Santa Maria Valley", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 36, "score": 88, "cases": 833, "drink": "now"}, {"no": 89, "grape": "Pinot Noir", "winery": "Sequana", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Sarmento Vineyard", "year": 2008, "price": 32, "score": 88, "cases": 500, "drink": "now"}, {"no": 90, "grape": "Pinot Noir", "winery": "Spell", "appelation": "Sonoma Coast", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 30, "score": 88, "cases": 170, "drink": "now"}, {"no": 91, "grape": "Pinot Noir", "winery": "Twomey", "appelation": "Santa Barbara County", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 30, "score": 88, "cases": 1510, "drink": "now"}, {"no": 92, "grape": "Pinot Noir", "winery": "Alma Rosa", "appelation": "Sta. Rita Hills", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 32, "score": 87, "cases": 4651, "drink": "now"}, {"no": 93, "grape": "Pinot Noir", "winery": "Castle Rock", "appelation": "Central Coast", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 13, "score": 87, "cases": 36000, "drink": "now"}, {"no": 94, "grape": "Pinot Noir", "winery": "V. Sattui", "appelation": "Carneros", "state": "California", "name": "Henry Ranch", "year": 2008, "price": 36, "score": 87, "cases": 951, "drink": "now"}, {"no": 95, "grape": "Pinot Noir", "winery": "Sebastiani", "appelation": "Carneros", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 24, "score": 87, "cases": 720, "drink": "now"}, {"no": 96, "grape": "Pinot Noir", "winery": "Talbott", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Kali Hart", "year": 2008, "price": 21, "score": 87, "cases": 8000, "drink": "now"}, {"no": 97, "grape": "Pinot Noir", "winery": "Tudor", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Pinot Noir", "year": 2007, "price": 40, "score": 87, "cases": 3965, "drink": "now"}, {"no": 98, "grape": "Pinot Noir", "winery": "Twomey", "appelation": "Sonoma Coast", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 50, "score": 87, "cases": 1255, "drink": "now"}, {"no": 99, "grape": "Pinot Noir", "winery": "Castle Rock", "appelation": "Russian River Valley", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 18, "score": 86, "cases": 2400, "drink": "now"}, {"no": 100, "grape": "Pinot Noir", "winery": "Talbott", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Sleepy Hollow Vineyard", "year": 2008, "price": 40, "score": 86, "cases": 2500, "drink": "now"}, {"no": 101, "grape": "Pinot Noir", "winery": "Greg Norman California Estates", "appelation": "Santa Barbara County", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 15, "score": 85, "cases": 25000, "drink": "now"}, {"no": 102, "grape": "Syrah", "winery": "Chalk Hill", "appelation": "Chalk Hill", "state": "California", "name": "Syrah", "year": 2007, "price": 60, "score": 94, "cases": 304, "drink": "2001"}, {"no": 103, "grape": "Syrah", "winery": "DuMOL", "appelation": "Russian River Valley", "state": "California", "name": "Eddies Patch", "year": 2007, "price": 76, "score": 92, "cases": 420, "drink": "2011"}, {"no": 104, "grape": "Merlot", "winery": "Mirassou", "appelation": "California", "state": "California", "name": "Merlot", "year": 2007, "price": 12, "score": 86, "cases": 43321, "drink": "now"}, {"no": 105, "grape": "Malbec", "winery": "Red Rock", "appelation": "California", "state": "California", "name": "Reserve", "year": 2008, "price": 11, "score": 86, "cases": 16281, "drink": "now"}, {"no": 106, "grape": "Cabernet Sauvingnon", "winery": "Darioush", "appelation": "Napa Valley", "state": "California", "name": "Darius II", "year": 2007, "price": 225, "score": 96, "cases": 698, "drink": "2012"}, {"no": 107, "grape": "Cabernet Sauvingnon", "winery": "Darioush", "appelation": "Napa Valley", "state": "California", "name": "Cabernet Sauvignon", "year": 2007, "price": 80, "score": 94, "cases": 8783, "drink": "2013"}, {"no": 108, "grape": "Cabernet Sauvingnon", "winery": "Lewis", "appelation": "Napa Valley", "state": "California", "name": "Hillstone Vineyard", "year": 2008, "price": 130, "score": 94, "cases": 180, "drink": "now"}, {"no": 109, "grape": "Cabernet Sauvingnon", "winery": "Chimeney Rock", "appelation": "Stags Leap District", "state": "California", "name": "Tomahawk Vineyard", "year": 2007, "price": 115, "score": 93, "cases": 958, "drink": "2012"}, {"no": 110, "grape": "Cabernet Sauvingnon", "winery": "Chimeney Rock", "appelation": "Stags Leap District", "state": "California", "name": "Elevage", "year": 2007, "price": 78, "score": 93, "cases": 1952, "drink": "2012"}, {"no": 111, "grape": "Cabernet Sauvingnon", "winery": "Peter Franus", "appelation": "Napa Valley", "state": "California", "name": "Cabernet Sauvignon", "year": 2007, "price": 40, "score": 92, "cases": 1369, "drink": "2013"}, {"no": 112, "grape": "Cabernet Sauvingnon", "winery": "Turnbull", "appelation": "Napa Valley", "state": "California", "name": "Cabernet Sauvignon", "year": 2007, "price": 40, "score": 91, "cases": 10000, "drink": "now"}, {"no": 113, "grape": "Cabernet Sauvingnon", "winery": "Pott", "appelation": "Oakville", "state": "California", "name": "Neruda Brix Vineyard", "year": 2008, "price": 90, "score": 90, "cases": 73, "drink": "2012"}, {"no": 114, "grape": "Cabernet Sauvingnon", "winery": "Beringer", "appelation": "Knights Valley", "state": "California", "name": "Cabernet Sauvignon", "year": 2008, "price": 27, "score": 88, "cases": 44500, "drink": "now"}, {"no": 115, "grape": "Cabernet Sauvingnon", "winery": "Dry Creek", "appelation": "Dry Creek Valley", "state": "California", "name": "Cabernet Sauvignon", "year": 2007, "price": 25, "score": 87, "cases": 15000, "drink": "now"}, {"no": 116, "grape": "Grenache", "winery": "Sine Qua Non", "appelation": "Sta. Rita Hills", "state": "California", "name": "In the Crosshairs Eleven Confessions Vineyard", "year": 2006, "price": 200, "score": 97, "cases": 202, "drink": "now"}, {"no": 117, "grape": "Grenache", "winery": "Herman Story", "appelation": "California", "state": "California", "name": "On the Road", "year": 2008, "price": 36, "score": 93, "cases": 398, "drink": "now"}, {"no": 118, "grape": "Grenache", "winery": "Villa Creek", "appelation": "Paso Robles", "state": "California", "name": "Garnacha Denner Vineyard", "year": 2008, "price": 35, "score": 91, "cases": 350, "drink": "now"}, {"no": 119, "grape": "Grenache", "winery": "Beckmen", "appelation": "Santa Ynez Valley", "state": "California", "name": "Purisma Mountain Vineyard", "year": 2008, "price": 48, "score": 88, "cases": 500, "drink": "now"}, {"no": 120, "grape": "Grenache", "winery": "Bella Victorian", "appelation": "Santa Barbara County", "state": "California", "name": "Romeo", "year": 2006, "price": 39, "score": 87, "cases": 300, "drink": "now"}, {"no": 121, "grape": "Grenache", "winery": "Austine Hope", "appelation": "Paso Robles", "state": "California", "name": "Hope Family Vineyard", "year": 2009, "price": 42, "score": 87, "cases": 566, "drink": "now"}, {"no": 122, "grape": "Grenache", "winery": "Jemrose", "appelation": "Bennett Valley", "state": "California", "name": "Foggy Knoll Vineyard", "year": 2008, "price": 38, "score": 87, "cases": 275, "drink": "now"}, {"no": 123, "grape": "Petite Sirah", "winery": "Alta Colina", "appelation": "Paso Robles", "state": "California", "name": "Anns Block", "year": 2008, "price": 48, "score": 91, "cases": 123, "drink": "now"}, {"no": 124, "grape": "Petite Sirah", "winery": "Erna Schein", "appelation": "Sonoma County", "state": "California", "name": "Kick Ranch", "year": 2008, "price": 48, "score": 91, "cases": 312, "drink": "now"}, {"no": 125, "grape": "Petite Sirah", "winery": "Jaffurs", "appelation": "Santa Barbara County", "state": "California", "name": "Thompson Vineyard", "year": 2009, "price": 34, "score": 90, "cases": 501, "drink": "now"}, {"no": 126, "grape": "Petite Sirah", "winery": "Turley", "appelation": "Napa Valley", "state": "California", "name": "Hayne Vineyard", "year": 2008, "price": 75, "score": 90, "cases": 350, "drink": "now"}, {"no": 127, "grape": "Petite Sirah", "winery": "JC Cellars", "appelation": "Russian River Valley", "state": "California", "name": "Sweetwater Springs Vineyard", "year": 2008, "price": 35, "score": 89, "cases": 340, "drink": "now"}, {"no": 128, "grape": "Petite Sirah", "winery": "Parducci", "appelation": "Mendocino County", "state": "California", "name": "Petite Sirah", "year": 2007, "price": 11, "score": 85, "cases": 15340, "drink": "now"}, {"no": 129, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Rosellas Vineyard", "year": 2009, "price": 48, "score": 95, "cases": 325, "drink": "now"}, {"no": 130, "grape": "Pinot Noir", "winery": "Siduri", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Pisoni Vineyard", "year": 2009, "price": 54, "score": 95, "cases": 364, "drink": "now"}, {"no": 131, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Sonoma Coast", "state": "California", "name": "Kanzler Vineyard", "year": 2009, "price": 48, "score": 94, "cases": 200, "drink": "now"}, {"no": 132, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Paso Robles", "state": "California", "name": "Russel Family Vineyard", "year": 2009, "price": 45, "score": 94, "cases": 250, "drink": "now"}, {"no": 133, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Sonoma Coast", "state": "California", "name": "Durell Vineyard", "year": 2009, "price": 45, "score": 94, "cases": 200, "drink": "now"}, {"no": 134, "grape": "Pinot Noir", "winery": "Siduri", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Garys Vineyard", "year": 2009, "price": 51, "score": 94, "cases": 298, "drink": "now"}, {"no": 135, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Garys Vineyard", "year": 2009, "price": 48, "score": 93, "cases": 300, "drink": "now"}, {"no": 136, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Santa Maria Valley", "state": "California", "name": "Rancho Oliveros Vineyard", "year": 2009, "price": 48, "score": 93, "cases": 50, "drink": "now"}, {"no": 137, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Green Valley of Russian River Valley", "state": "California", "name": "Graham Family Vineyard", "year": 2009, "price": 45, "score": 93, "cases": 150, "drink": "now"}, {"no": 138, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Russian River Valley", "state": "California", "name": "Pinot Noir", "year": 2009, "price": 29, "score": 93, "cases": 600, "drink": "now"}, {"no": 139, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Pinot Noir", "year": 2009, "price": 29, "score": 93, "cases": 600, "drink": "now"}, {"no": 140, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Garys Vineyard", "year": 2009, "price": 45, "score": 93, "cases": 450, "drink": "now"}, {"no": 141, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Sta. Rita Hills", "state": "California", "name": "Clos Pepe Vineyard", "year": 2009, "price": 45, "score": 93, "cases": 1000, "drink": "2011"}, {"no": 142, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Russian River Valley", "state": "California", "name": "Keefer Ranch Vineyard", "year": 2009, "price": 48, "score": 92, "cases": 200, "drink": "now"}, {"no": 143, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Green Valley of Russian River Valley", "state": "California", "name": "Keefer Ranch Vineyard", "year": 2009, "price": 45, "score": 92, "cases": 400, "drink": "now"}, {"no": 144, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Sta. Rita Hills", "state": "California", "name": "Cargasacchi Vineyard", "year": 2009, "price": 45, "score": 92, "cases": 175, "drink": "now"}, {"no": 145, "grape": "Pinot Noir", "winery": "Siduri", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Pinot Noir", "year": 2009, "price": 29, "score": 92, "cases": 1855, "drink": "now"}, {"no": 146, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Sta. Rita Hills", "state": "California", "name": "Clos Pepe Vineyard", "year": 2009, "price": 48, "score": 91, "cases": 150, "drink": "now"}, {"no": 147, "grape": "Pinot Noir", "winery": "A.P.Vin", "appelation": "Sta. Rita Hills", "state": "California", "name": "Turner Vineyard", "year": 2009, "price": 48, "score": 91, "cases": 150, "drink": "now"}, {"no": 148, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Sta. Rita Hills", "state": "California", "name": "Rancho La Vina Vineyard", "year": 2009, "price": 45, "score": 91, "cases": 125, "drink": "now"}, {"no": 149, "grape": "Pinot Noir", "winery": "Athair", "appelation": "Russian River Valley", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 36, "score": 90, "cases": 919, "drink": "now"}, {"no": 150, "grape": "Pinot Noir", "winery": "Clouds Rest", "appelation": "Sonoma Coast", "state": "California", "name": "Limited Release", "year": 2007, "price": 69, "score": 90, "cases": 600, "drink": "now"}, {"no": 151, "grape": "Pinot Noir", "winery": "Loring", "appelation": "San Luis Obispo County", "state": "California", "name": "Aubaine Vineyard", "year": 2009, "price": 45, "score": 90, "cases": 500, "drink": "now"}, {"no": 152, "grape": "Pinot Noir", "winery": "Loring", "appelation": "Sta. Rita Hills", "state": "California", "name": "Pinot Noir", "year": 2009, "price": 29, "score": 88, "cases": 600, "drink": "now"}, {"no": 153, "grape": "Pinot Noir", "winery": "Siduri", "appelation": "Sonoma County", "state": "California", "name": "Pinot Noir", "year": 2009, "price": 20, "score": 88, "cases": 2657, "drink": "now"}, {"no": 154, "grape": "Pinot Noir", "winery": "Castle Rock", "appelation": "Carneros", "state": "California", "name": "Pinot Noir", "year": 2008, "price": 14, "score": 84, "cases": "NULL", "drink": "now"}, {"no": 155, "grape": "Syrah", "winery": "Sine Qua Non", "appelation": "Sta. Rita Hills", "state": "California", "name": "A Shot in the Dark Eleven Confessions Vineyard", "year": 2006, "price": 200, "score": 98, "cases": 442, "drink": "2012"}, {"no": 156, "grape": "Syrah", "winery": "Favia", "appelation": "Amador County", "state": "California", "name": "Quarzo", "year": 2008, "price": 65, "score": 95, "cases": 154, "drink": "now"}, {"no": 157, "grape": "Syrah", "winery": "Roar", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Rosellas Vineyard", "year": 2008, "price": 40, "score": 94, "cases": 140, "drink": "2011"}, {"no": 158, "grape": "Syrah", "winery": "Carlisle", "appelation": "Bennett Valley", "state": "California", "name": "Cardiac Hill", "year": 2008, "price": 45, "score": 93, "cases": 239, "drink": "now"}, {"no": 159, "grape": "Syrah", "winery": "Herman Story", "appelation": "Santa Barbara County", "state": "California", "name": "Larner Vinyard", "year": 2008, "price": 36, "score": 93, "cases": 135, "drink": "now"}, {"no": 160, "grape": "Syrah", "winery": "Herman Story", "appelation": "Santa Barbara County", "state": "California", "name": "White Hawk Vineyard", "year": 2008, "price": 36, "score": 93, "cases": 132, "drink": "now"}, {"no": 161, "grape": "Syrah", "winery": "Zaca Mesa", "appelation": "Santa Ynez Valley", "state": "California", "name": "Mesa Reserve", "year": 2007, "price": 42, "score": 93, "cases": 992, "drink": "2012"}, {"no": 162, "grape": "Syrah", "winery": "JC Cellars", "appelation": "California", "state": "California", "name": "Twist of Fate", "year": 2008, "price": 55, "score": 92, "cases": 206, "drink": "now"}, {"no": 163, "grape": "Syrah", "winery": "Ramey", "appelation": "Sonoma Coast", "state": "California", "name": "Syrah", "year": 2008, "price": 38, "score": 92, "cases": 1750, "drink": "now"}, {"no": 164, "grape": "Syrah", "winery": "Roar", "appelation": "Santa Lucia Highlands", "state": "California", "name": "Garys Vineyard", "year": 2008, "price": 40, "score": 92, "cases": 110, "drink": "2012"}, {"no": 165, "grape": "Syrah", "winery": "Adobe Road", "appelation": "Dry Creek Valley", "state": "California", "name": "Kemp Vineyard", "year": 2007, "price": 40, "score": 91, "cases": 235, "drink": "now"}, {"no": 166, "grape": "Syrah", "winery": "Novy", "appelation": "Russian River Valley", "state": "California", "name": "Christensen Family Vineyard", "year": 2008, "price": 27, "score": 91, "cases": 177, "drink": "now"}, {"no": 167, "grape": "Syrah", "winery": "Ojai", "appelation": "Sta. Rita Hills", "state": "California", "name": "Melville Vineyards", "year": 2006, "price": 44, "score": 91, "cases": 238, "drink": "now"}, {"no": 168, "grape": "Syrah", "winery": "Joseph Phelps", "appelation": "Napa Valley", "state": "California", "name": "Syrah", "year": 2008, "price": 50, "score": 90, "cases": 600, "drink": "now"}, {"no": 169, "grape": "Syrah", "winery": "Red Car", "appelation": "California", "state": "California", "name": "The Flight", "year": 2008, "price": 55, "score": 90, "cases": 394, "drink": "now"}, {"no": 170, "grape": "Syrah", "winery": "Tensley", "appelation": "Santa Barbara County", "state": "California", "name": "Colson Canyon Vineyard", "year": 2009, "price": 38, "score": 90, "cases": 1495, "drink": "now"}, {"no": 171, "grape": "Syrah", "winery": "Red Lava", "appelation": "Red Hills Lake County", "state": "California", "name": "Syrah", "year": 2007, "price": 22, "score": 89, "cases": 977, "drink": "now"}, {"no": 172, "grape": "Syrah", "winery": "Rosenblum", "appelation": "Solano County", "state": "California", "name": "England-Shaw", "year": 2007, "price": 35, "score": 89, "cases": 735, "drink": "now"}, {"no": 173, "grape": "Syrah", "winery": "Eberle", "appelation": "Paso Robles", "state": "California", "name": "Rose Steinbeck Vineyard", "year": 2009, "price": 17, "score": 88, "cases": 705, "drink": "now"}, {"no": 174, "grape": "Syrah", "winery": "Keller", "appelation": "Sonoma Coast", "state": "California", "name": "La Cruz Vineyard", "year": 2007, "price": 40, "score": 88, "cases": 308, "drink": "now"}, {"no": 175, "grape": "Syrah", "winery": "Fess Parker", "appelation": "Santa Barbara County", "state": "California", "name": "Syrah", "year": 2008, "price": 20, "score": 88, "cases": 2831, "drink": "now"}, {"no": 176, "grape": "Syrah", "winery": "Pride", "appelation": "Sonoma County", "state": "California", "name": "Syrah", "year": 2008, "price": 60, "score": 88, "cases": 575, "drink": "2011"}, {"no": 177, "grape": "Syrah", "winery": "Red Car", "appelation": "Sonoma County", "state": "California", "name": "Syrah", "year": 2008, "price": 45, "score": 88, "cases": 961, "drink": "now"}, {"no": 178, "grape": "Syrah", "winery": "Rosenblum", "appelation": "Lake County", "state": "California", "name": "Snows Lake Vineyard", "year": 2007, "price": 25, "score": 88, "cases": 486, "drink": "now"}, {"no": 179, "grape": "Syrah", "winery": "Rosenblum", "appelation": "Lodi", "state": "California", "name": "Abba Vineyard", "year": 2007, "price": 25, "score": 88, "cases": 450, "drink": "now"}, {"no": 180, "grape": "Syrah", "winery": "Stolpman", "appelation": "Santa Ynez Valley", "state": "California", "name": "Originals", "year": 2008, "price": 38, "score": 88, "cases": 950, "drink": "now"}, {"no": 181, "grape": "Syrah", "winery": "Boheme", "appelation": "Sonoma Coast", "state": "California", "name": "Que Syrah Vineyard", "year": 2006, "price": 40, "score": 87, "cases": 185, "drink": "now"}, {"no": 182, "grape": "Syrah", "winery": "J. Lohr", "appelation": "Paso Robles", "state": "California", "name": "Gesture Limited Release", "year": 2008, "price": 30, "score": 87, "cases": 514, "drink": "2011"}, {"no": 183, "grape": "Syrah", "winery": "Montes", "appelation": "Paso Robles", "state": "California", "name": "Star Angel ", "year": 2007, "price": 35, "score": 87, "cases": 3000, "drink": "now"}, {"no": 184, "grape": "Syrah", "winery": "Rosenblum", "appelation": "Sonoma County", "state": "California", "name": "Kick Ranch Reserve", "year": 2007, "price": 45, "score": 87, "cases": 496, "drink": "2012"}, {"no": 185, "grape": "Syrah", "winery": "Stolpman", "appelation": "Santa Ynez Valley", "state": "California", "name": "Syrah", "year": 2008, "price": 30, "score": 87, "cases": 1500, "drink": "now"}, {"no": 186, "grape": "Syrah", "winery": "Zaca Mesa", "appelation": "Santa Ynez Valley", "state": "California", "name": "Syrah", "year": 2007, "price": 24, "score": 87, "cases": 7651, "drink": "now"}, {"no": 187, "grape": "Syrah", "winery": "Domaine de la Terre Rouge", "appelation": "California", "state": "California", "name": "Les Cotes De LOuest", "year": 2008, "price": 18, "score": 84, "cases": "NULL", "drink": "now"}, {"no": 188, "grape": "Syrah", "winery": "Fetzer", "appelation": "California", "state": "California", "name": "Shiraz", "year": 2008, "price": 9, "score": 83, "cases": "NULL", "drink": "now"}, {"no": 189, "grape": "Zinfandel", "winery": "Carlisle", "appelation": "Russian River Valley", "state": "California", "name": "Carlisle Vineyard", "year": 2008, "price": 43, "score": 93, "cases": 325, "drink": "now"}, {"no": 190, "grape": "Zinfandel", "winery": "Turley", "appelation": "Howell Mountain", "state": "California", "name": "Cedarman", "year": 2008, "price": 29, "score": 93, "cases": 400, "drink": "now"}, {"no": 191, "grape": "Zinfandel", "winery": "Turley", "appelation": "Napa Valley", "state": "California", "name": "Tofanelli Vineyard", "year": 2008, "price": 34, "score": 93, "cases": 200, "drink": "now"}, {"no": 192, "grape": "Zinfandel", "winery": "Collier Falls", "appelation": "Dry Creek Valley", "state": "California", "name": "Private Reserve", "year": 2006, "price": 32, "score": 92, "cases": 300, "drink": "now"}, {"no": 193, "grape": "Zinfandel", "winery": "Turley", "appelation": "Sonoma Valley", "state": "California", "name": "Fredericks Vineyard", "year": 2008, "price": 42, "score": 91, "cases": 300, "drink": "now"}, {"no": 194, "grape": "Zinfandel", "winery": "Carlisle", "appelation": "Sonoma Valley", "state": "California", "name": "Rossi Ranch", "year": 2008, "price": 40, "score": 90, "cases": 119, "drink": "2012"}, {"no": 195, "grape": "Zinfandel", "winery": "Dark Horse", "appelation": "Dry Creek Valley", "state": "California", "name": "Treborce Vineyard", "year": 2008, "price": 28, "score": 90, "cases": 750, "drink": "now"}, {"no": 196, "grape": "Zinfandel", "winery": "St. Francis", "appelation": "Sonoma County", "state": "California", "name": "Wild Oak Old Vines", "year": 2007, "price": 38, "score": 89, "cases": 1900, "drink": "now"}, {"no": 197, "grape": "Zinfandel", "winery": "Girard", "appelation": "Napa Valley", "state": "California", "name": "Old Vine", "year": 2008, "price": 24, "score": 88, "cases": 2850, "drink": "now"}, {"no": 198, "grape": "Zinfandel", "winery": "Sextant", "appelation": "Paso Robles", "state": "California", "name": "Wheelhouse", "year": 2008, "price": 20, "score": 88, "cases": 3300, "drink": "now"}, {"no": 199, "grape": "Zinfandel", "winery": "Terra dOro", "appelation": "Amador County", "state": "California", "name": "Zinfandel", "year": 2007, "price": 18, "score": 88, "cases": 14000, "drink": "now"}, {"no": 200, "grape": "Zinfandel", "winery": "Artezin", "appelation": "Mendocino County", "state": "California", "name": "Zinfandel", "year": 2009, "price": 18, "score": 87, "cases": 15000, "drink": "now"}], "grapes": [{"id": 1, "grape": "Barbera", "color": "Red"}, {"id": 2, "grape": "Cabernet Franc", "color": "Red"}, {"id": 3, "grape": "Cabernet Sauvingnon", "color": "Red"}, {"id": 4, "grape": "Chardonnay", "color": "White"}, {"id": 5, "grape": "Grenache", "color": "Red"}, {"id": 6, "grape": "Malbec", "color": "Red"}, {"id": 7, "grape": "Marsanne", "color": "White"}, {"id": 8, "grape": "Merlot", "color": "Red"}, {"id": 9, "grape": "Mourvedre", "color": "Red"}, {"id": 10, "grape": "Muscat", "color": "White"}, {"id": 11, "grape": "Petite Sirah", "color": "Red"}, {"id": 12, "grape": "Pinot Noir", "color": "Red"}, {"id": 13, "grape": "Riesling", "color": "White"}, {"id": 14, "grape": "Roussanne", "color": "White"}, {"id": 15, "grape": "Sangiovese", "color": "Red"}, {"id": 16, "grape": "Sauvignon Blanc", "color": "White"}, {"id": 17, "grape": "Syrah", "color": "Red"}, {"id": 18, "grape": "Tempranillo", "color": "Red"}, {"id": 19, "grape": "Viognier", "color": "White"}, {"id": 20, "grape": "Zinfandel", "color": "Red"}]}, "correct_code": "-- Load wine_1__wine data\nwine = load(\"wine\")\n\nfiltered_wine = wine\n |> filter(winery == \"Dark Horse\")\n |> filter(no > 97)\n\nsummary = filtered_wine\n |> group_by(drink)\n |> aggregate(max_year: max(year), count: count())\n\nresult = summary\n |> sort_by(max_year, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load wine_1__wine data\nwine = load(\"wine\")\n\nfiltered_wine = wine\n |> filter(winery == \"Dark Horse\")\n |> filter(no > 97)\n\nsummary = filtered_wine\n |> group_by(no)\n |> aggregate(max_year: max(year), count: count())\n\nresult = summary\n |> sort_by(max_year, desc)\n |> take(5)\n\nemit result", "expected_output": [{"drink": "now", "max_year": 2008, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'drink' \u2192 'no'", "line_num": 9, "original": "|> group_by(drink)", "mutated": "|> group_by(no)"}], "difficulty": "medium", "domain": "wine_1__wine", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"status": [{"statusid": 1, "status": "Finished"}, {"statusid": 2, "status": "Disqualified"}, {"statusid": 3, "status": "Accident"}, {"statusid": 4, "status": "Collision"}, {"statusid": 5, "status": "Engine"}, {"statusid": 6, "status": "Gearbox"}, {"statusid": 7, "status": "Transmission"}, {"statusid": 8, "status": "Clutch"}, {"statusid": 9, "status": "Hydraulics"}, {"statusid": 10, "status": "Electrical"}, {"statusid": 11, "status": "+1 Lap"}, {"statusid": 12, "status": "+2 Laps"}, {"statusid": 13, "status": "+3 Laps"}, {"statusid": 14, "status": "+4 Laps"}, {"statusid": 15, "status": "+5 Laps"}, {"statusid": 16, "status": "+6 Laps"}, {"statusid": 17, "status": "+7 Laps"}, {"statusid": 18, "status": "+8 Laps"}, {"statusid": 19, "status": "+9 Laps"}, {"statusid": 20, "status": "Spun off"}, {"statusid": 21, "status": "Radiator"}, {"statusid": 22, "status": "Suspension"}, {"statusid": 23, "status": "Brakes"}, {"statusid": 24, "status": "Differential"}, {"statusid": 25, "status": "Overheating"}, {"statusid": 26, "status": "Mechanical"}, {"statusid": 27, "status": "Tyre"}, {"statusid": 28, "status": "Driver Seat"}, {"statusid": 29, "status": "Puncture"}, {"statusid": 30, "status": "Driveshaft"}, {"statusid": 31, "status": "Retired"}, {"statusid": 32, "status": "Fuel pressure"}, {"statusid": 33, "status": "Front wing"}, {"statusid": 34, "status": "Water pressure"}, {"statusid": 35, "status": "Refuelling"}, {"statusid": 36, "status": "Wheel"}, {"statusid": 37, "status": "Throttle"}, {"statusid": 38, "status": "Steering"}, {"statusid": 39, "status": "Technical"}, {"statusid": 40, "status": "Electronics"}, {"statusid": 41, "status": "Broken wing"}, {"statusid": 42, "status": "Heat shield fire"}, {"statusid": 43, "status": "Exhaust"}, {"statusid": 44, "status": "Oil leak"}, {"statusid": 45, "status": "+11 Laps"}, {"statusid": 46, "status": "Wheel rim"}, {"statusid": 47, "status": "Water leak"}, {"statusid": 48, "status": "Fuel pump"}, {"statusid": 49, "status": "Track rod"}, {"statusid": 50, "status": "+17 Laps"}, {"statusid": 51, "status": "Oil pressure"}, {"statusid": 53, "status": "+13 Laps"}, {"statusid": 54, "status": "Withdrew"}, {"statusid": 55, "status": "+12 Laps"}, {"statusid": 56, "status": "Engine fire"}, {"statusid": 58, "status": "+26 Laps"}, {"statusid": 59, "status": "Tyre puncture"}, {"statusid": 60, "status": "Out of fuel"}, {"statusid": 61, "status": "Wheel nut"}, {"statusid": 62, "status": "Not classified"}, {"statusid": 63, "status": "Pneumatics"}, {"statusid": 64, "status": "Handling"}, {"statusid": 65, "status": "Rear wing"}, {"statusid": 66, "status": "Fire"}, {"statusid": 67, "status": "Wheel bearing"}, {"statusid": 68, "status": "Physical"}, {"statusid": 69, "status": "Fuel system"}, {"statusid": 70, "status": "Oil line"}, {"statusid": 71, "status": "Fuel rig"}, {"statusid": 72, "status": "Launch control"}, {"statusid": 73, "status": "Injured"}, {"statusid": 74, "status": "Fuel"}, {"statusid": 75, "status": "Power loss"}, {"statusid": 76, "status": "Vibrations"}, {"statusid": 77, "status": "107% Rule"}, {"statusid": 78, "status": "Safety"}, {"statusid": 79, "status": "Drivetrain"}, {"statusid": 80, "status": "Ignition"}, {"statusid": 81, "status": "Did not qualify"}, {"statusid": 82, "status": "Injury"}, {"statusid": 83, "status": "Chassis"}, {"statusid": 84, "status": "Battery"}, {"statusid": 85, "status": "Stalled"}, {"statusid": 86, "status": "Halfshaft"}, {"statusid": 87, "status": "Crankshaft"}, {"statusid": 88, "status": "+10 Laps"}, {"statusid": 89, "status": "Safety concerns"}, {"statusid": 90, "status": "Not restarted"}, {"statusid": 91, "status": "Alternator"}, {"statusid": 92, "status": "Underweight"}, {"statusid": 93, "status": "Safety belt"}, {"statusid": 94, "status": "Oil pump"}, {"statusid": 95, "status": "Fuel leak"}, {"statusid": 96, "status": "Excluded"}, {"statusid": 97, "status": "Did not prequalify"}, {"statusid": 98, "status": "Injection"}, {"statusid": 99, "status": "Distributor"}, {"statusid": 100, "status": "Driver unwell"}, {"statusid": 101, "status": "Turbo"}, {"statusid": 102, "status": "CV joint"}, {"statusid": 103, "status": "Water pump"}, {"statusid": 104, "status": "Fatal accident"}, {"statusid": 105, "status": "Spark plugs"}, {"statusid": 106, "status": "Fuel pipe"}, {"statusid": 107, "status": "Eye injury"}, {"statusid": 108, "status": "Oil pipe"}, {"statusid": 109, "status": "Axle"}, {"statusid": 110, "status": "Water pipe"}, {"statusid": 111, "status": "+14 Laps"}, {"statusid": 112, "status": "+15 Laps"}, {"statusid": 113, "status": "+25 Laps"}, {"statusid": 114, "status": "+18 Laps"}, {"statusid": 115, "status": "+22 Laps"}, {"statusid": 116, "status": "+16 Laps"}, {"statusid": 117, "status": "+24 Laps"}, {"statusid": 118, "status": "+29 Laps"}, {"statusid": 119, "status": "+23 Laps"}, {"statusid": 120, "status": "+21 Laps"}, {"statusid": 121, "status": "Magneto"}, {"statusid": 122, "status": "+44 Laps"}, {"statusid": 123, "status": "+30 Laps"}, {"statusid": 124, "status": "+19 Laps"}, {"statusid": 125, "status": "+46 Laps"}, {"statusid": 126, "status": "Supercharger"}, {"statusid": 127, "status": "+20 Laps"}, {"statusid": 128, "status": "+42 Laps"}, {"statusid": 129, "status": "Engine misfire"}, {"statusid": 130, "status": "Collision damage"}, {"statusid": 131, "status": "Power Unit"}, {"statusid": 132, "status": "ERS"}, {"statusid": 133, "status": "+49 Laps"}, {"statusid": 134, "status": "+38 Laps"}, {"statusid": 135, "status": "Brake duct"}, {"statusid": 136, "status": "Seat"}]}, "correct_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(status == \"Ignition\")\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(max_statusid: max(statusid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(status == \"Ignition\")\n\nsummary = filtered_status\n group_by(status)\n |> aggregate(max_statusid: max(statusid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"status": "Ignition", "max_statusid": 80, "count": 1}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 8, "original": "|> group_by(status)", "mutated": "group_by(status)"}], "difficulty": "easy", "domain": "formula_1__status", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"residents": [{"resident_id": 6, "property_id": 954, "date_moved_in": "2017-06-17 15:43:33", "date_moved_out": "2017-12-18 03:46:04", "other_details": "Anderson Batz"}, {"resident_id": 10, "property_id": 605, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-03-17 07:48:09", "other_details": "Miss Naomie Osinski"}, {"resident_id": 23, "property_id": 879, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-11-14 06:28:48", "other_details": "Jess Wyman"}, {"resident_id": 28, "property_id": 629, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-05 02:47:31", "other_details": "Miss Alanis Lockman"}, {"resident_id": 37, "property_id": 669, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-01-30 10:20:59", "other_details": "Prof. Arvel Kozey"}, {"resident_id": 38, "property_id": 748, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-12-30 23:55:10", "other_details": "Chaim Swaniawski"}, {"resident_id": 43, "property_id": 108, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-02-22 06:24:15", "other_details": "Elroy Schuster"}, {"resident_id": 45, "property_id": 954, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-14 10:23:42", "other_details": "Prof. Nasir Hoppe"}, {"resident_id": 47, "property_id": 669, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-10 02:25:53", "other_details": "Tiffany Jaskolski"}, {"resident_id": 58, "property_id": 107, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-11-29 21:24:08", "other_details": "Tomasa Hoeger"}, {"resident_id": 67, "property_id": 120, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2017-10-23 16:40:19", "other_details": "Terrill Bernhard"}, {"resident_id": 83, "property_id": 445, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-01-19 01:35:51", "other_details": "Loy Walter"}, {"resident_id": 87, "property_id": 748, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-01-28 13:19:54", "other_details": "Mrs. Raphaelle Fisher"}, {"resident_id": 88, "property_id": 107, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-02-03 11:30:20", "other_details": "Jacques Glover II"}, {"resident_id": 90, "property_id": 373, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2017-11-19 03:11:44", "other_details": "Cassie Johnson"}], "customer_events": [{"customer_event_id": 70, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10, "thing_id": 1}, {"customer_event_id": 160, "customer_id": 5, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23, "thing_id": 80}, {"customer_event_id": 166, "customer_id": 16, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28, "thing_id": 14}, {"customer_event_id": 216, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37, "thing_id": 46}, {"customer_event_id": 226, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38, "thing_id": 80}, {"customer_event_id": 256, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43, "thing_id": 2}, {"customer_event_id": 428, "customer_id": 63, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45, "thing_id": 68}, {"customer_event_id": 530, "customer_id": 4, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47, "thing_id": 10}, {"customer_event_id": 559, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58, "thing_id": 1}, {"customer_event_id": 591, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "resident_id": 67, "thing_id": 10}, {"customer_event_id": 606, "customer_id": 31, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "resident_id": 83, "thing_id": 85}, {"customer_event_id": 627, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "resident_id": 87, "thing_id": 92}, {"customer_event_id": 817, "customer_id": 19, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "resident_id": 88, "thing_id": 10}]}, "correct_code": "-- Load local_govt_and_lot__residents data\nresidents = load(\"residents\")\n\nfiltered_residents = residents\n |> filter(date_moved_in == \"2015-03-27 12:00:00\")\n |> select(date_moved_in, property_id, resident_id)\n\nresult = filtered_residents\n |> sort_by(property_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__residents data\nresidents = load(\"residents\")\n\nfiltered_residents = residents\n filter(date_moved_in == \"2015-03-27 12:00:00\")\n |> select(date_moved_in, property_id, resident_id)\n\nresult = filtered_residents\n |> sort_by(property_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43}, {"date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(date_moved_in == \"2015-03-27 12:00:00\")", "mutated": "filter(date_moved_in == \"2015-03-27 12:00:00\")"}], "difficulty": "easy", "domain": "local_govt_and_lot__residents", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"advisor": [{"s_id": "24746", "i_id": "19368"}, {"s_id": "79352", "i_id": "95030"}, {"s_id": "76672", "i_id": "22591"}, {"s_id": "14182", "i_id": "77346"}, {"s_id": "44985", "i_id": "31955"}, {"s_id": "96052", "i_id": "73623"}, {"s_id": "35175", "i_id": "90643"}, {"s_id": "44271", "i_id": "58558"}, {"s_id": "40897", "i_id": "73623"}, {"s_id": "92839", "i_id": "25946"}, {"s_id": "79329", "i_id": "58558"}, {"s_id": "97101", "i_id": "48570"}, {"s_id": "24865", "i_id": "6569"}, {"s_id": "36052", "i_id": "31955"}, {"s_id": "98940", "i_id": "99052"}, {"s_id": "21395", "i_id": "58558"}, {"s_id": "55859", "i_id": "28097"}, {"s_id": "74016", "i_id": "74420"}, {"s_id": "93061", "i_id": "64871"}, {"s_id": "94998", "i_id": "50330"}, {"s_id": "30772", "i_id": "57180"}, {"s_id": "1968", "i_id": "3335"}, {"s_id": "90567", "i_id": "48507"}, {"s_id": "49611", "i_id": "58558"}, {"s_id": "81538", "i_id": "59795"}, {"s_id": "68999", "i_id": "6569"}, {"s_id": "74639", "i_id": "41930"}, {"s_id": "66054", "i_id": "25946"}, {"s_id": "792", "i_id": "48507"}, {"s_id": "60267", "i_id": "81991"}, {"s_id": "17769", "i_id": "36897"}, {"s_id": "39580", "i_id": "3199"}, {"s_id": "89106", "i_id": "15347"}, {"s_id": "37856", "i_id": "25946"}, {"s_id": "58307", "i_id": "48507"}, {"s_id": "57985", "i_id": "52647"}, {"s_id": "72014", "i_id": "22591"}, {"s_id": "2795", "i_id": "28400"}, {"s_id": "89000", "i_id": "58558"}, {"s_id": "46442", "i_id": "48570"}, {"s_id": "60040", "i_id": "15347"}, {"s_id": "19791", "i_id": "59795"}, {"s_id": "4582", "i_id": "64871"}, {"s_id": "108", "i_id": "77346"}, {"s_id": "1533", "i_id": "50885"}, {"s_id": "7123", "i_id": "65931"}, {"s_id": "44584", "i_id": "64871"}, {"s_id": "32954", "i_id": "90376"}, {"s_id": "98056", "i_id": "73623"}, {"s_id": "76953", "i_id": "79081"}, {"s_id": "81884", "i_id": "3199"}, {"s_id": "22057", "i_id": "48507"}, {"s_id": "21126", "i_id": "52647"}, {"s_id": "82918", "i_id": "81991"}, {"s_id": "4173", "i_id": "25946"}, {"s_id": "83022", "i_id": "64871"}, {"s_id": "25525", "i_id": "96895"}, {"s_id": "75040", "i_id": "80759"}, {"s_id": "31624", "i_id": "41930"}, {"s_id": "64893", "i_id": "96895"}, {"s_id": "59920", "i_id": "72553"}, {"s_id": "38602", "i_id": "77346"}, {"s_id": "21401", "i_id": "79081"}, {"s_id": "93004", "i_id": "15347"}, {"s_id": "38899", "i_id": "37687"}, {"s_id": "75241", "i_id": "28097"}, {"s_id": "98830", "i_id": "80759"}, {"s_id": "37101", "i_id": "80759"}, {"s_id": "4508", "i_id": "28097"}, {"s_id": "32130", "i_id": "16807"}, {"s_id": "56755", "i_id": "79653"}, {"s_id": "11510", "i_id": "95709"}, {"s_id": "3335", "i_id": "74420"}, {"s_id": "61081", "i_id": "80759"}, {"s_id": "33651", "i_id": "96895"}, {"s_id": "8251", "i_id": "73623"}, {"s_id": "10705", "i_id": "6569"}, {"s_id": "64082", "i_id": "74426"}, {"s_id": "59517", "i_id": "34175"}, {"s_id": "91569", "i_id": "14365"}, {"s_id": "88085", "i_id": "28400"}, {"s_id": "96722", "i_id": "58558"}, {"s_id": "36379", "i_id": "42782"}, {"s_id": "69581", "i_id": "25946"}, {"s_id": "65329", "i_id": "3335"}, {"s_id": "49214", "i_id": "4034"}, {"s_id": "64155", "i_id": "36897"}, {"s_id": "58594", "i_id": "74420"}, {"s_id": "71904", "i_id": "95030"}, {"s_id": "69241", "i_id": "72553"}, {"s_id": "58889", "i_id": "3335"}, {"s_id": "30341", "i_id": "79081"}, {"s_id": "70688", "i_id": "97302"}, {"s_id": "81258", "i_id": "58558"}, {"s_id": "63090", "i_id": "25946"}, {"s_id": "70572", "i_id": "35579"}, {"s_id": "58413", "i_id": "28400"}, {"s_id": "93171", "i_id": "6569"}, {"s_id": "35138", "i_id": "41930"}, {"s_id": "77289", "i_id": "59795"}, {"s_id": "93571", "i_id": "57180"}, {"s_id": "14554", "i_id": "22591"}, {"s_id": "46725", "i_id": "90376"}, {"s_id": "99730", "i_id": "3199"}, {"s_id": "10527", "i_id": "36897"}, {"s_id": "898", "i_id": "22591"}, {"s_id": "64297", "i_id": "43779"}, {"s_id": "10204", "i_id": "65931"}, {"s_id": "36926", "i_id": "43779"}, {"s_id": "49618", "i_id": "74426"}, {"s_id": "34329", "i_id": "81991"}, {"s_id": "84410", "i_id": "81991"}, {"s_id": "29435", "i_id": "77346"}, {"s_id": "62636", "i_id": "79081"}, {"s_id": "8483", "i_id": "74426"}, {"s_id": "2177", "i_id": "50330"}, {"s_id": "43348", "i_id": "81991"}, {"s_id": "37430", "i_id": "41930"}, {"s_id": "37586", "i_id": "81991"}, {"s_id": "55238", "i_id": "35579"}, {"s_id": "34404", "i_id": "74426"}, {"s_id": "59539", "i_id": "28400"}, {"s_id": "43123", "i_id": "95030"}, {"s_id": "19582", "i_id": "96895"}, {"s_id": "88553", "i_id": "31955"}, {"s_id": "5898", "i_id": "34175"}, {"s_id": "2419", "i_id": "73623"}, {"s_id": "31516", "i_id": "95030"}, {"s_id": "3487", "i_id": "4034"}, {"s_id": "66269", "i_id": "58558"}, {"s_id": "54622", "i_id": "4034"}, {"s_id": "19638", "i_id": "4034"}, {"s_id": "88418", "i_id": "57180"}, {"s_id": "86802", "i_id": "35579"}, {"s_id": "63361", "i_id": "90643"}, {"s_id": "6367", "i_id": "14365"}, {"s_id": "84239", "i_id": "22591"}, {"s_id": "4940", "i_id": "15347"}, {"s_id": "90663", "i_id": "77346"}, {"s_id": "38476", "i_id": "95030"}, {"s_id": "96003", "i_id": "3335"}, {"s_id": "64914", "i_id": "14365"}, {"s_id": "41599", "i_id": "48507"}, {"s_id": "22226", "i_id": "64871"}, {"s_id": "96153", "i_id": "28097"}, {"s_id": "44998", "i_id": "36897"}, {"s_id": "74163", "i_id": "80759"}, {"s_id": "75046", "i_id": "16807"}, {"s_id": "97679", "i_id": "43779"}, {"s_id": "94894", "i_id": "78699"}, {"s_id": "44881", "i_id": "22591"}, {"s_id": "98619", "i_id": "77346"}, {"s_id": "86753", "i_id": "22591"}, {"s_id": "87054", "i_id": "35579"}, {"s_id": "39046", "i_id": "19368"}, {"s_id": "29031", "i_id": "78699"}, {"s_id": "97355", "i_id": "28400"}, {"s_id": "24010", "i_id": "80759"}, {"s_id": "21789", "i_id": "63395"}, {"s_id": "52157", "i_id": "65931"}, {"s_id": "64938", "i_id": "52647"}, {"s_id": "94535", "i_id": "50885"}, {"s_id": "58595", "i_id": "31955"}, {"s_id": "72979", "i_id": "41930"}, {"s_id": "32506", "i_id": "28097"}, {"s_id": "31690", "i_id": "14365"}, {"s_id": "87044", "i_id": "36897"}, {"s_id": "34236", "i_id": "57180"}, {"s_id": "18808", "i_id": "77346"}, {"s_id": "91063", "i_id": "52647"}, {"s_id": "48462", "i_id": "52647"}, {"s_id": "41965", "i_id": "65931"}, {"s_id": "31137", "i_id": "50330"}, {"s_id": "7602", "i_id": "63287"}, {"s_id": "84845", "i_id": "6569"}, {"s_id": "28252", "i_id": "90643"}, {"s_id": "10736", "i_id": "90643"}, {"s_id": "58465", "i_id": "59795"}, {"s_id": "64140", "i_id": "52647"}, {"s_id": "6523", "i_id": "43779"}, {"s_id": "64067", "i_id": "77346"}, {"s_id": "99399", "i_id": "4034"}, {"s_id": "21337", "i_id": "43779"}, {"s_id": "15457", "i_id": "95709"}, {"s_id": "26102", "i_id": "99052"}, {"s_id": "31337", "i_id": "50330"}, {"s_id": "67425", "i_id": "42782"}, {"s_id": "48640", "i_id": "3335"}, {"s_id": "72741", "i_id": "80759"}, {"s_id": "29803", "i_id": "3199"}, {"s_id": "38895", "i_id": "15347"}, {"s_id": "49391", "i_id": "16807"}, {"s_id": "13741", "i_id": "4034"}, {"s_id": "59538", "i_id": "42782"}, {"s_id": "9360", "i_id": "28097"}, {"s_id": "53728", "i_id": "57180"}, {"s_id": "77898", "i_id": "15347"}, {"s_id": "32419", "i_id": "95030"}, {"s_id": "37521", "i_id": "4034"}, {"s_id": "97065", "i_id": "79653"}], "instructor": [{"id": "63395", "name": "McKinnon", "dept_name": "Cybernetics", "salary": 94333.99}, {"id": "78699", "name": "Pingr", "dept_name": "Statistics", "salary": 59303.62}, {"id": "96895", "name": "Mird", "dept_name": "Marketing", "salary": 119921.41}, {"id": "4233", "name": "Luo", "dept_name": "English", "salary": 88791.45}, {"id": "4034", "name": "Murata", "dept_name": "Athletics", "salary": 61387.56}, {"id": "50885", "name": "Konstantinides", "dept_name": "Languages", "salary": 32570.5}, {"id": "79653", "name": "Levine", "dept_name": "Elec. Eng.", "salary": 89805.83}, {"id": "50330", "name": "Shuming", "dept_name": "Physics", "salary": 108011.81}, {"id": "80759", "name": "Queiroz", "dept_name": "Biology", "salary": 45538.32}, {"id": "73623", "name": "Sullivan", "dept_name": "Elec. Eng.", "salary": 90038.09}, {"id": "97302", "name": "Bertolino", "dept_name": "Mech. Eng.", "salary": 51647.57}, {"id": "57180", "name": "Hau", "dept_name": "Accounting", "salary": 43966.29}, {"id": "74420", "name": "Voronina", "dept_name": "Physics", "salary": 121141.99}, {"id": "35579", "name": "Soisalon-Soininen", "dept_name": "Psychology", "salary": 62579.61}, {"id": "31955", "name": "Moreira", "dept_name": "Accounting", "salary": 71351.42}, {"id": "37687", "name": "Arias", "dept_name": "Statistics", "salary": 104563.38}, {"id": "6569", "name": "Mingoz", "dept_name": "Finance", "salary": 105311.38}, {"id": "16807", "name": "Yazdi", "dept_name": "Athletics", "salary": 98333.65}, {"id": "14365", "name": "Lembr", "dept_name": "Accounting", "salary": 32241.56}, {"id": "90643", "name": "Choll", "dept_name": "Statistics", "salary": 57807.09}, {"id": "81991", "name": "Valtchev", "dept_name": "Biology", "salary": 77036.18}, {"id": "95030", "name": "Arinb", "dept_name": "Statistics", "salary": 54805.11}, {"id": "15347", "name": "Bawa", "dept_name": "Athletics", "salary": 72140.88}, {"id": "74426", "name": "Kenje", "dept_name": "Marketing", "salary": 106554.73}, {"id": "42782", "name": "Vicentino", "dept_name": "Elec. Eng.", "salary": 34272.67}, {"id": "58558", "name": "Dusserre", "dept_name": "Marketing", "salary": 66143.25}, {"id": "63287", "name": "Jaekel", "dept_name": "Athletics", "salary": 103146.87}, {"id": "59795", "name": "Desyl", "dept_name": "Languages", "salary": 48803.38}, {"id": "22591", "name": "DAgostino", "dept_name": "Psychology", "salary": 59706.49}, {"id": "48570", "name": "Sarkar", "dept_name": "Pol. Sci.", "salary": 87549.8}, {"id": "79081", "name": "Ullman ", "dept_name": "Accounting", "salary": 47307.1}, {"id": "52647", "name": "Bancilhon", "dept_name": "Pol. Sci.", "salary": 87958.01}, {"id": "25946", "name": "Liley", "dept_name": "Languages", "salary": 90891.69}, {"id": "36897", "name": "Morris", "dept_name": "Marketing", "salary": 43770.36}, {"id": "72553", "name": "Yin", "dept_name": "English", "salary": 46397.59}, {"id": "3199", "name": "Gustafsson", "dept_name": "Elec. Eng.", "salary": 82534.37}, {"id": "34175", "name": "Bondi", "dept_name": "Comp. Sci.", "salary": 115469.11}, {"id": "48507", "name": "Lent", "dept_name": "Mech. Eng.", "salary": 107978.47}, {"id": "65931", "name": "Pimenta", "dept_name": "Cybernetics", "salary": 79866.95}, {"id": "3335", "name": "Bourrier", "dept_name": "Comp. Sci.", "salary": 80797.83}, {"id": "64871", "name": "Gutierrez", "dept_name": "Statistics", "salary": 45310.53}, {"id": "95709", "name": "Sakurai", "dept_name": "English", "salary": 118143.98}, {"id": "43779", "name": "Romero", "dept_name": "Astronomy", "salary": 79070.08}, {"id": "77346", "name": "Mahmoud", "dept_name": "Geology", "salary": 99382.59}, {"id": "28097", "name": "Kean", "dept_name": "English", "salary": 35023.18}, {"id": "90376", "name": "Bietzk", "dept_name": "Cybernetics", "salary": 117836.5}, {"id": "28400", "name": "Atanassov", "dept_name": "Statistics", "salary": 84982.92}, {"id": "41930", "name": "Tung", "dept_name": "Athletics", "salary": 50482.03}, {"id": "19368", "name": "Wieland", "dept_name": "Pol. Sci.", "salary": 124651.41}, {"id": "99052", "name": "Dale", "dept_name": "Cybernetics", "salary": 93348.83}]}, "correct_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(i_id == \"28097\")\n\nemit filtered_advisor", "buggy_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(i_id >= \"28097\")\n\nemit filtered_advisor", "expected_output": [{"s_id": "55859", "i_id": "28097"}, {"s_id": "75241", "i_id": "28097"}, {"s_id": "4508", "i_id": "28097"}, {"s_id": "96153", "i_id": "28097"}, {"s_id": "32506", "i_id": "28097"}, {"s_id": "9360", "i_id": "28097"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>='", "line_num": 5, "original": "|> filter(i_id == \"28097\")", "mutated": "|> filter(i_id >= \"28097\")"}], "difficulty": "medium", "domain": "college_2__advisor", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"participants_in_events": [{"event_id": 3, "participant_id": 26}, {"event_id": 3, "participant_id": 66}, {"event_id": 8, "participant_id": 86}, {"event_id": 13, "participant_id": 64}, {"event_id": 13, "participant_id": 90}, {"event_id": 16, "participant_id": 60}, {"event_id": 17, "participant_id": 37}, {"event_id": 17, "participant_id": 66}, {"event_id": 38, "participant_id": 66}, {"event_id": 40, "participant_id": 37}, {"event_id": 40, "participant_id": 86}, {"event_id": 57, "participant_id": 90}, {"event_id": 60, "participant_id": 26}, {"event_id": 80, "participant_id": 36}, {"event_id": 80, "participant_id": 66}, {"event_id": 80, "participant_id": 96}, {"event_id": 95, "participant_id": 63}, {"event_id": 96, "participant_id": 90}], "participants": [{"participant_id": 9, "participant_type_code": "Organizer", "participant_details": "Karlee Batz"}, {"participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"participant_id": 28, "participant_type_code": "Organizer", "participant_details": "Lupe Deckow"}, {"participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn"}, {"participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"participant_id": 38, "participant_type_code": "Organizer", "participant_details": "Macy Mayer DDS"}, {"participant_id": 60, "participant_type_code": "Participant", "participant_details": "Dewitt Walter"}, {"participant_id": 63, "participant_type_code": "Participant", "participant_details": "Prof. Michelle Maggio Jr."}, {"participant_id": 64, "participant_type_code": "Participant", "participant_details": "Dr. Jaydon Renner"}, {"participant_id": 66, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}, {"participant_id": 75, "participant_type_code": "Participant", "participant_details": "Berniece Weimann"}, {"participant_id": 86, "participant_type_code": "Organizer", "participant_details": "Neil Blick"}, {"participant_id": 90, "participant_type_code": "Participant", "participant_details": "Dedrick Ebert"}, {"participant_id": 96, "participant_type_code": "Organizer", "participant_details": "Miss Joyce Cremin"}, {"participant_id": 98, "participant_type_code": "Participant", "participant_details": "Dr. Kris Deckow"}]}, "correct_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n |> select(participant_id, event_id)\n\nresult = participants_in_events\n |> sort_by(event_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n |> selecct(participant_id, event_id)\n\nresult = participants_in_events\n |> sort_by(event_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"participant_id": 90, "event_id": 96}, {"participant_id": 63, "event_id": 95}, {"participant_id": 36, "event_id": 80}, {"participant_id": 66, "event_id": 80}, {"participant_id": 96, "event_id": 80}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'select' \u2192 'selecct'", "line_num": 3, "original": "|> select(participant_id, event_id)", "mutated": "|> selecct(participant_id, event_id)"}], "difficulty": "easy", "domain": "local_govt_in_alabama__participants_in_events", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"transactions_lots": [{"transaction_id": 3, "lot_id": 11}, {"transaction_id": 3, "lot_id": 8}, {"transaction_id": 2, "lot_id": 11}, {"transaction_id": 3, "lot_id": 14}, {"transaction_id": 12, "lot_id": 10}, {"transaction_id": 15, "lot_id": 10}, {"transaction_id": 10, "lot_id": 10}, {"transaction_id": 1, "lot_id": 1}, {"transaction_id": 1, "lot_id": 14}, {"transaction_id": 3, "lot_id": 4}, {"transaction_id": 14, "lot_id": 9}, {"transaction_id": 7, "lot_id": 1}, {"transaction_id": 12, "lot_id": 15}, {"transaction_id": 6, "lot_id": 3}, {"transaction_id": 2, "lot_id": 1}], "lots": [{"lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"lot_id": 2, "investor_id": 16, "lot_details": "z"}, {"lot_id": 3, "investor_id": 10, "lot_details": "s"}, {"lot_id": 4, "investor_id": 19, "lot_details": "s"}, {"lot_id": 5, "investor_id": 6, "lot_details": "q"}, {"lot_id": 6, "investor_id": 20, "lot_details": "d"}, {"lot_id": 7, "investor_id": 7, "lot_details": "m"}, {"lot_id": 8, "investor_id": 7, "lot_details": "h"}, {"lot_id": 9, "investor_id": 20, "lot_details": "z"}, {"lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"lot_id": 12, "investor_id": 19, "lot_details": "m"}, {"lot_id": 13, "investor_id": 7, "lot_details": "z"}, {"lot_id": 14, "investor_id": 6, "lot_details": "d"}, {"lot_id": 15, "investor_id": 1, "lot_details": "h"}]}, "correct_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\nfiltered_transactions_lots = transactions_lots\n |> filter(lot_id >= 1)\n\nresult = filtered_transactions_lots\n |> sort_by(transaction_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\nfiltered_transactions_lots = transactions_lots\n |> filter(lot_id >= 1)\n\nresult = filtered_transactions_lots\n |> srt_by(transaction_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"transaction_id": 15, "lot_id": 10}, {"transaction_id": 14, "lot_id": 9}, {"transaction_id": 12, "lot_id": 10}, {"transaction_id": 12, "lot_id": 15}, {"transaction_id": 10, "lot_id": 10}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'srt_by'", "line_num": 8, "original": "|> sort_by(transaction_id, desc)", "mutated": "|> srt_by(transaction_id, desc)"}], "difficulty": "easy", "domain": "tracking_share_transactions__transactions_lots", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"investors": [{"investor_id": 1, "investor_details": "z"}, {"investor_id": 2, "investor_details": "z"}, {"investor_id": 3, "investor_details": "d"}, {"investor_id": 4, "investor_details": "d"}, {"investor_id": 5, "investor_details": "b"}, {"investor_id": 6, "investor_details": "k"}, {"investor_id": 7, "investor_details": "l"}, {"investor_id": 8, "investor_details": "t"}, {"investor_id": 9, "investor_details": "y"}, {"investor_id": 10, "investor_details": "r"}, {"investor_id": 11, "investor_details": "q"}, {"investor_id": 12, "investor_details": "c"}, {"investor_id": 13, "investor_details": "o"}, {"investor_id": 14, "investor_details": "w"}, {"investor_id": 15, "investor_details": "i"}, {"investor_id": 16, "investor_details": "y"}, {"investor_id": 17, "investor_details": "k"}, {"investor_id": 18, "investor_details": "w"}, {"investor_id": 19, "investor_details": "l"}, {"investor_id": 20, "investor_details": "j"}], "transactions": [{"transaction_id": 1, "investor_id": 6, "transaction_type_code": "SALE", "date_of_transaction": "1988-09-16 19:02:51", "amount_of_transaction": 302507.6996, "share_count": "8718572", "other_details": 0}, {"transaction_id": 2, "investor_id": 18, "transaction_type_code": "PUR", "date_of_transaction": "1982-06-06 17:19:00", "amount_of_transaction": 27.257, "share_count": "9", "other_details": 0}, {"transaction_id": 3, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1979-04-27 06:03:59", "amount_of_transaction": 48777.969, "share_count": "8580", "other_details": 0}, {"transaction_id": 4, "investor_id": 14, "transaction_type_code": "PUR", "date_of_transaction": "2001-11-28 15:06:25", "amount_of_transaction": 4.5263, "share_count": "8040", "other_details": 0}, {"transaction_id": 5, "investor_id": 8, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-17 13:13:30", "amount_of_transaction": 0, "share_count": "930", "other_details": 0}, {"transaction_id": 6, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1985-10-08 13:13:39", "amount_of_transaction": 207484122.2796, "share_count": "2751", "other_details": 0}, {"transaction_id": 7, "investor_id": 7, "transaction_type_code": "PUR", "date_of_transaction": "1990-12-02 09:03:38", "amount_of_transaction": 822.803, "share_count": "1522", "other_details": 0}, {"transaction_id": 8, "investor_id": 17, "transaction_type_code": "SALE", "date_of_transaction": "2004-01-18 20:37:50", "amount_of_transaction": 78035671.4424, "share_count": "96178", "other_details": 0}, {"transaction_id": 9, "investor_id": 20, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-13 02:18:47", "amount_of_transaction": 82057.207, "share_count": "", "other_details": 0}, {"transaction_id": 10, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1981-01-28 08:07:03", "amount_of_transaction": 29.3534, "share_count": "1654756", "other_details": 0}, {"transaction_id": 11, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2000-04-03 20:55:43", "amount_of_transaction": 0, "share_count": "674529892", "other_details": 0}, {"transaction_id": 12, "investor_id": 18, "transaction_type_code": "SALE", "date_of_transaction": "1983-11-01 17:57:27", "amount_of_transaction": 1, "share_count": "587", "other_details": 0}, {"transaction_id": 13, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2002-04-07 20:28:37", "amount_of_transaction": 183.2, "share_count": "", "other_details": 0}, {"transaction_id": 14, "investor_id": 3, "transaction_type_code": "PUR", "date_of_transaction": "2002-09-13 03:04:56", "amount_of_transaction": 0, "share_count": "630021", "other_details": 0}, {"transaction_id": 15, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1997-12-30 05:05:40", "amount_of_transaction": 8.9, "share_count": "93191", "other_details": 0}]}, "correct_code": "-- Load tracking_share_transactions__investors data\ninvestors = load(\"investors\")\n\nfiltered_investors = investors\n |> filter(investor_details == \"w\")\n\nsummary = filtered_investors\n |> group_by(investor_details)\n |> aggregate(min_investor_id: min(investor_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__investors data\ninvestors = load(\"investors\")\n\nfiltered_investors = investors\n |> filter(investor_id == \"w\")\n\nsummary = filtered_investors\n |> group_by(investor_details)\n |> aggregate(min_investor_id: min(investor_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"investor_details": "w", "min_investor_id": 14, "count": 2}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'investor_details' \u2192 'investor_id'", "line_num": 5, "original": "|> filter(investor_details == \"w\")", "mutated": "|> filter(investor_id == \"w\")"}], "difficulty": "hard", "domain": "tracking_share_transactions__investors", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"advisor": [{"s_id": "24746", "i_id": "19368"}, {"s_id": "79352", "i_id": "95030"}, {"s_id": "76672", "i_id": "22591"}, {"s_id": "14182", "i_id": "77346"}, {"s_id": "44985", "i_id": "31955"}, {"s_id": "96052", "i_id": "73623"}, {"s_id": "35175", "i_id": "90643"}, {"s_id": "44271", "i_id": "58558"}, {"s_id": "40897", "i_id": "73623"}, {"s_id": "92839", "i_id": "25946"}, {"s_id": "79329", "i_id": "58558"}, {"s_id": "97101", "i_id": "48570"}, {"s_id": "24865", "i_id": "6569"}, {"s_id": "36052", "i_id": "31955"}, {"s_id": "98940", "i_id": "99052"}, {"s_id": "21395", "i_id": "58558"}, {"s_id": "55859", "i_id": "28097"}, {"s_id": "74016", "i_id": "74420"}, {"s_id": "93061", "i_id": "64871"}, {"s_id": "94998", "i_id": "50330"}, {"s_id": "30772", "i_id": "57180"}, {"s_id": "1968", "i_id": "3335"}, {"s_id": "90567", "i_id": "48507"}, {"s_id": "49611", "i_id": "58558"}, {"s_id": "81538", "i_id": "59795"}, {"s_id": "68999", "i_id": "6569"}, {"s_id": "74639", "i_id": "41930"}, {"s_id": "66054", "i_id": "25946"}, {"s_id": "792", "i_id": "48507"}, {"s_id": "60267", "i_id": "81991"}, {"s_id": "17769", "i_id": "36897"}, {"s_id": "39580", "i_id": "3199"}, {"s_id": "89106", "i_id": "15347"}, {"s_id": "37856", "i_id": "25946"}, {"s_id": "58307", "i_id": "48507"}, {"s_id": "57985", "i_id": "52647"}, {"s_id": "72014", "i_id": "22591"}, {"s_id": "2795", "i_id": "28400"}, {"s_id": "89000", "i_id": "58558"}, {"s_id": "46442", "i_id": "48570"}, {"s_id": "60040", "i_id": "15347"}, {"s_id": "19791", "i_id": "59795"}, {"s_id": "4582", "i_id": "64871"}, {"s_id": "108", "i_id": "77346"}, {"s_id": "1533", "i_id": "50885"}, {"s_id": "7123", "i_id": "65931"}, {"s_id": "44584", "i_id": "64871"}, {"s_id": "32954", "i_id": "90376"}, {"s_id": "98056", "i_id": "73623"}, {"s_id": "76953", "i_id": "79081"}, {"s_id": "81884", "i_id": "3199"}, {"s_id": "22057", "i_id": "48507"}, {"s_id": "21126", "i_id": "52647"}, {"s_id": "82918", "i_id": "81991"}, {"s_id": "4173", "i_id": "25946"}, {"s_id": "83022", "i_id": "64871"}, {"s_id": "25525", "i_id": "96895"}, {"s_id": "75040", "i_id": "80759"}, {"s_id": "31624", "i_id": "41930"}, {"s_id": "64893", "i_id": "96895"}, {"s_id": "59920", "i_id": "72553"}, {"s_id": "38602", "i_id": "77346"}, {"s_id": "21401", "i_id": "79081"}, {"s_id": "93004", "i_id": "15347"}, {"s_id": "38899", "i_id": "37687"}, {"s_id": "75241", "i_id": "28097"}, {"s_id": "98830", "i_id": "80759"}, {"s_id": "37101", "i_id": "80759"}, {"s_id": "4508", "i_id": "28097"}, {"s_id": "32130", "i_id": "16807"}, {"s_id": "56755", "i_id": "79653"}, {"s_id": "11510", "i_id": "95709"}, {"s_id": "3335", "i_id": "74420"}, {"s_id": "61081", "i_id": "80759"}, {"s_id": "33651", "i_id": "96895"}, {"s_id": "8251", "i_id": "73623"}, {"s_id": "10705", "i_id": "6569"}, {"s_id": "64082", "i_id": "74426"}, {"s_id": "59517", "i_id": "34175"}, {"s_id": "91569", "i_id": "14365"}, {"s_id": "88085", "i_id": "28400"}, {"s_id": "96722", "i_id": "58558"}, {"s_id": "36379", "i_id": "42782"}, {"s_id": "69581", "i_id": "25946"}, {"s_id": "65329", "i_id": "3335"}, {"s_id": "49214", "i_id": "4034"}, {"s_id": "64155", "i_id": "36897"}, {"s_id": "58594", "i_id": "74420"}, {"s_id": "71904", "i_id": "95030"}, {"s_id": "69241", "i_id": "72553"}, {"s_id": "58889", "i_id": "3335"}, {"s_id": "30341", "i_id": "79081"}, {"s_id": "70688", "i_id": "97302"}, {"s_id": "81258", "i_id": "58558"}, {"s_id": "63090", "i_id": "25946"}, {"s_id": "70572", "i_id": "35579"}, {"s_id": "58413", "i_id": "28400"}, {"s_id": "93171", "i_id": "6569"}, {"s_id": "35138", "i_id": "41930"}, {"s_id": "77289", "i_id": "59795"}, {"s_id": "93571", "i_id": "57180"}, {"s_id": "14554", "i_id": "22591"}, {"s_id": "46725", "i_id": "90376"}, {"s_id": "99730", "i_id": "3199"}, {"s_id": "10527", "i_id": "36897"}, {"s_id": "898", "i_id": "22591"}, {"s_id": "64297", "i_id": "43779"}, {"s_id": "10204", "i_id": "65931"}, {"s_id": "36926", "i_id": "43779"}, {"s_id": "49618", "i_id": "74426"}, {"s_id": "34329", "i_id": "81991"}, {"s_id": "84410", "i_id": "81991"}, {"s_id": "29435", "i_id": "77346"}, {"s_id": "62636", "i_id": "79081"}, {"s_id": "8483", "i_id": "74426"}, {"s_id": "2177", "i_id": "50330"}, {"s_id": "43348", "i_id": "81991"}, {"s_id": "37430", "i_id": "41930"}, {"s_id": "37586", "i_id": "81991"}, {"s_id": "55238", "i_id": "35579"}, {"s_id": "34404", "i_id": "74426"}, {"s_id": "59539", "i_id": "28400"}, {"s_id": "43123", "i_id": "95030"}, {"s_id": "19582", "i_id": "96895"}, {"s_id": "88553", "i_id": "31955"}, {"s_id": "5898", "i_id": "34175"}, {"s_id": "2419", "i_id": "73623"}, {"s_id": "31516", "i_id": "95030"}, {"s_id": "3487", "i_id": "4034"}, {"s_id": "66269", "i_id": "58558"}, {"s_id": "54622", "i_id": "4034"}, {"s_id": "19638", "i_id": "4034"}, {"s_id": "88418", "i_id": "57180"}, {"s_id": "86802", "i_id": "35579"}, {"s_id": "63361", "i_id": "90643"}, {"s_id": "6367", "i_id": "14365"}, {"s_id": "84239", "i_id": "22591"}, {"s_id": "4940", "i_id": "15347"}, {"s_id": "90663", "i_id": "77346"}, {"s_id": "38476", "i_id": "95030"}, {"s_id": "96003", "i_id": "3335"}, {"s_id": "64914", "i_id": "14365"}, {"s_id": "41599", "i_id": "48507"}, {"s_id": "22226", "i_id": "64871"}, {"s_id": "96153", "i_id": "28097"}, {"s_id": "44998", "i_id": "36897"}, {"s_id": "74163", "i_id": "80759"}, {"s_id": "75046", "i_id": "16807"}, {"s_id": "97679", "i_id": "43779"}, {"s_id": "94894", "i_id": "78699"}, {"s_id": "44881", "i_id": "22591"}, {"s_id": "98619", "i_id": "77346"}, {"s_id": "86753", "i_id": "22591"}, {"s_id": "87054", "i_id": "35579"}, {"s_id": "39046", "i_id": "19368"}, {"s_id": "29031", "i_id": "78699"}, {"s_id": "97355", "i_id": "28400"}, {"s_id": "24010", "i_id": "80759"}, {"s_id": "21789", "i_id": "63395"}, {"s_id": "52157", "i_id": "65931"}, {"s_id": "64938", "i_id": "52647"}, {"s_id": "94535", "i_id": "50885"}, {"s_id": "58595", "i_id": "31955"}, {"s_id": "72979", "i_id": "41930"}, {"s_id": "32506", "i_id": "28097"}, {"s_id": "31690", "i_id": "14365"}, {"s_id": "87044", "i_id": "36897"}, {"s_id": "34236", "i_id": "57180"}, {"s_id": "18808", "i_id": "77346"}, {"s_id": "91063", "i_id": "52647"}, {"s_id": "48462", "i_id": "52647"}, {"s_id": "41965", "i_id": "65931"}, {"s_id": "31137", "i_id": "50330"}, {"s_id": "7602", "i_id": "63287"}, {"s_id": "84845", "i_id": "6569"}, {"s_id": "28252", "i_id": "90643"}, {"s_id": "10736", "i_id": "90643"}, {"s_id": "58465", "i_id": "59795"}, {"s_id": "64140", "i_id": "52647"}, {"s_id": "6523", "i_id": "43779"}, {"s_id": "64067", "i_id": "77346"}, {"s_id": "99399", "i_id": "4034"}, {"s_id": "21337", "i_id": "43779"}, {"s_id": "15457", "i_id": "95709"}, {"s_id": "26102", "i_id": "99052"}, {"s_id": "31337", "i_id": "50330"}, {"s_id": "67425", "i_id": "42782"}, {"s_id": "48640", "i_id": "3335"}, {"s_id": "72741", "i_id": "80759"}, {"s_id": "29803", "i_id": "3199"}, {"s_id": "38895", "i_id": "15347"}, {"s_id": "49391", "i_id": "16807"}, {"s_id": "13741", "i_id": "4034"}, {"s_id": "59538", "i_id": "42782"}, {"s_id": "9360", "i_id": "28097"}, {"s_id": "53728", "i_id": "57180"}, {"s_id": "77898", "i_id": "15347"}, {"s_id": "32419", "i_id": "95030"}, {"s_id": "37521", "i_id": "4034"}, {"s_id": "97065", "i_id": "79653"}], "instructor": [{"id": "63395", "name": "McKinnon", "dept_name": "Cybernetics", "salary": 94333.99}, {"id": "78699", "name": "Pingr", "dept_name": "Statistics", "salary": 59303.62}, {"id": "96895", "name": "Mird", "dept_name": "Marketing", "salary": 119921.41}, {"id": "4233", "name": "Luo", "dept_name": "English", "salary": 88791.45}, {"id": "4034", "name": "Murata", "dept_name": "Athletics", "salary": 61387.56}, {"id": "50885", "name": "Konstantinides", "dept_name": "Languages", "salary": 32570.5}, {"id": "79653", "name": "Levine", "dept_name": "Elec. Eng.", "salary": 89805.83}, {"id": "50330", "name": "Shuming", "dept_name": "Physics", "salary": 108011.81}, {"id": "80759", "name": "Queiroz", "dept_name": "Biology", "salary": 45538.32}, {"id": "73623", "name": "Sullivan", "dept_name": "Elec. Eng.", "salary": 90038.09}, {"id": "97302", "name": "Bertolino", "dept_name": "Mech. Eng.", "salary": 51647.57}, {"id": "57180", "name": "Hau", "dept_name": "Accounting", "salary": 43966.29}, {"id": "74420", "name": "Voronina", "dept_name": "Physics", "salary": 121141.99}, {"id": "35579", "name": "Soisalon-Soininen", "dept_name": "Psychology", "salary": 62579.61}, {"id": "31955", "name": "Moreira", "dept_name": "Accounting", "salary": 71351.42}, {"id": "37687", "name": "Arias", "dept_name": "Statistics", "salary": 104563.38}, {"id": "6569", "name": "Mingoz", "dept_name": "Finance", "salary": 105311.38}, {"id": "16807", "name": "Yazdi", "dept_name": "Athletics", "salary": 98333.65}, {"id": "14365", "name": "Lembr", "dept_name": "Accounting", "salary": 32241.56}, {"id": "90643", "name": "Choll", "dept_name": "Statistics", "salary": 57807.09}, {"id": "81991", "name": "Valtchev", "dept_name": "Biology", "salary": 77036.18}, {"id": "95030", "name": "Arinb", "dept_name": "Statistics", "salary": 54805.11}, {"id": "15347", "name": "Bawa", "dept_name": "Athletics", "salary": 72140.88}, {"id": "74426", "name": "Kenje", "dept_name": "Marketing", "salary": 106554.73}, {"id": "42782", "name": "Vicentino", "dept_name": "Elec. Eng.", "salary": 34272.67}, {"id": "58558", "name": "Dusserre", "dept_name": "Marketing", "salary": 66143.25}, {"id": "63287", "name": "Jaekel", "dept_name": "Athletics", "salary": 103146.87}, {"id": "59795", "name": "Desyl", "dept_name": "Languages", "salary": 48803.38}, {"id": "22591", "name": "DAgostino", "dept_name": "Psychology", "salary": 59706.49}, {"id": "48570", "name": "Sarkar", "dept_name": "Pol. Sci.", "salary": 87549.8}, {"id": "79081", "name": "Ullman ", "dept_name": "Accounting", "salary": 47307.1}, {"id": "52647", "name": "Bancilhon", "dept_name": "Pol. Sci.", "salary": 87958.01}, {"id": "25946", "name": "Liley", "dept_name": "Languages", "salary": 90891.69}, {"id": "36897", "name": "Morris", "dept_name": "Marketing", "salary": 43770.36}, {"id": "72553", "name": "Yin", "dept_name": "English", "salary": 46397.59}, {"id": "3199", "name": "Gustafsson", "dept_name": "Elec. Eng.", "salary": 82534.37}, {"id": "34175", "name": "Bondi", "dept_name": "Comp. Sci.", "salary": 115469.11}, {"id": "48507", "name": "Lent", "dept_name": "Mech. Eng.", "salary": 107978.47}, {"id": "65931", "name": "Pimenta", "dept_name": "Cybernetics", "salary": 79866.95}, {"id": "3335", "name": "Bourrier", "dept_name": "Comp. Sci.", "salary": 80797.83}, {"id": "64871", "name": "Gutierrez", "dept_name": "Statistics", "salary": 45310.53}, {"id": "95709", "name": "Sakurai", "dept_name": "English", "salary": 118143.98}, {"id": "43779", "name": "Romero", "dept_name": "Astronomy", "salary": 79070.08}, {"id": "77346", "name": "Mahmoud", "dept_name": "Geology", "salary": 99382.59}, {"id": "28097", "name": "Kean", "dept_name": "English", "salary": 35023.18}, {"id": "90376", "name": "Bietzk", "dept_name": "Cybernetics", "salary": 117836.5}, {"id": "28400", "name": "Atanassov", "dept_name": "Statistics", "salary": 84982.92}, {"id": "41930", "name": "Tung", "dept_name": "Athletics", "salary": 50482.03}, {"id": "19368", "name": "Wieland", "dept_name": "Pol. Sci.", "salary": 124651.41}, {"id": "99052", "name": "Dale", "dept_name": "Cybernetics", "salary": 93348.83}]}, "correct_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(s_id == \"8483\")\n\nemit filtered_advisor", "buggy_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> fliter(s_id == \"8483\")\n\nemit filtered_advisor", "expected_output": [{"s_id": "8483", "i_id": "74426"}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'filter' \u2192 'fliter'", "line_num": 5, "original": "|> filter(s_id == \"8483\")", "mutated": "|> fliter(s_id == \"8483\")"}], "difficulty": "easy", "domain": "college_2__advisor", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"actual_order_products": [{"actual_order_id": 2, "product_id": 1}, {"actual_order_id": 14, "product_id": 5}, {"actual_order_id": 13, "product_id": 6}, {"actual_order_id": 9, "product_id": 2}, {"actual_order_id": 3, "product_id": 2}, {"actual_order_id": 2, "product_id": 3}, {"actual_order_id": 13, "product_id": 2}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 10, "product_id": 3}, {"actual_order_id": 6, "product_id": 6}, {"actual_order_id": 5, "product_id": 5}, {"actual_order_id": 7, "product_id": 3}, {"actual_order_id": 5, "product_id": 3}, {"actual_order_id": 15, "product_id": 4}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\nprocessed = actual_order_products\n |> compute(computed_val: actual_order_id + product_id)\n\nresult = processed\n |> sort_by(computed_val, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\nprocessed = actual_order_products\n |> compute(computed_val: actual_order_id + product_id)\n\nresult = processed\n |> sort_by(computed_val, asc)\n |> take(3)\n\nemit result", "expected_output": [{"actual_order_id": 14, "product_id": 5, "computed_val": 19}, {"actual_order_id": 13, "product_id": 6, "computed_val": 19}, {"actual_order_id": 15, "product_id": 4, "computed_val": 19}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 8, "original": "|> sort_by(computed_val, desc)", "mutated": "|> sort_by(computed_val, asc)"}], "difficulty": "medium", "domain": "customer_deliveries__actual_order_products", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"treatments": [{"treatment_id": 1, "dog_id": 14, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-19 04:39:54", "cost_of_treatment": 567}, {"treatment_id": 2, "dog_id": 4, "professional_id": 10, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-15 20:25:34", "cost_of_treatment": 147}, {"treatment_id": 3, "dog_id": 14, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-08 05:26:23", "cost_of_treatment": 429}, {"treatment_id": 4, "dog_id": 2, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-01 04:14:46", "cost_of_treatment": 266}, {"treatment_id": 5, "dog_id": 12, "professional_id": 14, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-23 13:52:10", "cost_of_treatment": 668}, {"treatment_id": 6, "dog_id": 10, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-11 04:23:15", "cost_of_treatment": 313}, {"treatment_id": 7, "dog_id": 15, "professional_id": 14, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-10 11:45:58", "cost_of_treatment": 852}, {"treatment_id": 8, "dog_id": 2, "professional_id": 6, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-24 22:25:58", "cost_of_treatment": 407}, {"treatment_id": 9, "dog_id": 14, "professional_id": 10, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-14 19:10:40", "cost_of_treatment": 139}, {"treatment_id": 10, "dog_id": 10, "professional_id": 7, "treatment_type_code": "WALK", "date_of_treatment": "2018-02-28 17:09:43", "cost_of_treatment": 681}, {"treatment_id": 11, "dog_id": 15, "professional_id": 5, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-13 12:22:58", "cost_of_treatment": 514}, {"treatment_id": 12, "dog_id": 13, "professional_id": 9, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-16 10:27:36", "cost_of_treatment": 428}, {"treatment_id": 13, "dog_id": 7, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-02-26 09:08:53", "cost_of_treatment": 945}, {"treatment_id": 14, "dog_id": 10, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-04 20:33:43", "cost_of_treatment": 349}, {"treatment_id": 15, "dog_id": 1, "professional_id": 6, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-15 19:10:02", "cost_of_treatment": 656}], "treatment_types": [{"treatment_type_code": "EXAM", "treatment_type_description": "Physical examination"}, {"treatment_type_code": "VAC", "treatment_type_description": "Vaccination"}, {"treatment_type_code": "WALK", "treatment_type_description": "Take for a Walk"}]}, "correct_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_type_code == \"VAC\")\n\nsummary = filtered_treatments\n |> group_by(date_of_treatment)\n |> aggregate(max_professional_id: max(professional_id), count: count())\n\nresult = summary\n |> sort_by(max_professional_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_type_code == \"VAC\")\n\nsummary = filtered_treatments\n group_by(date_of_treatment)\n |> aggregate(max_professional_id: max(professional_id), count: count())\n\nresult = summary\n |> sort_by(max_professional_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"date_of_treatment": "2018-03-23 13:52:10", "max_professional_id": 14, "count": 1}, {"date_of_treatment": "2018-03-15 20:25:34", "max_professional_id": 10, "count": 1}, {"date_of_treatment": "2018-03-01 04:14:46", "max_professional_id": 8, "count": 1}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 8, "original": "|> group_by(date_of_treatment)", "mutated": "group_by(date_of_treatment)"}], "difficulty": "easy", "domain": "dog_kennels__treatments", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"status": [{"statusid": 1, "status": "Finished"}, {"statusid": 2, "status": "Disqualified"}, {"statusid": 3, "status": "Accident"}, {"statusid": 4, "status": "Collision"}, {"statusid": 5, "status": "Engine"}, {"statusid": 6, "status": "Gearbox"}, {"statusid": 7, "status": "Transmission"}, {"statusid": 8, "status": "Clutch"}, {"statusid": 9, "status": "Hydraulics"}, {"statusid": 10, "status": "Electrical"}, {"statusid": 11, "status": "+1 Lap"}, {"statusid": 12, "status": "+2 Laps"}, {"statusid": 13, "status": "+3 Laps"}, {"statusid": 14, "status": "+4 Laps"}, {"statusid": 15, "status": "+5 Laps"}, {"statusid": 16, "status": "+6 Laps"}, {"statusid": 17, "status": "+7 Laps"}, {"statusid": 18, "status": "+8 Laps"}, {"statusid": 19, "status": "+9 Laps"}, {"statusid": 20, "status": "Spun off"}, {"statusid": 21, "status": "Radiator"}, {"statusid": 22, "status": "Suspension"}, {"statusid": 23, "status": "Brakes"}, {"statusid": 24, "status": "Differential"}, {"statusid": 25, "status": "Overheating"}, {"statusid": 26, "status": "Mechanical"}, {"statusid": 27, "status": "Tyre"}, {"statusid": 28, "status": "Driver Seat"}, {"statusid": 29, "status": "Puncture"}, {"statusid": 30, "status": "Driveshaft"}, {"statusid": 31, "status": "Retired"}, {"statusid": 32, "status": "Fuel pressure"}, {"statusid": 33, "status": "Front wing"}, {"statusid": 34, "status": "Water pressure"}, {"statusid": 35, "status": "Refuelling"}, {"statusid": 36, "status": "Wheel"}, {"statusid": 37, "status": "Throttle"}, {"statusid": 38, "status": "Steering"}, {"statusid": 39, "status": "Technical"}, {"statusid": 40, "status": "Electronics"}, {"statusid": 41, "status": "Broken wing"}, {"statusid": 42, "status": "Heat shield fire"}, {"statusid": 43, "status": "Exhaust"}, {"statusid": 44, "status": "Oil leak"}, {"statusid": 45, "status": "+11 Laps"}, {"statusid": 46, "status": "Wheel rim"}, {"statusid": 47, "status": "Water leak"}, {"statusid": 48, "status": "Fuel pump"}, {"statusid": 49, "status": "Track rod"}, {"statusid": 50, "status": "+17 Laps"}, {"statusid": 51, "status": "Oil pressure"}, {"statusid": 53, "status": "+13 Laps"}, {"statusid": 54, "status": "Withdrew"}, {"statusid": 55, "status": "+12 Laps"}, {"statusid": 56, "status": "Engine fire"}, {"statusid": 58, "status": "+26 Laps"}, {"statusid": 59, "status": "Tyre puncture"}, {"statusid": 60, "status": "Out of fuel"}, {"statusid": 61, "status": "Wheel nut"}, {"statusid": 62, "status": "Not classified"}, {"statusid": 63, "status": "Pneumatics"}, {"statusid": 64, "status": "Handling"}, {"statusid": 65, "status": "Rear wing"}, {"statusid": 66, "status": "Fire"}, {"statusid": 67, "status": "Wheel bearing"}, {"statusid": 68, "status": "Physical"}, {"statusid": 69, "status": "Fuel system"}, {"statusid": 70, "status": "Oil line"}, {"statusid": 71, "status": "Fuel rig"}, {"statusid": 72, "status": "Launch control"}, {"statusid": 73, "status": "Injured"}, {"statusid": 74, "status": "Fuel"}, {"statusid": 75, "status": "Power loss"}, {"statusid": 76, "status": "Vibrations"}, {"statusid": 77, "status": "107% Rule"}, {"statusid": 78, "status": "Safety"}, {"statusid": 79, "status": "Drivetrain"}, {"statusid": 80, "status": "Ignition"}, {"statusid": 81, "status": "Did not qualify"}, {"statusid": 82, "status": "Injury"}, {"statusid": 83, "status": "Chassis"}, {"statusid": 84, "status": "Battery"}, {"statusid": 85, "status": "Stalled"}, {"statusid": 86, "status": "Halfshaft"}, {"statusid": 87, "status": "Crankshaft"}, {"statusid": 88, "status": "+10 Laps"}, {"statusid": 89, "status": "Safety concerns"}, {"statusid": 90, "status": "Not restarted"}, {"statusid": 91, "status": "Alternator"}, {"statusid": 92, "status": "Underweight"}, {"statusid": 93, "status": "Safety belt"}, {"statusid": 94, "status": "Oil pump"}, {"statusid": 95, "status": "Fuel leak"}, {"statusid": 96, "status": "Excluded"}, {"statusid": 97, "status": "Did not prequalify"}, {"statusid": 98, "status": "Injection"}, {"statusid": 99, "status": "Distributor"}, {"statusid": 100, "status": "Driver unwell"}, {"statusid": 101, "status": "Turbo"}, {"statusid": 102, "status": "CV joint"}, {"statusid": 103, "status": "Water pump"}, {"statusid": 104, "status": "Fatal accident"}, {"statusid": 105, "status": "Spark plugs"}, {"statusid": 106, "status": "Fuel pipe"}, {"statusid": 107, "status": "Eye injury"}, {"statusid": 108, "status": "Oil pipe"}, {"statusid": 109, "status": "Axle"}, {"statusid": 110, "status": "Water pipe"}, {"statusid": 111, "status": "+14 Laps"}, {"statusid": 112, "status": "+15 Laps"}, {"statusid": 113, "status": "+25 Laps"}, {"statusid": 114, "status": "+18 Laps"}, {"statusid": 115, "status": "+22 Laps"}, {"statusid": 116, "status": "+16 Laps"}, {"statusid": 117, "status": "+24 Laps"}, {"statusid": 118, "status": "+29 Laps"}, {"statusid": 119, "status": "+23 Laps"}, {"statusid": 120, "status": "+21 Laps"}, {"statusid": 121, "status": "Magneto"}, {"statusid": 122, "status": "+44 Laps"}, {"statusid": 123, "status": "+30 Laps"}, {"statusid": 124, "status": "+19 Laps"}, {"statusid": 125, "status": "+46 Laps"}, {"statusid": 126, "status": "Supercharger"}, {"statusid": 127, "status": "+20 Laps"}, {"statusid": 128, "status": "+42 Laps"}, {"statusid": 129, "status": "Engine misfire"}, {"statusid": 130, "status": "Collision damage"}, {"statusid": 131, "status": "Power Unit"}, {"statusid": 132, "status": "ERS"}, {"statusid": 133, "status": "+49 Laps"}, {"statusid": 134, "status": "+38 Laps"}, {"statusid": 135, "status": "Brake duct"}, {"statusid": 136, "status": "Seat"}]}, "correct_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(statusid < 16)\n |> select(statusid, status)\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(max_statusid: max(statusid), count: count())\n\nresult = summary\n |> sort_by(max_statusid, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(statusid < 16)\n |> select(statusid, status)\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(max_statusid: max(statusid), count: count())\n\nresult = summary\n |> sort_by(max_statusid, desc)\n |> take(5)\n\nemit result", "expected_output": [{"status": "Finished", "max_statusid": 1, "count": 1}, {"status": "Disqualified", "max_statusid": 2, "count": 1}, {"status": "Accident", "max_statusid": 3, "count": 1}, {"status": "Collision", "max_statusid": 4, "count": 1}, {"status": "Engine", "max_statusid": 5, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 13, "original": "|> sort_by(max_statusid, asc)", "mutated": "|> sort_by(max_statusid, desc)"}], "difficulty": "medium", "domain": "formula_1__status", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "sportsinfo": [{"stuid": 1001, "sportname": "Athletics", "hoursperweek": 2, "gamesplayed": 5, "onscholarship": "N"}, {"stuid": 1002, "sportname": "Football", "hoursperweek": 7, "gamesplayed": 20, "onscholarship": "Y"}, {"stuid": 1003, "sportname": "Football", "hoursperweek": 45, "gamesplayed": 18, "onscholarship": "Y"}, {"stuid": 1005, "sportname": "Lacrosse", "hoursperweek": 35, "gamesplayed": 16, "onscholarship": "N"}, {"stuid": 1015, "sportname": "Lacrosse", "hoursperweek": 25, "gamesplayed": 41, "onscholarship": "Y"}, {"stuid": 1018, "sportname": "Lacrosse", "hoursperweek": 39, "gamesplayed": 25, "onscholarship": "N"}, {"stuid": 1019, "sportname": "Swimming", "hoursperweek": 8, "gamesplayed": 16, "onscholarship": "Y"}, {"stuid": 1019, "sportname": "Tennis", "hoursperweek": 19, "gamesplayed": 62, "onscholarship": "N"}, {"stuid": 1022, "sportname": "Baseball", "hoursperweek": 29, "gamesplayed": 31, "onscholarship": "N"}, {"stuid": 1023, "sportname": "Basketball", "hoursperweek": 14, "gamesplayed": 8, "onscholarship": "Y"}, {"stuid": 1023, "sportname": "Tennis", "hoursperweek": 1, "gamesplayed": 56, "onscholarship": "Y"}, {"stuid": 1026, "sportname": "Cricket", "hoursperweek": 23, "gamesplayed": 37, "onscholarship": "Y"}, {"stuid": 1033, "sportname": "Soccer", "hoursperweek": 45, "gamesplayed": 45, "onscholarship": "Y"}, {"stuid": 1035, "sportname": "Curling", "hoursperweek": 50, "gamesplayed": 94, "onscholarship": "N"}]}, "correct_code": "-- Load game_1__student data\nstudent = load(\"student\")\n |> select(lname, age, fname, major, stuid)\n\nresult = student\n |> sort_by(stuid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load game_1__student data\nstudent = load(\"student\")\n |> select(lname, age, fname, major, stuid)\n\nresult = student\n |> sort_by(stuid, asc)\n |> take(2)\n\nemit result", "expected_output": [{"lname": "Smith", "age": 18, "fname": "Linda", "major": 600, "stuid": 1001}, {"lname": "Kim", "age": 19, "fname": "Tracy", "major": 600, "stuid": 1002}, {"lname": "Jones", "age": 21, "fname": "Shiela", "major": 600, "stuid": 1003}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 2", "line_num": 7, "original": "|> take(3)", "mutated": "|> take(2)"}], "difficulty": "hard", "domain": "game_1__student", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"organisations": [{"organisation_id": 1, "organisation_type": "RES", "organisation_details": "et"}, {"organisation_id": 2, "organisation_type": "RES", "organisation_details": "eius"}, {"organisation_id": 3, "organisation_type": "RES", "organisation_details": "impedit"}, {"organisation_id": 4, "organisation_type": "SPON", "organisation_details": "eos"}, {"organisation_id": 5, "organisation_type": "SPON", "organisation_details": "tenetur"}, {"organisation_id": 6, "organisation_type": "RES", "organisation_details": "dolorem"}, {"organisation_id": 7, "organisation_type": "RES", "organisation_details": "itaque"}, {"organisation_id": 8, "organisation_type": "SPON", "organisation_details": "aperiam"}, {"organisation_id": 9, "organisation_type": "RES", "organisation_details": "a"}, {"organisation_id": 10, "organisation_type": "SPON", "organisation_details": "officiis"}, {"organisation_id": 11, "organisation_type": "SPON", "organisation_details": "eveniet"}, {"organisation_id": 12, "organisation_type": "RES", "organisation_details": "itaque"}, {"organisation_id": 13, "organisation_type": "SPON", "organisation_details": "voluptas"}, {"organisation_id": 14, "organisation_type": "RES", "organisation_details": "quo"}, {"organisation_id": 15, "organisation_type": "SPON", "organisation_details": "consequuntur"}], "organisation_types": [{"organisation_type": "RES", "organisation_type_description": "Research"}, {"organisation_type": "SPON", "organisation_type_description": "Sponsor"}]}, "correct_code": "-- Load tracking_grants_for_research__organisations data\norganisations = load(\"organisations\")\n\nfiltered_organisations = organisations\n |> filter(organisation_details == \"eveniet\")\n\nsummary = filtered_organisations\n |> group_by(organisation_details)\n |> aggregate(max_organisation_id: max(organisation_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__organisations data\norganisations = load(\"organisations\")\n\nfiltered_organisations = organisations\n |> filter(organisation_details == \"eveniet\")\n\nsummary = filtered_organisations\n |> group_by(organisation_details)\n |> aggregate(max_organisation_id: max(organisation_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n take(5)\n\nemit result", "expected_output": [{"organisation_details": "eveniet", "max_organisation_id": 11, "count": 1}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 13, "original": "|> take(5)", "mutated": "take(5)"}], "difficulty": "easy", "domain": "tracking_grants_for_research__organisations", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"things": [{"thing_id": 1, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 2, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 10, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 14, "organization_id": 10, "type_of_thing_code": "Furniture", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 26, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 35, "organization_id": 7, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 45, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 46, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 47, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 58, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 68, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 80, "organization_id": 8, "type_of_thing_code": "Furniture", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 84, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 85, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 92, "organization_id": 7, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}], "customer_events": [{"customer_event_id": 70, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10, "thing_id": 1}, {"customer_event_id": 160, "customer_id": 5, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23, "thing_id": 80}, {"customer_event_id": 166, "customer_id": 16, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28, "thing_id": 14}, {"customer_event_id": 216, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37, "thing_id": 46}, {"customer_event_id": 226, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38, "thing_id": 80}, {"customer_event_id": 256, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43, "thing_id": 2}, {"customer_event_id": 428, "customer_id": 63, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45, "thing_id": 68}, {"customer_event_id": 530, "customer_id": 4, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47, "thing_id": 10}, {"customer_event_id": 559, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58, "thing_id": 1}, {"customer_event_id": 591, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "resident_id": 67, "thing_id": 10}, {"customer_event_id": 606, "customer_id": 31, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "resident_id": 83, "thing_id": 85}, {"customer_event_id": 627, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "resident_id": 87, "thing_id": 92}, {"customer_event_id": 817, "customer_id": 19, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "resident_id": 88, "thing_id": 10}]}, "correct_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n\nfiltered_things = things\n |> filter(service_type_code == \"Cleanning\")\n\nsummary = filtered_things\n |> group_by(service_details)\n |> aggregate(max_thing_id: max(thing_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n\nfiltered_things = things\n |> filter(service_type_code == \"Cleanning\")\n\nsummary = filtered_things\n |> group_by(service_details)\n |> aggregate(service_details: max(thing_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"service_details": "Unsatisfied", "max_thing_id": 85, "count": 3}, {"service_details": "Satisfied", "max_thing_id": 47, "count": 4}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'max_thing_id' \u2192 'thing_id'", "line_num": 9, "original": "|> aggregate(max_thing_id: max(thing_id), count: count())", "mutated": "|> aggregate(thing_id: max(thing_id), count: count())"}, {"category": "wrong_col", "description": "Wrong column reference: 'thing_id' \u2192 'service_details'", "line_num": 9, "original": "|> aggregate(thing_id: max(thing_id), count: count())", "mutated": "|> aggregate(service_details: max(thing_id), count: count())"}], "difficulty": "medium", "domain": "local_govt_and_lot__things", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"countrylanguage": [{"countrycode": "ABW", "language": "Dutch", "isofficial": "T", "percentage": 5.3}, {"countrycode": "ABW", "language": "English", "isofficial": "F", "percentage": 9.5}, {"countrycode": "ABW", "language": "Papiamento", "isofficial": "F", "percentage": 76.7}, {"countrycode": "ABW", "language": "Spanish", "isofficial": "F", "percentage": 7.4}, {"countrycode": "AFG", "language": "Balochi", "isofficial": "F", "percentage": 0.9}, {"countrycode": "AFG", "language": "Dari", "isofficial": "T", "percentage": 32.1}, {"countrycode": "AFG", "language": "Pashto", "isofficial": "T", "percentage": 52.4}, {"countrycode": "AFG", "language": "Turkmenian", "isofficial": "F", "percentage": 1.9}, {"countrycode": "AFG", "language": "Uzbek", "isofficial": "F", "percentage": 8.8}, {"countrycode": "AGO", "language": "Ambo", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Chokwe", "isofficial": "F", "percentage": 4.2}, {"countrycode": "AGO", "language": "Kongo", "isofficial": "F", "percentage": 13.2}, {"countrycode": "AGO", "language": "Luchazi", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Luimbe-nganguela", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Luvale", "isofficial": "F", "percentage": 3.6}, {"countrycode": "AGO", "language": "Mbundu", "isofficial": "F", "percentage": 21.6}, {"countrycode": "AGO", "language": "Nyaneka-nkhumbi", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Ovimbundu", "isofficial": "F", "percentage": 37.2}, {"countrycode": "AIA", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ALB", "language": "Albaniana", "isofficial": "T", "percentage": 97.9}, {"countrycode": "ALB", "language": "Greek", "isofficial": "F", "percentage": 1.8}, {"countrycode": "ALB", "language": "Macedonian", "isofficial": "F", "percentage": 0.1}, {"countrycode": "AND", "language": "Catalan", "isofficial": "T", "percentage": 32.3}, {"countrycode": "AND", "language": "French", "isofficial": "F", "percentage": 6.2}, {"countrycode": "AND", "language": "Portuguese", "isofficial": "F", "percentage": 10.8}, {"countrycode": "AND", "language": "Spanish", "isofficial": "F", "percentage": 44.6}, {"countrycode": "ANT", "language": "Dutch", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ANT", "language": "English", "isofficial": "F", "percentage": 7.8}, {"countrycode": "ANT", "language": "Papiamento", "isofficial": "T", "percentage": 86.2}, {"countrycode": "ARE", "language": "Arabic", "isofficial": "T", "percentage": 42.0}, {"countrycode": "ARE", "language": "Hindi", "isofficial": "F", "percentage": 0.0}, {"countrycode": "ARG", "language": "Indian Languages", "isofficial": "F", "percentage": 0.3}, {"countrycode": "ARG", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "ARG", "language": "Spanish", "isofficial": "T", "percentage": 96.8}, {"countrycode": "ARM", "language": "Armenian", "isofficial": "T", "percentage": 93.4}, {"countrycode": "ARM", "language": "Azerbaijani", "isofficial": "F", "percentage": 2.6}, {"countrycode": "ASM", "language": "English", "isofficial": "T", "percentage": 3.1}, {"countrycode": "ASM", "language": "Samoan", "isofficial": "T", "percentage": 90.6}, {"countrycode": "ASM", "language": "Tongan", "isofficial": "F", "percentage": 3.1}, {"countrycode": "ATG", "language": "Creole English", "isofficial": "F", "percentage": 95.7}, {"countrycode": "ATG", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "AUS", "language": "Arabic", "isofficial": "F", "percentage": 1.0}, {"countrycode": "AUS", "language": "Canton Chinese", "isofficial": "F", "percentage": 1.1}, {"countrycode": "AUS", "language": "English", "isofficial": "T", "percentage": 81.2}, {"countrycode": "AUS", "language": "German", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Greek", "isofficial": "F", "percentage": 1.6}, {"countrycode": "AUS", "language": "Italian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUS", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Vietnamese", "isofficial": "F", "percentage": 0.8}, {"countrycode": "AUT", "language": "Czech", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "German", "isofficial": "T", "percentage": 92.0}, {"countrycode": "AUT", "language": "Hungarian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Polish", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Romanian", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUT", "language": "Slovene", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Turkish", "isofficial": "F", "percentage": 1.5}, {"countrycode": "AZE", "language": "Armenian", "isofficial": "F", "percentage": 2.0}, {"countrycode": "AZE", "language": "Azerbaijani", "isofficial": "T", "percentage": 89.0}, {"countrycode": "AZE", "language": "Lezgian", "isofficial": "F", "percentage": 2.3}, {"countrycode": "AZE", "language": "Russian", "isofficial": "F", "percentage": 3.0}, {"countrycode": "BDI", "language": "French", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BDI", "language": "Kirundi", "isofficial": "T", "percentage": 98.1}, {"countrycode": "BDI", "language": "Swahili", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BEL", "language": "Arabic", "isofficial": "F", "percentage": 1.6}, {"countrycode": "BEL", "language": "Dutch", "isofficial": "T", "percentage": 59.2}, {"countrycode": "BEL", "language": "French", "isofficial": "T", "percentage": 32.6}, {"countrycode": "BEL", "language": "German", "isofficial": "T", "percentage": 1.0}, {"countrycode": "BEL", "language": "Italian", "isofficial": "F", "percentage": 2.4}, {"countrycode": "BEL", "language": "Turkish", "isofficial": "F", "percentage": 0.9}, {"countrycode": "BEN", "language": "Adja", "isofficial": "F", "percentage": 11.1}, {"countrycode": "BEN", "language": "Aizo", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Bariba", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Fon", "isofficial": "F", "percentage": 39.8}, {"countrycode": "BEN", "language": "Ful", "isofficial": "F", "percentage": 5.6}, {"countrycode": "BEN", "language": "Joruba", "isofficial": "F", "percentage": 12.2}, {"countrycode": "BEN", "language": "Somba", "isofficial": "F", "percentage": 6.7}, {"countrycode": "BFA", "language": "Busansi", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BFA", "language": "Dagara", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BFA", "language": "Dyula", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BFA", "language": "Ful", "isofficial": "F", "percentage": 9.7}, {"countrycode": "BFA", "language": "Gurma", "isofficial": "F", "percentage": 5.7}, {"countrycode": "BFA", "language": "Mossi", "isofficial": "F", "percentage": 50.2}, {"countrycode": "BGD", "language": "Bengali", "isofficial": "T", "percentage": 97.7}, {"countrycode": "BGD", "language": "Chakma", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BGD", "language": "Garo", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Khasi", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Marma", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BGD", "language": "Santhali", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Tripuri", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGR", "language": "Bulgariana", "isofficial": "T", "percentage": 83.2}, {"countrycode": "BGR", "language": "Macedonian", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BGR", "language": "Romani", "isofficial": "F", "percentage": 3.7}, {"countrycode": "BGR", "language": "Turkish", "isofficial": "F", "percentage": 9.4}, {"countrycode": "BHR", "language": "Arabic", "isofficial": "T", "percentage": 67.7}, {"countrycode": "BHR", "language": "English", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BHS", "language": "Creole English", "isofficial": "F", "percentage": 89.7}, {"countrycode": "BHS", "language": "Creole French", "isofficial": "F", "percentage": 10.3}, {"countrycode": "BIH", "language": "Serbo-Croatian", "isofficial": "T", "percentage": 99.2}, {"countrycode": "BLR", "language": "Belorussian", "isofficial": "T", "percentage": 65.6}, {"countrycode": "BLR", "language": "Polish", "isofficial": "F", "percentage": 0.6}, {"countrycode": "BLR", "language": "Russian", "isofficial": "T", "percentage": 32.0}, {"countrycode": "BLR", "language": "Ukrainian", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BLZ", "language": "English", "isofficial": "T", "percentage": 50.8}, {"countrycode": "BLZ", "language": "Garifuna", "isofficial": "F", "percentage": 6.8}, {"countrycode": "BLZ", "language": "Maya Languages", "isofficial": "F", "percentage": 9.6}, {"countrycode": "BLZ", "language": "Spanish", "isofficial": "F", "percentage": 31.6}, {"countrycode": "BMU", "language": "English", "isofficial": "T", "percentage": 100.0}, {"countrycode": "BOL", "language": "Aimar\u00e1", "isofficial": "T", "percentage": 3.2}, {"countrycode": "BOL", "language": "Guaran\u00ed", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BOL", "language": "Ket\u0161ua", "isofficial": "T", "percentage": 8.1}, {"countrycode": "BOL", "language": "Spanish", "isofficial": "T", "percentage": 87.7}, {"countrycode": "BRA", "language": "German", "isofficial": "F", "percentage": 0.5}, {"countrycode": "BRA", "language": "Indian Languages", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BRA", "language": "Italian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Japanese", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Portuguese", "isofficial": "T", "percentage": 97.5}, {"countrycode": "BRB", "language": "Bajan", "isofficial": "F", "percentage": 95.1}, {"countrycode": "BRB", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BRN", "language": "Chinese", "isofficial": "F", "percentage": 9.3}, {"countrycode": "BRN", "language": "English", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BRN", "language": "Malay", "isofficial": "T", "percentage": 45.5}, {"countrycode": "BRN", "language": "Malay-English", "isofficial": "F", "percentage": 28.8}, {"countrycode": "BTN", "language": "Asami", "isofficial": "F", "percentage": 15.2}, {"countrycode": "BTN", "language": "Dzongkha", "isofficial": "T", "percentage": 50.0}, {"countrycode": "BTN", "language": "Nepali", "isofficial": "F", "percentage": 34.8}, {"countrycode": "BWA", "language": "Khoekhoe", "isofficial": "F", "percentage": 2.5}, {"countrycode": "BWA", "language": "Ndebele", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BWA", "language": "San", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BWA", "language": "Shona", "isofficial": "F", "percentage": 12.3}, {"countrycode": "BWA", "language": "Tswana", "isofficial": "F", "percentage": 75.5}, {"countrycode": "CAF", "language": "Banda", "isofficial": "F", "percentage": 23.5}, {"countrycode": "CAF", "language": "Gbaya", "isofficial": "F", "percentage": 23.8}, {"countrycode": "CAF", "language": "Mandjia", "isofficial": "F", "percentage": 14.8}, {"countrycode": "CAF", "language": "Mbum", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAF", "language": "Ngbaka", "isofficial": "F", "percentage": 7.5}, {"countrycode": "CAF", "language": "Sara", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAN", "language": "Chinese", "isofficial": "F", "percentage": 2.5}, {"countrycode": "CAN", "language": "Dutch", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CAN", "language": "English", "isofficial": "T", "percentage": 60.4}, {"countrycode": "CAN", "language": "Eskimo Languages", "isofficial": "F", "percentage": 0.1}, {"countrycode": "CAN", "language": "French", "isofficial": "T", "percentage": 23.4}, {"countrycode": "CAN", "language": "German", "isofficial": "F", "percentage": 1.6}, {"countrycode": "CAN", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "CAN", "language": "Polish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Portuguese", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Punjabi", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Spanish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Ukrainian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CCK", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "CCK", "language": "Malay", "isofficial": "F", "percentage": 0.0}, {"countrycode": "CHE", "language": "French", "isofficial": "T", "percentage": 19.2}, {"countrycode": "CHE", "language": "German", "isofficial": "T", "percentage": 63.6}, {"countrycode": "CHE", "language": "Italian", "isofficial": "T", "percentage": 7.7}, {"countrycode": "CHE", "language": "Romansh", "isofficial": "T", "percentage": 0.6}, {"countrycode": "CHL", "language": "Aimar\u00e1", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHL", "language": "Araucan", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CHL", "language": "Rapa nui", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHL", "language": "Spanish", "isofficial": "T", "percentage": 89.7}, {"countrycode": "CHN", "language": "Chinese", "isofficial": "T", "percentage": 92.0}, {"countrycode": "CHN", "language": "Dong", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Hui", "isofficial": "F", "percentage": 0.8}, {"countrycode": "CHN", "language": "Mant\u0161u", "isofficial": "F", "percentage": 0.9}, {"countrycode": "CHN", "language": "Miao", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CHN", "language": "Mongolian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Puyi", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Tibetan", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Tujia", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHN", "language": "Uighur", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Yi", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Zhuang", "isofficial": "F", "percentage": 1.4}, {"countrycode": "CIV", "language": "Akan", "isofficial": "F", "percentage": 30.0}, {"countrycode": "CIV", "language": "Gur", "isofficial": "F", "percentage": 11.7}, {"countrycode": "CIV", "language": "Kru", "isofficial": "F", "percentage": 10.5}, {"countrycode": "CIV", "language": "Malinke", "isofficial": "F", "percentage": 11.4}, {"countrycode": "CIV", "language": "[South]Mande", "isofficial": "F", "percentage": 7.7}, {"countrycode": "CMR", "language": "Bamileke-bamum", "isofficial": "F", "percentage": 18.6}, {"countrycode": "CMR", "language": "Duala", "isofficial": "F", "percentage": 10.9}, {"countrycode": "CMR", "language": "Fang", "isofficial": "F", "percentage": 19.7}, {"countrycode": "CMR", "language": "Ful", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CMR", "language": "Maka", "isofficial": "F", "percentage": 4.9}, {"countrycode": "CMR", "language": "Mandara", "isofficial": "F", "percentage": 5.7}, {"countrycode": "CMR", "language": "Masana", "isofficial": "F", "percentage": 3.9}, {"countrycode": "CMR", "language": "Tikar", "isofficial": "F", "percentage": 7.4}, {"countrycode": "COD", "language": "Boa", "isofficial": "F", "percentage": 2.3}, {"countrycode": "COD", "language": "Chokwe", "isofficial": "F", "percentage": 1.8}, {"countrycode": "COD", "language": "Kongo", "isofficial": "F", "percentage": 16.0}, {"countrycode": "COD", "language": "Luba", "isofficial": "F", "percentage": 18.0}, {"countrycode": "COD", "language": "Mongo", "isofficial": "F", "percentage": 13.5}, {"countrycode": "COD", "language": "Ngala and Bangi", "isofficial": "F", "percentage": 5.8}, {"countrycode": "COD", "language": "Rundi", "isofficial": "F", "percentage": 3.8}, {"countrycode": "COD", "language": "Rwanda", "isofficial": "F", "percentage": 10.3}, {"countrycode": "COD", "language": "Teke", "isofficial": "F", "percentage": 2.7}, {"countrycode": "COD", "language": "Zande", "isofficial": "F", "percentage": 6.1}, {"countrycode": "COG", "language": "Kongo", "isofficial": "F", "percentage": 51.5}, {"countrycode": "COG", "language": "Mbete", "isofficial": "F", "percentage": 4.8}, {"countrycode": "COG", "language": "Mboshi", "isofficial": "F", "percentage": 11.4}, {"countrycode": "COG", "language": "Punu", "isofficial": "F", "percentage": 2.9}, {"countrycode": "COG", "language": "Sango", "isofficial": "F", "percentage": 2.6}, {"countrycode": "COG", "language": "Teke", "isofficial": "F", "percentage": 17.3}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(isofficial == \"T\")\n\nsummary = filtered_countrylanguage\n |> group_by(countrycode)\n |> aggregate(min_percentage: min(percentage), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n |> select(code, lifeexpectancy, capital)\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(percentage == \"T\")\n\nsummary = filtered_countrylanguage\n |> group_by(countrycode)\n |> aggregate(min_percentage: min(percentage), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n |> select(code, lifeexpectancy, capital)\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"countrycode": "ABW", "min_percentage": 5.3, "count": 1, "code": "ABW", "lifeexpectancy": 78.4, "capital": 129}, {"countrycode": "AIA", "min_percentage": 0.0, "count": 1, "code": "AIA", "lifeexpectancy": 76.1, "capital": 62}, {"countrycode": "ALB", "min_percentage": 97.9, "count": 1, "code": "ALB", "lifeexpectancy": 71.6, "capital": 34}, {"countrycode": "AND", "min_percentage": 32.3, "count": 1, "code": "AND", "lifeexpectancy": 83.5, "capital": 55}, {"countrycode": "ARE", "min_percentage": 42.0, "count": 1, "code": "ARE", "lifeexpectancy": 74.1, "capital": 65}, {"countrycode": "ARG", "min_percentage": 96.8, "count": 1, "code": "ARG", "lifeexpectancy": 75.1, "capital": 69}, {"countrycode": "ARM", "min_percentage": 93.4, "count": 1, "code": "ARM", "lifeexpectancy": 66.4, "capital": 126}, {"countrycode": "ATG", "min_percentage": 0.0, "count": 1, "code": "ATG", "lifeexpectancy": 70.5, "capital": 63}, {"countrycode": "AUS", "min_percentage": 81.2, "count": 1, "code": "AUS", "lifeexpectancy": 79.8, "capital": 135}, {"countrycode": "AUT", "min_percentage": 92.0, "count": 1, "code": "AUT", "lifeexpectancy": 77.7, "capital": 1523}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'isofficial' \u2192 'percentage'", "line_num": 5, "original": "|> filter(isofficial == \"T\")", "mutated": "|> filter(percentage == \"T\")"}], "difficulty": "medium", "domain": "world_1__countrylanguage", "num_nodes": 6, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"constructorstandings": [{"constructorstandingsid": 1, "raceid": 18, "constructorid": 1, "points": 14.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 2, "raceid": 18, "constructorid": 2, "points": 8.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 3, "raceid": 18, "constructorid": 3, "points": 9.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 4, "raceid": 18, "constructorid": 4, "points": 5.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 5, "raceid": 18, "constructorid": 5, "points": 2.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 6, "raceid": 18, "constructorid": 6, "points": 1.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 7, "raceid": 19, "constructorid": 1, "points": 24.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 8, "raceid": 19, "constructorid": 2, "points": 19.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 9, "raceid": 19, "constructorid": 3, "points": 9.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 10, "raceid": 19, "constructorid": 4, "points": 6.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 11, "raceid": 19, "constructorid": 5, "points": 2.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 12, "raceid": 19, "constructorid": 6, "points": 11.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 13, "raceid": 19, "constructorid": 7, "points": 5.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 14, "raceid": 19, "constructorid": 9, "points": 2.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 15, "raceid": 19, "constructorid": 11, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 16, "raceid": 19, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 17, "raceid": 19, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 18, "raceid": 20, "constructorid": 1, "points": 28.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 19, "raceid": 20, "constructorid": 2, "points": 30.0, "position": 1, "positiontext": "1", "wins": 0}, {"constructorstandingsid": 20, "raceid": 20, "constructorid": 3, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 21, "raceid": 20, "constructorid": 4, "points": 6.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 22, "raceid": 20, "constructorid": 5, "points": 2.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 23, "raceid": 20, "constructorid": 6, "points": 29.0, "position": 2, "positiontext": "2", "wins": 2}, {"constructorstandingsid": 24, "raceid": 20, "constructorid": 7, "points": 8.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 25, "raceid": 20, "constructorid": 9, "points": 4.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 26, "raceid": 20, "constructorid": 11, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 27, "raceid": 20, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 28, "raceid": 20, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 29, "raceid": 21, "constructorid": 1, "points": 34.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 30, "raceid": 21, "constructorid": 2, "points": 35.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 31, "raceid": 21, "constructorid": 3, "points": 12.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 32, "raceid": 21, "constructorid": 4, "points": 6.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 33, "raceid": 21, "constructorid": 5, "points": 2.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 34, "raceid": 21, "constructorid": 6, "points": 47.0, "position": 1, "positiontext": "1", "wins": 3}, {"constructorstandingsid": 35, "raceid": 21, "constructorid": 7, "points": 9.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 36, "raceid": 21, "constructorid": 9, "points": 8.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 37, "raceid": 21, "constructorid": 11, "points": 3.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 38, "raceid": 21, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 39, "raceid": 21, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 40, "raceid": 22, "constructorid": 1, "points": 42.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 41, "raceid": 22, "constructorid": 2, "points": 44.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 42, "raceid": 22, "constructorid": 3, "points": 13.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 43, "raceid": 22, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 44, "raceid": 22, "constructorid": 5, "points": 2.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 45, "raceid": 22, "constructorid": 6, "points": 63.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 46, "raceid": 22, "constructorid": 7, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 47, "raceid": 22, "constructorid": 9, "points": 10.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 48, "raceid": 22, "constructorid": 11, "points": 3.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 49, "raceid": 22, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 50, "raceid": 22, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 51, "raceid": 23, "constructorid": 1, "points": 53.0, "position": 2, "positiontext": "2", "wins": 2}, {"constructorstandingsid": 52, "raceid": 23, "constructorid": 2, "points": 52.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 53, "raceid": 23, "constructorid": 3, "points": 15.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 54, "raceid": 23, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 55, "raceid": 23, "constructorid": 5, "points": 6.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 56, "raceid": 23, "constructorid": 6, "points": 69.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 57, "raceid": 23, "constructorid": 7, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 58, "raceid": 23, "constructorid": 9, "points": 15.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 59, "raceid": 23, "constructorid": 11, "points": 6.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 60, "raceid": 23, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 61, "raceid": 23, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 62, "raceid": 24, "constructorid": 1, "points": 53.0, "position": 3, "positiontext": "3", "wins": 2}, {"constructorstandingsid": 63, "raceid": 24, "constructorid": 2, "points": 70.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 64, "raceid": 24, "constructorid": 3, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 65, "raceid": 24, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 66, "raceid": 24, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 67, "raceid": 24, "constructorid": 6, "points": 73.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 68, "raceid": 24, "constructorid": 7, "points": 17.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 69, "raceid": 24, "constructorid": 9, "points": 21.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 70, "raceid": 24, "constructorid": 11, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 71, "raceid": 24, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 72, "raceid": 24, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 73, "raceid": 25, "constructorid": 1, "points": 58.0, "position": 3, "positiontext": "3", "wins": 2}, {"constructorstandingsid": 74, "raceid": 25, "constructorid": 2, "points": 74.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 75, "raceid": 25, "constructorid": 3, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 76, "raceid": 25, "constructorid": 4, "points": 12.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 77, "raceid": 25, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 78, "raceid": 25, "constructorid": 6, "points": 91.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 79, "raceid": 25, "constructorid": 7, "points": 23.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 80, "raceid": 25, "constructorid": 9, "points": 24.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 81, "raceid": 25, "constructorid": 11, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 82, "raceid": 25, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 83, "raceid": 25, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 84, "raceid": 26, "constructorid": 1, "points": 72.0, "position": 3, "positiontext": "3", "wins": 3}, {"constructorstandingsid": 85, "raceid": 26, "constructorid": 2, "points": 82.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 86, "raceid": 26, "constructorid": 3, "points": 16.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 87, "raceid": 26, "constructorid": 4, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 88, "raceid": 26, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 89, "raceid": 26, "constructorid": 6, "points": 96.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 90, "raceid": 26, "constructorid": 7, "points": 25.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 91, "raceid": 26, "constructorid": 9, "points": 24.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 92, "raceid": 26, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 93, "raceid": 26, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 94, "raceid": 26, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 95, "raceid": 27, "constructorid": 1, "points": 86.0, "position": 3, "positiontext": "3", "wins": 4}, {"constructorstandingsid": 96, "raceid": 27, "constructorid": 2, "points": 89.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 97, "raceid": 27, "constructorid": 3, "points": 16.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 98, "raceid": 27, "constructorid": 4, "points": 23.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 99, "raceid": 27, "constructorid": 5, "points": 8.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 100, "raceid": 27, "constructorid": 6, "points": 105.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 101, "raceid": 27, "constructorid": 7, "points": 25.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 102, "raceid": 27, "constructorid": 9, "points": 24.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 103, "raceid": 27, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 104, "raceid": 27, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 105, "raceid": 27, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 106, "raceid": 28, "constructorid": 1, "points": 100.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 107, "raceid": 28, "constructorid": 2, "points": 90.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 108, "raceid": 28, "constructorid": 3, "points": 16.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 109, "raceid": 28, "constructorid": 4, "points": 31.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 110, "raceid": 28, "constructorid": 5, "points": 8.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 111, "raceid": 28, "constructorid": 6, "points": 111.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 112, "raceid": 28, "constructorid": 7, "points": 35.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 113, "raceid": 28, "constructorid": 9, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 114, "raceid": 28, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 115, "raceid": 28, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 116, "raceid": 28, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 117, "raceid": 29, "constructorid": 1, "points": 113.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 118, "raceid": 29, "constructorid": 2, "points": 96.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 119, "raceid": 29, "constructorid": 3, "points": 17.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 120, "raceid": 29, "constructorid": 4, "points": 31.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 121, "raceid": 29, "constructorid": 5, "points": 11.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 122, "raceid": 29, "constructorid": 6, "points": 121.0, "position": 1, "positiontext": "1", "wins": 6}, {"constructorstandingsid": 123, "raceid": 29, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 124, "raceid": 29, "constructorid": 9, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 125, "raceid": 29, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 126, "raceid": 29, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 127, "raceid": 29, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 128, "raceid": 30, "constructorid": 1, "points": 119.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 129, "raceid": 30, "constructorid": 2, "points": 107.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 130, "raceid": 30, "constructorid": 3, "points": 17.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 131, "raceid": 30, "constructorid": 4, "points": 36.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 132, "raceid": 30, "constructorid": 5, "points": 17.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 133, "raceid": 30, "constructorid": 6, "points": 131.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 134, "raceid": 30, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 135, "raceid": 30, "constructorid": 9, "points": 25.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 136, "raceid": 30, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 137, "raceid": 30, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 138, "raceid": 30, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 139, "raceid": 31, "constructorid": 1, "points": 129.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 140, "raceid": 31, "constructorid": 2, "points": 117.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 141, "raceid": 31, "constructorid": 3, "points": 17.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 142, "raceid": 31, "constructorid": 4, "points": 41.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 143, "raceid": 31, "constructorid": 5, "points": 27.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 144, "raceid": 31, "constructorid": 6, "points": 134.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 145, "raceid": 31, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 146, "raceid": 31, "constructorid": 9, "points": 26.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 147, "raceid": 31, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 148, "raceid": 31, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 149, "raceid": 31, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 150, "raceid": 32, "constructorid": 1, "points": 135.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 151, "raceid": 32, "constructorid": 2, "points": 120.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 152, "raceid": 32, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 153, "raceid": 32, "constructorid": 4, "points": 51.0, "position": 4, "positiontext": "4", "wins": 1}, {"constructorstandingsid": 154, "raceid": 32, "constructorid": 5, "points": 31.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 155, "raceid": 32, "constructorid": 6, "points": 134.0, "position": 2, "positiontext": "2", "wins": 7}, {"constructorstandingsid": 156, "raceid": 32, "constructorid": 7, "points": 46.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 157, "raceid": 32, "constructorid": 9, "points": 28.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 158, "raceid": 32, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 159, "raceid": 32, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 160, "raceid": 32, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 161, "raceid": 33, "constructorid": 1, "points": 135.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 162, "raceid": 33, "constructorid": 2, "points": 128.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 163, "raceid": 33, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 164, "raceid": 33, "constructorid": 4, "points": 66.0, "position": 4, "positiontext": "4", "wins": 2}, {"constructorstandingsid": 165, "raceid": 33, "constructorid": 5, "points": 34.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 166, "raceid": 33, "constructorid": 6, "points": 142.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 167, "raceid": 33, "constructorid": 7, "points": 50.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 168, "raceid": 33, "constructorid": 9, "points": 29.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 169, "raceid": 33, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 170, "raceid": 33, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 171, "raceid": 33, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 183, "raceid": 35, "constructorid": 1, "points": 151.0, "position": 2, "positiontext": "2", "wins": 6}, {"constructorstandingsid": 184, "raceid": 35, "constructorid": 2, "points": 135.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 185, "raceid": 35, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 186, "raceid": 35, "constructorid": 4, "points": 80.0, "position": 4, "positiontext": "4", "wins": 2}, {"constructorstandingsid": 187, "raceid": 35, "constructorid": 5, "points": 39.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 188, "raceid": 35, "constructorid": 6, "points": 172.0, "position": 1, "positiontext": "1", "wins": 8}, {"constructorstandingsid": 189, "raceid": 35, "constructorid": 7, "points": 56.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 190, "raceid": 35, "constructorid": 9, "points": 29.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 191, "raceid": 35, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 192, "raceid": 35, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 193, "raceid": 35, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 567, "raceid": 71, "constructorid": 4, "points": 16.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 568, "raceid": 71, "constructorid": 6, "points": 8.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 569, "raceid": 71, "constructorid": 9, "points": 7.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 570, "raceid": 71, "constructorid": 3, "points": 4.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 571, "raceid": 71, "constructorid": 1, "points": 4.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 572, "raceid": 71, "constructorid": 7, "points": 0.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 573, "raceid": 71, "constructorid": 15, "points": 0.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 574, "raceid": 71, "constructorid": 17, "points": 0.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 575, "raceid": 71, "constructorid": 18, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 576, "raceid": 72, "constructorid": 4, "points": 26.0, "position": 1, "positiontext": "1", "wins": 2}, {"constructorstandingsid": 577, "raceid": 72, "constructorid": 6, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 578, "raceid": 72, "constructorid": 9, "points": 11.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 579, "raceid": 72, "constructorid": 3, "points": 10.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 580, "raceid": 72, "constructorid": 1, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 581, "raceid": 72, "constructorid": 7, "points": 12.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 582, "raceid": 72, "constructorid": 15, "points": 0.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 583, "raceid": 72, "constructorid": 17, "points": 0.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 584, "raceid": 72, "constructorid": 18, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}], "constructors": [{"constructorid": 1, "constructorref": "mclaren", "name": "McLaren", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren"}, {"constructorid": 2, "constructorref": "bmw_sauber", "name": "BMW Sauber", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW_Sauber"}, {"constructorid": 3, "constructorref": "williams", "name": "Williams", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering"}, {"constructorid": 4, "constructorref": "renault", "name": "Renault", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Renault_F1"}, {"constructorid": 5, "constructorref": "toro_rosso", "name": "Toro Rosso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Toro_Rosso"}, {"constructorid": 6, "constructorref": "ferrari", "name": "Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Ferrari"}, {"constructorid": 7, "constructorref": "toyota", "name": "Toyota", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Toyota_Racing"}, {"constructorid": 8, "constructorref": "super_aguri", "name": "Super Aguri", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Super_Aguri_F1"}, {"constructorid": 9, "constructorref": "red_bull", "name": "Red Bull", "nationality": "Austrian", "url": "http://en.wikipedia.org/wiki/Red_Bull_Racing"}, {"constructorid": 10, "constructorref": "force_india", "name": "Force India", "nationality": "Indian", "url": "http://en.wikipedia.org/wiki/Force_India"}, {"constructorid": 11, "constructorref": "honda", "name": "Honda", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Honda_Racing_F1"}, {"constructorid": 12, "constructorref": "spyker", "name": "Spyker", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Spyker_F1"}, {"constructorid": 13, "constructorref": "mf1", "name": "MF1", "nationality": "Russian", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 14, "constructorref": "spyker_mf1", "name": "Spyker MF1", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 15, "constructorref": "sauber", "name": "Sauber", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Sauber"}, {"constructorid": 16, "constructorref": "bar", "name": "BAR", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_American_Racing"}, {"constructorid": 17, "constructorref": "jordan", "name": "Jordan", "nationality": "Irish", "url": "http://en.wikipedia.org/wiki/Jordan_Grand_Prix"}, {"constructorid": 18, "constructorref": "minardi", "name": "Minardi", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Minardi"}, {"constructorid": 19, "constructorref": "jaguar", "name": "Jaguar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Jaguar_Racing"}, {"constructorid": 20, "constructorref": "prost", "name": "Prost", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Prost_Grand_Prix"}, {"constructorid": 21, "constructorref": "arrows", "name": "Arrows", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Arrows_Grand_Prix_International"}, {"constructorid": 22, "constructorref": "benetton", "name": "Benetton", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Benetton_Formula"}, {"constructorid": 23, "constructorref": "brawn", "name": "Brawn", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brawn_GP"}, {"constructorid": 24, "constructorref": "stewart", "name": "Stewart", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Stewart_Grand_Prix"}, {"constructorid": 25, "constructorref": "tyrrell", "name": "Tyrrell", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Tyrrell_Racing"}, {"constructorid": 26, "constructorref": "lola", "name": "Lola", "nationality": "British", "url": "http://en.wikipedia.org/wiki/MasterCard_Lola"}, {"constructorid": 27, "constructorref": "ligier", "name": "Ligier", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Ligier"}, {"constructorid": 28, "constructorref": "forti", "name": "Forti", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Forti"}, {"constructorid": 29, "constructorref": "footwork", "name": "Footwork", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Footwork_Arrows"}, {"constructorid": 30, "constructorref": "pacific", "name": "Pacific", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Pacific_Racing"}, {"constructorid": 31, "constructorref": "simtek", "name": "Simtek", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Simtek"}, {"constructorid": 32, "constructorref": "team_lotus", "name": "Team Lotus", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 33, "constructorref": "larrousse", "name": "Larrousse", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Larrousse"}, {"constructorid": 34, "constructorref": "brabham", "name": "Brabham", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 35, "constructorref": "dallara", "name": "Dallara", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Dallara"}, {"constructorid": 36, "constructorref": "fondmetal", "name": "Fondmetal", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Fondmetal"}, {"constructorid": 37, "constructorref": "march", "name": "March", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 38, "constructorref": "moda", "name": "Andrea Moda", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Andrea_Moda_Formula"}, {"constructorid": 39, "constructorref": "ags", "name": "AGS", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Automobiles_Gonfaronnaises_Sportives"}, {"constructorid": 40, "constructorref": "lambo", "name": "Lambo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Modena_(racing_team)"}, {"constructorid": 41, "constructorref": "leyton", "name": "Leyton House", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Leyton_House"}, {"constructorid": 42, "constructorref": "coloni", "name": "Coloni", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Enzo_Coloni_Racing_Car_Systems"}, {"constructorid": 44, "constructorref": "eurobrun", "name": "Euro Brun", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Euro_Brun"}, {"constructorid": 45, "constructorref": "osella", "name": "Osella", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Osella"}, {"constructorid": 46, "constructorref": "onyx", "name": "Onyx", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Onyx_(racing_team)"}, {"constructorid": 47, "constructorref": "life", "name": "Life", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Life_(Racing_Team)"}, {"constructorid": 48, "constructorref": "rial", "name": "Rial", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Rial_%28racing_team%29"}, {"constructorid": 49, "constructorref": "zakspeed", "name": "Zakspeed", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Zakspeed"}, {"constructorid": 50, "constructorref": "ram", "name": "RAM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/RAM_Racing"}, {"constructorid": 51, "constructorref": "alfa", "name": "Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Alfa_Romeo_(Formula_One)"}, {"constructorid": 52, "constructorref": "spirit", "name": "Spirit", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Spirit_(racing_team)"}, {"constructorid": 53, "constructorref": "toleman", "name": "Toleman", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Toleman"}, {"constructorid": 54, "constructorref": "ats", "name": "ATS", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/ATS_(wheels)"}, {"constructorid": 55, "constructorref": "theodore", "name": "Theodore", "nationality": "Hong Kong", "url": "http://en.wikipedia.org/wiki/Theodore_Racing"}, {"constructorid": 56, "constructorref": "fittipaldi", "name": "Fittipaldi", "nationality": "Brazilian", "url": "http://en.wikipedia.org/wiki/Fittipaldi_%28constructor%29"}, {"constructorid": 57, "constructorref": "ensign", "name": "Ensign", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ensign_%28racing_team%29"}, {"constructorid": 58, "constructorref": "shadow", "name": "Shadow", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}, {"constructorid": 59, "constructorref": "wolf", "name": "Wolf", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Walter_Wolf_Racing"}, {"constructorid": 60, "constructorref": "merzario", "name": "Merzario", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Merzario"}, {"constructorid": 61, "constructorref": "kauhsen", "name": "Kauhsen", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Kauhsen"}, {"constructorid": 62, "constructorref": "rebaque", "name": "Rebaque", "nationality": "Mexican", "url": "http://en.wikipedia.org/wiki/Rebaque"}, {"constructorid": 63, "constructorref": "surtees", "name": "Surtees", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Surtees"}, {"constructorid": 64, "constructorref": "hesketh", "name": "Hesketh", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hesketh_Racing"}, {"constructorid": 65, "constructorref": "martini", "name": "Martini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Martini_(cars)"}, {"constructorid": 66, "constructorref": "brm", "name": "BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 67, "constructorref": "penske", "name": "Penske", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Penske_Racing"}, {"constructorid": 68, "constructorref": "lec", "name": "LEC", "nationality": "British", "url": "http://en.wikipedia.org/wiki/LEC_(Formula_One)"}, {"constructorid": 69, "constructorref": "mcguire", "name": "McGuire", "nationality": "Australian", "url": "http://en.wikipedia.org/wiki/McGuire_(Formula_One)"}, {"constructorid": 70, "constructorref": "boro", "name": "Boro", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Boro_(Formula_One)"}, {"constructorid": 71, "constructorref": "apollon", "name": "Apollon", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Apollon_(Formula_One)"}, {"constructorid": 72, "constructorref": "kojima", "name": "Kojima", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Kojima_Engineering"}, {"constructorid": 73, "constructorref": "parnelli", "name": "Parnelli", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Parnelli"}, {"constructorid": 74, "constructorref": "maki", "name": "Maki", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Maki_(cars)"}, {"constructorid": 75, "constructorref": "hill", "name": "Embassy Hill", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hill_(constructor)"}, {"constructorid": 76, "constructorref": "lyncar", "name": "Lyncar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Lyncar"}, {"constructorid": 77, "constructorref": "trojan", "name": "Trojan", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Trojan_(Racing_team)"}, {"constructorid": 78, "constructorref": "amon", "name": "Amon", "nationality": "New Zealand", "url": "http://en.wikipedia.org/wiki/Amon_(Formula_One_team)"}, {"constructorid": 79, "constructorref": "token", "name": "Token", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Token_(Racing_team)"}, {"constructorid": 80, "constructorref": "iso_marlboro", "name": "Iso Marlboro", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Iso_Marlboro"}, {"constructorid": 81, "constructorref": "tecno", "name": "Tecno", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tecno"}, {"constructorid": 82, "constructorref": "matra", "name": "Matra", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 83, "constructorref": "politoys", "name": "Politoys", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frank_Williams_Racing_Cars"}, {"constructorid": 84, "constructorref": "connew", "name": "Connew", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connew"}, {"constructorid": 85, "constructorref": "bellasi", "name": "Bellasi", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Bellasi"}, {"constructorid": 86, "constructorref": "tomaso", "name": "De Tomaso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 87, "constructorref": "cooper", "name": "Cooper", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 88, "constructorref": "eagle", "name": "Eagle", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 89, "constructorref": "lds", "name": "LDS", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 90, "constructorref": "protos", "name": "Protos", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Protos_(constructor)"}, {"constructorid": 91, "constructorref": "shannon", "name": "Shannon", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shannon_(Formula_One)"}, {"constructorid": 92, "constructorref": "scirocco", "name": "Scirocco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Scirocco-Powell"}, {"constructorid": 93, "constructorref": "re", "name": "RE", "nationality": "Rhodesian", "url": "http://en.wikipedia.org/wiki/RE_%28automobile%29"}, {"constructorid": 94, "constructorref": "brp", "name": "BRP", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_Racing_Partnership"}, {"constructorid": 95, "constructorref": "porsche", "name": "Porsche", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Porsche_in_Formula_One"}, {"constructorid": 96, "constructorref": "derrington", "name": "Derrington", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Derrington-Francis"}, {"constructorid": 97, "constructorref": "gilby", "name": "Gilby", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Gilby"}, {"constructorid": 98, "constructorref": "stebro", "name": "Stebro", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Stebro"}, {"constructorid": 99, "constructorref": "emeryson", "name": "Emeryson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Emeryson"}, {"constructorid": 100, "constructorref": "enb", "name": "ENB", "nationality": "Belgium", "url": "http://en.wikipedia.org/wiki/Ecurie_Nationale_Belge"}, {"constructorid": 101, "constructorref": "jbw", "name": "JBW", "nationality": "British", "url": "http://en.wikipedia.org/wiki/JBW"}, {"constructorid": 102, "constructorref": "ferguson", "name": "Ferguson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ferguson_Research_Ltd."}, {"constructorid": 103, "constructorref": "mbm", "name": "MBM", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Monteverdi_Basel_Motors"}, {"constructorid": 104, "constructorref": "behra-porsche", "name": "Behra-Porsche", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Behra-Porsche"}, {"constructorid": 105, "constructorref": "maserati", "name": "Maserati", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Maserati"}, {"constructorid": 106, "constructorref": "scarab", "name": "Scarab", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Scarab_(constructor)"}, {"constructorid": 107, "constructorref": "watson", "name": "Watson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/A.J._Watson"}, {"constructorid": 108, "constructorref": "epperly", "name": "Epperly", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Epperly"}, {"constructorid": 109, "constructorref": "phillips", "name": "Phillips", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Phillips_(constructor)"}, {"constructorid": 110, "constructorref": "lesovsky", "name": "Lesovsky", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Lesovsky"}, {"constructorid": 111, "constructorref": "trevis", "name": "Trevis", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Trevis"}, {"constructorid": 112, "constructorref": "meskowski", "name": "Meskowski", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Meskowski"}, {"constructorid": 113, "constructorref": "kurtis_kraft", "name": "Kurtis Kraft", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kurtis_Kraft"}, {"constructorid": 114, "constructorref": "kuzma", "name": "Kuzma", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kuzma_(constructor)"}, {"constructorid": 115, "constructorref": "vhristensen", "name": "Christensen", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Christensen_(constructor)"}, {"constructorid": 116, "constructorref": "ewing", "name": "Ewing", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Ewing_(constructor)"}, {"constructorid": 117, "constructorref": "aston_martin", "name": "Aston Martin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Martin"}, {"constructorid": 118, "constructorref": "vanwall", "name": "Vanwall", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Vanwall"}, {"constructorid": 119, "constructorref": "moore", "name": "Moore", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Moore_(constructor)"}, {"constructorid": 120, "constructorref": "dunn", "name": "Dunn", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Dunn_Engineering"}, {"constructorid": 121, "constructorref": "elder", "name": "Elder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Elder_(constructor)"}, {"constructorid": 122, "constructorref": "sutton", "name": "Sutton", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sutton_(constructor)"}, {"constructorid": 123, "constructorref": "fry", "name": "Fry", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Fry_(racing_team)"}, {"constructorid": 124, "constructorref": "tec-mec", "name": "Tec-Mec", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tec-Mec"}, {"constructorid": 125, "constructorref": "connaught", "name": "Connaught", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connaught_Engineering"}, {"constructorid": 126, "constructorref": "alta", "name": "Alta", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Alta_auto_racing_team"}, {"constructorid": 127, "constructorref": "osca", "name": "OSCA", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Officine_Specializate_Costruzione_Automobili"}, {"constructorid": 128, "constructorref": "gordini", "name": "Gordini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Gordini"}, {"constructorid": 129, "constructorref": "stevens", "name": "Stevens", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Stevens_(constructor)"}, {"constructorid": 130, "constructorref": "bugatti", "name": "Bugatti", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Bugatti"}, {"constructorid": 131, "constructorref": "mercedes", "name": "Mercedes", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One"}, {"constructorid": 132, "constructorref": "lancia", "name": "Lancia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Lancia_in_Formula_One"}, {"constructorid": 133, "constructorref": "hwm", "name": "HWM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hersham_and_Walton_Motors"}, {"constructorid": 134, "constructorref": "schroeder", "name": "Schroeder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Schroeder_(constructor)"}, {"constructorid": 135, "constructorref": "pawl", "name": "Pawl", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pawl_(constructor)"}, {"constructorid": 136, "constructorref": "pankratz", "name": "Pankratz", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pankratz"}, {"constructorid": 137, "constructorref": "arzani-volpini", "name": "Arzani-Volpini", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Arzani-Volpini"}, {"constructorid": 138, "constructorref": "nichels", "name": "Nichels", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Nichels"}, {"constructorid": 139, "constructorref": "bromme", "name": "Bromme", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Bromme"}, {"constructorid": 140, "constructorref": "klenk", "name": "Klenk", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Klenk"}, {"constructorid": 141, "constructorref": "simca", "name": "Simca", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Simca"}, {"constructorid": 142, "constructorref": "turner", "name": "Turner", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Turner_(constructor)"}, {"constructorid": 143, "constructorref": "del_roy", "name": "Del Roy", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Del_Roy"}, {"constructorid": 144, "constructorref": "veritas", "name": "Veritas", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Veritas_(constructor)"}, {"constructorid": 145, "constructorref": "bmw", "name": "BMW", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW"}, {"constructorid": 146, "constructorref": "emw", "name": "EMW", "nationality": "East German", "url": "http://en.wikipedia.org/wiki/Eisenacher_Motorenwerk"}, {"constructorid": 147, "constructorref": "afm", "name": "AFM", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Alex_von_Falkenhausen_Motorenbau"}, {"constructorid": 148, "constructorref": "frazer_nash", "name": "Frazer Nash", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frazer_Nash"}, {"constructorid": 149, "constructorref": "sherman", "name": "Sherman", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sherman_(constructor)"}, {"constructorid": 150, "constructorref": "deidt", "name": "Deidt", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Deidt"}, {"constructorid": 151, "constructorref": "era", "name": "ERA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/English_Racing_Automobiles"}, {"constructorid": 152, "constructorref": "butterworth", "name": "Aston Butterworth", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Butterworth"}, {"constructorid": 153, "constructorref": "cisitalia", "name": "Cisitalia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Cisitalia"}, {"constructorid": 154, "constructorref": "lago", "name": "Talbot-Lago", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Talbot-Lago"}, {"constructorid": 155, "constructorref": "hall", "name": "Hall", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Hall_(constructor)"}, {"constructorid": 156, "constructorref": "marchese", "name": "Marchese", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Marchese_(constructor)"}, {"constructorid": 157, "constructorref": "langley", "name": "Langley", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Langley_(constructor)"}, {"constructorid": 158, "constructorref": "rae", "name": "Rae", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Rae_(motorsport)"}, {"constructorid": 159, "constructorref": "olson", "name": "Olson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Olson_(constructor)"}, {"constructorid": 160, "constructorref": "wetteroth", "name": "Wetteroth", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Wetteroth"}, {"constructorid": 161, "constructorref": "adams", "name": "Adams", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Adams_(constructor)"}, {"constructorid": 162, "constructorref": "snowberger", "name": "Snowberger", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Snowberger"}, {"constructorid": 163, "constructorref": "milano", "name": "Milano", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Milano"}, {"constructorid": 164, "constructorref": "hrt", "name": "HRT", "nationality": "Spanish", "url": "http://en.wikipedia.org/wiki/Hispania_Racing"}, {"constructorid": 166, "constructorref": "virgin", "name": "Virgin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Virgin_Racing"}, {"constructorid": 167, "constructorref": "cooper-maserati", "name": "Cooper-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 168, "constructorref": "cooper-osca", "name": "Cooper-OSCA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 169, "constructorref": "cooper-borgward", "name": "Cooper-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 170, "constructorref": "cooper-climax", "name": "Cooper-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 171, "constructorref": "cooper-castellotti", "name": "Cooper-Castellotti", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 172, "constructorref": "lotus-climax", "name": "Lotus-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 173, "constructorref": "lotus-maserati", "name": "Lotus-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 174, "constructorref": "de_tomaso-osca", "name": "De Tomaso-Osca", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 175, "constructorref": "de_tomaso-alfa_romeo", "name": "De Tomaso-Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 176, "constructorref": "lotus-brm", "name": "Lotus-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 177, "constructorref": "lotus-borgward", "name": "Lotus-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 178, "constructorref": "cooper-alfa_romeo", "name": "Cooper-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 179, "constructorref": "de_tomaso-ferrari", "name": "De Tomaso-Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 180, "constructorref": "lotus-ford", "name": "Lotus-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 181, "constructorref": "brabham-brm", "name": "Brabham-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 182, "constructorref": "brabham-ford", "name": "Brabham-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 183, "constructorref": "brabham-climax", "name": "Brabham-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 184, "constructorref": "lds-climax", "name": "LDS-Climax", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 185, "constructorref": "lds-alfa_romeo", "name": "LDS-Alfa Romeo", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 186, "constructorref": "cooper-ford", "name": "Cooper-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 187, "constructorref": "mclaren-ford", "name": "McLaren-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 188, "constructorref": "mclaren-seren", "name": "McLaren-Serenissima", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 189, "constructorref": "eagle-climax", "name": "Eagle-Climax", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 190, "constructorref": "eagle-weslake", "name": "Eagle-Weslake", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 191, "constructorref": "brabham-repco", "name": "Brabham-Repco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 192, "constructorref": "cooper-ferrari", "name": "Cooper-Ferrari", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 193, "constructorref": "cooper-ats", "name": "Cooper-ATS", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 194, "constructorref": "mclaren-brm", "name": "McLaren-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 195, "constructorref": "cooper-brm", "name": "Cooper-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 196, "constructorref": "matra-ford", "name": "Matra-Ford", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 197, "constructorref": "brm-ford", "name": "BRM-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 198, "constructorref": "mclaren-alfa_romeo", "name": "McLaren-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 199, "constructorref": "march-alfa_romeo", "name": "March-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 200, "constructorref": "march-ford", "name": "March-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 201, "constructorref": "lotus-pw", "name": "Lotus-Pratt &amp; Whitney", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 202, "constructorref": "shadow-ford", "name": "Shadow-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}]}, "correct_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n\nsummary = constructorstandings\n |> group_by(positiontext)\n |> aggregate(min_constructorid: min(constructorid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n\nsummary = constructorstandings\n |> group_by(positiontext)\n |> aggregate(min_constructorid: min(constructorid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"positiontext": "10", "min_constructorid": 10, "count": 16}, {"positiontext": "11", "min_constructorid": 8, "count": 16}, {"positiontext": "8", "min_constructorid": 3, "count": 18}, {"positiontext": "7", "min_constructorid": 3, "count": 18}, {"positiontext": "9", "min_constructorid": 5, "count": 18}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 9, "original": "|> sort_by(count, asc)", "mutated": "|> sort_by(count, desc)"}], "difficulty": "medium", "domain": "formula_1__constructorstandings", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"regular_order_products": [{"regular_order_id": 5, "product_id": 3}, {"regular_order_id": 2, "product_id": 3}, {"regular_order_id": 10, "product_id": 1}, {"regular_order_id": 8, "product_id": 5}, {"regular_order_id": 12, "product_id": 2}, {"regular_order_id": 1, "product_id": 4}, {"regular_order_id": 6, "product_id": 3}, {"regular_order_id": 3, "product_id": 6}, {"regular_order_id": 3, "product_id": 1}, {"regular_order_id": 9, "product_id": 6}, {"regular_order_id": 5, "product_id": 5}, {"regular_order_id": 1, "product_id": 1}, {"regular_order_id": 7, "product_id": 4}, {"regular_order_id": 6, "product_id": 4}, {"regular_order_id": 13, "product_id": 2}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\nfiltered_regular_order_products = regular_order_products\n |> filter(regular_order_id <= 5)\n |> select(regular_order_id, product_id)\n |> compute(computed_val: product_id / regular_order_id)\n\nresult = filtered_regular_order_products\n |> sort_by(regular_order_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\nfiltered_regular_order_products = regular_order_products\n |> filter(regular_order_id >== 5)\n |> select(regular_order_id, product_id)\n |> compute(computed_val: product_id / regular_order_id)\n\nresult = filtered_regular_order_products\n |> sort_by(regular_order_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"regular_order_id": 5, "product_id": 3, "computed_val": 0.6}, {"regular_order_id": 5, "product_id": 5, "computed_val": 1.0}, {"regular_order_id": 3, "product_id": 6, "computed_val": 2.0}, {"regular_order_id": 3, "product_id": 1, "computed_val": 0.3333333333333333}, {"regular_order_id": 2, "product_id": 3, "computed_val": 1.5}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '<' \u2192 '>='", "line_num": 5, "original": "|> filter(regular_order_id <= 5)", "mutated": "|> filter(regular_order_id >== 5)"}], "difficulty": "medium", "domain": "customer_deliveries__regular_order_products", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"company": [{"company_id": 1.0, "name": "ExxonMobil", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 433.5, "profits_in_billion": 41.1, "assets_in_billion": 331.1, "market_value_in_billion": 407.4}, {"company_id": 2.0, "name": "JPMorgan Chase", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 110.8, "profits_in_billion": 19.0, "assets_in_billion": 2265.8, "market_value_in_billion": 170.1}, {"company_id": 3.0, "name": "General Electric", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 147.3, "profits_in_billion": 14.2, "assets_in_billion": 717.2, "market_value_in_billion": 213.7}, {"company_id": 4.0, "name": "Royal Dutch Shell", "headquarters": "Netherlands", "industry": "Oil and gas", "sales_in_billion": 470.2, "profits_in_billion": 30.9, "assets_in_billion": 340.5, "market_value_in_billion": 227.6}, {"company_id": 5.0, "name": "Industrial and Commercial Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 82.6, "profits_in_billion": 25.1, "assets_in_billion": 2039.1, "market_value_in_billion": 237.4}, {"company_id": 6.0, "name": "HSBC", "headquarters": "UK", "industry": "Banking", "sales_in_billion": 102.0, "profits_in_billion": 16.2, "assets_in_billion": 2550.0, "market_value_in_billion": 164.3}, {"company_id": 7.0, "name": "PetroChina", "headquarters": "China", "industry": "Oil and gas", "sales_in_billion": 310.1, "profits_in_billion": 20.6, "assets_in_billion": 304.7, "market_value_in_billion": 294.7}, {"company_id": 8.0, "name": "Berkshire Hathaway", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 143.7, "profits_in_billion": 10.3, "assets_in_billion": 392.6, "market_value_in_billion": 202.2}, {"company_id": 9.0, "name": "Wells Fargo", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 87.6, "profits_in_billion": 15.9, "assets_in_billion": 1313.9, "market_value_in_billion": 178.7}, {"company_id": 10.0, "name": "Petrobras", "headquarters": "Brazil", "industry": "Oil and gas", "sales_in_billion": 145.9, "profits_in_billion": 20.1, "assets_in_billion": 319.4, "market_value_in_billion": 180.0}, {"company_id": 11.0, "name": "BP", "headquarters": "UK", "industry": "Oil and gas", "sales_in_billion": 375.5, "profits_in_billion": 25.7, "assets_in_billion": 292.5, "market_value_in_billion": 147.4}, {"company_id": 12.0, "name": "Chevron", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 236.3, "profits_in_billion": 26.9, "assets_in_billion": 209.5, "market_value_in_billion": 218.0}, {"company_id": 13.0, "name": "China Construction Bank", "headquarters": "China", "industry": "Banking", "sales_in_billion": 68.7, "profits_in_billion": 20.5, "assets_in_billion": 1637.8, "market_value_in_billion": 201.9}, {"company_id": 14.0, "name": "Citigroup", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 102.6, "profits_in_billion": 11.1, "assets_in_billion": 1873.9, "market_value_in_billion": 107.5}, {"company_id": 15.0, "name": "Gazprom", "headquarters": "Russia", "industry": "Oil and gas", "sales_in_billion": 117.6, "profits_in_billion": 31.7, "assets_in_billion": 302.6, "market_value_in_billion": 159.8}, {"company_id": 16.0, "name": "Walmart", "headquarters": "USA", "industry": "Retailing", "sales_in_billion": 447.0, "profits_in_billion": 15.7, "assets_in_billion": 193.4, "market_value_in_billion": 208.4}, {"company_id": 17.0, "name": "Volkswagen Group", "headquarters": "Germany", "industry": "Automotive", "sales_in_billion": 221.9, "profits_in_billion": 21.5, "assets_in_billion": 328.7, "market_value_in_billion": 79.5}, {"company_id": 18.0, "name": "Total", "headquarters": "France", "industry": "Oil and gas", "sales_in_billion": 216.2, "profits_in_billion": 15.9, "assets_in_billion": 213.0, "market_value_in_billion": 132.4}, {"company_id": 19.0, "name": "Agricultural Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 62.4, "profits_in_billion": 14.4, "assets_in_billion": 1563.9, "market_value_in_billion": 154.8}], "employment": [{"company_id": 11, "people_id": 3, "year_working": 2}, {"company_id": 13, "people_id": 2, "year_working": 3}, {"company_id": 17, "people_id": 7, "year_working": 4}, {"company_id": 15, "people_id": 1, "year_working": 1}, {"company_id": 7, "people_id": 4, "year_working": 1}]}, "correct_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(company_id >= 7)\n\nsummary = filtered_company\n |> group_by(industry)\n |> aggregate(avg_sales_in_billion: avg(sales_in_billion), count: count())\n\nresult = summary\n |> sort_by(avg_sales_in_billion, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |<= filter(company_id >= 7)\n\nsummary = filtered_company\n |> group_by(industry)\n |> aggregate(avg_sales_in_billion: avg(sales_in_billion), count: count())\n\nresult = summary\n |> sort_by(avg_sales_in_billion, asc)\n |> take(5)\n\nemit result", "expected_output": [{"industry": "Retailing", "avg_sales_in_billion": 447.0, "count": 1}, {"industry": "Oil and gas", "avg_sales_in_billion": 233.6, "count": 6}, {"industry": "Automotive", "avg_sales_in_billion": 221.9, "count": 1}, {"industry": "Conglomerate", "avg_sales_in_billion": 143.7, "count": 1}, {"industry": "Banking", "avg_sales_in_billion": 80.325, "count": 4}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 12, "original": "|> sort_by(avg_sales_in_billion, desc)", "mutated": "|> sort_by(avg_sales_in_billion, asc)"}, {"category": "wrong_arg", "description": "Wrong comparison operator: '>' \u2192 '<='", "line_num": 5, "original": "|> filter(company_id >= 7)", "mutated": "|<= filter(company_id >= 7)"}], "difficulty": "easy", "domain": "company_employee__company", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"delivery_route_locations": [{"location_code": "27 City Rd", "route_id": 11, "location_address_id": 5, "location_name": "Labadie-Crooks"}, {"location_code": "30 Sam Rd", "route_id": 7, "location_address_id": 13, "location_name": "VonRueden, Schmeler and Fay"}, {"location_code": "67 LV Rd", "route_id": 11, "location_address_id": 6, "location_name": "Carter, Pfannerstill and Rutherford"}, {"location_code": "38 Enisner Av", "route_id": 10, "location_address_id": 7, "location_name": "Bradtke-Herman"}, {"location_code": "73 Nancy Av", "route_id": 14, "location_address_id": 10, "location_name": "Streich Group"}, {"location_code": "84 OE Av", "route_id": 14, "location_address_id": 7, "location_name": "Hessel and Sons"}, {"location_code": "34 Benz St", "route_id": 2, "location_address_id": 15, "location_name": "Strosin, Hegmann and Abbott"}, {"location_code": "15 Sixth Av", "route_id": 8, "location_address_id": 6, "location_name": "Pouros, Brakus and Konopelski"}, {"location_code": "04 Elm Rd", "route_id": 8, "location_address_id": 8, "location_name": "Hermiston, Hand and Wisoky"}, {"location_code": "79 Square St", "route_id": 15, "location_address_id": 5, "location_name": "Turner, Dietrich and Smitham"}, {"location_code": "84 Temple Rd", "route_id": 7, "location_address_id": 2, "location_name": "Leannon, Erdman and Schneider"}, {"location_code": "64 Kate Rd", "route_id": 7, "location_address_id": 12, "location_name": "Dach Group"}, {"location_code": "68 Denny St", "route_id": 4, "location_address_id": 7, "location_name": "Ledner-Kozey"}, {"location_code": "76 David St", "route_id": 11, "location_address_id": 3, "location_name": "Rosenbaum, Kiehn and Kilback"}, {"location_code": "58 Roof Av", "route_id": 13, "location_address_id": 4, "location_name": "Bartoletti, Keebler and Crona"}], "addresses": [{"address_id": 1, "address_details": "92283 Lora Forges Suite 322", "city": "Mohrville", "zip_postcode": "271", "state_province_county": "Nebraska", "country": "USA"}, {"address_id": 2, "address_details": "17135 Jaida Fork Suite 798", "city": "East Brody", "zip_postcode": "940", "state_province_county": "Colorado", "country": "USA"}, {"address_id": 3, "address_details": "41099 Crist Prairie Suite 507", "city": "Evelinebury", "zip_postcode": "003", "state_province_county": "Idaho", "country": "USA"}, {"address_id": 4, "address_details": "615 Adams Rue Apt. 095", "city": "Sawaynville", "zip_postcode": "575", "state_province_county": "Kentucky", "country": "USA"}, {"address_id": 5, "address_details": "045 Marquardt Village Suite 484", "city": "Carterside", "zip_postcode": "827", "state_province_county": "California", "country": "USA"}, {"address_id": 6, "address_details": "203 Joseph Hills", "city": "Giovannaton", "zip_postcode": "960", "state_province_county": "Tennessee", "country": "USA"}, {"address_id": 7, "address_details": "6187 Feil Extension Apt. 749", "city": "East Frederic", "zip_postcode": "674", "state_province_county": "Maine", "country": "USA"}, {"address_id": 8, "address_details": "185 Farrell Brooks Apt. 106", "city": "Mosciskimouth", "zip_postcode": "076", "state_province_county": "Illinois", "country": "USA"}, {"address_id": 9, "address_details": "3720 Pagac Hollow Apt. 131", "city": "Alvertatown", "zip_postcode": "234", "state_province_county": "Wyoming", "country": "USA"}, {"address_id": 10, "address_details": "57136 Eichmann Ranch Suite 091", "city": "Gerholdtown", "zip_postcode": "297", "state_province_county": "Illinois", "country": "USA"}, {"address_id": 11, "address_details": "3020 Steuber Gardens Apt. 620", "city": "Flossiefurt", "zip_postcode": "460", "state_province_county": "Michigan", "country": "USA"}, {"address_id": 12, "address_details": "2060 Hilpert Forge Apt. 379", "city": "Annietown", "zip_postcode": "491", "state_province_county": "Michigan", "country": "USA"}, {"address_id": 13, "address_details": "469 Roberts Mews", "city": "Lake Abbey", "zip_postcode": "838", "state_province_county": "Washington", "country": "USA"}, {"address_id": 14, "address_details": "8701 Myrtis Ranch", "city": "North Marquesfort", "zip_postcode": "940", "state_province_county": "Ohio", "country": "USA"}, {"address_id": 15, "address_details": "06959 Garett Meadows Apt. 259", "city": "New Lizziechester", "zip_postcode": "934", "state_province_county": "Massachusetts", "country": "USA"}]}, "correct_code": "-- Load customer_deliveries__delivery_route_locations data\ndelivery_route_locations = load(\"delivery_route_locations\")\n\nsummary = delivery_route_locations\n |> group_by(location_name)\n |> aggregate(max_route_id: max(route_id), count: count())\n |> compute(computed_val: count / max_route_id)\n\nresult = summary\n |> sort_by(max_route_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__delivery_route_locations data\ndelivery_route_locations = load(\"delivery_route_locations\")\n\nsummary = delivery_route_locations\n |> group_by(location_name)\n |> aggregate(max_route_id: max(route_id), count: count())\n |> compute(computed_val: count / location_name)\n\nresult = summary\n |> sort_by(max_route_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"location_name": "Strosin, Hegmann and Abbott", "max_route_id": 2, "count": 1, "computed_val": 0.5}, {"location_name": "Ledner-Kozey", "max_route_id": 4, "count": 1, "computed_val": 0.25}, {"location_name": "VonRueden, Schmeler and Fay", "max_route_id": 7, "count": 1, "computed_val": 0.14285714285714285}, {"location_name": "Leannon, Erdman and Schneider", "max_route_id": 7, "count": 1, "computed_val": 0.14285714285714285}, {"location_name": "Dach Group", "max_route_id": 7, "count": 1, "computed_val": 0.14285714285714285}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 3", "line_num": 11, "original": "|> take(5)", "mutated": "|> take(3)"}, {"category": "wrong_col", "description": "Wrong column reference: 'max_route_id' \u2192 'location_name'", "line_num": 7, "original": "|> compute(computed_val: count / max_route_id)", "mutated": "|> compute(computed_val: count / location_name)"}], "difficulty": "medium", "domain": "customer_deliveries__delivery_route_locations", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"participates_in": [{"stuid": 1001, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1001, "actid": 777}, {"stuid": 1002, "actid": 772}, {"stuid": 1002, "actid": 771}, {"stuid": 1003, "actid": 778}, {"stuid": 1004, "actid": 780}, {"stuid": 1004, "actid": 782}, {"stuid": 1004, "actid": 778}, {"stuid": 1004, "actid": 777}, {"stuid": 1005, "actid": 770}, {"stuid": 1006, "actid": 773}, {"stuid": 1007, "actid": 773}, {"stuid": 1007, "actid": 784}, {"stuid": 1008, "actid": 785}, {"stuid": 1008, "actid": 773}, {"stuid": 1008, "actid": 780}, {"stuid": 1008, "actid": 790}, {"stuid": 1009, "actid": 778}, {"stuid": 1009, "actid": 777}, {"stuid": 1009, "actid": 782}, {"stuid": 1010, "actid": 780}, {"stuid": 1011, "actid": 780}, {"stuid": 1012, "actid": 780}, {"stuid": 1014, "actid": 780}, {"stuid": 1014, "actid": 777}, {"stuid": 1014, "actid": 778}, {"stuid": 1014, "actid": 782}, {"stuid": 1014, "actid": 770}, {"stuid": 1014, "actid": 772}, {"stuid": 1015, "actid": 785}, {"stuid": 1016, "actid": 791}, {"stuid": 1016, "actid": 772}, {"stuid": 1017, "actid": 791}, {"stuid": 1017, "actid": 771}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 790}, {"stuid": 1018, "actid": 785}, {"stuid": 1018, "actid": 784}, {"stuid": 1018, "actid": 777}, {"stuid": 1018, "actid": 772}, {"stuid": 1018, "actid": 770}, {"stuid": 1019, "actid": 785}, {"stuid": 1019, "actid": 790}, {"stuid": 1020, "actid": 780}, {"stuid": 1021, "actid": 780}, {"stuid": 1021, "actid": 776}, {"stuid": 1022, "actid": 782}, {"stuid": 1022, "actid": 790}, {"stuid": 1023, "actid": 790}, {"stuid": 1023, "actid": 776}, {"stuid": 1024, "actid": 778}, {"stuid": 1024, "actid": 777}, {"stuid": 1024, "actid": 780}, {"stuid": 1025, "actid": 780}, {"stuid": 1025, "actid": 777}, {"stuid": 1025, "actid": 770}, {"stuid": 1028, "actid": 785}, {"stuid": 1029, "actid": 785}, {"stuid": 1029, "actid": 790}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}, {"stuid": 1033, "actid": 780}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nresult = participates_in\n |> sort_by(stuid, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nresult = participates_in\n |> sort_by(stuid, asc)\n |> tke(3)\n\nemit result", "expected_output": [{"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'take' \u2192 'tke'", "line_num": 6, "original": "|> take(3)", "mutated": "|> tke(3)"}, {"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 5, "original": "|> sort_by(stuid, desc)", "mutated": "|> sort_by(stuid, asc)"}], "difficulty": "easy", "domain": "activity_1__participates_in", "num_nodes": 2, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"catalog_contents": [{"catalog_entry_id": 1, "catalog_level_number": 1, "parent_entry_id": 5, "previous_entry_id": 9, "next_entry_id": 7, "catalog_entry_name": "Cola", "product_stock_number": "89 cp", "price_in_dollars": 200.78, "price_in_euros": 159.84, "price_in_pounds": 172.17, "capacity": "1", "length": "3", "height": "9", "width": "5"}, {"catalog_entry_id": 2, "catalog_level_number": 8, "parent_entry_id": 6, "previous_entry_id": 9, "next_entry_id": 8, "catalog_entry_name": "Root beer", "product_stock_number": "37 hq", "price_in_dollars": 687.59, "price_in_euros": 590.11, "price_in_pounds": 471.78, "capacity": "8", "length": "6", "height": "5", "width": "6"}, {"catalog_entry_id": 3, "catalog_level_number": 8, "parent_entry_id": 6, "previous_entry_id": 6, "next_entry_id": 1, "catalog_entry_name": "Cream Soda", "product_stock_number": "52 ee", "price_in_dollars": 360.5, "price_in_euros": 202.32, "price_in_pounds": 110.32, "capacity": "5", "length": "9", "height": "7", "width": "8"}, {"catalog_entry_id": 4, "catalog_level_number": 1, "parent_entry_id": 7, "previous_entry_id": 8, "next_entry_id": 6, "catalog_entry_name": "Carbonated Water", "product_stock_number": "15 mr", "price_in_dollars": 667.89, "price_in_euros": 458.45, "price_in_pounds": 349.01, "capacity": "8", "length": "6", "height": "2", "width": "1"}, {"catalog_entry_id": 5, "catalog_level_number": 9, "parent_entry_id": 4, "previous_entry_id": 7, "next_entry_id": 6, "catalog_entry_name": "Ginger Beer", "product_stock_number": "42 cp", "price_in_dollars": 616.22, "price_in_euros": 537.66, "price_in_pounds": 405.75, "capacity": "5", "length": "5", "height": "7", "width": "9"}, {"catalog_entry_id": 6, "catalog_level_number": 1, "parent_entry_id": 3, "previous_entry_id": 4, "next_entry_id": 8, "catalog_entry_name": "Tizer", "product_stock_number": "61 py", "price_in_dollars": 642.37, "price_in_euros": 434.21, "price_in_pounds": 331.43, "capacity": "6", "length": "6", "height": "7", "width": "1"}, {"catalog_entry_id": 7, "catalog_level_number": 9, "parent_entry_id": 7, "previous_entry_id": 3, "next_entry_id": 3, "catalog_entry_name": "Vimto", "product_stock_number": "01 ap", "price_in_dollars": 745.02, "price_in_euros": 510.32, "price_in_pounds": 497.4, "capacity": "6", "length": "9", "height": "6", "width": "5"}, {"catalog_entry_id": 8, "catalog_level_number": 8, "parent_entry_id": 6, "previous_entry_id": 5, "next_entry_id": 3, "catalog_entry_name": "Ramune", "product_stock_number": "53 bg", "price_in_dollars": 574.35, "price_in_euros": 441.82, "price_in_pounds": 440.52, "capacity": "4", "length": "4", "height": "7", "width": "5"}, {"catalog_entry_id": 9, "catalog_level_number": 1, "parent_entry_id": 7, "previous_entry_id": 9, "next_entry_id": 9, "catalog_entry_name": "Sprite Lemo", "product_stock_number": "24 ec", "price_in_dollars": 952.37, "price_in_euros": 703.17, "price_in_pounds": 433.82, "capacity": "8", "length": "7", "height": "1", "width": "3"}, {"catalog_entry_id": 10, "catalog_level_number": 8, "parent_entry_id": 5, "previous_entry_id": 6, "next_entry_id": 6, "catalog_entry_name": "Dr Pepper", "product_stock_number": "26 op", "price_in_dollars": 777.41, "price_in_euros": 616.54, "price_in_pounds": 572.41, "capacity": "1", "length": "6", "height": "1", "width": "6"}, {"catalog_entry_id": 11, "catalog_level_number": 1, "parent_entry_id": 3, "previous_entry_id": 6, "next_entry_id": 9, "catalog_entry_name": "Diet Pepsi", "product_stock_number": "49 jg", "price_in_dollars": 808.31, "price_in_euros": 643.77, "price_in_pounds": 515.62, "capacity": "9", "length": "8", "height": "3", "width": "3"}, {"catalog_entry_id": 12, "catalog_level_number": 8, "parent_entry_id": 4, "previous_entry_id": 5, "next_entry_id": 3, "catalog_entry_name": "Diet Mountain Dew", "product_stock_number": "96 zx", "price_in_dollars": 883.43, "price_in_euros": 752.87, "price_in_pounds": 678.01, "capacity": "8", "length": "8", "height": "1", "width": "3"}, {"catalog_entry_id": 13, "catalog_level_number": 1, "parent_entry_id": 5, "previous_entry_id": 9, "next_entry_id": 1, "catalog_entry_name": "Mountain Dew", "product_stock_number": "49 cz", "price_in_dollars": 475.79, "price_in_euros": 457.4, "price_in_pounds": 335.63, "capacity": "7", "length": "8", "height": "4", "width": "5"}, {"catalog_entry_id": 14, "catalog_level_number": 9, "parent_entry_id": 3, "previous_entry_id": 5, "next_entry_id": 8, "catalog_entry_name": "Fenta Orange", "product_stock_number": "65 wc", "price_in_dollars": 415.92, "price_in_euros": 385.85, "price_in_pounds": 371.9, "capacity": "7", "length": "4", "height": "3", "width": "7"}, {"catalog_entry_id": 15, "catalog_level_number": 1, "parent_entry_id": 6, "previous_entry_id": 8, "next_entry_id": 9, "catalog_entry_name": "Wanglaoji", "product_stock_number": "51 kr", "price_in_dollars": 533.6, "price_in_euros": 498.62, "price_in_pounds": 422.71, "capacity": "4", "length": "5", "height": "8", "width": "8"}], "catalog_structure": [{"catalog_level_number": 1, "catalog_id": 1, "catalog_level_name": "Category"}, {"catalog_level_number": 8, "catalog_id": 2, "catalog_level_name": "Sub-Category"}, {"catalog_level_number": 9, "catalog_id": 8, "catalog_level_name": "Product"}]}, "correct_code": "-- Load product_catalog__catalog_contents data\ncatalog_contents = load(\"catalog_contents\")\n\nsummary = catalog_contents\n |> group_by(width)\n |> aggregate(min_parent_entry_id: min(parent_entry_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load product_catalog__catalog_contents data\ncatalog_contents = load(\"catalog_contents\")\n\nsummary = catalog_contents\n |> group_by(width)\n |> aggregate(min_parent_entry_id: min(parent_entry_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"width": "9", "min_parent_entry_id": 4, "count": 1}, {"width": "7", "min_parent_entry_id": 3, "count": 1}, {"width": "6", "min_parent_entry_id": 5, "count": 2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 9, "original": "|> sort_by(count, asc)", "mutated": "|> sort_by(count, desc)"}], "difficulty": "easy", "domain": "product_catalog__catalog_contents", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"project_staff": [{"staff_id": 0.0, "project_id": 2, "role_code": "leader", "date_from": "1981-10-04 22:44:50", "date_to": "1985-05-30 22:26:30", "other_details": 0}, {"staff_id": 674810.0, "project_id": 5, "role_code": "leader", "date_from": "2003-04-19 15:06:20", "date_to": "2010-12-08 11:55:36", "other_details": 0}, {"staff_id": 779.0, "project_id": 2, "role_code": "researcher", "date_from": "1981-10-09 21:32:53", "date_to": "2004-12-16 13:03:36", "other_details": 0}, {"staff_id": 6572.0, "project_id": 4, "role_code": "researcher", "date_from": "1983-02-07 17:55:59", "date_to": "2004-07-28 03:11:47", "other_details": 0}, {"staff_id": 5353407.0, "project_id": 15, "role_code": "leader", "date_from": "2004-11-01 23:52:38", "date_to": "1988-03-04 19:30:05", "other_details": 0}, {"staff_id": 5137097.0, "project_id": 7, "role_code": "researcher", "date_from": "1991-01-11 16:57:50", "date_to": "1993-06-09 12:44:28", "other_details": 0}, {"staff_id": 29.0, "project_id": 9, "role_code": "researcher", "date_from": "2005-01-13 11:49:48", "date_to": "1973-07-19 04:51:26", "other_details": 0}, {"staff_id": 3.0, "project_id": 8, "role_code": "researcher", "date_from": "1970-03-25 06:18:11", "date_to": "1985-12-05 12:00:58", "other_details": 0}, {"staff_id": 3100031.0, "project_id": 11, "role_code": "researcher", "date_from": "1972-01-17 19:42:16", "date_to": "2016-03-15 00:33:18", "other_details": 0}, {"staff_id": 49698449.0, "project_id": 1, "role_code": "leader", "date_from": "1970-04-06 15:50:21", "date_to": "1983-03-19 16:06:31", "other_details": 0}, {"staff_id": 45.0, "project_id": 11, "role_code": "researcher", "date_from": "2000-08-28 11:49:17", "date_to": "2007-02-02 17:26:02", "other_details": 0}, {"staff_id": 37.0, "project_id": 5, "role_code": "researcher", "date_from": "1989-04-24 23:51:54", "date_to": "2002-03-19 18:00:36", "other_details": 0}, {"staff_id": 6065505.0, "project_id": 3, "role_code": "leader", "date_from": "1999-10-21 22:07:15", "date_to": "2008-09-25 20:06:28", "other_details": 0}, {"staff_id": 56.0, "project_id": 1, "role_code": "leader", "date_from": "1970-01-02 15:35:05", "date_to": "1985-09-22 09:06:08", "other_details": 0}, {"staff_id": 13739108.0, "project_id": 2, "role_code": "researcher", "date_from": "1973-12-12 11:46:28", "date_to": "1971-07-19 22:49:05", "other_details": 0}], "projects": [{"project_id": 1, "organisation_id": 15, "project_details": "porro"}, {"project_id": 2, "organisation_id": 11, "project_details": "et"}, {"project_id": 3, "organisation_id": 7, "project_details": "sint"}, {"project_id": 4, "organisation_id": 4, "project_details": "doloremque"}, {"project_id": 5, "organisation_id": 11, "project_details": "vel"}, {"project_id": 6, "organisation_id": 10, "project_details": "deserunt"}, {"project_id": 7, "organisation_id": 3, "project_details": "deleniti"}, {"project_id": 8, "organisation_id": 1, "project_details": "ad"}, {"project_id": 9, "organisation_id": 4, "project_details": "sed"}, {"project_id": 10, "organisation_id": 4, "project_details": "consectetur"}, {"project_id": 11, "organisation_id": 13, "project_details": "impedit"}, {"project_id": 12, "organisation_id": 12, "project_details": "omnis"}, {"project_id": 13, "organisation_id": 3, "project_details": "non"}, {"project_id": 14, "organisation_id": 1, "project_details": "beatae"}, {"project_id": 15, "organisation_id": 5, "project_details": "dolorem"}]}, "correct_code": "-- Load tracking_grants_for_research__project_staff data\nproject_staff = load(\"project_staff\")\n\nfiltered_project_staff = project_staff\n |> filter(date_to == \"1973-07-19 04:51:26\")\n |> filter(project_id > 7)\n\nresult = filtered_project_staff\n |> sort_by(staff_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__project_staff data\nproject_staff = load(\"project_staff\")\n\nfiltered_project_staff = project_staff\n filter(date_to == \"1973-07-19 04:51:26\")\n |> filter(project_id > 7)\n\nresult = filtered_project_staff\n |> sort_by(staff_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"staff_id": 29.0, "project_id": 9, "role_code": "researcher", "date_from": "2005-01-13 11:49:48", "date_to": "1973-07-19 04:51:26", "other_details": 0}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(date_to == \"1973-07-19 04:51:26\")", "mutated": "filter(date_to == \"1973-07-19 04:51:26\")"}], "difficulty": "easy", "domain": "tracking_grants_for_research__project_staff", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"section": [{"course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}, {"course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Gates", "room_number": "314", "time_slot_id": "K"}, {"course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Whitman", "room_number": "434", "time_slot_id": "O"}, {"course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "B"}, {"course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Fairchild", "room_number": "145", "time_slot_id": "D"}, {"course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Alumni", "room_number": "547", "time_slot_id": "J"}, {"course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Saucon", "room_number": "113", "time_slot_id": "J"}, {"course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "building": "Whitman", "room_number": "434", "time_slot_id": "F"}, {"course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Drown", "room_number": "757", "time_slot_id": "D"}, {"course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Power", "room_number": "717", "time_slot_id": "D"}, {"course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "G"}, {"course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "K"}, {"course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "I"}, {"course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Main", "room_number": "45", "time_slot_id": "L"}, {"course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Bronfman", "room_number": "700", "time_slot_id": "N"}, {"course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Saucon", "room_number": "180", "time_slot_id": "M"}, {"course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "113", "time_slot_id": "O"}, {"course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Taylor", "room_number": "812", "time_slot_id": "O"}, {"course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "N"}, {"course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Saucon", "room_number": "844", "time_slot_id": "O"}, {"course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Saucon", "room_number": "180", "time_slot_id": "P"}, {"course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Whitman", "room_number": "134", "time_slot_id": "K"}, {"course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lamberton", "room_number": "134", "time_slot_id": "G"}, {"course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Main", "room_number": "45", "time_slot_id": "K"}, {"course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Saucon", "room_number": "113", "time_slot_id": "K"}, {"course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "D"}, {"course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Fairchild", "room_number": "145", "time_slot_id": "I"}, {"course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "143", "time_slot_id": "H"}, {"course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lambeau", "room_number": "348", "time_slot_id": "J"}, {"course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "L"}, {"course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Alumni", "room_number": "143", "time_slot_id": "O"}, {"course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "183", "time_slot_id": "A"}, {"course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Alumni", "room_number": "547", "time_slot_id": "G"}, {"course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "H"}, {"course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Nassau", "room_number": "45", "time_slot_id": "F"}, {"course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lamberton", "room_number": "143", "time_slot_id": "I"}, {"course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "D"}, {"course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "M"}, {"course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Stabler", "room_number": "105", "time_slot_id": "F"}, {"course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Chandler", "room_number": "804", "time_slot_id": "D"}, {"course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Garfield", "room_number": "119", "time_slot_id": "A"}, {"course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "D"}, {"course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "building": "Gates", "room_number": "707", "time_slot_id": "K"}, {"course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "G"}, {"course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Gates", "room_number": "314", "time_slot_id": "A"}, {"course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "M"}, {"course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "D"}, {"course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "C"}, {"course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Gates", "room_number": "707", "time_slot_id": "E"}, {"course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Chandler", "room_number": "375", "time_slot_id": "C"}, {"course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Polya", "room_number": "808", "time_slot_id": "B"}, {"course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Alumni", "room_number": "547", "time_slot_id": "A"}, {"course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "P"}, {"course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "E"}, {"course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Lamberton", "room_number": "143", "time_slot_id": "B"}, {"course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "E"}, {"course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Nassau", "room_number": "45", "time_slot_id": "L"}, {"course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "building": "Bronfman", "room_number": "700", "time_slot_id": "L"}, {"course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Gates", "room_number": "707", "time_slot_id": "F"}, {"course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "B"}, {"course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Whitman", "room_number": "434", "time_slot_id": "H"}, {"course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "M"}, {"course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Drown", "room_number": "757", "time_slot_id": "C"}, {"course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "812", "time_slot_id": "C"}, {"course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Rathbone", "room_number": "261", "time_slot_id": "E"}, {"course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "building": "Main", "room_number": "425", "time_slot_id": "O"}, {"course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "A"}, {"course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Power", "room_number": "972", "time_slot_id": "I"}, {"course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "building": "Power", "room_number": "717", "time_slot_id": "L"}, {"course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "D"}, {"course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Drown", "room_number": "757", "time_slot_id": "L"}, {"course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Taylor", "room_number": "812", "time_slot_id": "I"}, {"course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Chandler", "room_number": "375", "time_slot_id": "D"}, {"course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Power", "room_number": "717", "time_slot_id": "P"}, {"course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Taylor", "room_number": "812", "time_slot_id": "P"}, {"course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "building": "Stabler", "room_number": "105", "time_slot_id": "J"}, {"course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Power", "room_number": "972", "time_slot_id": "D"}], "classroom": [{"building": "Lamberton", "room_number": "134", "capacity": 10}, {"building": "Chandler", "room_number": "375", "capacity": 10}, {"building": "Fairchild", "room_number": "145", "capacity": 27}, {"building": "Nassau", "room_number": "45", "capacity": 92}, {"building": "Grace", "room_number": "40", "capacity": 34}, {"building": "Whitman", "room_number": "134", "capacity": 120}, {"building": "Lamberton", "room_number": "143", "capacity": 10}, {"building": "Taylor", "room_number": "812", "capacity": 115}, {"building": "Saucon", "room_number": "113", "capacity": 109}, {"building": "Painter", "room_number": "86", "capacity": 97}, {"building": "Alumni", "room_number": "547", "capacity": 26}, {"building": "Alumni", "room_number": "143", "capacity": 47}, {"building": "Drown", "room_number": "757", "capacity": 18}, {"building": "Saucon", "room_number": "180", "capacity": 15}, {"building": "Whitman", "room_number": "434", "capacity": 32}, {"building": "Saucon", "room_number": "844", "capacity": 24}, {"building": "Bronfman", "room_number": "700", "capacity": 12}, {"building": "Polya", "room_number": "808", "capacity": 28}, {"building": "Gates", "room_number": "707", "capacity": 65}, {"building": "Gates", "room_number": "314", "capacity": 10}, {"building": "Main", "room_number": "45", "capacity": 30}, {"building": "Taylor", "room_number": "183", "capacity": 71}, {"building": "Power", "room_number": "972", "capacity": 10}, {"building": "Garfield", "room_number": "119", "capacity": 59}, {"building": "Rathbone", "room_number": "261", "capacity": 60}, {"building": "Stabler", "room_number": "105", "capacity": 113}, {"building": "Power", "room_number": "717", "capacity": 12}, {"building": "Main", "room_number": "425", "capacity": 22}, {"building": "Lambeau", "room_number": "348", "capacity": 51}, {"building": "Chandler", "room_number": "804", "capacity": 11}]}, "correct_code": "-- Load college_2__section data\nsection = load(\"section\")\n\nfiltered_section = section\n |> filter(semester == \"Spring\")\n |> select(year, course_id, building)\n\n-- Load lookup data\nclassroom = load(\"classroom\")\n |> select(capacity, room_number, building)\n\nenriched = join(filtered_section, classroom, on: building == building)\n\nresult = enriched\n |> sort_by(year, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_2__section data\nsection = load(\"section\")\n\nfiltered_section = section\n |> filter(semester == \"Sprin\")\n |> select(year, course_id, building)\n\n-- Load lookup data\nclassroom = load(\"classroom\")\n |> select(capacity, room_number, building)\n\nenriched = join(filtered_section, classroom, on: enriched == building)\n\nresult = enriched\n |> sort_by(year, desc)\n |> take(5)\n\nemit result", "expected_output": [{"year": 2010, "course_id": "443", "building": "Whitman", "capacity": 120, "room_number": "134"}, {"year": 2010, "course_id": "443", "building": "Whitman", "capacity": 32, "room_number": "434"}, {"year": 2010, "course_id": "692", "building": "Taylor", "capacity": 115, "room_number": "812"}, {"year": 2010, "course_id": "692", "building": "Taylor", "capacity": 71, "room_number": "183"}, {"year": 2010, "course_id": "493", "building": "Lamberton", "capacity": 10, "room_number": "134"}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'building' \u2192 'enriched'", "line_num": 12, "original": "enriched = join(filtered_section, classroom, on: building == building)", "mutated": "enriched = join(filtered_section, classroom, on: enriched == building)"}, {"category": "logic_bug", "description": "Wrong filter value: 'Spring' \u2192 'Sprin'", "line_num": 5, "original": "|> filter(semester == \"Spring\")", "mutated": "|> filter(semester == \"Sprin\")"}], "difficulty": "hard", "domain": "college_2__section", "num_nodes": 5, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"project_outcomes": [{"project_id": 4, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 3, "outcome_code": "Patent", "outcome_details": 0}, {"project_id": 9, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 6, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 9, "outcome_code": "Patent", "outcome_details": 0}, {"project_id": 11, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 14, "outcome_code": "Patent", "outcome_details": 0}, {"project_id": 14, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 13, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 12, "outcome_code": "Patent", "outcome_details": 0}, {"project_id": 7, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 5, "outcome_code": "Patent", "outcome_details": 0}, {"project_id": 7, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 13, "outcome_code": "Paper", "outcome_details": 0}, {"project_id": 7, "outcome_code": "Paper", "outcome_details": 0}], "projects": [{"project_id": 1, "organisation_id": 15, "project_details": "porro"}, {"project_id": 2, "organisation_id": 11, "project_details": "et"}, {"project_id": 3, "organisation_id": 7, "project_details": "sint"}, {"project_id": 4, "organisation_id": 4, "project_details": "doloremque"}, {"project_id": 5, "organisation_id": 11, "project_details": "vel"}, {"project_id": 6, "organisation_id": 10, "project_details": "deserunt"}, {"project_id": 7, "organisation_id": 3, "project_details": "deleniti"}, {"project_id": 8, "organisation_id": 1, "project_details": "ad"}, {"project_id": 9, "organisation_id": 4, "project_details": "sed"}, {"project_id": 10, "organisation_id": 4, "project_details": "consectetur"}, {"project_id": 11, "organisation_id": 13, "project_details": "impedit"}, {"project_id": 12, "organisation_id": 12, "project_details": "omnis"}, {"project_id": 13, "organisation_id": 3, "project_details": "non"}, {"project_id": 14, "organisation_id": 1, "project_details": "beatae"}, {"project_id": 15, "organisation_id": 5, "project_details": "dolorem"}]}, "correct_code": "-- Load tracking_grants_for_research__project_outcomes data\nproject_outcomes = load(\"project_outcomes\")\n\nfiltered_project_outcomes = project_outcomes\n |> filter(outcome_code == \"Paper\")\n\nsummary = filtered_project_outcomes\n |> group_by(outcome_code)\n |> aggregate(total_project_id: sum(project_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__project_outcomes data\nproject_outcomes = load(\"project_outcomes\")\n\nfiltered_project_outcomes = project_outcomes\n |> filter(outcome_code == \"paper\")\n\nsummary = filtered_project_outcomes\n |> group_by(outcome_code)\n |> aggregate(total_project_id: sum(project_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"outcome_code": "Paper", "total_project_id": 91, "count": 10}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Paper' \u2192 'paper'", "line_num": 5, "original": "|> filter(outcome_code == \"Paper\")", "mutated": "|> filter(outcome_code == \"paper\")"}], "difficulty": "hard", "domain": "tracking_grants_for_research__project_outcomes", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"problem_log": [{"problem_log_id": 1, "assigned_to_staff_id": 11, "problem_id": 11, "problem_category_code": "Middleware", "problem_status_code": "Solved", "log_entry_date": "2011-03-13 13:11:57", "log_entry_description": "t", "log_entry_fix": "k", "other_log_details": "p"}, {"problem_log_id": 2, "assigned_to_staff_id": 11, "problem_id": 8, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1976-03-31 14:03:02", "log_entry_description": "a", "log_entry_fix": "k", "other_log_details": "s"}, {"problem_log_id": 3, "assigned_to_staff_id": 12, "problem_id": 1, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1974-12-11 01:06:22", "log_entry_description": "b", "log_entry_fix": "j", "other_log_details": "e"}, {"problem_log_id": 4, "assigned_to_staff_id": 12, "problem_id": 12, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-04-02 11:07:29", "log_entry_description": "a", "log_entry_fix": "t", "other_log_details": "b"}, {"problem_log_id": 5, "assigned_to_staff_id": 6, "problem_id": 12, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "1976-09-17 09:01:12", "log_entry_description": "c", "log_entry_fix": "n", "other_log_details": "u"}, {"problem_log_id": 6, "assigned_to_staff_id": 2, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1983-07-01 02:12:36", "log_entry_description": "h", "log_entry_fix": "g", "other_log_details": "n"}, {"problem_log_id": 7, "assigned_to_staff_id": 13, "problem_id": 1, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1974-09-13 00:37:26", "log_entry_description": "s", "log_entry_fix": "c", "other_log_details": "v"}, {"problem_log_id": 8, "assigned_to_staff_id": 4, "problem_id": 15, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1999-08-17 00:00:18", "log_entry_description": "j", "log_entry_fix": "h", "other_log_details": "j"}, {"problem_log_id": 9, "assigned_to_staff_id": 10, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-06-21 22:33:35", "log_entry_description": "p", "log_entry_fix": "i", "other_log_details": "f"}, {"problem_log_id": 10, "assigned_to_staff_id": 6, "problem_id": 1, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "2001-05-14 10:03:53", "log_entry_description": "d", "log_entry_fix": "x", "other_log_details": "d"}, {"problem_log_id": 11, "assigned_to_staff_id": 1, "problem_id": 8, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1973-03-12 16:30:50", "log_entry_description": "w", "log_entry_fix": "k", "other_log_details": "a"}, {"problem_log_id": 12, "assigned_to_staff_id": 4, "problem_id": 10, "problem_category_code": "Middleware", "problem_status_code": "Solved", "log_entry_date": "1997-08-31 08:19:12", "log_entry_description": "c", "log_entry_fix": "y", "other_log_details": "c"}, {"problem_log_id": 13, "assigned_to_staff_id": 6, "problem_id": 10, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "2009-04-10 19:09:30", "log_entry_description": "q", "log_entry_fix": "t", "other_log_details": "o"}, {"problem_log_id": 14, "assigned_to_staff_id": 8, "problem_id": 4, "problem_category_code": "Datatabase", "problem_status_code": "Reported", "log_entry_date": "2011-11-12 23:30:53", "log_entry_description": "a", "log_entry_fix": "s", "other_log_details": "c"}, {"problem_log_id": 15, "assigned_to_staff_id": 5, "problem_id": 7, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1982-11-17 06:05:52", "log_entry_description": "v", "log_entry_fix": "o", "other_log_details": "d"}], "problem_category_codes": [{"problem_category_code": "Datatabase", "problem_category_description": "Database design or contents."}, {"problem_category_code": "GUI", "problem_category_description": "User Interface."}, {"problem_category_code": "Middleware", "problem_category_description": "Infrastructrure and Architecture"}]}, "correct_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n\nfiltered_problem_log = problem_log\n |> filter(assigned_to_staff_id < 4)\n\nsummary = filtered_problem_log\n |> group_by(problem_status_code)\n |> aggregate(avg_problem_log_id: avg(problem_log_id), count: count())\n\nresult = summary\n |> sort_by(avg_problem_log_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n\nfiltered_problem_log = problem_log\n |> filter(assigned_to_staff_id < 4)\n\nsummary = filtered_problem_log\n |> group_by(problem_status_code)\n |> aggregate(avg_problem_log_id: avg(problem_log_id), count: count())\n\nresult = summary\n |> sort_by(avg_problem_log_id, desc)\n take(5)\n\nemit result", "expected_output": [{"problem_status_code": "Solved", "avg_problem_log_id": 8.5, "count": 2}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 13, "original": "|> take(5)", "mutated": "take(5)"}], "difficulty": "easy", "domain": "tracking_software_problems__problem_log", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"customer_addresses": [{"customer_id": 5, "address_id": 6, "date_from": "2016-09-06 19:23:46", "address_type": "House", "date_to": "2018-02-25 15:34:58"}, {"customer_id": 14, "address_id": 5, "date_from": "2016-12-21 03:49:54", "address_type": "House", "date_to": "2018-03-13 21:20:21"}, {"customer_id": 2, "address_id": 2, "date_from": "2014-06-09 06:31:49", "address_type": "Flat", "date_to": "2018-03-02 21:56:40"}, {"customer_id": 10, "address_id": 6, "date_from": "2011-05-24 21:49:34", "address_type": "House", "date_to": "2018-03-18 12:45:44"}, {"customer_id": 14, "address_id": 2, "date_from": "2011-12-06 16:49:10", "address_type": "Flat", "date_to": "2018-02-24 20:18:08"}, {"customer_id": 10, "address_id": 1, "date_from": "2012-05-24 11:47:54", "address_type": "House", "date_to": "2018-03-14 20:26:33"}, {"customer_id": 7, "address_id": 3, "date_from": "2016-08-17 17:45:20", "address_type": "Flat", "date_to": "2018-03-16 14:09:24"}, {"customer_id": 4, "address_id": 9, "date_from": "2009-08-03 03:17:03", "address_type": "House", "date_to": "2018-03-15 23:45:59"}, {"customer_id": 3, "address_id": 7, "date_from": "2010-12-29 11:01:39", "address_type": "House", "date_to": "2018-03-22 02:54:10"}, {"customer_id": 12, "address_id": 6, "date_from": "2012-08-31 15:41:03", "address_type": "Flat", "date_to": "2018-03-02 23:42:49"}, {"customer_id": 12, "address_id": 11, "date_from": "2008-04-02 08:23:13", "address_type": "Apartment", "date_to": "2018-03-17 12:51:37"}, {"customer_id": 14, "address_id": 10, "date_from": "2011-08-18 09:40:49", "address_type": "House", "date_to": "2018-03-06 15:48:13"}, {"customer_id": 1, "address_id": 11, "date_from": "2014-12-20 18:58:32", "address_type": "House", "date_to": "2018-02-27 00:53:48"}, {"customer_id": 8, "address_id": 6, "date_from": "2013-05-06 00:49:45", "address_type": "Flat", "date_to": "2018-03-05 01:34:02"}, {"customer_id": 12, "address_id": 5, "date_from": "2017-11-01 10:59:35", "address_type": "Flat", "date_to": "2018-03-09 05:05:17"}], "customers": [{"customer_id": 1, "payment_method": "Visa", "customer_name": "Ron Emard", "customer_phone": "1-382-503-5179x53639", "customer_email": "shaniya45@example.net", "date_became_customer": "2011-04-25 22:20:35"}, {"customer_id": 2, "payment_method": "MasterCard", "customer_name": "Gabe Schroeder", "customer_phone": "1-728-537-4293x0885", "customer_email": "alexandra91@example.net", "date_became_customer": "2011-10-17 16:08:25"}, {"customer_id": 3, "payment_method": "Discover", "customer_name": "Candace Schneider", "customer_phone": "940.575.3682x7959", "customer_email": "tkassulke@example.com", "date_became_customer": "2012-01-11 21:17:01"}, {"customer_id": 4, "payment_method": "Visa", "customer_name": "Jaden Lang", "customer_phone": "361.151.3489x7272", "customer_email": "dedric17@example.org", "date_became_customer": "2009-12-29 17:38:10"}, {"customer_id": 5, "payment_method": "Visa", "customer_name": "Geovanni Grady", "customer_phone": "1-005-644-2495", "customer_email": "elmira.langworth@example.org", "date_became_customer": "2017-05-21 07:09:55"}, {"customer_id": 6, "payment_method": "Visa", "customer_name": "Dr. Karine Farrell", "customer_phone": "+49(2)0677806107", "customer_email": "reichel.winnifred@example.org", "date_became_customer": "2010-11-06 08:42:56"}, {"customer_id": 7, "payment_method": "Discover", "customer_name": "Emmanuel Reilly", "customer_phone": "129.959.6420", "customer_email": "gleichner.ethelyn@example.net", "date_became_customer": "2013-11-29 06:15:22"}, {"customer_id": 8, "payment_method": "MasterCard", "customer_name": "Keenan Kuhic", "customer_phone": "686-517-9923x348", "customer_email": "dallin76@example.org", "date_became_customer": "2013-04-09 18:17:05"}, {"customer_id": 9, "payment_method": "American", "customer_name": "Rusty Morar", "customer_phone": "1-123-197-9677x7194", "customer_email": "njenkins@example.org", "date_became_customer": "2015-09-09 09:29:06"}, {"customer_id": 10, "payment_method": "Visa", "customer_name": "Lila Howe", "customer_phone": "1-492-284-1097", "customer_email": "leann.hamill@example.org", "date_became_customer": "2014-02-04 04:51:58"}, {"customer_id": 11, "payment_method": "Visa", "customer_name": "Amalia Hudson DDS", "customer_phone": "003-991-1506x483", "customer_email": "danika49@example.com", "date_became_customer": "2014-02-25 19:39:51"}, {"customer_id": 12, "payment_method": "Discover", "customer_name": "Verda Streich", "customer_phone": "06730471330", "customer_email": "xgraham@example.org", "date_became_customer": "2008-10-12 12:19:27"}, {"customer_id": 13, "payment_method": "Discover", "customer_name": "Patience Yundt", "customer_phone": "969-208-8932x715", "customer_email": "kira82@example.com", "date_became_customer": "2017-03-25 18:48:04"}, {"customer_id": 14, "payment_method": "Visa", "customer_name": "Annabell Walsh", "customer_phone": "(881)096-1281x6448", "customer_email": "adriana83@example.org", "date_became_customer": "2017-06-30 19:02:11"}, {"customer_id": 15, "payment_method": "Visa", "customer_name": "Aracely Borer V", "customer_phone": "531-617-3230", "customer_email": "rollin95@example.net", "date_became_customer": "2015-09-13 22:39:50"}]}, "correct_code": "-- Load customer_deliveries__customer_addresses data\ncustomer_addresses = load(\"customer_addresses\")\n |> select(date_from, address_id, customer_id)\n\n-- Load lookup data\ncustomers = load(\"customers\")\n\nenriched = join(customer_addresses, customers, on: customer_id == customer_id)\n\nresult = enriched\n |> sort_by(customer_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__customer_addresses data\ncustomer_addresses = load(\"customer_addresses\")\n |> select(date_from, address_id, customer_id)\n\n-- Load lookup data\ncustomers = load(\"customers\")\n\nenriched = join(customer_addresses, customers, on: customer_id == customer_id)\n\nresult = enriched\n |> sort_by(address_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"date_from": "2014-12-20 18:58:32", "address_id": 11, "customer_id": 1, "payment_method": "Visa", "customer_name": "Ron Emard", "customer_phone": "1-382-503-5179x53639", "customer_email": "shaniya45@example.net", "date_became_customer": "2011-04-25 22:20:35"}, {"date_from": "2014-06-09 06:31:49", "address_id": 2, "customer_id": 2, "payment_method": "MasterCard", "customer_name": "Gabe Schroeder", "customer_phone": "1-728-537-4293x0885", "customer_email": "alexandra91@example.net", "date_became_customer": "2011-10-17 16:08:25"}, {"date_from": "2010-12-29 11:01:39", "address_id": 7, "customer_id": 3, "payment_method": "Discover", "customer_name": "Candace Schneider", "customer_phone": "940.575.3682x7959", "customer_email": "tkassulke@example.com", "date_became_customer": "2012-01-11 21:17:01"}, {"date_from": "2009-08-03 03:17:03", "address_id": 9, "customer_id": 4, "payment_method": "Visa", "customer_name": "Jaden Lang", "customer_phone": "361.151.3489x7272", "customer_email": "dedric17@example.org", "date_became_customer": "2009-12-29 17:38:10"}, {"date_from": "2016-09-06 19:23:46", "address_id": 6, "customer_id": 5, "payment_method": "Visa", "customer_name": "Geovanni Grady", "customer_phone": "1-005-644-2495", "customer_email": "elmira.langworth@example.org", "date_became_customer": "2017-05-21 07:09:55"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'customer_id' \u2192 'address_id'", "line_num": 11, "original": "|> sort_by(customer_id, asc)", "mutated": "|> sort_by(address_id, asc)"}], "difficulty": "hard", "domain": "customer_deliveries__customer_addresses", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"participates_in": [{"stuid": 1001, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1001, "actid": 777}, {"stuid": 1002, "actid": 772}, {"stuid": 1002, "actid": 771}, {"stuid": 1003, "actid": 778}, {"stuid": 1004, "actid": 780}, {"stuid": 1004, "actid": 782}, {"stuid": 1004, "actid": 778}, {"stuid": 1004, "actid": 777}, {"stuid": 1005, "actid": 770}, {"stuid": 1006, "actid": 773}, {"stuid": 1007, "actid": 773}, {"stuid": 1007, "actid": 784}, {"stuid": 1008, "actid": 785}, {"stuid": 1008, "actid": 773}, {"stuid": 1008, "actid": 780}, {"stuid": 1008, "actid": 790}, {"stuid": 1009, "actid": 778}, {"stuid": 1009, "actid": 777}, {"stuid": 1009, "actid": 782}, {"stuid": 1010, "actid": 780}, {"stuid": 1011, "actid": 780}, {"stuid": 1012, "actid": 780}, {"stuid": 1014, "actid": 780}, {"stuid": 1014, "actid": 777}, {"stuid": 1014, "actid": 778}, {"stuid": 1014, "actid": 782}, {"stuid": 1014, "actid": 770}, {"stuid": 1014, "actid": 772}, {"stuid": 1015, "actid": 785}, {"stuid": 1016, "actid": 791}, {"stuid": 1016, "actid": 772}, {"stuid": 1017, "actid": 791}, {"stuid": 1017, "actid": 771}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 790}, {"stuid": 1018, "actid": 785}, {"stuid": 1018, "actid": 784}, {"stuid": 1018, "actid": 777}, {"stuid": 1018, "actid": 772}, {"stuid": 1018, "actid": 770}, {"stuid": 1019, "actid": 785}, {"stuid": 1019, "actid": 790}, {"stuid": 1020, "actid": 780}, {"stuid": 1021, "actid": 780}, {"stuid": 1021, "actid": 776}, {"stuid": 1022, "actid": 782}, {"stuid": 1022, "actid": 790}, {"stuid": 1023, "actid": 790}, {"stuid": 1023, "actid": 776}, {"stuid": 1024, "actid": 778}, {"stuid": 1024, "actid": 777}, {"stuid": 1024, "actid": 780}, {"stuid": 1025, "actid": 780}, {"stuid": 1025, "actid": 777}, {"stuid": 1025, "actid": 770}, {"stuid": 1028, "actid": 785}, {"stuid": 1029, "actid": 785}, {"stuid": 1029, "actid": 790}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}, {"stuid": 1033, "actid": 780}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(actid < 771)\n |> select(stuid, actid)\n\nresult = filtered_participates_in\n |> sort_by(actid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(actid < 771)\n |> select(stuid, actid)\n\nresult = filtered_participates_in\n |> sort_by(actid, asc)\n |> take(1)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 770}, {"stuid": 1005, "actid": 770}, {"stuid": 1014, "actid": 770}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 10, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "hard", "domain": "activity_1__participates_in", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"problem_log": [{"problem_log_id": 1, "assigned_to_staff_id": 11, "problem_id": 11, "problem_category_code": "Middleware", "problem_status_code": "Solved", "log_entry_date": "2011-03-13 13:11:57", "log_entry_description": "t", "log_entry_fix": "k", "other_log_details": "p"}, {"problem_log_id": 2, "assigned_to_staff_id": 11, "problem_id": 8, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1976-03-31 14:03:02", "log_entry_description": "a", "log_entry_fix": "k", "other_log_details": "s"}, {"problem_log_id": 3, "assigned_to_staff_id": 12, "problem_id": 1, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1974-12-11 01:06:22", "log_entry_description": "b", "log_entry_fix": "j", "other_log_details": "e"}, {"problem_log_id": 4, "assigned_to_staff_id": 12, "problem_id": 12, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-04-02 11:07:29", "log_entry_description": "a", "log_entry_fix": "t", "other_log_details": "b"}, {"problem_log_id": 5, "assigned_to_staff_id": 6, "problem_id": 12, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "1976-09-17 09:01:12", "log_entry_description": "c", "log_entry_fix": "n", "other_log_details": "u"}, {"problem_log_id": 6, "assigned_to_staff_id": 2, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Solved", "log_entry_date": "1983-07-01 02:12:36", "log_entry_description": "h", "log_entry_fix": "g", "other_log_details": "n"}, {"problem_log_id": 7, "assigned_to_staff_id": 13, "problem_id": 1, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1974-09-13 00:37:26", "log_entry_description": "s", "log_entry_fix": "c", "other_log_details": "v"}, {"problem_log_id": 8, "assigned_to_staff_id": 4, "problem_id": 15, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1999-08-17 00:00:18", "log_entry_description": "j", "log_entry_fix": "h", "other_log_details": "j"}, {"problem_log_id": 9, "assigned_to_staff_id": 10, "problem_id": 13, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1993-06-21 22:33:35", "log_entry_description": "p", "log_entry_fix": "i", "other_log_details": "f"}, {"problem_log_id": 10, "assigned_to_staff_id": 6, "problem_id": 1, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "2001-05-14 10:03:53", "log_entry_description": "d", "log_entry_fix": "x", "other_log_details": "d"}, {"problem_log_id": 11, "assigned_to_staff_id": 1, "problem_id": 8, "problem_category_code": "Datatabase", "problem_status_code": "Solved", "log_entry_date": "1973-03-12 16:30:50", "log_entry_description": "w", "log_entry_fix": "k", "other_log_details": "a"}, {"problem_log_id": 12, "assigned_to_staff_id": 4, "problem_id": 10, "problem_category_code": "Middleware", "problem_status_code": "Solved", "log_entry_date": "1997-08-31 08:19:12", "log_entry_description": "c", "log_entry_fix": "y", "other_log_details": "c"}, {"problem_log_id": 13, "assigned_to_staff_id": 6, "problem_id": 10, "problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_date": "2009-04-10 19:09:30", "log_entry_description": "q", "log_entry_fix": "t", "other_log_details": "o"}, {"problem_log_id": 14, "assigned_to_staff_id": 8, "problem_id": 4, "problem_category_code": "Datatabase", "problem_status_code": "Reported", "log_entry_date": "2011-11-12 23:30:53", "log_entry_description": "a", "log_entry_fix": "s", "other_log_details": "c"}, {"problem_log_id": 15, "assigned_to_staff_id": 5, "problem_id": 7, "problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_date": "1982-11-17 06:05:52", "log_entry_description": "v", "log_entry_fix": "o", "other_log_details": "d"}], "problem_category_codes": [{"problem_category_code": "Datatabase", "problem_category_description": "Database design or contents."}, {"problem_category_code": "GUI", "problem_category_description": "User Interface."}, {"problem_category_code": "Middleware", "problem_category_description": "Infrastructrure and Architecture"}]}, "correct_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n\nfiltered_problem_log = problem_log\n |> filter(problem_status_code == \"Reported\")\n\nsummary = filtered_problem_log\n |> group_by(log_entry_fix)\n |> aggregate(min_problem_log_id: min(problem_log_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n\nfiltered_problem_log = problem_log\n |> filter(problem_status_code == \"Reported\")\n\nsummary = filtered_problem_log\n |> group_by(log_entry_fix)\n |> aggregate(min_problem_log_id: avg(problem_log_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"log_entry_fix": "n", "min_problem_log_id": 5, "count": 1}, {"log_entry_fix": "i", "min_problem_log_id": 9, "count": 1}, {"log_entry_fix": "x", "min_problem_log_id": 10, "count": 1}, {"log_entry_fix": "s", "min_problem_log_id": 14, "count": 1}, {"log_entry_fix": "o", "min_problem_log_id": 15, "count": 1}, {"log_entry_fix": "t", "min_problem_log_id": 4, "count": 2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'min' \u2192 'avg'", "line_num": 9, "original": "|> aggregate(min_problem_log_id: min(problem_log_id), count: count())", "mutated": "|> aggregate(min_problem_log_id: avg(problem_log_id), count: count())"}], "difficulty": "easy", "domain": "tracking_software_problems__problem_log", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"treatments": [{"treatment_id": 1, "dog_id": 14, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-19 04:39:54", "cost_of_treatment": 567}, {"treatment_id": 2, "dog_id": 4, "professional_id": 10, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-15 20:25:34", "cost_of_treatment": 147}, {"treatment_id": 3, "dog_id": 14, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-08 05:26:23", "cost_of_treatment": 429}, {"treatment_id": 4, "dog_id": 2, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-01 04:14:46", "cost_of_treatment": 266}, {"treatment_id": 5, "dog_id": 12, "professional_id": 14, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-23 13:52:10", "cost_of_treatment": 668}, {"treatment_id": 6, "dog_id": 10, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-11 04:23:15", "cost_of_treatment": 313}, {"treatment_id": 7, "dog_id": 15, "professional_id": 14, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-10 11:45:58", "cost_of_treatment": 852}, {"treatment_id": 8, "dog_id": 2, "professional_id": 6, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-24 22:25:58", "cost_of_treatment": 407}, {"treatment_id": 9, "dog_id": 14, "professional_id": 10, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-14 19:10:40", "cost_of_treatment": 139}, {"treatment_id": 10, "dog_id": 10, "professional_id": 7, "treatment_type_code": "WALK", "date_of_treatment": "2018-02-28 17:09:43", "cost_of_treatment": 681}, {"treatment_id": 11, "dog_id": 15, "professional_id": 5, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-13 12:22:58", "cost_of_treatment": 514}, {"treatment_id": 12, "dog_id": 13, "professional_id": 9, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-16 10:27:36", "cost_of_treatment": 428}, {"treatment_id": 13, "dog_id": 7, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-02-26 09:08:53", "cost_of_treatment": 945}, {"treatment_id": 14, "dog_id": 10, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-04 20:33:43", "cost_of_treatment": 349}, {"treatment_id": 15, "dog_id": 1, "professional_id": 6, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-15 19:10:02", "cost_of_treatment": 656}], "treatment_types": [{"treatment_type_code": "EXAM", "treatment_type_description": "Physical examination"}, {"treatment_type_code": "VAC", "treatment_type_description": "Vaccination"}, {"treatment_type_code": "WALK", "treatment_type_description": "Take for a Walk"}]}, "correct_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_id <= 2)\n |> select(treatment_type_code, treatment_id, dog_id)\n |> compute(computed_val: treatment_id / dog_id)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_id <= treatment_id)\n |> select(treatment_type_code, treatment_id, dog_id)\n |> compute(computed_val: treatment_id / dog_id)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"treatment_type_code": "WALK", "treatment_id": 1, "dog_id": 14, "computed_val": 0.07142857142857142}, {"treatment_type_code": "VAC", "treatment_id": 2, "dog_id": 4, "computed_val": 0.5}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '2' \u2192 'treatment_id'", "line_num": 5, "original": "|> filter(treatment_id <= 2)", "mutated": "|> filter(treatment_id <= treatment_id)"}], "difficulty": "hard", "domain": "dog_kennels__treatments", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"transactions_lots": [{"transaction_id": 3, "lot_id": 11}, {"transaction_id": 3, "lot_id": 8}, {"transaction_id": 2, "lot_id": 11}, {"transaction_id": 3, "lot_id": 14}, {"transaction_id": 12, "lot_id": 10}, {"transaction_id": 15, "lot_id": 10}, {"transaction_id": 10, "lot_id": 10}, {"transaction_id": 1, "lot_id": 1}, {"transaction_id": 1, "lot_id": 14}, {"transaction_id": 3, "lot_id": 4}, {"transaction_id": 14, "lot_id": 9}, {"transaction_id": 7, "lot_id": 1}, {"transaction_id": 12, "lot_id": 15}, {"transaction_id": 6, "lot_id": 3}, {"transaction_id": 2, "lot_id": 1}], "lots": [{"lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"lot_id": 2, "investor_id": 16, "lot_details": "z"}, {"lot_id": 3, "investor_id": 10, "lot_details": "s"}, {"lot_id": 4, "investor_id": 19, "lot_details": "s"}, {"lot_id": 5, "investor_id": 6, "lot_details": "q"}, {"lot_id": 6, "investor_id": 20, "lot_details": "d"}, {"lot_id": 7, "investor_id": 7, "lot_details": "m"}, {"lot_id": 8, "investor_id": 7, "lot_details": "h"}, {"lot_id": 9, "investor_id": 20, "lot_details": "z"}, {"lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"lot_id": 12, "investor_id": 19, "lot_details": "m"}, {"lot_id": 13, "investor_id": 7, "lot_details": "z"}, {"lot_id": 14, "investor_id": 6, "lot_details": "d"}, {"lot_id": 15, "investor_id": 1, "lot_details": "h"}]}, "correct_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n |> select(lot_id, transaction_id)\n\nprocessed = transactions_lots\n |> compute(computed_val: lot_id * transaction_id)\n\nresult = processed\n |> sort_by(transaction_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n |> select(lot_id, transaction_id)\n\nprocessed = transactions_lots\n |> compute(computed_val: lot_id * transaction_id)\n\nresult = processed\n |> sort_by(transaction_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"lot_id": 10, "transaction_id": 15, "computed_val": 150}, {"lot_id": 9, "transaction_id": 14, "computed_val": 126}, {"lot_id": 10, "transaction_id": 12, "computed_val": 120}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 9, "original": "|> sort_by(transaction_id, desc)", "mutated": "|> sort_by(transaction_id, asc)"}], "difficulty": "medium", "domain": "tracking_share_transactions__transactions_lots", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"highschooler": [{"id": 1510, "name": "Jordan", "grade": 9}, {"id": 1689, "name": "Gabriel", "grade": 9}, {"id": 1381, "name": "Tiffany", "grade": 9}, {"id": 1709, "name": "Cassandra", "grade": 9}, {"id": 1101, "name": "Haley", "grade": 10}, {"id": 1782, "name": "Andrew", "grade": 10}, {"id": 1468, "name": "Kris", "grade": 10}, {"id": 1641, "name": "Brittany", "grade": 10}, {"id": 1247, "name": "Alexis", "grade": 11}, {"id": 1316, "name": "Austin", "grade": 11}, {"id": 1911, "name": "Gabriel", "grade": 11}, {"id": 1501, "name": "Jessica", "grade": 11}, {"id": 1304, "name": "Jordan", "grade": 12}, {"id": 1025, "name": "John", "grade": 12}, {"id": 1934, "name": "Kyle", "grade": 12}, {"id": 1661, "name": "Logan", "grade": 12}], "likes": [{"student_id": 1689, "liked_id": 1709}, {"student_id": 1709, "liked_id": 1689}, {"student_id": 1782, "liked_id": 1709}, {"student_id": 1911, "liked_id": 1247}, {"student_id": 1247, "liked_id": 1468}, {"student_id": 1641, "liked_id": 1468}, {"student_id": 1316, "liked_id": 1304}, {"student_id": 1501, "liked_id": 1934}, {"student_id": 1934, "liked_id": 1501}, {"student_id": 1025, "liked_id": 1101}]}, "correct_code": "-- Load network_1__highschooler data\nhighschooler = load(\"highschooler\")\n\nfiltered_highschooler = highschooler\n |> filter(name == \"Kyle\")\n |> select(grade, name, id)\n\nsummary = filtered_highschooler\n |> group_by(name)\n |> aggregate(max_grade: max(grade), count: count())\n\nresult = summary\n |> sort_by(max_grade, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load network_1__highschooler data\nhighschooler = load(\"highschooler\")\n\nfiltered_highschooler = highschooler\n |> filter(name == \"kyle\")\n |> select(grade, name, id)\n\nsummary = filtered_highschooler\n |> group_by(name)\n |> aggregate(max_grade: max(grade), count: count())\n\nresult = summary\n |> sort_by(max_grade, desc)\n |> take(3)\n\nemit result", "expected_output": [{"name": "Kyle", "max_grade": 12, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Kyle' \u2192 'kyle'", "line_num": 5, "original": "|> filter(name == \"Kyle\")", "mutated": "|> filter(name == \"kyle\")"}], "difficulty": "hard", "domain": "network_1__highschooler", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"takes": [{"id": "65901", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "24932", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B-"}, {"id": "61332", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "73492", "course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A "}, {"id": "65715", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B+"}, {"id": "58300", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "760", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "69730", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A "}, {"id": "94836", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "49391", "course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "48850", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C-"}, {"id": "68999", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A+"}, {"id": "53469", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C "}, {"id": "74016", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A-"}, {"id": "49073", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "C-"}, {"id": "52866", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "83314", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A "}, {"id": "70359", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A-"}, {"id": "88993", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C+"}, {"id": "97042", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A-"}, {"id": "33460", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C+"}, {"id": "81207", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A+"}, {"id": "68010", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "A+"}, {"id": "15517", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A+"}, {"id": "8957", "course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "8986", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A "}, {"id": "7956", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C "}, {"id": "792", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "A-"}, {"id": "84189", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B-"}, {"id": "92659", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "C "}, {"id": "22198", "course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "8957", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B "}, {"id": "36244", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A-"}, {"id": "97658", "course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "A "}, {"id": "89104", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "5393", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "80248", "course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B-"}, {"id": "30222", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "64155", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "A+"}, {"id": "99660", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A "}, {"id": "8517", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B-"}, {"id": "31820", "course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "grade": "B-"}, {"id": "46769", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "43505", "course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A+"}, {"id": "79589", "course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "grade": "A "}, {"id": "70235", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "11126", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "27366", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A-"}, {"id": "3576", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "3127", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B "}, {"id": "39619", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "33651", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C-"}, {"id": "62520", "course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C-"}, {"id": "86573", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B "}, {"id": "792", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B-"}, {"id": "27528", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B "}, {"id": "52945", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "37103", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C+"}, {"id": "11126", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "62152", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "3127", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B "}, {"id": "2848", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "A "}, {"id": "20985", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "69628", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "B "}, {"id": "78572", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "C "}, {"id": "60366", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A "}, {"id": "52741", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "72501", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "5250", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C-"}, {"id": "38013", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "C "}, {"id": "88417", "course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "grade": "A-"}, {"id": "2286", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A "}, {"id": "15083", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "336", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A-"}, {"id": "64934", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "A-"}, {"id": "499", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C-"}, {"id": "56598", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C-"}, {"id": "46074", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C-"}, {"id": "47627", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "85063", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "A+"}, {"id": "43032", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B-"}, {"id": "34055", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "16250", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B+"}, {"id": "16907", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "A "}, {"id": "66356", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B+"}, {"id": "3335", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "C "}, {"id": "72501", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C-"}, {"id": "18583", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "53152", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "grade": "C-"}, {"id": "17924", "course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "grade": "A+"}, {"id": "77729", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "B+"}, {"id": "4248", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "46106", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C-"}, {"id": "14621", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "grade": "C-"}, {"id": "14829", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "50658", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B "}, {"id": "44706", "course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C-"}, {"id": "92949", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C "}, {"id": "66969", "course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "grade": "C-"}, {"id": "97658", "course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "17607", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "52876", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "grade": "A "}, {"id": "56058", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "B-"}, {"id": "15883", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "99271", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "C-"}, {"id": "67560", "course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "grade": "B "}, {"id": "85063", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C "}, {"id": "7287", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B-"}, {"id": "35462", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "49450", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A-"}, {"id": "78922", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "B+"}, {"id": "94569", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "1018", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "32245", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C "}, {"id": "51093", "course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C-"}, {"id": "29390", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "B+"}, {"id": "47379", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "10204", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A-"}, {"id": "90381", "course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "grade": "C-"}, {"id": "36926", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B "}, {"id": "70688", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A "}, {"id": "54728", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "15070", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "52741", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "A "}, {"id": "79469", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "C+"}, {"id": "79446", "course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A+"}, {"id": "44551", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C-"}, {"id": "83622", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A+"}, {"id": "64196", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "A "}, {"id": "88140", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C-"}, {"id": "28361", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "grade": "A+"}, {"id": "51008", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "B+"}, {"id": "1110", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "B "}, {"id": "96134", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "C-"}, {"id": "98830", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "14874", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "23270", "course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "993", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "B-"}, {"id": "19791", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A-"}, {"id": "57083", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "B "}, {"id": "72528", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "A+"}, {"id": "95953", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C+"}, {"id": "35357", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "62520", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "B "}, {"id": "50583", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "B "}, {"id": "93354", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "A "}, {"id": "55857", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B+"}, {"id": "53048", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "89414", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "B-"}, {"id": "99710", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "grade": "A+"}, {"id": "95852", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "C-"}, {"id": "84702", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C "}, {"id": "82918", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "grade": "C-"}, {"id": "70452", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C "}, {"id": "38271", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "67425", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "C "}, {"id": "78892", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "grade": "C+"}, {"id": "79205", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "grade": "A-"}, {"id": "42298", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "83836", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B-"}, {"id": "56598", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "A+"}, {"id": "34322", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "B+"}, {"id": "56755", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "grade": "C+"}, {"id": "68248", "course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A-"}, {"id": "36845", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C+"}, {"id": "48660", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A-"}, {"id": "91799", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C-"}, {"id": "89551", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "B+"}, {"id": "87965", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C "}, {"id": "12683", "course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "C-"}, {"id": "87439", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A "}, {"id": "16467", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "C-"}, {"id": "49701", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "B-"}, {"id": "37350", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "B+"}, {"id": "42843", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C "}, {"id": "94766", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "grade": "B "}, {"id": "65676", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "A "}, {"id": "27094", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "A+"}, {"id": "12214", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "grade": "C-"}, {"id": "81566", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "C+"}, {"id": "37101", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "A "}, {"id": "18709", "course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "A+"}, {"id": "86934", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "grade": "C-"}, {"id": "99660", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "A "}, {"id": "41890", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "grade": "A+"}, {"id": "83592", "course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "grade": "B+"}, {"id": "37219", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "grade": "B "}, {"id": "88302", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "grade": "A-"}, {"id": "75040", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "grade": "C+"}, {"id": "36052", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "A-"}, {"id": "72186", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "grade": "A+"}, {"id": "76759", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "grade": "C+"}, {"id": "27804", "course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "grade": "B-"}, {"id": "99189", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "grade": "A "}, {"id": "77898", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "grade": "C+"}, {"id": "47001", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "grade": "C "}, {"id": "3639", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "grade": "B+"}, {"id": "80912", "course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "grade": "A "}, {"id": "52371", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "grade": "C-"}, {"id": "99719", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "grade": "B-"}], "section": [{"course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}, {"course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Gates", "room_number": "314", "time_slot_id": "K"}, {"course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Whitman", "room_number": "434", "time_slot_id": "O"}, {"course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "B"}, {"course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Fairchild", "room_number": "145", "time_slot_id": "D"}, {"course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Alumni", "room_number": "547", "time_slot_id": "J"}, {"course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Saucon", "room_number": "113", "time_slot_id": "J"}, {"course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "building": "Whitman", "room_number": "434", "time_slot_id": "F"}, {"course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Drown", "room_number": "757", "time_slot_id": "D"}, {"course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Power", "room_number": "717", "time_slot_id": "D"}, {"course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "G"}, {"course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "K"}, {"course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "I"}, {"course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Main", "room_number": "45", "time_slot_id": "L"}, {"course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Bronfman", "room_number": "700", "time_slot_id": "N"}, {"course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Saucon", "room_number": "180", "time_slot_id": "M"}, {"course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "113", "time_slot_id": "O"}, {"course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Taylor", "room_number": "812", "time_slot_id": "O"}, {"course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "N"}, {"course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Saucon", "room_number": "844", "time_slot_id": "O"}, {"course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Saucon", "room_number": "180", "time_slot_id": "P"}, {"course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Whitman", "room_number": "134", "time_slot_id": "K"}, {"course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lamberton", "room_number": "134", "time_slot_id": "G"}, {"course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Main", "room_number": "45", "time_slot_id": "K"}, {"course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Saucon", "room_number": "113", "time_slot_id": "K"}, {"course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "D"}, {"course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Fairchild", "room_number": "145", "time_slot_id": "I"}, {"course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "143", "time_slot_id": "H"}, {"course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lambeau", "room_number": "348", "time_slot_id": "J"}, {"course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "L"}, {"course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Alumni", "room_number": "143", "time_slot_id": "O"}, {"course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "183", "time_slot_id": "A"}, {"course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Alumni", "room_number": "547", "time_slot_id": "G"}, {"course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "H"}, {"course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Nassau", "room_number": "45", "time_slot_id": "F"}, {"course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lamberton", "room_number": "143", "time_slot_id": "I"}, {"course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "D"}, {"course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "M"}, {"course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Stabler", "room_number": "105", "time_slot_id": "F"}, {"course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Chandler", "room_number": "804", "time_slot_id": "D"}, {"course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Garfield", "room_number": "119", "time_slot_id": "A"}, {"course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "D"}, {"course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "building": "Gates", "room_number": "707", "time_slot_id": "K"}, {"course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "G"}, {"course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Gates", "room_number": "314", "time_slot_id": "A"}, {"course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "M"}, {"course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "D"}, {"course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "C"}, {"course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Gates", "room_number": "707", "time_slot_id": "E"}, {"course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Chandler", "room_number": "375", "time_slot_id": "C"}, {"course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Polya", "room_number": "808", "time_slot_id": "B"}, {"course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Alumni", "room_number": "547", "time_slot_id": "A"}, {"course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "P"}, {"course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "E"}, {"course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Lamberton", "room_number": "143", "time_slot_id": "B"}, {"course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "E"}, {"course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Nassau", "room_number": "45", "time_slot_id": "L"}, {"course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "building": "Bronfman", "room_number": "700", "time_slot_id": "L"}, {"course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Gates", "room_number": "707", "time_slot_id": "F"}, {"course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "B"}, {"course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Whitman", "room_number": "434", "time_slot_id": "H"}, {"course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "M"}, {"course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Drown", "room_number": "757", "time_slot_id": "C"}, {"course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "812", "time_slot_id": "C"}, {"course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Rathbone", "room_number": "261", "time_slot_id": "E"}, {"course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "building": "Main", "room_number": "425", "time_slot_id": "O"}, {"course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "A"}, {"course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Power", "room_number": "972", "time_slot_id": "I"}, {"course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "building": "Power", "room_number": "717", "time_slot_id": "L"}, {"course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "D"}, {"course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Drown", "room_number": "757", "time_slot_id": "L"}, {"course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Taylor", "room_number": "812", "time_slot_id": "I"}, {"course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Chandler", "room_number": "375", "time_slot_id": "D"}, {"course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Power", "room_number": "717", "time_slot_id": "P"}, {"course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Taylor", "room_number": "812", "time_slot_id": "P"}, {"course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "building": "Stabler", "room_number": "105", "time_slot_id": "J"}, {"course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Power", "room_number": "972", "time_slot_id": "D"}]}, "correct_code": "-- Load college_2__takes data\ntakes = load(\"takes\")\n\nfiltered_takes = takes\n |> filter(grade == \"B-\")\n\nsummary = filtered_takes\n |> group_by(semester)\n |> aggregate(avg_year: avg(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_2__takes data\ntakes = load(\"takes\")\n\nfiltered_takes = takes\n |> filter(grade == \"B-\")\n\nsummary = filtered_takes\n |> group_by(semester)\n |> aggregate(avg_year: sum(year), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"semester": "Spring", "avg_year": 2006.3125, "count": 16}, {"semester": "Fall", "avg_year": 2004.0, "count": 8}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'avg' \u2192 'sum'", "line_num": 9, "original": "|> aggregate(avg_year: avg(year), count: count())", "mutated": "|> aggregate(avg_year: sum(year), count: count())"}, {"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 12, "original": "|> sort_by(count, desc)", "mutated": "|> sort_by(count, asc)"}], "difficulty": "easy", "domain": "college_2__takes", "num_nodes": 4, "has_join": false}