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_medium
{"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 <= 1013)\n |> compute(computed_val: stuid / actid)\n\nresult = filtered_participates_in\n |> sort_by(stuid, asc)\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 <= 1013)\n |> compute(computed_val: stuid / actid)\n\nresult = filtered_participates_in\n |> sort_by(stuid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 770, "computed_val": 1.3}, {"stuid": 1001, "actid": 771, "computed_val": 1.298313878080415}, {"stuid": 1001, "actid": 777, "computed_val": 1.2882882882882882}, {"stuid": 1002, "actid": 772, "computed_val": 1.2979274611398963}, {"stuid": 1002, "actid": 771, "computed_val": 1.2996108949416343}, {"stuid": 1003, "actid": 778, "computed_val": 1.2892030848329048}, {"stuid": 1004, "actid": 780, "computed_val": 1.2871794871794873}, {"stuid": 1004, "actid": 782, "computed_val": 1.2838874680306904}, {"stuid": 1004, "actid": 778, "computed_val": 1.2904884318766068}, {"stuid": 1004, "actid": 777, "computed_val": 1.292149292149292}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 9, "original": "|> sort_by(stuid, asc)", "mutated": "|> sort_by(stuid, desc)"}], "difficulty": "medium", "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_hard
{"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(project_id >= 3)\n |> select(date_from, staff_id, role_code, project_id)\n\n-- Load lookup data\nprojects = load(\"projects\")\n |> select(project_id, project_details, organisation_id)\n\nenriched = join(filtered_project_staff, projects, on: project_id == project_id)\n |> compute(computed_val: staff_id - project_id)\n\nresult = enriched\n |> sort_by(staff_id, asc)\n |> take(10)\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(project_id >= 3)\n |> select(date_from, staff_id, role_code, project_id)\n\n-- Load lookup data\nprojects = load(\"projects\")\n |> select(project_id, project_details, organisation_id)\n\nenriched = join(filtered_project_staff, projects, on: project_id == project_id)\n |> compute(computed_val: staff_id - project_id)\n\nresult = enriched\n |> sort_by(staff_id, asc)\n |> take(9)\n\nemit result", "expected_output": [{"date_from": "1970-03-25 06:18:11", "staff_id": 3.0, "role_code": "researcher", "project_id": 8, "project_details": "ad", "organisation_id": 1, "computed_val": -5.0}, {"date_from": "2005-01-13 11:49:48", "staff_id": 29.0, "role_code": "researcher", "project_id": 9, "project_details": "sed", "organisation_id": 4, "computed_val": 20.0}, {"date_from": "1989-04-24 23:51:54", "staff_id": 37.0, "role_code": "researcher", "project_id": 5, "project_details": "vel", "organisation_id": 11, "computed_val": 32.0}, {"date_from": "2000-08-28 11:49:17", "staff_id": 45.0, "role_code": "researcher", "project_id": 11, "project_details": "impedit", "organisation_id": 13, "computed_val": 34.0}, {"date_from": "1983-02-07 17:55:59", "staff_id": 6572.0, "role_code": "researcher", "project_id": 4, "project_details": "doloremque", "organisation_id": 4, "computed_val": 6568.0}, {"date_from": "2003-04-19 15:06:20", "staff_id": 674810.0, "role_code": "leader", "project_id": 5, "project_details": "vel", "organisation_id": 11, "computed_val": 674805.0}, {"date_from": "1972-01-17 19:42:16", "staff_id": 3100031.0, "role_code": "researcher", "project_id": 11, "project_details": "impedit", "organisation_id": 13, "computed_val": 3100020.0}, {"date_from": "1991-01-11 16:57:50", "staff_id": 5137097.0, "role_code": "researcher", "project_id": 7, "project_details": "deleniti", "organisation_id": 3, "computed_val": 5137090.0}, {"date_from": "2004-11-01 23:52:38", "staff_id": 5353407.0, "role_code": "leader", "project_id": 15, "project_details": "dolorem", "organisation_id": 5, "computed_val": 5353392.0}, {"date_from": "1999-10-21 22:07:15", "staff_id": 6065505.0, "role_code": "leader", "project_id": 3, "project_details": "sint", "organisation_id": 7, "computed_val": 6065502.0}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 9", "line_num": 17, "original": "|> take(10)", "mutated": "|> take(9)"}], "difficulty": "hard", "domain": "tracking_grants_for_research__project_staff", "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": {"route": [{"train_id": 1, "station_id": 1}, {"train_id": 1, "station_id": 2}, {"train_id": 1, "station_id": 3}, {"train_id": 2, "station_id": 1}, {"train_id": 2, "station_id": 3}, {"train_id": 2, "station_id": 7}, {"train_id": 3, "station_id": 4}, {"train_id": 4, "station_id": 6}, {"train_id": 4, "station_id": 2}, {"train_id": 5, "station_id": 1}, {"train_id": 6, "station_id": 5}, {"train_id": 7, "station_id": 4}, {"train_id": 7, "station_id": 5}, {"train_id": 7, "station_id": 8}, {"train_id": 8, "station_id": 8}, {"train_id": 9, "station_id": 7}, {"train_id": 9, "station_id": 8}, {"train_id": 10, "station_id": 9}], "train": [{"id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily"}, {"id": 2, "train_number": 16127, "name": "Guruvayur Express", "origin": "Chennai", "destination": "Guruvayur", "time": "22:10", "interval": "Daily"}, {"id": 3, "train_number": 16128, "name": "Guruvayur Express", "origin": "Guruvayur", "destination": "Chennai", "time": "4:49", "interval": "Daily"}, {"id": 4, "train_number": 16723, "name": "Ananthapuri Express", "origin": "Chennai", "destination": "Trivandrum", "time": "11:35", "interval": "Daily"}, {"id": 5, "train_number": 16382, "name": "Jayanthi Janatha Express", "origin": "Kanniyakumari", "destination": "Mumbai", "time": "06:30", "interval": "Daily"}, {"id": 6, "train_number": 16525, "name": "Island Express", "origin": "Kanniyakumari", "destination": "Bangalore", "time": "11:15", "interval": "Daily"}, {"id": 7, "train_number": 56701, "name": "Madurai Fast Passenger", "origin": "Quilon", "destination": "Madurai", "time": "21:49", "interval": "Daily"}, {"id": 8, "train_number": 56700, "name": "Quilon Fast Passenger", "origin": "Madurai", "destination": "Quilon Junction", "time": "04:55", "interval": "Daily"}, {"id": 9, "train_number": 16526, "name": "Island Express", "origin": "Bangalore", "destination": "Kanniyakumari", "time": "16:59", "interval": "Daily"}, {"id": 10, "train_number": 16381, "name": "Jayanthi Janatha Express", "origin": "Mumbai", "destination": "Kanniyakumari", "time": "10:38", "interval": "Daily"}, {"id": 11, "train_number": 16650, "name": "Parasuram Express", "origin": "Nagercoil", "destination": "Mangalore", "time": "04:20", "interval": "Daily"}]}, "correct_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(train_id > 1)\n\n-- Load lookup data\ntrain = load(\"train\")\n |> select(id, destination, time)\n\nenriched = join(filtered_route, train, on: train_id == id)\n |> compute(computed_val: train_id + station_id)\n\nresult = enriched\n |> sort_by(station_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(train_id > 1)\n\n-- Load lookup data\ntrain = load(\"train\")\n |> select(id, destination, time)\n\nenriched = join(filtered_route, train, on: train_id == id)\n |> compute(computed_val: train_id + station_id)\n\nresult = enriched\n |> sort_by(station_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"train_id": 2, "station_id": 1, "id": 2, "destination": "Guruvayur", "time": "22:10", "computed_val": 3}, {"train_id": 5, "station_id": 1, "id": 5, "destination": "Mumbai", "time": "06:30", "computed_val": 6}, {"train_id": 4, "station_id": 2, "id": 4, "destination": "Trivandrum", "time": "11:35", "computed_val": 6}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 5", "line_num": 16, "original": "|> take(3)", "mutated": "|> take(5)"}], "difficulty": "medium", "domain": "station_weather__route", "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": {"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(total_statusid: sum(statusid), count: count())\n |> compute(computed_val: total_statusid + count)\n\nresult = summary\n |> sort_by(total_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 == \"Ignition\")\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(total_statusid, asc)\n |> take(5)\n\nemit result", "expected_output": [{"status": "Ignition", "total_statusid": 80, "count": 1, "computed_val": 81}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'status' \u2192 'statusid'", "line_num": 5, "original": "|> filter(status == \"Ignition\")", "mutated": "|> filter(statusid == \"Ignition\")"}], "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": {"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_type == \"RES\")\n |> select(organisation_id, organisation_details, organisation_type)\n\nsummary = filtered_organisations\n |> group_by(organisation_type)\n |> aggregate(total_organisation_id: sum(organisation_id), count: count())\n\n-- Load lookup data\norganisation_types = load(\"organisation_types\")\n\nenriched = join(summary, organisation_types, on: organisation_type == organisation_type)\n |> compute(computed_val: count / total_organisation_id)\n\nresult = enriched\n |> sort_by(total_organisation_id, 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_type == \"res\")\n |> select(organisation_id, organisation_details, organisation_type)\n\nsummary = filtered_organisations\n |> group_by(organisation_type)\n |> aggregate(total_organisation_id: sum(organisation_id), count: count())\n\n-- Load lookup data\norganisation_types = load(\"organisation_types\")\n\nenriched = join(summary, organisation_types, on: organisation_type == organisation_type)\n |> compute(computed_val: count / total_organisation_id)\n\nresult = enriched\n |> sort_by(total_organisation_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"organisation_type": "RES", "total_organisation_id": 54, "count": 8, "organisation_type_description": "Research", "computed_val": 0.14814814814814814}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'RES' \u2192 'res'", "line_num": 5, "original": "|> filter(organisation_type == \"RES\")", "mutated": "|> filter(organisation_type == \"res\")"}], "difficulty": "hard", "domain": "tracking_grants_for_research__organisations", "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": {"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, sec_id, year, semester)\n\nsummary = takes\n |> group_by(id)\n |> aggregate(total_year: sum(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 |> select(id, sec_id, year, semester)\n\nsummary = takes\n |> group_by(id)\n |> aggregate(total_year: sum(year), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"id": "8957", "total_year": 4008, "count": 2}, {"id": "792", "total_year": 4014, "count": 2}, {"id": "97658", "total_year": 4009, "count": 2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 10, "original": "|> sort_by(count, desc)", "mutated": "|> sort_by(count, asc)"}], "difficulty": "medium", "domain": "college_2__takes", "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": {"catalog_contents_additional_attributes": [{"catalog_entry_id": 5, "catalog_level_number": 8, "attribute_id": 4, "attribute_value": "1"}, {"catalog_entry_id": 15, "catalog_level_number": 9, "attribute_id": 3, "attribute_value": "0"}, {"catalog_entry_id": 11, "catalog_level_number": 1, "attribute_id": 2, "attribute_value": "0"}, {"catalog_entry_id": 12, "catalog_level_number": 1, "attribute_id": 4, "attribute_value": "0"}, {"catalog_entry_id": 1, "catalog_level_number": 8, "attribute_id": 3, "attribute_value": "1"}, {"catalog_entry_id": 8, "catalog_level_number": 1, "attribute_id": 3, "attribute_value": "1"}, {"catalog_entry_id": 14, "catalog_level_number": 9, "attribute_id": 2, "attribute_value": "0"}, {"catalog_entry_id": 15, "catalog_level_number": 9, "attribute_id": 2, "attribute_value": "0"}, {"catalog_entry_id": 15, "catalog_level_number": 1, "attribute_id": 3, "attribute_value": "1"}, {"catalog_entry_id": 1, "catalog_level_number": 8, "attribute_id": 4, "attribute_value": "0"}, {"catalog_entry_id": 11, "catalog_level_number": 1, "attribute_id": 3, "attribute_value": "1"}, {"catalog_entry_id": 8, "catalog_level_number": 9, "attribute_id": 3, "attribute_value": "0"}, {"catalog_entry_id": 2, "catalog_level_number": 8, "attribute_id": 4, "attribute_value": "1"}, {"catalog_entry_id": 6, "catalog_level_number": 1, "attribute_id": 1, "attribute_value": "1"}, {"catalog_entry_id": 4, "catalog_level_number": 8, "attribute_id": 4, "attribute_value": "0"}], "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"}]}, "correct_code": "-- Load product_catalog__catalog_contents_additional_attributes data\ncatalog_contents_additional_attributes = load(\"catalog_contents_additional_attributes\")\n\nfiltered_catalog_contents_additional_attributes = catalog_contents_additional_attributes\n |> filter(attribute_value == \"0\")\n |> filter(attribute_id > 1)\n |> select(catalog_entry_id, attribute_id, attribute_value, catalog_level_number)\n\nsummary = filtered_catalog_contents_additional_attributes\n |> group_by(attribute_value)\n |> aggregate(avg_attribute_id: avg(attribute_id), count: count())\n\nresult = summary\n |> sort_by(avg_attribute_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load product_catalog__catalog_contents_additional_attributes data\ncatalog_contents_additional_attributes = load(\"catalog_contents_additional_attributes\")\n\nfiltered_catalog_contents_additional_attributes = catalog_contents_additional_attributes\n |> filter(attribute_value == \"0s\")\n |> filter(attribute_id > 1)\n |> select(catalog_entry_id, attribute_id, attribute_value, catalog_level_number)\n\nsummary = filtered_catalog_contents_additional_attributes\n |> group_by(attribute_value)\n |> aggregate(avg_attribute_id: avg(attribute_id), count: count())\n\nresult = summary\n |> sort_by(avg_attribute_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"attribute_value": "0", "avg_attribute_id": 3.0, "count": 8}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '0' \u2192 '0s'", "line_num": 5, "original": "|> filter(attribute_value == \"0\")", "mutated": "|> filter(attribute_value == \"0s\")"}], "difficulty": "hard", "domain": "product_catalog__catalog_contents_additional_attributes", "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": {"qualifying": [{"qualifyid": 1, "raceid": 18, "driverid": 1, "constructorid": 1, "number": 22, "position": 1, "q1": "1:26.572", "q2": "1:25.187", "q3": "1:26.714"}, {"qualifyid": 2, "raceid": 18, "driverid": 9, "constructorid": 2, "number": 4, "position": 2, "q1": "1:26.103", "q2": "1:25.315", "q3": "1:26.869"}, {"qualifyid": 3, "raceid": 18, "driverid": 5, "constructorid": 1, "number": 23, "position": 3, "q1": "1:25.664", "q2": "1:25.452", "q3": "1:27.079"}, {"qualifyid": 4, "raceid": 18, "driverid": 13, "constructorid": 6, "number": 2, "position": 4, "q1": "1:25.994", "q2": "1:25.691", "q3": "1:27.178"}, {"qualifyid": 5, "raceid": 18, "driverid": 2, "constructorid": 2, "number": 3, "position": 5, "q1": "1:25.960", "q2": "1:25.518", "q3": "1:27.236"}, {"qualifyid": 6, "raceid": 18, "driverid": 15, "constructorid": 7, "number": 11, "position": 6, "q1": "1:26.427", "q2": "1:26.101", "q3": "1:28.527"}, {"qualifyid": 7, "raceid": 18, "driverid": 3, "constructorid": 3, "number": 7, "position": 7, "q1": "1:26.295", "q2": "1:26.059", "q3": "1:28.687"}, {"qualifyid": 8, "raceid": 18, "driverid": 14, "constructorid": 9, "number": 9, "position": 8, "q1": "1:26.381", "q2": "1:26.063", "q3": "1:29.041"}, {"qualifyid": 9, "raceid": 18, "driverid": 10, "constructorid": 7, "number": 12, "position": 9, "q1": "1:26.919", "q2": "1:26.164", "q3": "1:29.593"}, {"qualifyid": 10, "raceid": 18, "driverid": 20, "constructorid": 5, "number": 15, "position": 10, "q1": "1:26.702", "q2": "1:25.842", "q3": "NULL"}, {"qualifyid": 11, "raceid": 18, "driverid": 22, "constructorid": 11, "number": 17, "position": 11, "q1": "1:26.369", "q2": "1:26.173", "q3": "NULL"}, {"qualifyid": 12, "raceid": 18, "driverid": 4, "constructorid": 4, "number": 5, "position": 12, "q1": "1:26.907", "q2": "1:26.188", "q3": "NULL"}, {"qualifyid": 13, "raceid": 18, "driverid": 18, "constructorid": 11, "number": 16, "position": 13, "q1": "1:26.712", "q2": "1:26.259", "q3": "NULL"}, {"qualifyid": 14, "raceid": 18, "driverid": 6, "constructorid": 3, "number": 8, "position": 14, "q1": "1:26.891", "q2": "1:26.413", "q3": "NULL"}, {"qualifyid": 15, "raceid": 18, "driverid": 17, "constructorid": 9, "number": 10, "position": 15, "q1": "1:26.914", "q2": "", "q3": "NULL"}, {"qualifyid": 16, "raceid": 18, "driverid": 8, "constructorid": 6, "number": 1, "position": 16, "q1": "1:26.140", "q2": "", "q3": "NULL"}, {"qualifyid": 17, "raceid": 18, "driverid": 21, "constructorid": 10, "number": 21, "position": 17, "q1": "1:27.207", "q2": "", "q3": "NULL"}, {"qualifyid": 18, "raceid": 18, "driverid": 7, "constructorid": 5, "number": 14, "position": 18, "q1": "1:27.446", "q2": "", "q3": "NULL"}, {"qualifyid": 19, "raceid": 18, "driverid": 16, "constructorid": 10, "number": 20, "position": 19, "q1": "1:27.859", "q2": "", "q3": "NULL"}, {"qualifyid": 20, "raceid": 18, "driverid": 11, "constructorid": 8, "number": 18, "position": 20, "q1": "1:28.208", "q2": "", "q3": "NULL"}, {"qualifyid": 21, "raceid": 18, "driverid": 12, "constructorid": 4, "number": 6, "position": 21, "q1": "1:28.330", "q2": "", "q3": "NULL"}, {"qualifyid": 22, "raceid": 18, "driverid": 19, "constructorid": 8, "number": 19, "position": 22, "q1": "1:29.059", "q2": "", "q3": "NULL"}, {"qualifyid": 23, "raceid": 19, "driverid": 13, "constructorid": 6, "number": 2, "position": 1, "q1": "1:35.347", "q2": "1:34.412", "q3": "1:35.748"}, {"qualifyid": 24, "raceid": 19, "driverid": 8, "constructorid": 6, "number": 1, "position": 2, "q1": "1:35.645", "q2": "1:34.188", "q3": "1:36.230"}, {"qualifyid": 25, "raceid": 19, "driverid": 5, "constructorid": 1, "number": 23, "position": 3, "q1": "1:35.227", "q2": "1:34.759", "q3": "1:36.613"}, {"qualifyid": 26, "raceid": 19, "driverid": 1, "constructorid": 1, "number": 22, "position": 4, "q1": "1:35.392", "q2": "1:34.627", "q3": "1:36.709"}, {"qualifyid": 27, "raceid": 19, "driverid": 15, "constructorid": 7, "number": 11, "position": 5, "q1": "1:35.205", "q2": "1:34.960", "q3": "1:36.711"}, {"qualifyid": 28, "raceid": 19, "driverid": 9, "constructorid": 2, "number": 4, "position": 6, "q1": "1:35.794", "q2": "1:34.811", "q3": "1:36.727"}, {"qualifyid": 29, "raceid": 19, "driverid": 2, "constructorid": 2, "number": 3, "position": 7, "q1": "1:35.729", "q2": "1:34.648", "q3": "1:36.753"}, {"qualifyid": 30, "raceid": 19, "driverid": 17, "constructorid": 9, "number": 10, "position": 8, "q1": "1:35.440", "q2": "1:34.967", "q3": "1:37.009"}, {"qualifyid": 31, "raceid": 19, "driverid": 4, "constructorid": 4, "number": 5, "position": 9, "q1": "1:35.983", "q2": "1:35.140", "q3": "1:38.450"}, {"qualifyid": 32, "raceid": 19, "driverid": 10, "constructorid": 7, "number": 12, "position": 10, "q1": "1:35.891", "q2": "1:35.000", "q3": "1:39.656"}, {"qualifyid": 33, "raceid": 19, "driverid": 18, "constructorid": 11, "number": 16, "position": 11, "q1": "1:35.847", "q2": "1:35.208", "q3": "NULL"}, {"qualifyid": 34, "raceid": 19, "driverid": 14, "constructorid": 9, "number": 9, "position": 12, "q1": "1:36.058", "q2": "1:35.408", "q3": "NULL"}, {"qualifyid": 35, "raceid": 19, "driverid": 12, "constructorid": 4, "number": 6, "position": 13, "q1": "1:36.074", "q2": "1:35.562", "q3": "NULL"}, {"qualifyid": 36, "raceid": 19, "driverid": 22, "constructorid": 11, "number": 17, "position": 14, "q1": "1:36.198", "q2": "1:35.622", "q3": "NULL"}, {"qualifyid": 37, "raceid": 19, "driverid": 20, "constructorid": 5, "number": 15, "position": 15, "q1": "1:36.111", "q2": "1:35.648", "q3": "NULL"}, {"qualifyid": 38, "raceid": 19, "driverid": 3, "constructorid": 3, "number": 7, "position": 16, "q1": "1:35.843", "q2": "1:35.670", "q3": "NULL"}, {"qualifyid": 39, "raceid": 19, "driverid": 21, "constructorid": 10, "number": 21, "position": 17, "q1": "1:36.240", "q2": "", "q3": "NULL"}, {"qualifyid": 40, "raceid": 19, "driverid": 6, "constructorid": 3, "number": 8, "position": 18, "q1": "1:36.388", "q2": "", "q3": "NULL"}, {"qualifyid": 41, "raceid": 19, "driverid": 7, "constructorid": 5, "number": 14, "position": 19, "q1": "1:36.677", "q2": "", "q3": "NULL"}, {"qualifyid": 42, "raceid": 19, "driverid": 11, "constructorid": 8, "number": 18, "position": 20, "q1": "1:37.087", "q2": "", "q3": "NULL"}, {"qualifyid": 43, "raceid": 19, "driverid": 16, "constructorid": 10, "number": 20, "position": 21, "q1": "1:37.101", "q2": "", "q3": "NULL"}, {"qualifyid": 44, "raceid": 19, "driverid": 19, "constructorid": 8, "number": 19, "position": 22, "q1": "1:37.481", "q2": "", "q3": "NULL"}, {"qualifyid": 45, "raceid": 20, "driverid": 9, "constructorid": 2, "number": 4, "position": 1, "q1": "1:32.893", "q2": "1:31.745", "q3": "1:33.096"}, {"qualifyid": 46, "raceid": 20, "driverid": 13, "constructorid": 6, "number": 2, "position": 2, "q1": "1:31.937", "q2": "1:31.188", "q3": "1:33.123"}, {"qualifyid": 47, "raceid": 20, "driverid": 1, "constructorid": 1, "number": 22, "position": 3, "q1": "1:32.750", "q2": "1:31.922", "q3": "1:33.292"}, {"qualifyid": 48, "raceid": 20, "driverid": 8, "constructorid": 6, "number": 1, "position": 4, "q1": "1:32.652", "q2": "1:31.933", "q3": "1:33.418"}, {"qualifyid": 49, "raceid": 20, "driverid": 5, "constructorid": 1, "number": 23, "position": 5, "q1": "1:33.057", "q2": "1:31.718", "q3": "1:33.488"}, {"qualifyid": 50, "raceid": 20, "driverid": 2, "constructorid": 2, "number": 3, "position": 6, "q1": "1:33.137", "q2": "1:31.909", "q3": "1:33.737"}, {"qualifyid": 51, "raceid": 20, "driverid": 15, "constructorid": 7, "number": 11, "position": 7, "q1": "1:32.493", "q2": "1:32.159", "q3": "1:33.994"}, {"qualifyid": 52, "raceid": 20, "driverid": 3, "constructorid": 3, "number": 7, "position": 8, "q1": "1:32.903", "q2": "1:32.185", "q3": "1:34.015"}, {"qualifyid": 53, "raceid": 20, "driverid": 18, "constructorid": 11, "number": 16, "position": 9, "q1": "1:32.793", "q2": "1:32.362", "q3": "1:35.057"}, {"qualifyid": 54, "raceid": 20, "driverid": 4, "constructorid": 4, "number": 5, "position": 10, "q1": "1:32.947", "q2": "1:32.345", "q3": "1:35.115"}, {"qualifyid": 55, "raceid": 20, "driverid": 17, "constructorid": 9, "number": 10, "position": 11, "q1": "1:33.194", "q2": "1:32.371", "q3": "NULL"}, {"qualifyid": 56, "raceid": 20, "driverid": 22, "constructorid": 11, "number": 17, "position": 12, "q1": "1:32.944", "q2": "1:32.508", "q3": "NULL"}, {"qualifyid": 57, "raceid": 20, "driverid": 10, "constructorid": 7, "number": 12, "position": 13, "q1": "1:32.800", "q2": "1:32.528", "q3": "NULL"}, {"qualifyid": 58, "raceid": 20, "driverid": 12, "constructorid": 4, "number": 6, "position": 14, "q1": "1:32.975", "q2": "1:32.790", "q3": "NULL"}, {"qualifyid": 59, "raceid": 20, "driverid": 7, "constructorid": 5, "number": 14, "position": 15, "q1": "1:33.415", "q2": "1:32.915", "q3": "NULL"}, {"qualifyid": 60, "raceid": 20, "driverid": 6, "constructorid": 3, "number": 8, "position": 16, "q1": "1:33.386", "q2": "1:32.943", "q3": "NULL"}, {"qualifyid": 61, "raceid": 20, "driverid": 14, "constructorid": 9, "number": 9, "position": 17, "q1": "1:33.433", "q2": "", "q3": "NULL"}, {"qualifyid": 62, "raceid": 20, "driverid": 21, "constructorid": 10, "number": 21, "position": 18, "q1": "1:33.501", "q2": "", "q3": "NULL"}, {"qualifyid": 63, "raceid": 20, "driverid": 20, "constructorid": 5, "number": 15, "position": 19, "q1": "1:34.127", "q2": "", "q3": "NULL"}, {"qualifyid": 64, "raceid": 20, "driverid": 16, "constructorid": 10, "number": 20, "position": 20, "q1": "1:33.562", "q2": "", "q3": "NULL"}, {"qualifyid": 65, "raceid": 20, "driverid": 19, "constructorid": 8, "number": 19, "position": 21, "q1": "1:34.140", "q2": "", "q3": "NULL"}, {"qualifyid": 66, "raceid": 20, "driverid": 11, "constructorid": 8, "number": 18, "position": 22, "q1": "1:35.725", "q2": "", "q3": "NULL"}, {"qualifyid": 67, "raceid": 21, "driverid": 8, "constructorid": 6, "number": 1, "position": 1, "q1": "1:20.701", "q2": "1:20.784", "q3": "1:21.813"}, {"qualifyid": 68, "raceid": 21, "driverid": 4, "constructorid": 4, "number": 5, "position": 2, "q1": "1:21.347", "q2": "1:20.804", "q3": "1:21.904"}, {"qualifyid": 69, "raceid": 21, "driverid": 13, "constructorid": 6, "number": 2, "position": 3, "q1": "1:21.528", "q2": "1:20.584", "q3": "1:22.058"}, {"qualifyid": 70, "raceid": 21, "driverid": 9, "constructorid": 2, "number": 4, "position": 4, "q1": "1:21.423", "q2": "1:20.597", "q3": "1:22.065"}, {"qualifyid": 71, "raceid": 21, "driverid": 1, "constructorid": 1, "number": 22, "position": 5, "q1": "1:21.366", "q2": "1:20.825", "q3": "1:22.096"}, {"qualifyid": 72, "raceid": 21, "driverid": 5, "constructorid": 1, "number": 23, "position": 6, "q1": "1:21.430", "q2": "1:20.817", "q3": "1:22.231"}, {"qualifyid": 73, "raceid": 21, "driverid": 17, "constructorid": 9, "number": 10, "position": 7, "q1": "1:21.494", "q2": "1:20.984", "q3": "1:22.429"}, {"qualifyid": 74, "raceid": 21, "driverid": 15, "constructorid": 7, "number": 11, "position": 8, "q1": "1:21.158", "q2": "1:20.907", "q3": "1:22.529"}, {"qualifyid": 75, "raceid": 21, "driverid": 2, "constructorid": 2, "number": 3, "position": 9, "q1": "1:21.466", "q2": "1:20.815", "q3": "1:22.542"}, {"qualifyid": 76, "raceid": 21, "driverid": 12, "constructorid": 4, "number": 6, "position": 10, "q1": "1:21.409", "q2": "1:20.894", "q3": "1:22.699"}, {"qualifyid": 77, "raceid": 21, "driverid": 22, "constructorid": 11, "number": 17, "position": 11, "q1": "1:21.548", "q2": "1:21.049", "q3": "NULL"}, {"qualifyid": 78, "raceid": 21, "driverid": 6, "constructorid": 3, "number": 8, "position": 12, "q1": "1:21.690", "q2": "1:21.117", "q3": "NULL"}, {"qualifyid": 79, "raceid": 21, "driverid": 18, "constructorid": 11, "number": 16, "position": 13, "q1": "1:21.757", "q2": "1:21.211", "q3": "NULL"}, {"qualifyid": 80, "raceid": 21, "driverid": 10, "constructorid": 7, "number": 12, "position": 14, "q1": "1:21.427", "q2": "1:21.230", "q3": "NULL"}, {"qualifyid": 81, "raceid": 21, "driverid": 3, "constructorid": 3, "number": 7, "position": 15, "q1": "1:21.472", "q2": "1:21.349", "q3": "NULL"}, {"qualifyid": 82, "raceid": 21, "driverid": 7, "constructorid": 5, "number": 14, "position": 16, "q1": "1:21.540", "q2": "1:21.724", "q3": "NULL"}, {"qualifyid": 83, "raceid": 21, "driverid": 14, "constructorid": 9, "number": 9, "position": 17, "q1": "1:21.810", "q2": "", "q3": "NULL"}, {"qualifyid": 84, "raceid": 21, "driverid": 20, "constructorid": 5, "number": 15, "position": 18, "q1": "1:22.108", "q2": "", "q3": "NULL"}, {"qualifyid": 85, "raceid": 21, "driverid": 21, "constructorid": 10, "number": 21, "position": 19, "q1": "1:22.516", "q2": "", "q3": "NULL"}, {"qualifyid": 86, "raceid": 21, "driverid": 16, "constructorid": 10, "number": 20, "position": 20, "q1": "1:23.224", "q2": "", "q3": "NULL"}, {"qualifyid": 87, "raceid": 21, "driverid": 19, "constructorid": 8, "number": 19, "position": 21, "q1": "1:23.318", "q2": "", "q3": "NULL"}, {"qualifyid": 88, "raceid": 21, "driverid": 11, "constructorid": 8, "number": 18, "position": 22, "q1": "1:23.496", "q2": "", "q3": "NULL"}, {"qualifyid": 89, "raceid": 22, "driverid": 13, "constructorid": 6, "number": 2, "position": 1, "q1": "1:25.994", "q2": "1:26.192", "q3": "1:27.617"}, {"qualifyid": 90, "raceid": 22, "driverid": 5, "constructorid": 1, "number": 23, "position": 2, "q1": "1:26.736", "q2": "1:26.290", "q3": "1:27.808"}, {"qualifyid": 91, "raceid": 22, "driverid": 1, "constructorid": 1, "number": 22, "position": 3, "q1": "1:26.192", "q2": "1:26.477", "q3": "1:27.923"}, {"qualifyid": 92, "raceid": 22, "driverid": 8, "constructorid": 6, "number": 1, "position": 4, "q1": "1:26.457", "q2": "1:26.050", "q3": "1:27.936"}, {"qualifyid": 93, "raceid": 22, "driverid": 9, "constructorid": 2, "number": 4, "position": 5, "q1": "1:26.761", "q2": "1:26.129", "q3": "1:28.390"}, {"qualifyid": 94, "raceid": 22, "driverid": 17, "constructorid": 9, "number": 10, "position": 6, "q1": "1:26.773", "q2": "1:26.466", "q3": "1:28.417"}, {"qualifyid": 95, "raceid": 22, "driverid": 4, "constructorid": 4, "number": 5, "position": 7, "q1": "1:26.836", "q2": "1:26.522", "q3": "1:28.422"}, {"qualifyid": 96, "raceid": 22, "driverid": 15, "constructorid": 7, "number": 11, "position": 8, "q1": "1:26.695", "q2": "1:26.822", "q3": "1:28.836"}, {"qualifyid": 97, "raceid": 22, "driverid": 2, "constructorid": 2, "number": 3, "position": 9, "q1": "1:27.107", "q2": "1:27.607", "q3": "1:28.882"}, {"qualifyid": 98, "raceid": 22, "driverid": 14, "constructorid": 9, "number": 9, "position": 10, "q1": "1:26.939", "q2": "1:26.520", "q3": "1:29.959"}, {"qualifyid": 99, "raceid": 22, "driverid": 3, "constructorid": 3, "number": 7, "position": 11, "q1": "1:27.367", "q2": "1:27.012", "q3": "NULL"}, {"qualifyid": 100, "raceid": 22, "driverid": 22, "constructorid": 11, "number": 17, "position": 12, "q1": "1:27.355", "q2": "1:27.219", "q3": "NULL"}, {"qualifyid": 101, "raceid": 22, "driverid": 18, "constructorid": 11, "number": 16, "position": 13, "q1": "1:27.428", "q2": "1:27.298", "q3": "NULL"}, {"qualifyid": 102, "raceid": 22, "driverid": 20, "constructorid": 5, "number": 15, "position": 14, "q1": "1:27.442", "q2": "1:27.412", "q3": "NULL"}, {"qualifyid": 103, "raceid": 22, "driverid": 10, "constructorid": 7, "number": 12, "position": 15, "q1": "1:26.614", "q2": "1:27.806", "q3": "NULL"}, {"qualifyid": 104, "raceid": 22, "driverid": 6, "constructorid": 3, "number": 8, "position": 16, "q1": "1:27.547", "q2": "", "q3": "NULL"}, {"qualifyid": 105, "raceid": 22, "driverid": 12, "constructorid": 4, "number": 6, "position": 17, "q1": "1:27.568", "q2": "", "q3": "NULL"}, {"qualifyid": 106, "raceid": 22, "driverid": 7, "constructorid": 5, "number": 14, "position": 18, "q1": "1:27.621", "q2": "", "q3": "NULL"}, {"qualifyid": 107, "raceid": 22, "driverid": 21, "constructorid": 10, "number": 21, "position": 19, "q1": "1:27.807", "q2": "", "q3": "NULL"}, {"qualifyid": 108, "raceid": 22, "driverid": 16, "constructorid": 10, "number": 20, "position": 20, "q1": "1:28.325", "q2": "", "q3": "NULL"}, {"qualifyid": 109, "raceid": 23, "driverid": 13, "constructorid": 6, "number": 2, "position": 1, "q1": "1:15.190", "q2": "1:15.110", "q3": "1:15.787"}, {"qualifyid": 110, "raceid": 23, "driverid": 8, "constructorid": 6, "number": 1, "position": 2, "q1": "1:15.717", "q2": "1:15.404", "q3": "1:15.815"}, {"qualifyid": 111, "raceid": 23, "driverid": 1, "constructorid": 1, "number": 22, "position": 3, "q1": "1:15.582", "q2": "1:15.322", "q3": "1:15.839"}, {"qualifyid": 112, "raceid": 23, "driverid": 5, "constructorid": 1, "number": 23, "position": 4, "q1": "1:15.295", "q2": "1:15.389", "q3": "1:16.165"}, {"qualifyid": 113, "raceid": 23, "driverid": 9, "constructorid": 2, "number": 4, "position": 5, "q1": "1:15.977", "q2": "1:15.483", "q3": "1:16.171"}, {"qualifyid": 114, "raceid": 23, "driverid": 3, "constructorid": 3, "number": 7, "position": 6, "q1": "1:15.935", "q2": "1:15.287", "q3": "1:16.548"}, {"qualifyid": 115, "raceid": 23, "driverid": 4, "constructorid": 4, "number": 5, "position": 7, "q1": "1:16.646", "q2": "1:15.827", "q3": "1:16.852"}, {"qualifyid": 116, "raceid": 23, "driverid": 15, "constructorid": 7, "number": 11, "position": 8, "q1": "1:16.306", "q2": "1:15.598", "q3": "1:17.203"}, {"qualifyid": 117, "raceid": 23, "driverid": 17, "constructorid": 9, "number": 10, "position": 9, "q1": "1:16.074", "q2": "1:15.745", "q3": "1:17.343"}, {"qualifyid": 118, "raceid": 23, "driverid": 14, "constructorid": 9, "number": 9, "position": 10, "q1": "1:16.086", "q2": "1:15.839", "q3": "NULL"}, {"qualifyid": 119, "raceid": 23, "driverid": 10, "constructorid": 7, "number": 12, "position": 11, "q1": "1:16.285", "q2": "1:15.907", "q3": "NULL"}, {"qualifyid": 120, "raceid": 23, "driverid": 18, "constructorid": 11, "number": 16, "position": 12, "q1": "1:16.259", "q2": "1:16.101", "q3": "NULL"}, {"qualifyid": 121, "raceid": 23, "driverid": 2, "constructorid": 2, "number": 3, "position": 13, "q1": "1:16.650", "q2": "1:16.455", "q3": "NULL"}, {"qualifyid": 122, "raceid": 23, "driverid": 6, "constructorid": 3, "number": 8, "position": 14, "q1": "1:16.756", "q2": "1:16.479", "q3": "NULL"}, {"qualifyid": 123, "raceid": 23, "driverid": 22, "constructorid": 11, "number": 17, "position": 15, "q1": "1:16.208", "q2": "1:16.537", "q3": "NULL"}, {"qualifyid": 124, "raceid": 23, "driverid": 7, "constructorid": 5, "number": 14, "position": 16, "q1": "1:16.806", "q2": "", "q3": "NULL"}, {"qualifyid": 125, "raceid": 23, "driverid": 12, "constructorid": 4, "number": 6, "position": 17, "q1": "1:16.933", "q2": "", "q3": "NULL"}, {"qualifyid": 126, "raceid": 23, "driverid": 20, "constructorid": 5, "number": 15, "position": 18, "q1": "1:16.955", "q2": "", "q3": "NULL"}, {"qualifyid": 127, "raceid": 23, "driverid": 16, "constructorid": 10, "number": 20, "position": 19, "q1": "1:17.225", "q2": "", "q3": "NULL"}, {"qualifyid": 128, "raceid": 23, "driverid": 21, "constructorid": 10, "number": 21, "position": 20, "q1": "1:17.823", "q2": "", "q3": "NULL"}, {"qualifyid": 129, "raceid": 24, "driverid": 1, "constructorid": 1, "number": 22, "position": 1, "q1": "1:16.909", "q2": "1:17.034", "q3": "1:17.886"}, {"qualifyid": 130, "raceid": 24, "driverid": 9, "constructorid": 2, "number": 4, "position": 2, "q1": "1:17.471", "q2": "1:17.679", "q3": "1:18.498"}, {"qualifyid": 131, "raceid": 24, "driverid": 8, "constructorid": 6, "number": 1, "position": 3, "q1": "1:17.301", "q2": "1:17.364", "q3": "1:18.735"}, {"qualifyid": 132, "raceid": 24, "driverid": 4, "constructorid": 4, "number": 5, "position": 4, "q1": "1:17.415", "q2": "1:17.488", "q3": "1:18.746"}, {"qualifyid": 133, "raceid": 24, "driverid": 3, "constructorid": 3, "number": 7, "position": 5, "q1": "1:17.991", "q2": "1:17.891", "q3": "1:18.844"}, {"qualifyid": 134, "raceid": 24, "driverid": 13, "constructorid": 6, "number": 2, "position": 6, "q1": "1:17.231", "q2": "1:17.353", "q3": "1:19.048"}, {"qualifyid": 135, "raceid": 24, "driverid": 5, "constructorid": 1, "number": 23, "position": 7, "q1": "1:17.287", "q2": "1:17.684", "q3": "1:19.089"}, {"qualifyid": 136, "raceid": 24, "driverid": 2, "constructorid": 2, "number": 3, "position": 8, "q1": "1:18.082", "q2": "1:17.781", "q3": "1:19.633"}, {"qualifyid": 137, "raceid": 24, "driverid": 22, "constructorid": 11, "number": 17, "position": 9, "q1": "1:18.256", "q2": "1:18.020", "q3": "1:20.848"}, {"qualifyid": 138, "raceid": 24, "driverid": 17, "constructorid": 9, "number": 10, "position": 10, "q1": "1:17.582", "q2": "1:17.523", "q3": "NULL"}, {"qualifyid": 139, "raceid": 24, "driverid": 10, "constructorid": 7, "number": 12, "position": 11, "q1": "1:18.321", "q2": "1:18.031", "q3": "NULL"}, {"qualifyid": 140, "raceid": 24, "driverid": 6, "constructorid": 3, "number": 8, "position": 12, "q1": "1:17.638", "q2": "1:18.062", "q3": "NULL"}, {"qualifyid": 141, "raceid": 24, "driverid": 14, "constructorid": 9, "number": 9, "position": 13, "q1": "1:18.168", "q2": "1:18.238", "q3": "NULL"}, {"qualifyid": 142, "raceid": 24, "driverid": 15, "constructorid": 7, "number": 11, "position": 14, "q1": "1:18.039", "q2": "1:18.327", "q3": "NULL"}, {"qualifyid": 143, "raceid": 24, "driverid": 12, "constructorid": 4, "number": 6, "position": 15, "q1": "1:18.505", "q2": "1:18.393", "q3": "NULL"}, {"qualifyid": 144, "raceid": 24, "driverid": 7, "constructorid": 5, "number": 14, "position": 16, "q1": "1:18.916", "q2": "", "q3": "NULL"}, {"qualifyid": 145, "raceid": 24, "driverid": 16, "constructorid": 10, "number": 20, "position": 17, "q1": "1:19.108", "q2": "", "q3": "NULL"}, {"qualifyid": 146, "raceid": 24, "driverid": 21, "constructorid": 10, "number": 21, "position": 18, "q1": "1:19.165", "q2": "", "q3": "NULL"}, {"qualifyid": 147, "raceid": 24, "driverid": 18, "constructorid": 11, "number": 16, "position": 19, "q1": "1:23.565", "q2": "", "q3": "NULL"}, {"qualifyid": 148, "raceid": 24, "driverid": 20, "constructorid": 5, "number": 15, "position": 20, "q1": "", "q2": "", "q3": "NULL"}, {"qualifyid": 149, "raceid": 25, "driverid": 8, "constructorid": 6, "number": 1, "position": 1, "q1": "1:15.133", "q2": "1:15.161", "q3": "1:16.449"}, {"qualifyid": 150, "raceid": 25, "driverid": 13, "constructorid": 6, "number": 2, "position": 2, "q1": "1:15.024", "q2": "1:15.041", "q3": "1:16.490"}, {"qualifyid": 151, "raceid": 25, "driverid": 1, "constructorid": 1, "number": 22, "position": 3, "q1": "1:15.634", "q2": "1:15.293", "q3": "1:16.693"}, {"qualifyid": 152, "raceid": 25, "driverid": 4, "constructorid": 4, "number": 5, "position": 4, "q1": "1:15.754", "q2": "1:15.483", "q3": "1:16.840"}, {"qualifyid": 153, "raceid": 25, "driverid": 15, "constructorid": 7, "number": 11, "position": 5, "q1": "1:15.521", "q2": "1:15.362", "q3": "1:16.920"}, {"qualifyid": 154, "raceid": 25, "driverid": 5, "constructorid": 1, "number": 23, "position": 6, "q1": "1:15.965", "q2": "1:15.639", "q3": "1:16.944"}, {"qualifyid": 155, "raceid": 25, "driverid": 9, "constructorid": 2, "number": 4, "position": 7, "q1": "1:15.687", "q2": "1:15.723", "q3": "1:17.037"}, {"qualifyid": 156, "raceid": 25, "driverid": 17, "constructorid": 9, "number": 10, "position": 8, "q1": "1:16.020", "q2": "1:15.488", "q3": "1:17.233"}, {"qualifyid": 157, "raceid": 25, "driverid": 14, "constructorid": 9, "number": 9, "position": 9, "q1": "1:15.802", "q2": "1:15.654", "q3": "1:17.426"}, {"qualifyid": 158, "raceid": 25, "driverid": 10, "constructorid": 7, "number": 12, "position": 10, "q1": "1:15.727", "q2": "1:15.558", "q3": "1:17.596"}, {"qualifyid": 159, "raceid": 25, "driverid": 12, "constructorid": 4, "number": 6, "position": 11, "q1": "1:15.848", "q2": "1:15.770", "q3": "NULL"}, {"qualifyid": 160, "raceid": 25, "driverid": 2, "constructorid": 2, "number": 3, "position": 12, "q1": "1:16.006", "q2": "1:15.786", "q3": "NULL"}, {"qualifyid": 161, "raceid": 25, "driverid": 20, "constructorid": 5, "number": 15, "position": 13, "q1": "1:15.918", "q2": "1:15.816", "q3": "NULL"}, {"qualifyid": 162, "raceid": 25, "driverid": 7, "constructorid": 5, "number": 14, "position": 14, "q1": "1:16.072", "q2": "1:16.045", "q3": "NULL"}, {"qualifyid": 163, "raceid": 25, "driverid": 3, "constructorid": 3, "number": 7, "position": 15, "q1": "1:16.085", "q2": "1:16.235", "q3": "NULL"}, {"qualifyid": 164, "raceid": 25, "driverid": 6, "constructorid": 3, "number": 8, "position": 16, "q1": "1:16.243", "q2": "", "q3": "NULL"}, {"qualifyid": 165, "raceid": 25, "driverid": 18, "constructorid": 11, "number": 16, "position": 17, "q1": "1:16.306", "q2": "", "q3": "NULL"}, {"qualifyid": 166, "raceid": 25, "driverid": 22, "constructorid": 11, "number": 17, "position": 18, "q1": "1:16.330", "q2": "", "q3": "NULL"}, {"qualifyid": 167, "raceid": 25, "driverid": 21, "constructorid": 10, "number": 21, "position": 19, "q1": "1:16.971", "q2": "", "q3": "NULL"}, {"qualifyid": 168, "raceid": 25, "driverid": 16, "constructorid": 10, "number": 20, "position": 20, "q1": "1:17.053", "q2": "", "q3": "NULL"}, {"qualifyid": 169, "raceid": 26, "driverid": 5, "constructorid": 1, "number": 23, "position": 1, "q1": "1:19.957", "q2": "1:19.597", "q3": "1:21.049"}, {"qualifyid": 170, "raceid": 26, "driverid": 17, "constructorid": 9, "number": 10, "position": 2, "q1": "1:20.982", "q2": "1:19.710", "q3": "1:21.554"}, {"qualifyid": 171, "raceid": 26, "driverid": 8, "constructorid": 6, "number": 1, "position": 3, "q1": "1:20.370", "q2": "1:19.971", "q3": "1:21.706"}, {"qualifyid": 172, "raceid": 26, "driverid": 1, "constructorid": 1, "number": 22, "position": 4, "q1": "1:20.288", "q2": "1:19.537", "q3": "1:21.835"}, {"qualifyid": 173, "raceid": 26, "driverid": 2, "constructorid": 2, "number": 3, "position": 5, "q1": "1:21.022", "q2": "1:19.802", "q3": "1:21.873"}, {"qualifyid": 174, "raceid": 26, "driverid": 4, "constructorid": 4, "number": 5, "position": 6, "q1": "1:20.998", "q2": "1:19.992", "q3": "1:22.029"}, {"qualifyid": 175, "raceid": 26, "driverid": 12, "constructorid": 4, "number": 6, "position": 7, "q1": "1:20.818", "q2": "1:20.115", "q3": "1:22.491"}, {"qualifyid": 176, "raceid": 26, "driverid": 20, "constructorid": 5, "number": 15, "position": 8, "q1": "1:20.318", "q2": "1:20.109", "q3": "1:23.251"}, {"qualifyid": 177, "raceid": 26, "driverid": 13, "constructorid": 6, "number": 2, "position": 9, "q1": "1:20.676", "q2": "1:20.086", "q3": "1:23.305"}, {"qualifyid": 178, "raceid": 26, "driverid": 9, "constructorid": 2, "number": 4, "position": 10, "q1": "1:20.444", "q2": "1:19.788", "q3": "NULL"}, {"qualifyid": 179, "raceid": 26, "driverid": 14, "constructorid": 9, "number": 9, "position": 11, "q1": "1:21.224", "q2": "1:20.174", "q3": "NULL"}, {"qualifyid": 180, "raceid": 26, "driverid": 10, "constructorid": 7, "number": 12, "position": 12, "q1": "1:20.893", "q2": "1:20.274", "q3": "NULL"}, {"qualifyid": 181, "raceid": 26, "driverid": 7, "constructorid": 5, "number": 14, "position": 13, "q1": "1:20.584", "q2": "1:20.531", "q3": "NULL"}, {"qualifyid": 182, "raceid": 26, "driverid": 15, "constructorid": 7, "number": 11, "position": 14, "q1": "1:21.145", "q2": "1:20.601", "q3": "NULL"}, {"qualifyid": 183, "raceid": 26, "driverid": 6, "constructorid": 3, "number": 8, "position": 15, "q1": "1:21.407", "q2": "1:21.112", "q3": "NULL"}, {"qualifyid": 184, "raceid": 26, "driverid": 22, "constructorid": 11, "number": 17, "position": 16, "q1": "1:21.512", "q2": "", "q3": "NULL"}, {"qualifyid": 185, "raceid": 26, "driverid": 18, "constructorid": 11, "number": 16, "position": 17, "q1": "1:21.631", "q2": "", "q3": "NULL"}, {"qualifyid": 186, "raceid": 26, "driverid": 3, "constructorid": 3, "number": 7, "position": 18, "q1": "1:21.668", "q2": "", "q3": "NULL"}, {"qualifyid": 187, "raceid": 26, "driverid": 16, "constructorid": 10, "number": 20, "position": 19, "q1": "1:21.786", "q2": "", "q3": "NULL"}, {"qualifyid": 188, "raceid": 26, "driverid": 21, "constructorid": 10, "number": 21, "position": 20, "q1": "1:21.885", "q2": "", "q3": "NULL"}, {"qualifyid": 189, "raceid": 27, "driverid": 1, "constructorid": 1, "number": 22, "position": 1, "q1": "1:15.218", "q2": "1:14.603", "q3": "1:15.666"}, {"qualifyid": 190, "raceid": 27, "driverid": 13, "constructorid": 6, "number": 2, "position": 2, "q1": "1:14.921", "q2": "1:14.747", "q3": "1:15.859"}, {"qualifyid": 191, "raceid": 27, "driverid": 5, "constructorid": 1, "number": 23, "position": 3, "q1": "1:15.476", "q2": "1:14.855", "q3": "1:16.143"}, {"qualifyid": 192, "raceid": 27, "driverid": 15, "constructorid": 7, "number": 11, "position": 4, "q1": "1:15.560", "q2": "1:15.122", "q3": "1:16.191"}, {"qualifyid": 193, "raceid": 27, "driverid": 4, "constructorid": 4, "number": 5, "position": 5, "q1": "1:15.917", "q2": "1:14.943", "q3": "1:16.385"}, {"qualifyid": 194, "raceid": 27, "driverid": 8, "constructorid": 6, "number": 1, "position": 6, "q1": "1:15.201", "q2": "1:14.949", "q3": "1:16.389"}, {"qualifyid": 195, "raceid": 27, "driverid": 9, "constructorid": 2, "number": 4, "position": 7, "q1": "1:15.985", "q2": "1:15.109", "q3": "1:16.521"}, {"qualifyid": 196, "raceid": 27, "driverid": 17, "constructorid": 9, "number": 10, "position": 8, "q1": "1:15.900", "q2": "1:15.481", "q3": "1:17.014"}, {"qualifyid": 197, "raceid": 27, "driverid": 20, "constructorid": 5, "number": 15, "position": 9, "q1": "1:15.532", "q2": "1:15.420", "q3": "1:17.244"}, {"qualifyid": 198, "raceid": 27, "driverid": 14, "constructorid": 9, "number": 9, "position": 10, "q1": "1:15.975", "q2": "1:15.338", "q3": "1:17.503"}, {"qualifyid": 199, "raceid": 27, "driverid": 10, "constructorid": 7, "number": 12, "position": 11, "q1": "1:15.560", "q2": "1:15.508", "q3": "NULL"}, {"qualifyid": 200, "raceid": 27, "driverid": 2, "constructorid": 2, "number": 3, "position": 12, "q1": "1:15.596", "q2": "1:15.581", "q3": "NULL"}], "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__qualifying data\nqualifying = load(\"qualifying\")\n |> select(q1, number, position, qualifyid, driverid)\n\nprocessed = qualifying\n |> compute(computed_val: driverid + position)\n\nresult = processed\n |> sort_by(number, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__qualifying data\nqualifying = load(\"qualifying\")\n |> select(q1, number, position, qualifyid, driverid)\n\nprocessed = qualifying\n |> compute(computed_val: driverid + qualifyid)\n\nresult = processed\n |> sort_by(number, desc)\n |> take(3)\n\nemit result", "expected_output": [{"q1": "1:25.664", "number": 23, "position": 3, "qualifyid": 3, "driverid": 5, "computed_val": 8}, {"q1": "1:35.227", "number": 23, "position": 3, "qualifyid": 25, "driverid": 5, "computed_val": 8}, {"q1": "1:33.057", "number": 23, "position": 5, "qualifyid": 49, "driverid": 5, "computed_val": 10}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'position' \u2192 'qualifyid'", "line_num": 6, "original": "|> compute(computed_val: driverid + position)", "mutated": "|> compute(computed_val: driverid + qualifyid)"}], "difficulty": "hard", "domain": "formula_1__qualifying", "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": {"lessons": [{"lesson_id": 1, "customer_id": 6, "lesson_status_code": "Cancelled", "staff_id": 8, "vehicle_id": 3, "lesson_date": "2018-02-28 10:55:36", "lesson_time": "5", "price": 199.0}, {"lesson_id": 2, "customer_id": 8, "lesson_status_code": "Cancelled", "staff_id": 14, "vehicle_id": 3, "lesson_date": "2018-03-07 16:12:36", "lesson_time": "6", "price": 167.0}, {"lesson_id": 3, "customer_id": 6, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 2, "lesson_date": "2018-03-03 15:10:16", "lesson_time": "3", "price": 352.0}, {"lesson_id": 4, "customer_id": 8, "lesson_status_code": "Completed", "staff_id": 1, "vehicle_id": 2, "lesson_date": "2018-03-17 19:02:07", "lesson_time": "9", "price": 306.0}, {"lesson_id": 5, "customer_id": 10, "lesson_status_code": "Completed", "staff_id": 3, "vehicle_id": 2, "lesson_date": "2018-03-12 00:41:59", "lesson_time": "9", "price": 295.0}, {"lesson_id": 6, "customer_id": 5, "lesson_status_code": "Completed", "staff_id": 4, "vehicle_id": 2, "lesson_date": "2018-03-07 22:03:49", "lesson_time": "6", "price": 492.0}, {"lesson_id": 7, "customer_id": 9, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 1, "lesson_date": "2018-03-08 16:05:05", "lesson_time": "9", "price": 231.0}, {"lesson_id": 8, "customer_id": 3, "lesson_status_code": "Completed", "staff_id": 8, "vehicle_id": 2, "lesson_date": "2018-03-21 06:48:45", "lesson_time": "2", "price": 277.0}, {"lesson_id": 9, "customer_id": 2, "lesson_status_code": "Completed", "staff_id": 4, "vehicle_id": 2, "lesson_date": "2018-03-05 20:05:33", "lesson_time": "9", "price": 456.0}, {"lesson_id": 10, "customer_id": 2, "lesson_status_code": "Cancelled", "staff_id": 5, "vehicle_id": 2, "lesson_date": "2018-02-26 02:36:35", "lesson_time": "4", "price": 495.0}, {"lesson_id": 11, "customer_id": 10, "lesson_status_code": "Cancelled", "staff_id": 15, "vehicle_id": 1, "lesson_date": "2018-03-04 06:55:46", "lesson_time": "2", "price": 223.0}, {"lesson_id": 12, "customer_id": 11, "lesson_status_code": "Cancelled", "staff_id": 12, "vehicle_id": 2, "lesson_date": "2018-03-16 07:08:52", "lesson_time": "2", "price": 184.0}, {"lesson_id": 13, "customer_id": 13, "lesson_status_code": "Completed", "staff_id": 12, "vehicle_id": 1, "lesson_date": "2018-03-05 18:05:31", "lesson_time": "5", "price": 446.0}, {"lesson_id": 14, "customer_id": 11, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 1, "lesson_date": "2018-03-07 11:53:32", "lesson_time": "5", "price": 483.0}, {"lesson_id": 15, "customer_id": 3, "lesson_status_code": "Cancelled", "staff_id": 8, "vehicle_id": 1, "lesson_date": "2018-03-06 21:48:51", "lesson_time": "9", "price": 340.0}], "vehicles": [{"vehicle_id": 1, "vehicle_details": "Van"}, {"vehicle_id": 2, "vehicle_details": "Truck"}, {"vehicle_id": 3, "vehicle_details": "Car"}]}, "correct_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_time == \"5\")\n\nsummary = filtered_lessons\n |> group_by(lesson_status_code)\n |> aggregate(max_staff_id: max(staff_id), count: count())\n\nresult = summary\n |> sort_by(max_staff_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_time == \"5\")\n\nsummary = filtered_lessons\n |> group_by(lesson_status_code)\n |> aggreate(max_staff_id: max(staff_id), count: count())\n\nresult = summary\n |> sort_by(max_staff_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"lesson_status_code": "Cancelled", "max_staff_id": 11, "count": 2}, {"lesson_status_code": "Completed", "max_staff_id": 12, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'aggregate' \u2192 'aggreate'", "line_num": 9, "original": "|> aggregate(max_staff_id: max(staff_id), count: count())", "mutated": "|> aggreate(max_staff_id: max(staff_id), count: count())"}], "difficulty": "easy", "domain": "driving_school__lessons", "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": {"customers": [{"customer_id": 194, "customer_name": "America Jaskolski"}, {"customer_id": 214, "customer_name": "Ellsworth Paucek"}, {"customer_id": 256, "customer_name": "Mrs. Hanna Willms"}, {"customer_id": 562, "customer_name": "Dr. Diana Rath"}, {"customer_id": 582, "customer_name": "Selena Gerhold"}, {"customer_id": 641, "customer_name": "Dayana Robel"}, {"customer_id": 682, "customer_name": "Mr. Edwardo Blanda I"}, {"customer_id": 756, "customer_name": "Mr. Randal Lynch III"}, {"customer_id": 805, "customer_name": "Mrs. Liza Heller V"}, {"customer_id": 826, "customer_name": "Mrs. Lilly Graham III"}, {"customer_id": 882, "customer_name": "Miss Felicita Reichel"}, {"customer_id": 892, "customer_name": "Sydnie Friesen"}, {"customer_id": 923, "customer_name": "David Ross"}, {"customer_id": 956, "customer_name": "Cai Zhang"}, {"customer_id": 996, "customer_name": "Jay Chou"}], "customers_policies": [{"customer_id": 214, "policy_id": 257, "date_opened": "2016-11-19", "date_closed": "2018-03-04"}, {"customer_id": 214, "policy_id": 301, "date_opened": "2016-04-12", "date_closed": "2018-02-07"}, {"customer_id": 256, "policy_id": 583, "date_opened": "2016-07-22", "date_closed": "2018-02-20"}, {"customer_id": 562, "policy_id": 346, "date_opened": "2017-01-09", "date_closed": "2018-03-08"}, {"customer_id": 562, "policy_id": 583, "date_opened": "2016-06-24", "date_closed": "2018-02-22"}, {"customer_id": 582, "policy_id": 586, "date_opened": "2016-04-11", "date_closed": "2018-03-17"}, {"customer_id": 641, "policy_id": 366, "date_opened": "2016-07-10", "date_closed": "2018-02-24"}, {"customer_id": 641, "policy_id": 472, "date_opened": "2016-07-07", "date_closed": "2018-03-10"}, {"customer_id": 682, "policy_id": 583, "date_opened": "2016-11-01", "date_closed": "2018-03-03"}, {"customer_id": 826, "policy_id": 630, "date_opened": "2016-11-18", "date_closed": "2018-02-13"}, {"customer_id": 892, "policy_id": 927, "date_opened": "2017-01-08", "date_closed": "2018-02-25"}, {"customer_id": 996, "policy_id": 366, "date_opened": "2016-10-31", "date_closed": "2018-03-19"}, {"customer_id": 996, "policy_id": 879, "date_opened": "2017-01-05", "date_closed": "2018-02-20"}, {"customer_id": 996, "policy_id": 993, "date_opened": "2016-07-03", "date_closed": "2018-03-20"}]}, "correct_code": "-- Load insurance_fnol__customers data\ncustomers = load(\"customers\")\n\nfiltered_customers = customers\n |> filter(customer_name == \"Selena Gerhold\")\n |> filter(customer_id >= 503)\n\nsummary = filtered_customers\n |> group_by(customer_name)\n |> aggregate(max_customer_id: max(customer_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load insurance_fnol__customers data\ncustomers = load(\"customers\")\n\nfiltered_customers = customers\n |> filter(customer_name == \"Selena Gerhold\")\n |> filter(customer_id >= 503)\n\nsummary = filtered_customers\n |> group_by(customer_name)\n |> aggregate(max_customer_id: count(customer_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"customer_name": "Selena Gerhold", "max_customer_id": 582, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'count'", "line_num": 10, "original": "|> aggregate(max_customer_id: max(customer_id), count: count())", "mutated": "|> aggregate(max_customer_id: count(customer_id), count: count())"}], "difficulty": "medium", "domain": "insurance_fnol__customers", "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": {"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-15 19:10:02\")\n |> filter(treatment_id > 3)\n |> select(treatment_type_code, professional_id, cost_of_treatment, treatment_id, dog_id)\n\nresult = filtered_treatments\n |> sort_by(dog_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(date_of_treatment > \"2018-03-15 19:10:02\")\n |> filter(treatment_id > 0)\n |> select(treatment_type_code, professional_id, cost_of_treatment, treatment_id, dog_id)\n\nresult = filtered_treatments\n |> sort_by(dog_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"treatment_type_code": "WALK", "professional_id": 6, "cost_of_treatment": 656, "treatment_id": 15, "dog_id": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 3 \u2192 0", "line_num": 6, "original": "|> filter(treatment_id > 3)", "mutated": "|> filter(treatment_id > 0)"}, {"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>'", "line_num": 5, "original": "|> filter(date_of_treatment == \"2018-03-15 19:10:02\")", "mutated": "|> filter(date_of_treatment > \"2018-03-15 19:10:02\")"}], "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_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_category_code == \"GUI\")\n\nsummary = filtered_problem_log\n |> group_by(log_entry_date)\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(problem_category_code == \"GUI\")\n\nsummary = filtered_problem_log\n |> group_by(log_entry_date)\n |> aggregate(avg_problem_log_id: avg(problem_log_id), count: count())\n\nresult = summary\n |> sort_by(avg_problem_log_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"log_entry_date": "1982-11-17 06:05:52", "avg_problem_log_id": 15.0, "count": 1}, {"log_entry_date": "1993-06-21 22:33:35", "avg_problem_log_id": 9.0, "count": 1}, {"log_entry_date": "1983-07-01 02:12:36", "avg_problem_log_id": 6.0, "count": 1}, {"log_entry_date": "1993-04-02 11:07:29", "avg_problem_log_id": 4.0, "count": 1}, {"log_entry_date": "1974-12-11 01:06:22", "avg_problem_log_id": 3.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 12, "original": "|> sort_by(avg_problem_log_id, desc)", "mutated": "|> sort_by(avg_problem_log_id, asc)"}], "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_medium
{"datasets": {"works_on": [{"essn": 123456789, "pno": 1, "hours": 32.5}, {"essn": 123456789, "pno": 2, "hours": 7.5}, {"essn": 666884444, "pno": 3, "hours": 40.0}, {"essn": 453453453, "pno": 1, "hours": 20.0}, {"essn": 453453453, "pno": 2, "hours": 20.0}, {"essn": 333445555, "pno": 2, "hours": 10.0}, {"essn": 333445555, "pno": 3, "hours": 10.0}, {"essn": 333445555, "pno": 10, "hours": 10.0}, {"essn": 333445555, "pno": 20, "hours": 10.0}, {"essn": 999887777, "pno": 30, "hours": 30.0}, {"essn": 999887777, "pno": 10, "hours": 10.0}, {"essn": 987987987, "pno": 10, "hours": 35.0}, {"essn": 987987987, "pno": 30, "hours": 5.0}, {"essn": 987654321, "pno": 30, "hours": 20.0}, {"essn": 987654321, "pno": 20, "hours": 15.0}, {"essn": 888665555, "pno": 20, "hours": 0}]}, "correct_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n |> select(essn, hours)\n\nresult = works_on\n |> sort_by(essn, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n |> select(essn, hours)\n\nresult = works_on\n |> sort_by(essn, asc)\n |> take(3)\n\nemit result", "expected_output": [{"essn": 999887777, "hours": 30.0}, {"essn": 999887777, "hours": 10.0}, {"essn": 987987987, "hours": 35.0}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 6, "original": "|> sort_by(essn, desc)", "mutated": "|> sort_by(essn, asc)"}], "difficulty": "medium", "domain": "company_1__works_on", "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": {"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 == \"AND\")\n |> select(name, district, id, countrycode)\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(filtered_city, country, on: countrycode == code)\n |> compute(computed_val: population + id)\n\nresult = enriched\n |> sort_by(population, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(countrycode == \"and\")\n |> select(name, district, id, countrycode)\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(filtered_city, country, on: countrycode == code)\n |> compute(computed_val: population + id)\n\nresult = enriched\n |> sort_by(population, desc)\n |> take(3)\n\nemit result", "expected_output": [{"name": "Andorra", "district": "Andorra la Vella", "id": 55, "countrycode": "AND", "code": "AND", "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", "computed_val": 78055}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'AND' \u2192 'and'", "line_num": 5, "original": "|> filter(countrycode == \"AND\")", "mutated": "|> filter(countrycode == \"and\")"}], "difficulty": "hard", "domain": "world_1__city", "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": {"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(headquarters == \"USA\")\n |> filter(sales_in_billion > 148)\n\nsummary = filtered_company\n |> group_by(industry)\n |> aggregate(total_sales_in_billion: sum(sales_in_billion), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(headquarters == \"industry\")\n |> filter(sales_in_billion > 148)\n\nsummary = filtered_company\n |> group_by(industry)\n |> aggregate(total_sales_in_billion: sum(sales_in_billion), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"industry": "Oil and gas", "total_sales_in_billion": 669.8, "count": 2}, {"industry": "Retailing", "total_sales_in_billion": 447.0, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'USA' \u2192 'industry'", "line_num": 5, "original": "|> filter(headquarters == \"USA\")", "mutated": "|> filter(headquarters == \"industry\")"}], "difficulty": "hard", "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": {"constructorresults": [{"constructorresultsid": 1, "raceid": 18, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 2, "raceid": 18, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 3, "raceid": 18, "constructorid": 3, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 4, "raceid": 18, "constructorid": 4, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 5, "raceid": 18, "constructorid": 5, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 6, "raceid": 18, "constructorid": 6, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 7, "raceid": 18, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 8, "raceid": 18, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 9, "raceid": 18, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 10, "raceid": 18, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 11, "raceid": 18, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 12, "raceid": 19, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 13, "raceid": 19, "constructorid": 2, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 14, "raceid": 19, "constructorid": 1, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 15, "raceid": 19, "constructorid": 7, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 16, "raceid": 19, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 17, "raceid": 19, "constructorid": 4, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 18, "raceid": 19, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 19, "raceid": 19, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 20, "raceid": 19, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 21, "raceid": 19, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 22, "raceid": 19, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 23, "raceid": 20, "constructorid": 6, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 24, "raceid": 20, "constructorid": 2, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 25, "raceid": 20, "constructorid": 1, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 26, "raceid": 20, "constructorid": 7, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 27, "raceid": 20, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 28, "raceid": 20, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 29, "raceid": 20, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 30, "raceid": 20, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 31, "raceid": 20, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 32, "raceid": 20, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 33, "raceid": 20, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 34, "raceid": 21, "constructorid": 6, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 35, "raceid": 21, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 36, "raceid": 21, "constructorid": 2, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 37, "raceid": 21, "constructorid": 9, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 38, "raceid": 21, "constructorid": 11, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 39, "raceid": 21, "constructorid": 3, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 40, "raceid": 21, "constructorid": 7, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 41, "raceid": 21, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 42, "raceid": 21, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 43, "raceid": 21, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 44, "raceid": 21, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 45, "raceid": 22, "constructorid": 6, "points": 16.0, "status": "NULL"}, {"constructorresultsid": 46, "raceid": 22, "constructorid": 1, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 47, "raceid": 22, "constructorid": 2, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 48, "raceid": 22, "constructorid": 4, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 49, "raceid": 22, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 50, "raceid": 22, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 51, "raceid": 22, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 52, "raceid": 22, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 53, "raceid": 22, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 54, "raceid": 22, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 55, "raceid": 23, "constructorid": 1, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 56, "raceid": 23, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 57, "raceid": 23, "constructorid": 6, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 58, "raceid": 23, "constructorid": 9, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 59, "raceid": 23, "constructorid": 5, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 60, "raceid": 23, "constructorid": 11, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 61, "raceid": 23, "constructorid": 3, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 62, "raceid": 23, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 63, "raceid": 23, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 64, "raceid": 23, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 65, "raceid": 24, "constructorid": 2, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 66, "raceid": 24, "constructorid": 9, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 67, "raceid": 24, "constructorid": 7, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 68, "raceid": 24, "constructorid": 6, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 69, "raceid": 24, "constructorid": 11, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 70, "raceid": 24, "constructorid": 5, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 71, "raceid": 24, "constructorid": 1, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 72, "raceid": 24, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 73, "raceid": 24, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 74, "raceid": 24, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 75, "raceid": 25, "constructorid": 6, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 76, "raceid": 25, "constructorid": 7, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 77, "raceid": 25, "constructorid": 1, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 78, "raceid": 25, "constructorid": 2, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 79, "raceid": 25, "constructorid": 9, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 80, "raceid": 25, "constructorid": 4, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 81, "raceid": 25, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 82, "raceid": 25, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 83, "raceid": 25, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 84, "raceid": 25, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 85, "raceid": 26, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 86, "raceid": 26, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 87, "raceid": 26, "constructorid": 11, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 88, "raceid": 26, "constructorid": 6, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 89, "raceid": 26, "constructorid": 4, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 90, "raceid": 26, "constructorid": 7, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 91, "raceid": 26, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 92, "raceid": 26, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 93, "raceid": 26, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 94, "raceid": 26, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 95, "raceid": 27, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 96, "raceid": 27, "constructorid": 4, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 97, "raceid": 27, "constructorid": 6, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 98, "raceid": 27, "constructorid": 2, "points": 7.0, "status": "NULL"}, {"constructorresultsid": 99, "raceid": 27, "constructorid": 5, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 100, "raceid": 27, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 101, "raceid": 27, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 102, "raceid": 27, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 103, "raceid": 27, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 104, "raceid": 27, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 105, "raceid": 28, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 106, "raceid": 28, "constructorid": 7, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 107, "raceid": 28, "constructorid": 6, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 108, "raceid": 28, "constructorid": 4, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 109, "raceid": 28, "constructorid": 2, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 110, "raceid": 28, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 111, "raceid": 28, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 112, "raceid": 28, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 113, "raceid": 28, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 114, "raceid": 28, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 115, "raceid": 29, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 116, "raceid": 29, "constructorid": 1, "points": 13.0, "status": "NULL"}, {"constructorresultsid": 117, "raceid": 29, "constructorid": 2, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 118, "raceid": 29, "constructorid": 7, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 119, "raceid": 29, "constructorid": 5, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 120, "raceid": 29, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 121, "raceid": 29, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 122, "raceid": 29, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 123, "raceid": 29, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 124, "raceid": 29, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 125, "raceid": 30, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 126, "raceid": 30, "constructorid": 2, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 127, "raceid": 30, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 128, "raceid": 30, "constructorid": 4, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 129, "raceid": 30, "constructorid": 5, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 130, "raceid": 30, "constructorid": 9, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 131, "raceid": 30, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 132, "raceid": 30, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 133, "raceid": 30, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 134, "raceid": 30, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 135, "raceid": 31, "constructorid": 5, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 136, "raceid": 31, "constructorid": 1, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 137, "raceid": 31, "constructorid": 2, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 138, "raceid": 31, "constructorid": 4, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 139, "raceid": 31, "constructorid": 6, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 140, "raceid": 31, "constructorid": 9, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 141, "raceid": 31, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 142, "raceid": 31, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 143, "raceid": 31, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 144, "raceid": 31, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 145, "raceid": 32, "constructorid": 4, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 146, "raceid": 32, "constructorid": 3, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 147, "raceid": 32, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 148, "raceid": 32, "constructorid": 7, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 149, "raceid": 32, "constructorid": 5, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 150, "raceid": 32, "constructorid": 2, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 151, "raceid": 32, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 152, "raceid": 32, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 153, "raceid": 32, "constructorid": 6, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 154, "raceid": 32, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 155, "raceid": 33, "constructorid": 4, "points": 15.0, "status": "NULL"}, {"constructorresultsid": 156, "raceid": 33, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 157, "raceid": 33, "constructorid": 6, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 158, "raceid": 33, "constructorid": 7, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 159, "raceid": 33, "constructorid": 5, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 160, "raceid": 33, "constructorid": 9, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 161, "raceid": 33, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 162, "raceid": 33, "constructorid": 1, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 163, "raceid": 33, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 164, "raceid": 33, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 165, "raceid": 34, "constructorid": 1, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 166, "raceid": 34, "constructorid": 6, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 167, "raceid": 34, "constructorid": 4, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 168, "raceid": 34, "constructorid": 2, "points": 7.0, "status": "NULL"}, {"constructorresultsid": 169, "raceid": 34, "constructorid": 7, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 170, "raceid": 34, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 171, "raceid": 34, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 172, "raceid": 34, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 173, "raceid": 34, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 174, "raceid": 34, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 175, "raceid": 35, "constructorid": 6, "points": 16.0, "status": "NULL"}, {"constructorresultsid": 176, "raceid": 35, "constructorid": 4, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 177, "raceid": 35, "constructorid": 5, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 178, "raceid": 35, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 179, "raceid": 35, "constructorid": 7, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 180, "raceid": 35, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 181, "raceid": 35, "constructorid": 2, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 182, "raceid": 35, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 183, "raceid": 35, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 184, "raceid": 35, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 185, "raceid": 36, "constructorid": 6, "points": 13.0, "status": "NULL"}, {"constructorresultsid": 186, "raceid": 36, "constructorid": 1, "points": 14.0, "status": "D"}, {"constructorresultsid": 187, "raceid": 36, "constructorid": 2, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 188, "raceid": 36, "constructorid": 4, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 189, "raceid": 36, "constructorid": 3, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 190, "raceid": 36, "constructorid": 7, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 191, "raceid": 36, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 192, "raceid": 36, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 193, "raceid": 36, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 194, "raceid": 36, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 195, "raceid": 36, "constructorid": 12, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 196, "raceid": 37, "constructorid": 1, "points": 18.0, "status": "D"}, {"constructorresultsid": 197, "raceid": 37, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 198, "raceid": 37, "constructorid": 2, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 199, "raceid": 37, "constructorid": 4, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 200, "raceid": 37, "constructorid": 7, "points": 2.0, "status": "NULL"}], "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__constructorresults data\nconstructorresults = load(\"constructorresults\")\n\nfiltered_constructorresults = constructorresults\n |> filter(status == \"D\")\n |> select(status, constructorresultsid, constructorid)\n\n-- Load lookup data\nconstructors = load(\"constructors\")\n\nenriched = join(filtered_constructorresults, constructors, on: constructorid == constructorid)\n |> compute(computed_val: constructorresultsid / constructorid)\n\nresult = enriched\n |> sort_by(constructorid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__constructorresults data\nconstructorresults = load(\"constructorresults\")\n\nfiltered_constructorresults = constructorresults\n |> filter(status == \"D\")\n |> select(status, constructorresultsid, constructorid)\n\n-- Load lookup data\nconstructors = load(\"constructors\")\n\nenriched = join(filtered_constructorresults, constructors, on: constructorresults == constructorid)\n |> compute(computed_val: constructorresultsid / constructorid)\n\nresult = enriched\n |> sort_by(constructorid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"status": "D", "constructorresultsid": 186, "constructorid": 1, "constructorref": "mclaren", "name": "McLaren", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren", "computed_val": 186.0}, {"status": "D", "constructorresultsid": 196, "constructorid": 1, "constructorref": "mclaren", "name": "McLaren", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren", "computed_val": 196.0}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'constructorid' \u2192 'constructorresults'", "line_num": 11, "original": "enriched = join(filtered_constructorresults, constructors, on: constructorid == constructorid)", "mutated": "enriched = join(filtered_constructorresults, constructors, on: constructorresults == constructorid)"}], "difficulty": "hard", "domain": "formula_1__constructorresults", "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": {"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 |> select(start_date, start_station_name, id)\n\nresult = trip\n |> sort_by(id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load bike_1__trip data\ntrip = load(\"trip\")\n |> select(start_date, start_station_name, id)\n\nresult = trip\n |> sort_by(id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"start_date": "8/21/2015 17:03", "start_station_name": "Howard at 2nd", "id": 900504}, {"start_date": "8/21/2015 17:03", "start_station_name": "South Van Ness at Market", "id": 900505}, {"start_date": "8/21/2015 17:04", "start_station_name": "Market at Sansome", "id": 900506}, {"start_date": "8/21/2015 17:04", "start_station_name": "Washington at Kearny", "id": 900507}, {"start_date": "8/21/2015 17:04", "start_station_name": "Beale at Market", "id": 900508}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 3", "line_num": 7, "original": "|> take(5)", "mutated": "|> take(3)"}], "difficulty": "hard", "domain": "bike_1__trip", "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": {"products": [{"product_id": 1, "color_code": "4", "product_category_code": "Spices", "product_name": "cumin", "typical_buying_price": "", "typical_selling_price": "2878.3", "product_description": "et", "other_product_details": 0}, {"product_id": 2, "color_code": "2", "product_category_code": "Spices", "product_name": "peper", "typical_buying_price": "352447.2874677", "typical_selling_price": "1892070.2803543", "product_description": "rerum", "other_product_details": 0}, {"product_id": 3, "color_code": "9", "product_category_code": "Herbs", "product_name": "basil", "typical_buying_price": "503.8431967", "typical_selling_price": "0.1859512", "product_description": "officia", "other_product_details": 0}, {"product_id": 4, "color_code": "1", "product_category_code": "Herbs", "product_name": "borage", "typical_buying_price": "", "typical_selling_price": "10377614.847385", "product_description": "blanditiis", "other_product_details": 0}, {"product_id": 5, "color_code": "4", "product_category_code": "Spices", "product_name": "chili", "typical_buying_price": "", "typical_selling_price": "39446", "product_description": "eius", "other_product_details": 0}, {"product_id": 6, "color_code": "4", "product_category_code": "Seeds", "product_name": "ginger", "typical_buying_price": "5.578", "typical_selling_price": "52735.6101", "product_description": "doloribus", "other_product_details": 0}, {"product_id": 7, "color_code": "9", "product_category_code": "Seeds", "product_name": "sesame", "typical_buying_price": "1284268.0659", "typical_selling_price": "68205825.7", "product_description": "et", "other_product_details": 0}, {"product_id": 8, "color_code": "9", "product_category_code": "Herbs", "product_name": "caraway", "typical_buying_price": "24493", "typical_selling_price": "", "product_description": "nulla", "other_product_details": 0}, {"product_id": 9, "color_code": "2", "product_category_code": "Herbs", "product_name": "catnip", "typical_buying_price": "12008702.623", "typical_selling_price": "21577.891642", "product_description": "vel", "other_product_details": 0}, {"product_id": 10, "color_code": "5", "product_category_code": "Seeds", "product_name": "flax", "typical_buying_price": "339404395.7", "typical_selling_price": "59622629.74", "product_description": "et", "other_product_details": 0}, {"product_id": 11, "color_code": "7", "product_category_code": "Herbs", "product_name": "chervil", "typical_buying_price": "", "typical_selling_price": "", "product_description": "minus", "other_product_details": 0}, {"product_id": 12, "color_code": "4", "product_category_code": "Seeds", "product_name": "voluptatem", "typical_buying_price": "162", "typical_selling_price": "149", "product_description": "officia", "other_product_details": 0}, {"product_id": 13, "color_code": "5", "product_category_code": "Spices", "product_name": "cinnam", "typical_buying_price": "1686539.4", "typical_selling_price": "17595111.4", "product_description": "nisi", "other_product_details": 0}, {"product_id": 14, "color_code": "4", "product_category_code": "Seeds", "product_name": "lotus", "typical_buying_price": "43221310.465574", "typical_selling_price": "63589.4054376", "product_description": "exercitationem", "other_product_details": 0}, {"product_id": 15, "color_code": "2", "product_category_code": "Herbs", "product_name": "laurel", "typical_buying_price": "", "typical_selling_price": "57857", "product_description": "ut", "other_product_details": 0}], "ref_product_categories": [{"product_category_code": "Herbs", "product_category_description": "Herbs", "unit_of_measure": "Handful "}, {"product_category_code": "Seeds", "product_category_description": "Seeds", "unit_of_measure": "Weight - pound,kilo."}, {"product_category_code": "Spices", "product_category_description": "Spices", "unit_of_measure": "Weight - pound,kilo."}]}, "correct_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n |> select(color_code, product_category_code, product_description, typical_buying_price, product_id)\n\n-- Load lookup data\nref_product_categories = load(\"ref_product_categories\")\n\nenriched = join(products, ref_product_categories, on: product_category_code == product_category_code)\n\nresult = enriched\n |> sort_by(product_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n |> select(color_code, product_category_code, product_description, typical_buying_price, product_id)\n\n-- Load lookup data\nref_product_categories = load(\"ref_product_categories\")\n\nenriched = join(products, ref_product_categories, on: product_category_code == product_category_code)\n\nresult = enriched\n |> sort_by(product_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"color_code": "4", "product_category_code": "Spices", "product_description": "et", "typical_buying_price": "", "product_id": 1, "product_category_description": "Spices", "unit_of_measure": "Weight - pound,kilo."}, {"color_code": "2", "product_category_code": "Spices", "product_description": "rerum", "typical_buying_price": "352447.2874677", "product_id": 2, "product_category_description": "Spices", "unit_of_measure": "Weight - pound,kilo."}, {"color_code": "9", "product_category_code": "Herbs", "product_description": "officia", "typical_buying_price": "503.8431967", "product_id": 3, "product_category_description": "Herbs", "unit_of_measure": "Handful "}, {"color_code": "1", "product_category_code": "Herbs", "product_description": "blanditiis", "typical_buying_price": "", "product_id": 4, "product_category_description": "Herbs", "unit_of_measure": "Handful "}, {"color_code": "4", "product_category_code": "Spices", "product_description": "eius", "typical_buying_price": "", "product_id": 5, "product_category_description": "Spices", "unit_of_measure": "Weight - pound,kilo."}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 3", "line_num": 12, "original": "|> take(5)", "mutated": "|> take(3)"}], "difficulty": "hard", "domain": "products_gen_characteristics__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\nfiltered_countrylanguage = countrylanguage\n |> filter(countrycode == \"ANT\")\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, continent, surfacearea)\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(countrycode == \"ant\")\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, continent, surfacearea)\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": "ANT", "min_percentage": 0.0, "count": 3, "code": "ANT", "continent": "North America", "surfacearea": 800.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'ANT' \u2192 'ant'", "line_num": 5, "original": "|> filter(countrycode == \"ANT\")", "mutated": "|> filter(countrycode == \"ant\")"}], "difficulty": "hard", "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": {"research_staff": [{"staff_id": 1, "employer_organisation_id": 1, "staff_details": "quo"}, {"staff_id": 2, "employer_organisation_id": 4, "staff_details": "est"}, {"staff_id": 3, "employer_organisation_id": 5, "staff_details": "aspernatur"}, {"staff_id": 4, "employer_organisation_id": 3, "staff_details": "dolor"}, {"staff_id": 5, "employer_organisation_id": 2, "staff_details": "doloribus"}, {"staff_id": 6, "employer_organisation_id": 5, "staff_details": "consequatur"}, {"staff_id": 7, "employer_organisation_id": 3, "staff_details": "animi"}, {"staff_id": 8, "employer_organisation_id": 5, "staff_details": "consequatur"}, {"staff_id": 9, "employer_organisation_id": 6, "staff_details": "sint"}, {"staff_id": 10, "employer_organisation_id": 8, "staff_details": "iure"}, {"staff_id": 11, "employer_organisation_id": 9, "staff_details": "voluptatibus"}, {"staff_id": 12, "employer_organisation_id": 10, "staff_details": "nulla"}, {"staff_id": 13, "employer_organisation_id": 2, "staff_details": "ab"}, {"staff_id": 14, "employer_organisation_id": 3, "staff_details": "accusamus"}, {"staff_id": 15, "employer_organisation_id": 2, "staff_details": "dicta"}], "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__research_staff data\nresearch_staff = load(\"research_staff\")\n\nsummary = research_staff\n |> group_by(staff_details)\n |> aggregate(avg_staff_id: avg(staff_id), count: count())\n\nresult = summary\n |> sort_by(avg_staff_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__research_staff data\nresearch_staff = load(\"research_staff\")\n\nsummary = research_staff\n |> group_by(staff_details)\n |> aggregate(avg_staff_id: avg(staff_id), count: count())\n\nresult = summary\n |> sort_by(avg_staff_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"staff_details": "quo", "avg_staff_id": 1.0, "count": 1}, {"staff_details": "est", "avg_staff_id": 2.0, "count": 1}, {"staff_details": "aspernatur", "avg_staff_id": 3.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 9, "original": "|> sort_by(avg_staff_id, asc)", "mutated": "|> sort_by(avg_staff_id, desc)"}], "difficulty": "medium", "domain": "tracking_grants_for_research__research_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_medium
{"datasets": {"product_characteristics": [{"product_id": 13, "characteristic_id": 13, "product_characteristic_value": "low"}, {"product_id": 11, "characteristic_id": 2, "product_characteristic_value": "low"}, {"product_id": 5, "characteristic_id": 15, "product_characteristic_value": "low"}, {"product_id": 1, "characteristic_id": 13, "product_characteristic_value": "low"}, {"product_id": 7, "characteristic_id": 12, "product_characteristic_value": "low"}, {"product_id": 11, "characteristic_id": 6, "product_characteristic_value": "low"}, {"product_id": 7, "characteristic_id": 2, "product_characteristic_value": "medium"}, {"product_id": 12, "characteristic_id": 10, "product_characteristic_value": "medium"}, {"product_id": 8, "characteristic_id": 11, "product_characteristic_value": "high"}, {"product_id": 14, "characteristic_id": 4, "product_characteristic_value": "medium"}, {"product_id": 11, "characteristic_id": 3, "product_characteristic_value": "medium"}, {"product_id": 6, "characteristic_id": 15, "product_characteristic_value": "high"}, {"product_id": 11, "characteristic_id": 3, "product_characteristic_value": "high"}, {"product_id": 6, "characteristic_id": 10, "product_characteristic_value": "high"}, {"product_id": 12, "characteristic_id": 2, "product_characteristic_value": "high"}], "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}]}, "correct_code": "-- Load products_gen_characteristics__product_characteristics data\nproduct_characteristics = load(\"product_characteristics\")\n\nfiltered_product_characteristics = product_characteristics\n |> filter(product_id >= 7)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(max_product_id: max(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__product_characteristics data\nproduct_characteristics = load(\"product_characteristics\")\n\nfiltered_product_characteristics = product_characteristics\n |> filter(product_id >= 7)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(max_product_id: max(product_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"product_characteristic_value": "high", "max_product_id": 12, "count": 3}, {"product_characteristic_value": "low", "max_product_id": 13, "count": 4}, {"product_characteristic_value": "medium", "max_product_id": 14, "count": 4}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 12, "original": "|> sort_by(count, asc)", "mutated": "|> sort_by(count, desc)"}], "difficulty": "medium", "domain": "products_gen_characteristics__product_characteristics", "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": {"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\nfiltered_constructorstandings = constructorstandings\n |> filter(positiontext == \"8\")\n |> filter(constructorid >= 3)\n |> select(raceid, points, positiontext, constructorstandingsid, constructorid)\n\n-- Load lookup data\nconstructors = load(\"constructors\")\n |> select(nationality, url, constructorid)\n\nenriched = join(filtered_constructorstandings, constructors, on: constructorid == constructorid)\n |> compute(computed_val: constructorid + constructorstandingsid)\n\nresult = enriched\n |> sort_by(constructorstandingsid, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n\nfiltered_constructorstandings = constructorstandings\n |> filter(positiontext == \"8\")\n |> filter(constructorid >= 3)\n |> select(raceid, points, positiontext, constructorstandingsid, constructorid)\n\n-- Load lookup data\nconstructors = load(\"constructors\")\n |> select(nationality, url, constructorid)\n\nenriched = join(filtered_constructorstandings, constructors, on: constructorid == constructorid)\n |> compute(positiontext: constructorid + constructorstandingsid)\n\nresult = enriched\n |> sort_by(constructorstandingsid, desc)\n |> take(5)\n\nemit result", "expected_output": [{"raceid": 72, "points": 0.0, "positiontext": "8", "constructorstandingsid": 583, "constructorid": 17, "nationality": "Irish", "url": "http://en.wikipedia.org/wiki/Jordan_Grand_Prix", "computed_val": 600}, {"raceid": 71, "points": 0.0, "positiontext": "8", "constructorstandingsid": 574, "constructorid": 17, "nationality": "Irish", "url": "http://en.wikipedia.org/wiki/Jordan_Grand_Prix", "computed_val": 591}, {"raceid": 35, "points": 26.0, "positiontext": "8", "constructorstandingsid": 185, "constructorid": 3, "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering", "computed_val": 188}, {"raceid": 33, "points": 26.0, "positiontext": "8", "constructorstandingsid": 163, "constructorid": 3, "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering", "computed_val": 166}, {"raceid": 32, "points": 26.0, "positiontext": "8", "constructorstandingsid": 152, "constructorid": 3, "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering", "computed_val": 155}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'computed_val' \u2192 'positiontext'", "line_num": 14, "original": "|> compute(computed_val: constructorid + constructorstandingsid)", "mutated": "|> compute(positiontext: constructorid + constructorstandingsid)"}], "difficulty": "hard", "domain": "formula_1__constructorstandings", "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": {"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 == \"Delivered\")\n |> filter(actual_order_id > 3)\n\nresult = filtered_order_deliveries\n |> sort_by(truck_id, asc)\n |> take(5)\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 >= \"Delivered\")\n |> filter(actual_order_id > 3)\n\nresult = filtered_order_deliveries\n |> sort_by(truck_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"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": "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": "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"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>='", "line_num": 5, "original": "|> filter(delivery_status_code == \"Delivered\")", "mutated": "|> filter(delivery_status_code >= \"Delivered\")"}], "difficulty": "easy", "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_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\nfiltered_seasons = seasons\n |> filter(year < 1975)\n |> select(year, url)\n\nsummary = filtered_seasons\n |> group_by(url)\n |> aggregate(total_year: sum(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nfiltered_seasons = seasons\n |> filter(year == 1975)\n |> select(year, url)\n\nsummary = filtered_seasons\n |> group_by(url)\n |> aggregate(total_year: sum(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/1950_Formula_One_season", "total_year": 1950, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1951_Formula_One_season", "total_year": 1951, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1952_Formula_One_season", "total_year": 1952, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '<' \u2192 '=='", "line_num": 5, "original": "|> filter(year < 1975)", "mutated": "|> filter(year == 1975)"}], "difficulty": "medium", "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_medium
{"datasets": {"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"}], "circuits": [{"circuitid": 1, "circuitref": "albert_park", "name": "Albert Park Grand Prix Circuit", "location": "Melbourne", "country": "Australia", "lat": -37.8497, "lng": 144.968, "alt": "10", "url": "http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit"}, {"circuitid": 2, "circuitref": "sepang", "name": "Sepang International Circuit", "location": "Kuala Lumpur", "country": "Malaysia", "lat": 2.76083, "lng": 101.738, "alt": "", "url": "http://en.wikipedia.org/wiki/Sepang_International_Circuit"}, {"circuitid": 3, "circuitref": "bahrain", "name": "Bahrain International Circuit", "location": "Sakhir", "country": "Bahrain", "lat": 26.0325, "lng": 50.5106, "alt": "", "url": "http://en.wikipedia.org/wiki/Bahrain_International_Circuit"}, {"circuitid": 4, "circuitref": "catalunya", "name": "Circuit de Barcelona-Catalunya", "location": "Montmel_", "country": "Spain", "lat": 41.57, "lng": 2.26111, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Barcelona-Catalunya"}, {"circuitid": 5, "circuitref": "istanbul", "name": "Istanbul Park", "location": "Istanbul", "country": "Turkey", "lat": 40.9517, "lng": 29.405, "alt": "", "url": "http://en.wikipedia.org/wiki/Istanbul_Park"}, {"circuitid": 6, "circuitref": "monaco", "name": "Circuit de Monaco", "location": "Monte-Carlo", "country": "Monaco", "lat": 43.7347, "lng": 7.42056, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Monaco"}, {"circuitid": 7, "circuitref": "villeneuve", "name": "Circuit Gilles Villeneuve", "location": "Montreal", "country": "Canada", "lat": 45.5, "lng": -73.5228, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Gilles_Villeneuve"}, {"circuitid": 8, "circuitref": "magny_cours", "name": "Circuit de Nevers Magny-Cours", "location": "Magny Cours", "country": "France", "lat": 46.8642, "lng": 3.16361, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Nevers_Magny-Cours"}, {"circuitid": 9, "circuitref": "silverstone", "name": "Silverstone Circuit", "location": "Silverstone", "country": "UK", "lat": 52.0786, "lng": -1.01694, "alt": "", "url": "http://en.wikipedia.org/wiki/Silverstone_Circuit"}, {"circuitid": 10, "circuitref": "hockenheimring", "name": "Hockenheimring", "location": "Hockenheim", "country": "Germany", "lat": 49.3278, "lng": 8.56583, "alt": "", "url": "http://en.wikipedia.org/wiki/Hockenheimring"}, {"circuitid": 11, "circuitref": "hungaroring", "name": "Hungaroring", "location": "Budapest", "country": "Hungary", "lat": 47.5789, "lng": 19.2486, "alt": "", "url": "http://en.wikipedia.org/wiki/Hungaroring"}, {"circuitid": 12, "circuitref": "valencia", "name": "Valencia Street Circuit", "location": "Valencia", "country": "Spain", "lat": 39.4589, "lng": -0.331667, "alt": "", "url": "http://en.wikipedia.org/wiki/Valencia_Street_Circuit"}, {"circuitid": 13, "circuitref": "spa", "name": "Circuit de Spa-Francorchamps", "location": "Spa", "country": "Belgium", "lat": 50.4372, "lng": 5.97139, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Spa-Francorchamps"}, {"circuitid": 14, "circuitref": "monza", "name": "Autodromo Nazionale di Monza", "location": "Monza", "country": "Italy", "lat": 45.6156, "lng": 9.28111, "alt": "", "url": "http://en.wikipedia.org/wiki/Autodromo_Nazionale_Monza"}, {"circuitid": 15, "circuitref": "marina_bay", "name": "Marina Bay Street Circuit", "location": "Marina Bay", "country": "Singapore", "lat": 1.2914, "lng": 103.864, "alt": "", "url": "http://en.wikipedia.org/wiki/Marina_Bay_Street_Circuit"}, {"circuitid": 16, "circuitref": "fuji", "name": "Fuji Speedway", "location": "Oyama", "country": "Japan", "lat": 35.3717, "lng": 138.927, "alt": "", "url": "http://en.wikipedia.org/wiki/Fuji_Speedway"}, {"circuitid": 17, "circuitref": "shanghai", "name": "Shanghai International Circuit", "location": "Shanghai", "country": "China", "lat": 31.3389, "lng": 121.22, "alt": "", "url": "http://en.wikipedia.org/wiki/Shanghai_International_Circuit"}, {"circuitid": 18, "circuitref": "interlagos", "name": "Aut_dromo Jo Carlos Pace", "location": "S\u0323o Paulo", "country": "Brazil", "lat": -23.7036, "lng": -46.6997, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Jos%C3%A9_Carlos_Pace"}, {"circuitid": 19, "circuitref": "indianapolis", "name": "Indianapolis Motor Speedway", "location": "Indianapolis", "country": "USA", "lat": 39.795, "lng": -86.2347, "alt": "", "url": "http://en.wikipedia.org/wiki/Indianapolis_Motor_Speedway"}, {"circuitid": 20, "circuitref": "nurburgring", "name": "N_rburgring", "location": "N_rburg", "country": "Germany", "lat": 50.3356, "lng": 6.9475, "alt": "", "url": "http://en.wikipedia.org/wiki/N%C3%BCrburgring"}, {"circuitid": 21, "circuitref": "imola", "name": "Autodromo Enzo e Dino Ferrari", "location": "Imola", "country": "Italy", "lat": 44.3439, "lng": 11.7167, "alt": "", "url": "http://en.wikipedia.org/wiki/Autodromo_Enzo_e_Dino_Ferrari"}, {"circuitid": 22, "circuitref": "suzuka", "name": "Suzuka Circuit", "location": "Suzuka", "country": "Japan", "lat": 34.8431, "lng": 136.541, "alt": "", "url": "http://en.wikipedia.org/wiki/Suzuka_Circuit"}, {"circuitid": 23, "circuitref": "osterreichring", "name": "A1-Ring", "location": "Spielburg", "country": "Austria", "lat": 47.2197, "lng": 14.7647, "alt": "", "url": "http://en.wikipedia.org/wiki/A1-Ring"}, {"circuitid": 24, "circuitref": "yas_marina", "name": "Yas Marina Circuit", "location": "Abu Dhabi", "country": "UAE", "lat": 24.4672, "lng": 54.6031, "alt": "", "url": "http://en.wikipedia.org/wiki/Yas_Marina_Circuit"}, {"circuitid": 25, "circuitref": "galvez", "name": "Aut_dromo Juan y Oscar Glvez", "location": "Buenos Aires", "country": "Argentina", "lat": -34.6943, "lng": -58.4593, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Oscar_Alfredo_G%C3%A1lvez"}, {"circuitid": 26, "circuitref": "jerez", "name": "Circuito de Jerez", "location": "Jerez de la Frontera", "country": "Spain", "lat": 36.7083, "lng": -6.03417, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuito_Permanente_de_Jerez"}, {"circuitid": 27, "circuitref": "estoril", "name": "Aut_dromo do Estoril", "location": "Estoril", "country": "Portugal", "lat": 38.7506, "lng": -9.39417, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_do_Estoril"}, {"circuitid": 28, "circuitref": "okayama", "name": "Okayama International Circuit", "location": "Okayama", "country": "Japan", "lat": 34.915, "lng": 134.221, "alt": "", "url": "http://en.wikipedia.org/wiki/TI_Circuit"}, {"circuitid": 29, "circuitref": "adelaide", "name": "Adelaide Street Circuit", "location": "Adelaide", "country": "Australia", "lat": -34.9272, "lng": 138.617, "alt": "", "url": "http://en.wikipedia.org/wiki/Adelaide_Street_Circuit"}, {"circuitid": 30, "circuitref": "kyalami", "name": "Kyalami", "location": "Midrand", "country": "South Africa", "lat": -25.9894, "lng": 28.0767, "alt": "", "url": "http://en.wikipedia.org/wiki/Kyalami"}, {"circuitid": 31, "circuitref": "donington", "name": "Donington Park", "location": "Castle Donington", "country": "UK", "lat": 52.8306, "lng": -1.37528, "alt": "", "url": "http://en.wikipedia.org/wiki/Donington_Park"}, {"circuitid": 32, "circuitref": "rodriguez", "name": "Aut_dromo Hermanos Rodr_guez", "location": "Mexico City", "country": "Mexico", "lat": 19.4042, "lng": -99.0907, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Hermanos_Rodr%C3%ADguez"}, {"circuitid": 33, "circuitref": "phoenix", "name": "Phoenix street circuit", "location": "Phoenix", "country": "USA", "lat": 33.4479, "lng": -112.075, "alt": "", "url": "http://en.wikipedia.org/wiki/Phoenix_street_circuit"}, {"circuitid": 34, "circuitref": "ricard", "name": "Circuit Paul Ricard", "location": "Le Castellet", "country": "France", "lat": 43.2506, "lng": 5.79167, "alt": "", "url": "http://en.wikipedia.org/wiki/Paul_Ricard_Circuit"}, {"circuitid": 35, "circuitref": "yeongam", "name": "Korean International Circuit", "location": "Yeongam County", "country": "Korea", "lat": 34.7333, "lng": 126.417, "alt": "", "url": "http://en.wikipedia.org/wiki/Korean_International_Circuit"}, {"circuitid": 36, "circuitref": "jacarepagua", "name": "Aut_dromo Internacional Nelson Piquet", "location": "Rio de Janeiro", "country": "Brazil", "lat": -22.9756, "lng": -43.395, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Internacional_Nelson_Piquet"}, {"circuitid": 37, "circuitref": "detroit", "name": "Detroit Street Circuit", "location": "Detroit", "country": "USA", "lat": 42.3298, "lng": -83.0401, "alt": "", "url": "http://en.wikipedia.org/wiki/Detroit_street_circuit"}, {"circuitid": 38, "circuitref": "brands_hatch", "name": "Brands Hatch", "location": "Kent", "country": "UK", "lat": 51.3569, "lng": 0.263056, "alt": "", "url": "http://en.wikipedia.org/wiki/Brands_Hatch"}, {"circuitid": 39, "circuitref": "zandvoort", "name": "Circuit Park Zandvoort", "location": "Zandvoort", "country": "Netherlands", "lat": 52.3888, "lng": 4.54092, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Zandvoort"}, {"circuitid": 40, "circuitref": "zolder", "name": "Zolder", "location": "Heusden-Zolder", "country": "Belgium", "lat": 50.9894, "lng": 5.25694, "alt": "", "url": "http://en.wikipedia.org/wiki/Zolder"}, {"circuitid": 41, "circuitref": "dijon", "name": "Dijon-Prenois", "location": "Dijon", "country": "France", "lat": 47.3625, "lng": 4.89913, "alt": "", "url": "http://en.wikipedia.org/wiki/Dijon-Prenois"}, {"circuitid": 42, "circuitref": "dallas", "name": "Fair Park", "location": "Dallas", "country": "USA", "lat": 32.7774, "lng": -96.7587, "alt": "", "url": "http://en.wikipedia.org/wiki/Fair_Park"}, {"circuitid": 43, "circuitref": "long_beach", "name": "Long Beach", "location": "California", "country": "USA", "lat": 33.7651, "lng": -118.189, "alt": "", "url": "http://en.wikipedia.org/wiki/Long_Beach,_California"}, {"circuitid": 44, "circuitref": "las_vegas", "name": "Las Vegas Street Circuit", "location": "Nevada", "country": "USA", "lat": 36.1162, "lng": -115.174, "alt": "", "url": "http://en.wikipedia.org/wiki/Las_Vegas,_Nevada"}, {"circuitid": 45, "circuitref": "jarama", "name": "Jarama", "location": "Madrid", "country": "Spain", "lat": 40.6171, "lng": -3.58558, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuito_Permanente_Del_Jarama"}, {"circuitid": 46, "circuitref": "watkins_glen", "name": "Watkins Glen", "location": "New York State", "country": "USA", "lat": 42.3369, "lng": -76.9272, "alt": "", "url": "http://en.wikipedia.org/wiki/Watkins_Glen_International"}, {"circuitid": 47, "circuitref": "anderstorp", "name": "Scandinavian Raceway", "location": "Anderstorp", "country": "Sweden", "lat": 57.2653, "lng": 13.6042, "alt": "", "url": "http://en.wikipedia.org/wiki/Scandinavian_Raceway"}, {"circuitid": 48, "circuitref": "mosport", "name": "Mosport International Raceway", "location": "Ontario", "country": "Canada", "lat": 44.0481, "lng": -78.6756, "alt": "", "url": "http://en.wikipedia.org/wiki/Mosport"}, {"circuitid": 49, "circuitref": "montjuic", "name": "Montjuc", "location": "Barcelona", "country": "Spain", "lat": 41.3664, "lng": 2.15167, "alt": "", "url": "http://en.wikipedia.org/wiki/Montju%C3%AFc_circuit"}, {"circuitid": 50, "circuitref": "nivelles", "name": "Nivelles-Baulers", "location": "Brussels", "country": "Belgium", "lat": 50.6211, "lng": 4.32694, "alt": "", "url": "http://en.wikipedia.org/wiki/Nivelles-Baulers"}, {"circuitid": 51, "circuitref": "charade", "name": "Charade Circuit", "location": "Clermont-Ferrand", "country": "France", "lat": 45.7472, "lng": 3.03889, "alt": "", "url": "http://en.wikipedia.org/wiki/Charade_Circuit"}, {"circuitid": 52, "circuitref": "tremblant", "name": "Circuit Mont-Tremblant", "location": "Quebec", "country": "Canada", "lat": 46.1877, "lng": -74.6099, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Mont-Tremblant"}, {"circuitid": 53, "circuitref": "essarts", "name": "Rouen-Les-Essarts", "location": "Rouen", "country": "France", "lat": 49.3306, "lng": 1.00458, "alt": "", "url": "http://en.wikipedia.org/wiki/Rouen-Les-Essarts"}, {"circuitid": 54, "circuitref": "lemans", "name": "Le Mans", "location": "Le Mans", "country": "France", "lat": 47.95, "lng": 0.224231, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_la_Sarthe#Bugatti_Circuit"}, {"circuitid": 55, "circuitref": "reims", "name": "Reims-Gueux", "location": "Reims", "country": "France", "lat": 49.2542, "lng": 3.93083, "alt": "", "url": "http://en.wikipedia.org/wiki/Reims-Gueux"}, {"circuitid": 56, "circuitref": "george", "name": "Prince George Circuit", "location": "Eastern Cape Province", "country": "South Africa", "lat": -33.0486, "lng": 27.8736, "alt": "", "url": "http://en.wikipedia.org/wiki/Prince_George_Circuit"}, {"circuitid": 57, "circuitref": "zeltweg", "name": "Zeltweg", "location": "Styria", "country": "Austria", "lat": 47.2039, "lng": 14.7478, "alt": "", "url": "http://en.wikipedia.org/wiki/Zeltweg_Airfield"}, {"circuitid": 58, "circuitref": "aintree", "name": "Aintree", "location": "Liverpool", "country": "UK", "lat": 53.4769, "lng": -2.94056, "alt": "", "url": "http://en.wikipedia.org/wiki/Aintree_Motor_Racing_Circuit"}, {"circuitid": 59, "circuitref": "boavista", "name": "Circuito da Boavista", "location": "Oporto", "country": "Portugal", "lat": 41.1705, "lng": -8.67325, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuito_da_Boavista"}, {"circuitid": 60, "circuitref": "riverside", "name": "Riverside International Raceway", "location": "California", "country": "USA", "lat": 33.937, "lng": -117.273, "alt": "", "url": "http://en.wikipedia.org/wiki/Riverside_International_Raceway"}, {"circuitid": 61, "circuitref": "avus", "name": "AVUS", "location": "Berlin", "country": "Germany", "lat": 52.4806, "lng": 13.2514, "alt": "", "url": "http://en.wikipedia.org/wiki/AVUS"}, {"circuitid": 62, "circuitref": "monsanto", "name": "Monsanto Park Circuit", "location": "Lisbon", "country": "Portugal", "lat": 38.7197, "lng": -9.20306, "alt": "", "url": "http://en.wikipedia.org/wiki/Monsanto_Park_Circuit"}, {"circuitid": 63, "circuitref": "sebring", "name": "Sebring International Raceway", "location": "Florida", "country": "USA", "lat": 27.4547, "lng": -81.3483, "alt": "", "url": "http://en.wikipedia.org/wiki/Sebring_Raceway"}, {"circuitid": 64, "circuitref": "ain-diab", "name": "Ain Diab", "location": "Casablanca", "country": "Morocco", "lat": 33.5786, "lng": -7.6875, "alt": "", "url": "http://en.wikipedia.org/wiki/Ain-Diab_Circuit"}, {"circuitid": 65, "circuitref": "pescara", "name": "Pescara Circuit", "location": "Pescara", "country": "Italy", "lat": 42.475, "lng": 14.1508, "alt": "", "url": "http://en.wikipedia.org/wiki/Pescara_Circuit"}, {"circuitid": 66, "circuitref": "bremgarten", "name": "Circuit Bremgarten", "location": "Bern", "country": "Switzerland", "lat": 46.9589, "lng": 7.40194, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Bremgarten"}, {"circuitid": 67, "circuitref": "pedralbes", "name": "Circuit de Pedralbes", "location": "Barcelona", "country": "Spain", "lat": 41.3903, "lng": 2.11667, "alt": "", "url": "http://en.wikipedia.org/wiki/Pedralbes_Circuit"}, {"circuitid": 68, "circuitref": "buddh", "name": "Buddh International Circuit", "location": "Uttar Pradesh", "country": "India", "lat": 28.3487, "lng": 77.5331, "alt": "", "url": "http://en.wikipedia.org/wiki/Buddh_International_Circuit"}, {"circuitid": 69, "circuitref": "americas", "name": "Circuit of the Americas", "location": "Austin", "country": "USA", "lat": 30.1328, "lng": -97.6411, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_of_the_Americas"}, {"circuitid": 70, "circuitref": "red_bull_ring", "name": "Red Bull Ring", "location": "Spielburg", "country": "Austria", "lat": 47.2197, "lng": 14.7647, "alt": "", "url": "http://en.wikipedia.org/wiki/Red_Bull_Ring"}, {"circuitid": 71, "circuitref": "sochi", "name": "Sochi Autodrom", "location": "Sochi", "country": "Russia", "lat": 43.4057, "lng": 39.9578, "alt": "", "url": "http://en.wikipedia.org/wiki/Sochi_Autodrom"}, {"circuitid": 72, "circuitref": "port_imperial", "name": "Port Imperial Street Circuit", "location": "New Jersey", "country": "USA", "lat": 40.7769, "lng": -74.0111, "alt": "", "url": "http://en.wikipedia.org/wiki/Port_Imperial_Street_Circuit"}, {"circuitid": 73, "circuitref": "BAK", "name": "Baku City Circuit", "location": "Baku", "country": "Azerbaijan", "lat": 40.3725, "lng": 49.8533, "alt": "", "url": "http://en.wikipedia.org/wiki/Baku_City_Circuit"}]}, "correct_code": "-- Load formula_1__races data\nraces = load(\"races\")\n\nfiltered_races = races\n |> filter(name == \"Turkish Grand Prix\")\n |> filter(circuitid >= 3)\n |> select(name, time, raceid, circuitid)\n |> compute(computed_val: raceid / circuitid)\n\nresult = filtered_races\n |> sort_by(raceid, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__races data\nraces = load(\"races\")\n\nfiltered_races = races\n |> filter(name == \"Turkish Grand Prix\")\n |> filter(circuitid >= 3)\n |> select(name, Prix, raceid, circuitid)\n |> compute(computed_val: raceid / circuitid)\n\nresult = filtered_races\n |> sort_by(raceid, desc)\n |> take(5)\n\nemit result", "expected_output": [{"name": "Turkish Grand Prix", "time": "15:00:00", "raceid": 84, "circuitid": 5, "computed_val": 16.8}, {"name": "Turkish Grand Prix", "time": "15:00:00", "raceid": 66, "circuitid": 5, "computed_val": 13.2}, {"name": "Turkish Grand Prix", "time": "12:00:00", "raceid": 47, "circuitid": 5, "computed_val": 9.4}, {"name": "Turkish Grand Prix", "time": "12:00:00", "raceid": 22, "circuitid": 5, "computed_val": 4.4}, {"name": "Turkish Grand Prix", "time": "12:00:00", "raceid": 7, "circuitid": 5, "computed_val": 1.4}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'time' \u2192 'Prix'", "line_num": 7, "original": "|> select(name, time, raceid, circuitid)", "mutated": "|> select(name, Prix, raceid, circuitid)"}], "difficulty": "medium", "domain": "formula_1__races", "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": {"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(facid > 1787)\n\nsummary = filtered_member_of\n |> group_by(appt_type)\n |> aggregate(total_dno: sum(dno), count: count())\n\nresult = summary\n |> sort_by(total_dno, asc)\n |> take(3)\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(facid > 1787)\n\nsummary = filtered_member_of\n |> group_bi(appt_type)\n |> aggregate(total_dno: sum(dno), count: count())\n\nresult = summary\n |> sort_by(total_dno, asc)\n |> take(3)\n\nemit result", "expected_output": [{"appt_type": "Secondary", "total_dno": 1820, "count": 5}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'group_by' \u2192 'group_bi'", "line_num": 9, "original": "|> group_by(appt_type)", "mutated": "|> group_bi(appt_type)"}], "difficulty": "easy", "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": {"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(room_number == \"314\")\n\nsummary = filtered_section\n |> group_by(course_id)\n |> aggregate(max_year: max(year), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_2__section data\nsection = load(\"section\")\n\nfiltered_section = section\n |> filter(room_number <= \"314\")\n\nsummary = filtered_section\n |> group_by(course_id)\n |> aggregate(max_year: max(year), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"course_id": "747", "max_year": 2004, "count": 1}, {"course_id": "169", "max_year": 2007, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(room_number == \"314\")", "mutated": "|> filter(room_number <= \"314\")"}], "difficulty": "easy", "domain": "college_2__section", "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": {"faculty_participates_in": [{"facid": 1082, "actid": 784}, {"facid": 1082, "actid": 785}, {"facid": 1082, "actid": 790}, {"facid": 1121, "actid": 771}, {"facid": 1121, "actid": 777}, {"facid": 1121, "actid": 770}, {"facid": 1193, "actid": 790}, {"facid": 1193, "actid": 796}, {"facid": 1193, "actid": 773}, {"facid": 2192, "actid": 773}, {"facid": 2192, "actid": 790}, {"facid": 2192, "actid": 778}, {"facid": 3457, "actid": 782}, {"facid": 3457, "actid": 771}, {"facid": 3457, "actid": 784}, {"facid": 4230, "actid": 790}, {"facid": 4230, "actid": 785}, {"facid": 6112, "actid": 785}, {"facid": 6112, "actid": 772}, {"facid": 7723, "actid": 785}, {"facid": 7723, "actid": 770}, {"facid": 8114, "actid": 776}, {"facid": 8721, "actid": 770}, {"facid": 8721, "actid": 780}, {"facid": 8741, "actid": 780}, {"facid": 8741, "actid": 790}, {"facid": 8918, "actid": 780}, {"facid": 8918, "actid": 782}, {"facid": 8918, "actid": 771}, {"facid": 2881, "actid": 790}, {"facid": 2881, "actid": 784}, {"facid": 4432, "actid": 770}, {"facid": 4432, "actid": 771}, {"facid": 5718, "actid": 776}, {"facid": 6182, "actid": 776}, {"facid": 6182, "actid": 785}, {"facid": 1177, "actid": 790}, {"facid": 1177, "actid": 770}, {"facid": 1177, "actid": 770}, {"facid": 9922, "actid": 796}], "activity": [{"actid": 770, "activity_name": "Mountain Climbing"}, {"actid": 771, "activity_name": "Canoeing"}, {"actid": 772, "activity_name": "Kayaking"}, {"actid": 773, "activity_name": "Spelunking"}, {"actid": 776, "activity_name": "Extreme Canasta"}, {"actid": 777, "activity_name": "Soccer"}, {"actid": 778, "activity_name": "Baseball"}, {"actid": 779, "activity_name": "Accordion Ensemble"}, {"actid": 780, "activity_name": "Football"}, {"actid": 782, "activity_name": "Volleyball"}, {"actid": 784, "activity_name": "Canasta"}, {"actid": 785, "activity_name": "Chess"}, {"actid": 790, "activity_name": "Crossword Puzzles"}, {"actid": 791, "activity_name": "Proselytizing"}, {"actid": 796, "activity_name": "Square Dancing"}, {"actid": 799, "activity_name": "Bungee Jumping"}]}, "correct_code": "-- Load activity_1__faculty_participates_in data\nfaculty_participates_in = load(\"faculty_participates_in\")\n\nfiltered_faculty_participates_in = faculty_participates_in\n |> filter(actid >= 770)\n |> compute(computed_val: facid + actid)\n\nresult = filtered_faculty_participates_in\n |> sort_by(facid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load activity_1__faculty_participates_in data\nfaculty_participates_in = load(\"faculty_participates_in\")\n\nfiltered_faculty_participates_in = faculty_participates_in\n filter(actid >= 770)\n |> compute(computed_val: facid + actid)\n\nresult = filtered_faculty_participates_in\n |> sort_by(facid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"facid": 9922, "actid": 796, "computed_val": 10718}, {"facid": 8918, "actid": 780, "computed_val": 9698}, {"facid": 8918, "actid": 782, "computed_val": 9700}, {"facid": 8918, "actid": 771, "computed_val": 9689}, {"facid": 8741, "actid": 780, "computed_val": 9521}, {"facid": 8741, "actid": 790, "computed_val": 9531}, {"facid": 8721, "actid": 770, "computed_val": 9491}, {"facid": 8721, "actid": 780, "computed_val": 9501}, {"facid": 8114, "actid": 776, "computed_val": 8890}, {"facid": 7723, "actid": 785, "computed_val": 8508}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(actid >= 770)", "mutated": "filter(actid >= 770)"}], "difficulty": "easy", "domain": "activity_1__faculty_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_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(friend_id > 1318)\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(friend_id > 1318)\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(11)\n\nemit result", "expected_output": [{"student_id": 1101, "friend_id": 1641, "id": 1641, "name": "Brittany", "grade": 10}, {"student_id": 1247, "friend_id": 1911, "id": 1911, "name": "Gabriel", "grade": 11}, {"student_id": 1247, "friend_id": 1501, "id": 1501, "name": "Jessica", "grade": 11}, {"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": 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": 1689, "friend_id": 1709, "id": 1709, "name": "Cassandra", "grade": 9}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 11", "line_num": 14, "original": "|> take(10)", "mutated": "|> take(11)"}], "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": {"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(days == \"Th\")\n |> select(cid, days, credits, instructor)\n\n-- Load lookup data\nfaculty = load(\"faculty\")\n\nenriched = join(filtered_course, faculty, on: instructor == facid)\n\nresult = enriched\n |> sort_by(instructor, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_3__course data\ncourse = load(\"course\")\n\nfiltered_course = course\n |> filter(days == \"T\")\n |> select(cid, days, credits, instructor)\n\n-- Load lookup data\nfaculty = load(\"faculty\")\n\nenriched = join(filtered_course, faculty, on: instructor == facid)\n\nresult = enriched\n |> sort_by(instructor, desc)\n |> take(5)\n\nemit result", "expected_output": [{"cid": "520.349", "days": "Th", "credits": 3, "instructor": 9824, "facid": 9824, "lname": "Glaser", "fname": "Robert", "rank": "Instructor", "sex": "M", "phone": 4396, "room": "119", "building": "Barton"}, {"cid": "500.204", "days": "Th", "credits": 3, "instructor": 9823, "facid": 9823, "lname": "Pang", "fname": "Jong-Shi", "rank": "Professor", "sex": "M", "phone": 4366, "room": "288", "building": "Krieger"}, {"cid": "520.603", "days": "Th", "credits": 4, "instructor": 9210, "facid": 9210, "lname": "Joseph", "fname": "Richard", "rank": "Professor", "sex": "M", "phone": 5996, "room": "119", "building": "Barton"}, {"cid": "520.609", "days": "Th", "credits": 3, "instructor": 7134, "facid": 7134, "lname": "Goutsias", "fname": "John", "rank": "Professor", "sex": "M", "phone": 2184, "room": "119", "building": "Barton"}, {"cid": "600.103", "days": "Th", "credits": 1, "instructor": 4230, "facid": 4230, "lname": "Houlahan", "fname": "Joanne", "rank": "Instructor", "sex": "F", "phone": 1260, "room": "328", "building": "NEB"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Th' \u2192 'T'", "line_num": 5, "original": "|> filter(days == \"Th\")", "mutated": "|> filter(days == \"T\")"}], "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": {"route": [{"train_id": 1, "station_id": 1}, {"train_id": 1, "station_id": 2}, {"train_id": 1, "station_id": 3}, {"train_id": 2, "station_id": 1}, {"train_id": 2, "station_id": 3}, {"train_id": 2, "station_id": 7}, {"train_id": 3, "station_id": 4}, {"train_id": 4, "station_id": 6}, {"train_id": 4, "station_id": 2}, {"train_id": 5, "station_id": 1}, {"train_id": 6, "station_id": 5}, {"train_id": 7, "station_id": 4}, {"train_id": 7, "station_id": 5}, {"train_id": 7, "station_id": 8}, {"train_id": 8, "station_id": 8}, {"train_id": 9, "station_id": 7}, {"train_id": 9, "station_id": 8}, {"train_id": 10, "station_id": 9}], "train": [{"id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily"}, {"id": 2, "train_number": 16127, "name": "Guruvayur Express", "origin": "Chennai", "destination": "Guruvayur", "time": "22:10", "interval": "Daily"}, {"id": 3, "train_number": 16128, "name": "Guruvayur Express", "origin": "Guruvayur", "destination": "Chennai", "time": "4:49", "interval": "Daily"}, {"id": 4, "train_number": 16723, "name": "Ananthapuri Express", "origin": "Chennai", "destination": "Trivandrum", "time": "11:35", "interval": "Daily"}, {"id": 5, "train_number": 16382, "name": "Jayanthi Janatha Express", "origin": "Kanniyakumari", "destination": "Mumbai", "time": "06:30", "interval": "Daily"}, {"id": 6, "train_number": 16525, "name": "Island Express", "origin": "Kanniyakumari", "destination": "Bangalore", "time": "11:15", "interval": "Daily"}, {"id": 7, "train_number": 56701, "name": "Madurai Fast Passenger", "origin": "Quilon", "destination": "Madurai", "time": "21:49", "interval": "Daily"}, {"id": 8, "train_number": 56700, "name": "Quilon Fast Passenger", "origin": "Madurai", "destination": "Quilon Junction", "time": "04:55", "interval": "Daily"}, {"id": 9, "train_number": 16526, "name": "Island Express", "origin": "Bangalore", "destination": "Kanniyakumari", "time": "16:59", "interval": "Daily"}, {"id": 10, "train_number": 16381, "name": "Jayanthi Janatha Express", "origin": "Mumbai", "destination": "Kanniyakumari", "time": "10:38", "interval": "Daily"}, {"id": 11, "train_number": 16650, "name": "Parasuram Express", "origin": "Nagercoil", "destination": "Mangalore", "time": "04:20", "interval": "Daily"}]}, "correct_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(train_id >= 3)\n\nresult = filtered_route\n |> sort_by(train_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(train_id >= 3)\n\nresult = filtered_route\n |> sort_by(train_id, asc)\n |> take(9)\n\nemit result", "expected_output": [{"train_id": 3, "station_id": 4}, {"train_id": 4, "station_id": 6}, {"train_id": 4, "station_id": 2}, {"train_id": 5, "station_id": 1}, {"train_id": 6, "station_id": 5}, {"train_id": 7, "station_id": 4}, {"train_id": 7, "station_id": 5}, {"train_id": 7, "station_id": 8}, {"train_id": 8, "station_id": 8}, {"train_id": 9, "station_id": 7}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 9", "line_num": 9, "original": "|> take(10)", "mutated": "|> take(9)"}], "difficulty": "medium", "domain": "station_weather__route", "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": {"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(stuid >= 1015)\n\nsummary = filtered_enrolled_in\n |> group_by(grade)\n |> aggregate(max_stuid: max(stuid), count: count())\n |> compute(computed_val: max_stuid - count)\n\nresult = summary\n |> sort_by(max_stuid, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_3__enrolled_in data\nenrolled_in = load(\"enrolled_in\")\n\nfiltered_enrolled_in = enrolled_in\n |> filter(stuid >= 1015)\n\nsummary = filtered_enrolled_in\n |> group_by(grade)\n |> aggregate(max_stuid: sum(stuid), count: count())\n |> compute(computed_val: max_stuid - count)\n\nresult = summary\n |> sort_by(max_stuid, asc)\n |> take(10)\n\nemit result", "expected_output": [{"grade": "D+", "max_stuid": 1019, "count": 1, "computed_val": 1018}, {"grade": "D", "max_stuid": 1022, "count": 1, "computed_val": 1021}, {"grade": "C-", "max_stuid": 1029, "count": 3, "computed_val": 1026}, {"grade": "B-", "max_stuid": 1030, "count": 11, "computed_val": 1019}, {"grade": "A+", "max_stuid": 1031, "count": 6, "computed_val": 1025}, {"grade": "C", "max_stuid": 1031, "count": 6, "computed_val": 1025}, {"grade": "D-", "max_stuid": 1032, "count": 2, "computed_val": 1030}, {"grade": "A-", "max_stuid": 1032, "count": 8, "computed_val": 1024}, {"grade": "A", "max_stuid": 1033, "count": 40, "computed_val": 993}, {"grade": "B", "max_stuid": 1033, "count": 37, "computed_val": 996}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'sum'", "line_num": 9, "original": "|> aggregate(max_stuid: max(stuid), count: count())", "mutated": "|> aggregate(max_stuid: sum(stuid), count: count())"}], "difficulty": "medium", "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": {"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(truck_id >= 3)\n\nsummary = filtered_order_deliveries\n |> group_by(delivery_status_code)\n |> aggregate(total_truck_id: sum(truck_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__order_deliveries data\norder_deliveries = load(\"order_deliveries\")\n\nfiltered_order_deliveries = order_deliveries\n |> filter(truck_id >= 3)\n\nsummary = filtered_order_deliveries\n |> group_by(delivery_status_code)\n |> aggregate(total_truck_id: sum(truck_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(1)\n\nemit result", "expected_output": [{"delivery_status_code": "Ready", "total_truck_id": 40, "count": 5}, {"delivery_status_code": "Delivered", "total_truck_id": 32, "count": 4}, {"delivery_status_code": "On Road", "total_truck_id": 27, "count": 3}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 13, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "hard", "domain": "customer_deliveries__order_deliveries", "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": {"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 |> select(eg_agree_objectives, task_id, task_details, project_id)\n\nsummary = tasks\n |> group_by(task_details)\n |> aggregate(avg_project_id: avg(project_id), count: count())\n\nresult = summary\n |> sort_by(avg_project_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__tasks data\ntasks = load(\"tasks\")\n |> select(eg_agree_objectives, task_id, task_details, project_id)\n\nsummary = tasks\n |> group_by(task_details)\n |> aggregate(avg_project_id: avg(project_id), count: count())\n\nresult = summary\n |> sort_by(avg_project_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"task_details": "a", "avg_project_id": 1.0, "count": 1}, {"task_details": "b", "avg_project_id": 2.0, "count": 1}, {"task_details": "c", "avg_project_id": 3.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 10, "original": "|> sort_by(avg_project_id, asc)", "mutated": "|> sort_by(avg_project_id, desc)"}], "difficulty": "medium", "domain": "tracking_grants_for_research__tasks", "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 == \"52647\")\n\nemit filtered_advisor", "buggy_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(i_id <= \"52647\")\n\nemit filtered_advisor", "expected_output": [{"s_id": "57985", "i_id": "52647"}, {"s_id": "21126", "i_id": "52647"}, {"s_id": "64938", "i_id": "52647"}, {"s_id": "91063", "i_id": "52647"}, {"s_id": "48462", "i_id": "52647"}, {"s_id": "64140", "i_id": "52647"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(i_id == \"52647\")", "mutated": "|> filter(i_id <= \"52647\")"}], "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_hard
{"datasets": {"works_on": [{"essn": 123456789, "pno": 1, "hours": 32.5}, {"essn": 123456789, "pno": 2, "hours": 7.5}, {"essn": 666884444, "pno": 3, "hours": 40.0}, {"essn": 453453453, "pno": 1, "hours": 20.0}, {"essn": 453453453, "pno": 2, "hours": 20.0}, {"essn": 333445555, "pno": 2, "hours": 10.0}, {"essn": 333445555, "pno": 3, "hours": 10.0}, {"essn": 333445555, "pno": 10, "hours": 10.0}, {"essn": 333445555, "pno": 20, "hours": 10.0}, {"essn": 999887777, "pno": 30, "hours": 30.0}, {"essn": 999887777, "pno": 10, "hours": 10.0}, {"essn": 987987987, "pno": 10, "hours": 35.0}, {"essn": 987987987, "pno": 30, "hours": 5.0}, {"essn": 987654321, "pno": 30, "hours": 20.0}, {"essn": 987654321, "pno": 20, "hours": 15.0}, {"essn": 888665555, "pno": 20, "hours": 0}]}, "correct_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n\nfiltered_works_on = works_on\n |> filter(hours > 8)\n |> compute(computed_val: pno * essn)\n\nresult = filtered_works_on\n |> sort_by(hours, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n\nfiltered_works_on = works_on\n |> filter(hours > 8)\n |> compute(computed_val: pno * essn)\n\nresult = filtered_works_on\n |> sort_by(hours, asc)\n |> take(1)\n\nemit result", "expected_output": [{"essn": 333445555, "pno": 2, "hours": 10.0, "computed_val": 666891110}, {"essn": 333445555, "pno": 3, "hours": 10.0, "computed_val": 1000336665}, {"essn": 333445555, "pno": 10, "hours": 10.0, "computed_val": 3334455550}], "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": "company_1__works_on", "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": {"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(countrycode == \"COG\")\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, governmentform, gnpold)\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(countrycode == \"cog\")\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, governmentform, gnpold)\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": "COG", "min_percentage": 2.6, "count": 6, "code": "COG", "governmentform": "Republic", "gnpold": 2287.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'COG' \u2192 'cog'", "line_num": 5, "original": "|> filter(countrycode == \"COG\")", "mutated": "|> filter(countrycode == \"cog\")"}], "difficulty": "hard", "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_hard
{"datasets": {"works_on": [{"essn": 123456789, "pno": 1, "hours": 32.5}, {"essn": 123456789, "pno": 2, "hours": 7.5}, {"essn": 666884444, "pno": 3, "hours": 40.0}, {"essn": 453453453, "pno": 1, "hours": 20.0}, {"essn": 453453453, "pno": 2, "hours": 20.0}, {"essn": 333445555, "pno": 2, "hours": 10.0}, {"essn": 333445555, "pno": 3, "hours": 10.0}, {"essn": 333445555, "pno": 10, "hours": 10.0}, {"essn": 333445555, "pno": 20, "hours": 10.0}, {"essn": 999887777, "pno": 30, "hours": 30.0}, {"essn": 999887777, "pno": 10, "hours": 10.0}, {"essn": 987987987, "pno": 10, "hours": 35.0}, {"essn": 987987987, "pno": 30, "hours": 5.0}, {"essn": 987654321, "pno": 30, "hours": 20.0}, {"essn": 987654321, "pno": 20, "hours": 15.0}, {"essn": 888665555, "pno": 20, "hours": 0}]}, "correct_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n\nresult = works_on\n |> sort_by(hours, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n\nresult = works_on\n |> sort_by(hours, desc)\n |> take(1)\n\nemit result", "expected_output": [{"essn": 666884444, "pno": 3, "hours": 40.0}, {"essn": 987987987, "pno": 10, "hours": 35.0}, {"essn": 123456789, "pno": 1, "hours": 32.5}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 6, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "hard", "domain": "company_1__works_on", "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": {"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\nprocessed = regular_order_products\n |> compute(computed_val: regular_order_id + product_id)\n\nresult = processed\n |> sort_by(product_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\nprocessed = regular_order_products\n |> compute(computed_val: regular_order_id + product_id)\n\nresult = processed\n |> sort_by(product_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"regular_order_id": 3, "product_id": 6, "computed_val": 9}, {"regular_order_id": 9, "product_id": 6, "computed_val": 15}, {"regular_order_id": 8, "product_id": 5, "computed_val": 13}, {"regular_order_id": 5, "product_id": 5, "computed_val": 10}, {"regular_order_id": 1, "product_id": 4, "computed_val": 5}, {"regular_order_id": 7, "product_id": 4, "computed_val": 11}, {"regular_order_id": 6, "product_id": 4, "computed_val": 10}, {"regular_order_id": 5, "product_id": 3, "computed_val": 8}, {"regular_order_id": 2, "product_id": 3, "computed_val": 5}, {"regular_order_id": 6, "product_id": 3, "computed_val": 9}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 8, "original": "|> sort_by(product_id, desc)", "mutated": "|> sort_by(product_id, asc)"}], "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_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\nfiltered_treatments = treatments\n |> filter(treatment_type_code == \"WALK\")\n |> select(treatment_type_code, professional_id, treatment_id, dog_id)\n\nsummary = filtered_treatments\n |> group_by(treatment_type_code)\n |> aggregate(total_professional_id: sum(professional_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_type_code == \"WALK\")\n |> select(treatment_type_code, professional_id, treatment_id, dog_id)\n\nsummary = filtered_treatments\n |> group_by(treatment_type_code)\n |> aggregate(total_professional_id: count(professional_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"treatment_type_code": "WALK", "total_professional_id": 41, "count": 5}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'sum' \u2192 'count'", "line_num": 10, "original": "|> aggregate(total_professional_id: sum(professional_id), count: count())", "mutated": "|> aggregate(total_professional_id: count(professional_id), count: count())"}], "difficulty": "medium", "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": {"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}], "ref_transaction_types": [{"transaction_type_code": "SALE", "transaction_type_description": "Sale"}, {"transaction_type_code": "PUR", "transaction_type_description": "Purchase"}]}, "correct_code": "-- Load tracking_share_transactions__transactions data\ntransactions = load(\"transactions\")\n |> select(transaction_type_code, amount_of_transaction, transaction_id)\n\nresult = transactions\n |> sort_by(transaction_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions data\ntransactions = load(\"transactions\")\n |> select(transaction_type_code, amount_of_transaction, amount_of_transaction)\n\nresult = transactions\n |> sort_by(transaction_id, desc)\n |> take(8)\n\nemit result", "expected_output": [{"transaction_type_code": "PUR", "amount_of_transaction": 8.9, "transaction_id": 15}, {"transaction_type_code": "PUR", "amount_of_transaction": 0, "transaction_id": 14}, {"transaction_type_code": "SALE", "amount_of_transaction": 183.2, "transaction_id": 13}, {"transaction_type_code": "SALE", "amount_of_transaction": 1, "transaction_id": 12}, {"transaction_type_code": "SALE", "amount_of_transaction": 0, "transaction_id": 11}, {"transaction_type_code": "SALE", "amount_of_transaction": 29.3534, "transaction_id": 10}, {"transaction_type_code": "PUR", "amount_of_transaction": 82057.207, "transaction_id": 9}, {"transaction_type_code": "SALE", "amount_of_transaction": 78035671.4424, "transaction_id": 8}, {"transaction_type_code": "PUR", "amount_of_transaction": 822.803, "transaction_id": 7}, {"transaction_type_code": "PUR", "amount_of_transaction": 207484122.2796, "transaction_id": 6}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'transaction_id' \u2192 'amount_of_transaction'", "line_num": 3, "original": "|> select(transaction_type_code, amount_of_transaction, transaction_id)", "mutated": "|> select(transaction_type_code, amount_of_transaction, amount_of_transaction)"}, {"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 8", "line_num": 7, "original": "|> take(10)", "mutated": "|> take(8)"}], "difficulty": "hard", "domain": "tracking_share_transactions__transactions", "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": {"services": [{"service_id": 10, "organization_id": 10, "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"service_id": 11, "organization_id": 7, "service_type_code": "Check", "service_details": "Satisfied"}, {"service_id": 13, "organization_id": 8, "service_type_code": "Moving Out", "service_details": "Satisfied"}, {"service_id": 22, "organization_id": 10, "service_type_code": "Pay bills", "service_details": "Satisfied"}, {"service_id": 29, "organization_id": 8, "service_type_code": "Moving Out", "service_details": "Satisfied"}, {"service_id": 31, "organization_id": 7, "service_type_code": "Pay bills", "service_details": "Satisfied"}, {"service_id": 36, "organization_id": 8, "service_type_code": "Check", "service_details": "Satisfied"}, {"service_id": 41, "organization_id": 10, "service_type_code": "Check", "service_details": "Satisfied"}, {"service_id": 47, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 49, "organization_id": 8, "service_type_code": "Moving Out", "service_details": "Satisfied"}, {"service_id": 52, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 65, "organization_id": 8, "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"service_id": 66, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 77, "organization_id": 7, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 87, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}], "residents_services": [{"resident_id": 6, "service_id": 49, "date_moved_in": "2017-06-17 15:43:33", "property_id": 954, "date_requested": "2016-07-25 01:32:23", "date_provided": "2018-02-26 00:27:11", "other_details": "Satisfied"}, {"resident_id": 23, "service_id": 41, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "date_requested": "2016-10-10 21:42:21", "date_provided": "2017-08-21 06:23:06", "other_details": "Unsatisfied"}, {"resident_id": 28, "service_id": 11, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "date_requested": "2017-07-14 19:03:47", "date_provided": "2017-08-28 03:43:56", "other_details": "Unsatisfied"}, {"resident_id": 43, "service_id": 10, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "date_requested": "2016-09-20 22:50:26", "date_provided": "2017-10-17 03:30:08", "other_details": "Unsatisfied"}, {"resident_id": 45, "service_id": 49, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "date_requested": "2017-06-14 14:04:50", "date_provided": "2017-08-14 08:06:43", "other_details": "Unsatisfied"}, {"resident_id": 47, "service_id": 65, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "date_requested": "2016-12-16 06:08:10", "date_provided": "2018-01-30 09:58:57", "other_details": "Unsatisfied"}, {"resident_id": 67, "service_id": 87, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "date_requested": "2016-04-27 14:51:07", "date_provided": "2017-11-13 10:28:34", "other_details": "Unsatisfied"}, {"resident_id": 83, "service_id": 65, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "date_requested": "2016-11-27 15:37:02", "date_provided": "2017-09-10 00:48:58", "other_details": "Unsatisfied"}, {"resident_id": 87, "service_id": 29, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "date_requested": "2016-10-13 04:15:54", "date_provided": "2017-10-29 13:12:29", "other_details": "Unsatisfied"}, {"resident_id": 90, "service_id": 36, "date_moved_in": "2016-09-27 12:00:00", "property_id": 373, "date_requested": "2016-04-13 05:09:24", "date_provided": "2017-10-28 12:36:43", "other_details": "Unsatisfied"}, {"resident_id": 88, "service_id": 11, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "date_requested": "2016-06-18 20:09:24", "date_provided": "2017-08-08 11:24:50", "other_details": "Unsatisfied"}]}, "correct_code": "-- Load local_govt_and_lot__services data\nservices = load(\"services\")\n\nfiltered_services = services\n |> filter(organization_id >= 8)\n\nsummary = filtered_services\n |> group_by(service_details)\n |> aggregate(total_service_id: sum(service_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__services data\nservices = load(\"services\")\n\nfiltered_services = services\n |> filter(organization_id >= 8)\n\nsummary = filtered_services\n |> group_by(service_details)\n aggregate(total_service_id: sum(service_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"service_details": "Satisfied", "total_service_id": 200, "count": 7}, {"service_details": "Unsatisfied", "total_service_id": 317, "count": 5}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> aggregate(total_service_id: sum(service_id), count: count())", "mutated": "aggregate(total_service_id: sum(service_id), count: count())"}], "difficulty": "easy", "domain": "local_govt_and_lot__services", "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": {"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_price, product_name)\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", "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_price, product_name)\n\nenriched = join(regular_order_products, products, on: product_id == product_id)\n |> compute(product_name: regular_order_id / product_id)\n\nresult = enriched\n |> sort_by(regular_order_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"regular_order_id": 13, "product_id": 2, "product_price": 6402.09, "product_name": "cloth", "computed_val": 6.5}, {"regular_order_id": 12, "product_id": 2, "product_price": 6402.09, "product_name": "cloth", "computed_val": 6.0}, {"regular_order_id": 10, "product_id": 1, "product_price": 1322.78, "product_name": "dvds", "computed_val": 10.0}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'computed_val' \u2192 'product_name'", "line_num": 9, "original": "|> compute(computed_val: regular_order_id / product_id)", "mutated": "|> compute(product_name: regular_order_id / product_id)"}, {"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 12, "original": "|> sort_by(regular_order_id, desc)", "mutated": "|> sort_by(regular_order_id, asc)"}], "difficulty": "medium", "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_hard
{"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(raceid >= 18)\n |> select(position, rank, constructorid, resultid)\n\n-- Load lookup data\nconstructors = load(\"constructors\")\n |> select(url, name, constructorid)\n\nenriched = join(filtered_results, constructors, on: constructorid == constructorid)\n\nresult = enriched\n |> sort_by(resultid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__results data\nresults = load(\"results\")\n\nfiltered_results = results\n |> filter(raceid >= 19)\n |> select(position, rank, constructorid, resultid)\n\n-- Load lookup data\nconstructors = load(\"constructors\")\n |> select(url, name, constructorid)\n\nenriched = join(filtered_results, constructors, on: constructorid == constructorid)\n\nresult = enriched\n |> sort_by(resultid, asc)\n |> take(3)\n\nemit result", "expected_output": [{"position": "1", "rank": "2", "constructorid": 1, "resultid": 1, "url": "http://en.wikipedia.org/wiki/McLaren", "name": "McLaren"}, {"position": "2", "rank": "3", "constructorid": 2, "resultid": 2, "url": "http://en.wikipedia.org/wiki/BMW_Sauber", "name": "BMW Sauber"}, {"position": "3", "rank": "5", "constructorid": 3, "resultid": 3, "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering", "name": "Williams"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 18 \u2192 19", "line_num": 5, "original": "|> filter(raceid >= 18)", "mutated": "|> filter(raceid >= 19)"}], "difficulty": "hard", "domain": "formula_1__results", "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": {"customers": [{"customer_id": 194, "customer_name": "America Jaskolski"}, {"customer_id": 214, "customer_name": "Ellsworth Paucek"}, {"customer_id": 256, "customer_name": "Mrs. Hanna Willms"}, {"customer_id": 562, "customer_name": "Dr. Diana Rath"}, {"customer_id": 582, "customer_name": "Selena Gerhold"}, {"customer_id": 641, "customer_name": "Dayana Robel"}, {"customer_id": 682, "customer_name": "Mr. Edwardo Blanda I"}, {"customer_id": 756, "customer_name": "Mr. Randal Lynch III"}, {"customer_id": 805, "customer_name": "Mrs. Liza Heller V"}, {"customer_id": 826, "customer_name": "Mrs. Lilly Graham III"}, {"customer_id": 882, "customer_name": "Miss Felicita Reichel"}, {"customer_id": 892, "customer_name": "Sydnie Friesen"}, {"customer_id": 923, "customer_name": "David Ross"}, {"customer_id": 956, "customer_name": "Cai Zhang"}, {"customer_id": 996, "customer_name": "Jay Chou"}], "customers_policies": [{"customer_id": 214, "policy_id": 257, "date_opened": "2016-11-19", "date_closed": "2018-03-04"}, {"customer_id": 214, "policy_id": 301, "date_opened": "2016-04-12", "date_closed": "2018-02-07"}, {"customer_id": 256, "policy_id": 583, "date_opened": "2016-07-22", "date_closed": "2018-02-20"}, {"customer_id": 562, "policy_id": 346, "date_opened": "2017-01-09", "date_closed": "2018-03-08"}, {"customer_id": 562, "policy_id": 583, "date_opened": "2016-06-24", "date_closed": "2018-02-22"}, {"customer_id": 582, "policy_id": 586, "date_opened": "2016-04-11", "date_closed": "2018-03-17"}, {"customer_id": 641, "policy_id": 366, "date_opened": "2016-07-10", "date_closed": "2018-02-24"}, {"customer_id": 641, "policy_id": 472, "date_opened": "2016-07-07", "date_closed": "2018-03-10"}, {"customer_id": 682, "policy_id": 583, "date_opened": "2016-11-01", "date_closed": "2018-03-03"}, {"customer_id": 826, "policy_id": 630, "date_opened": "2016-11-18", "date_closed": "2018-02-13"}, {"customer_id": 892, "policy_id": 927, "date_opened": "2017-01-08", "date_closed": "2018-02-25"}, {"customer_id": 996, "policy_id": 366, "date_opened": "2016-10-31", "date_closed": "2018-03-19"}, {"customer_id": 996, "policy_id": 879, "date_opened": "2017-01-05", "date_closed": "2018-02-20"}, {"customer_id": 996, "policy_id": 993, "date_opened": "2016-07-03", "date_closed": "2018-03-20"}]}, "correct_code": "-- Load insurance_fnol__customers data\ncustomers = load(\"customers\")\n |> select(customer_name, customer_id)\n\nsummary = customers\n |> group_by(customer_name)\n |> aggregate(total_customer_id: sum(customer_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load insurance_fnol__customers data\ncustomers = load(\"customers\")\n |> select(customer_name, customer_id)\n\nsummary = customers\n |> group_by(customer_name)\n |> aggregate(total_customer_id: sum(customer_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(6)\n\nemit result", "expected_output": [{"customer_name": "America Jaskolski", "total_customer_id": 194, "count": 1}, {"customer_name": "Ellsworth Paucek", "total_customer_id": 214, "count": 1}, {"customer_name": "Mrs. Hanna Willms", "total_customer_id": 256, "count": 1}, {"customer_name": "Dr. Diana Rath", "total_customer_id": 562, "count": 1}, {"customer_name": "Selena Gerhold", "total_customer_id": 582, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 6", "line_num": 11, "original": "|> take(5)", "mutated": "|> take(6)"}], "difficulty": "medium", "domain": "insurance_fnol__customers", "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(grape == \"Petite Sirah\")\n |> select(grape, price, no)\n\n-- Load lookup data\ngrapes = load(\"grapes\")\n |> select(id, grape, color)\n\nenriched = join(filtered_wine, grapes, on: grape == grape)\n\nresult = enriched\n |> sort_by(no, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load wine_1__wine data\nwine = load(\"wine\")\n\nfiltered_wine = wine\n |> filter(grape == \"Petite Sirah\")\n |> select(grape, price, grape)\n\n-- Load lookup data\ngrapes = load(\"grapes\")\n |> select(id, grape, color)\n\nenriched = join(filtered_wine, grapes, on: grape == grape)\n\nresult = enriched\n |> sort_by(no, desc)\n |> take(10)\n\nemit result", "expected_output": [{"grape": "Petite Sirah", "price": 11, "no": 128, "id": 11, "color": "Red"}, {"grape": "Petite Sirah", "price": 35, "no": 127, "id": 11, "color": "Red"}, {"grape": "Petite Sirah", "price": 75, "no": 126, "id": 11, "color": "Red"}, {"grape": "Petite Sirah", "price": 34, "no": 125, "id": 11, "color": "Red"}, {"grape": "Petite Sirah", "price": 48, "no": 124, "id": 11, "color": "Red"}, {"grape": "Petite Sirah", "price": 48, "no": 123, "id": 11, "color": "Red"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'no' \u2192 'grape'", "line_num": 6, "original": "|> select(grape, price, no)", "mutated": "|> select(grape, price, grape)"}], "difficulty": "medium", "domain": "wine_1__wine", "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": {"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 < 7)\n |> select(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 < 7)\n |> select(7, lot_id)\n\nresult = filtered_transactions_lots\n |> sort_by(lot_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"transaction_id": 3, "lot_id": 4}, {"transaction_id": 6, "lot_id": 3}, {"transaction_id": 1, "lot_id": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'transaction_id' \u2192 '7'", "line_num": 6, "original": "|> select(transaction_id, lot_id)", "mutated": "|> select(7, lot_id)"}], "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_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(min_roomnumber: min(roomnumber), count: count())\n\nresult = summary\n |> sort_by(min_roomnumber, desc)\n |> take(3)\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(min_roomnumber: min(roomnumber), count: count())\n\nresult = summary\n |> sort_by(min_roomnumber, desc)\n |> take(3)\n\nemit result", "expected_output": [{"roomtype": "Single", "min_roomnumber": 101, "count": 36}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '!='", "line_num": 5, "original": "|> filter(roomtype == \"Single\")", "mutated": "|> filter(roomtype != \"Single\")"}], "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_medium
{"datasets": {"employees": [{"employee_id": 1, "employee_address_id": 4, "employee_name": "Kacie", "employee_phone": "716-650-2081"}, {"employee_id": 2, "employee_address_id": 12, "employee_name": "Dejuan", "employee_phone": "211.289.9042"}, {"employee_id": 3, "employee_address_id": 1, "employee_name": "Leonie", "employee_phone": "816-890-2580"}, {"employee_id": 4, "employee_address_id": 11, "employee_name": "Rogelio", "employee_phone": "(539)655-7194x3276"}, {"employee_id": 5, "employee_address_id": 12, "employee_name": "Eriberto", "employee_phone": "675.047.7555x13273"}, {"employee_id": 6, "employee_address_id": 9, "employee_name": "Matteo", "employee_phone": "620.905.4152x7146"}, {"employee_id": 7, "employee_address_id": 4, "employee_name": "Sasha", "employee_phone": "1-547-775-6049"}, {"employee_id": 8, "employee_address_id": 11, "employee_name": "Eino", "employee_phone": "033.973.3729x07313"}, {"employee_id": 9, "employee_address_id": 8, "employee_name": "Cydney", "employee_phone": "191.702.4400x1018"}, {"employee_id": 10, "employee_address_id": 6, "employee_name": "Cristian", "employee_phone": "1-833-492-9430"}, {"employee_id": 11, "employee_address_id": 5, "employee_name": "Lew", "employee_phone": "776.002.6775"}, {"employee_id": 12, "employee_address_id": 15, "employee_name": "Anthony", "employee_phone": "+69(6)9999892744"}, {"employee_id": 13, "employee_address_id": 14, "employee_name": "Jovani", "employee_phone": "+28(9)6180779782"}, {"employee_id": 14, "employee_address_id": 10, "employee_name": "Dovie", "employee_phone": "944-507-0999"}, {"employee_id": 15, "employee_address_id": 12, "employee_name": "Allison", "employee_phone": "+48(5)2807285053"}], "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__employees data\nemployees = load(\"employees\")\n\nfiltered_employees = employees\n |> filter(employee_name == \"Allison\")\n\nsummary = filtered_employees\n |> group_by(employee_name)\n |> aggregate(total_employee_id: sum(employee_id), count: count())\n |> compute(computed_val: count + total_employee_id)\n\nresult = summary\n |> sort_by(total_employee_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__employees data\nemployees = load(\"employees\")\n\nfiltered_employees = employees\n |> filter(employee_name == \"Allison\")\n\nsummary = filtered_employees\n |> group_by(employee_name)\n |> aggregate(total_employee_id: count(employee_id), count: count())\n |> compute(computed_val: count + total_employee_id)\n\nresult = summary\n |> sort_by(total_employee_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"employee_name": "Allison", "total_employee_id": 15, "count": 1, "computed_val": 16}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'sum' \u2192 'count'", "line_num": 9, "original": "|> aggregate(total_employee_id: sum(employee_id), count: count())", "mutated": "|> aggregate(total_employee_id: count(employee_id), count: count())"}], "difficulty": "medium", "domain": "customer_deliveries__employees", "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": {"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}], "department": [{"dept_name": "Civil Eng.", "building": "Chandler", "budget": 255041.46}, {"dept_name": "Biology", "building": "Candlestick", "budget": 647610.55}, {"dept_name": "History", "building": "Taylor", "budget": 699140.86}, {"dept_name": "Physics", "building": "Wrigley", "budget": 942162.76}, {"dept_name": "Marketing", "building": "Lambeau", "budget": 210627.58}, {"dept_name": "Pol. Sci.", "building": "Whitman", "budget": 573745.09}, {"dept_name": "English", "building": "Palmer", "budget": 611042.66}, {"dept_name": "Accounting", "building": "Saucon", "budget": 441840.92}, {"dept_name": "Comp. Sci.", "building": "Lamberton", "budget": 106378.69}, {"dept_name": "Languages", "building": "Linderman", "budget": 601283.6}, {"dept_name": "Finance", "building": "Candlestick", "budget": 866831.75}, {"dept_name": "Geology", "building": "Palmer", "budget": 406557.93}, {"dept_name": "Cybernetics", "building": "Mercer", "budget": 794541.46}, {"dept_name": "Astronomy", "building": "Taylor", "budget": 617253.94}, {"dept_name": "Athletics", "building": "Bronfman", "budget": 734550.7}, {"dept_name": "Statistics", "building": "Taylor", "budget": 395051.74}, {"dept_name": "Psychology", "building": "Thompson", "budget": 848175.04}, {"dept_name": "Math", "building": "Brodhead", "budget": 777605.11}, {"dept_name": "Elec. Eng.", "building": "Main", "budget": 276527.61}, {"dept_name": "Mech. Eng.", "building": "Rauch", "budget": 520350.65}]}, "correct_code": "-- Load college_2__instructor data\ninstructor = load(\"instructor\")\n\nfiltered_instructor = instructor\n |> filter(name == \"Liley\")\n\nsummary = filtered_instructor\n |> group_by(id)\n |> aggregate(total_salary: sum(salary), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_2__instructor data\ninstructor = load(\"instructor\")\n\nfiltered_instructor = instructor\n |> filter(name == \"Liley\")\n\nsummary = filtered_instructor\n |> group_by(id)\n |> aggregate(total_salary: sum(salary), count: count())\n\nresult = summary\n sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"id": "25946", "total_salary": 90891.69, "count": 1}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 12, "original": "|> sort_by(count, asc)", "mutated": "sort_by(count, asc)"}], "difficulty": "easy", "domain": "college_2__instructor", "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": {"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"}], "circuits": [{"circuitid": 1, "circuitref": "albert_park", "name": "Albert Park Grand Prix Circuit", "location": "Melbourne", "country": "Australia", "lat": -37.8497, "lng": 144.968, "alt": "10", "url": "http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit"}, {"circuitid": 2, "circuitref": "sepang", "name": "Sepang International Circuit", "location": "Kuala Lumpur", "country": "Malaysia", "lat": 2.76083, "lng": 101.738, "alt": "", "url": "http://en.wikipedia.org/wiki/Sepang_International_Circuit"}, {"circuitid": 3, "circuitref": "bahrain", "name": "Bahrain International Circuit", "location": "Sakhir", "country": "Bahrain", "lat": 26.0325, "lng": 50.5106, "alt": "", "url": "http://en.wikipedia.org/wiki/Bahrain_International_Circuit"}, {"circuitid": 4, "circuitref": "catalunya", "name": "Circuit de Barcelona-Catalunya", "location": "Montmel_", "country": "Spain", "lat": 41.57, "lng": 2.26111, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Barcelona-Catalunya"}, {"circuitid": 5, "circuitref": "istanbul", "name": "Istanbul Park", "location": "Istanbul", "country": "Turkey", "lat": 40.9517, "lng": 29.405, "alt": "", "url": "http://en.wikipedia.org/wiki/Istanbul_Park"}, {"circuitid": 6, "circuitref": "monaco", "name": "Circuit de Monaco", "location": "Monte-Carlo", "country": "Monaco", "lat": 43.7347, "lng": 7.42056, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Monaco"}, {"circuitid": 7, "circuitref": "villeneuve", "name": "Circuit Gilles Villeneuve", "location": "Montreal", "country": "Canada", "lat": 45.5, "lng": -73.5228, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Gilles_Villeneuve"}, {"circuitid": 8, "circuitref": "magny_cours", "name": "Circuit de Nevers Magny-Cours", "location": "Magny Cours", "country": "France", "lat": 46.8642, "lng": 3.16361, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Nevers_Magny-Cours"}, {"circuitid": 9, "circuitref": "silverstone", "name": "Silverstone Circuit", "location": "Silverstone", "country": "UK", "lat": 52.0786, "lng": -1.01694, "alt": "", "url": "http://en.wikipedia.org/wiki/Silverstone_Circuit"}, {"circuitid": 10, "circuitref": "hockenheimring", "name": "Hockenheimring", "location": "Hockenheim", "country": "Germany", "lat": 49.3278, "lng": 8.56583, "alt": "", "url": "http://en.wikipedia.org/wiki/Hockenheimring"}, {"circuitid": 11, "circuitref": "hungaroring", "name": "Hungaroring", "location": "Budapest", "country": "Hungary", "lat": 47.5789, "lng": 19.2486, "alt": "", "url": "http://en.wikipedia.org/wiki/Hungaroring"}, {"circuitid": 12, "circuitref": "valencia", "name": "Valencia Street Circuit", "location": "Valencia", "country": "Spain", "lat": 39.4589, "lng": -0.331667, "alt": "", "url": "http://en.wikipedia.org/wiki/Valencia_Street_Circuit"}, {"circuitid": 13, "circuitref": "spa", "name": "Circuit de Spa-Francorchamps", "location": "Spa", "country": "Belgium", "lat": 50.4372, "lng": 5.97139, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_Spa-Francorchamps"}, {"circuitid": 14, "circuitref": "monza", "name": "Autodromo Nazionale di Monza", "location": "Monza", "country": "Italy", "lat": 45.6156, "lng": 9.28111, "alt": "", "url": "http://en.wikipedia.org/wiki/Autodromo_Nazionale_Monza"}, {"circuitid": 15, "circuitref": "marina_bay", "name": "Marina Bay Street Circuit", "location": "Marina Bay", "country": "Singapore", "lat": 1.2914, "lng": 103.864, "alt": "", "url": "http://en.wikipedia.org/wiki/Marina_Bay_Street_Circuit"}, {"circuitid": 16, "circuitref": "fuji", "name": "Fuji Speedway", "location": "Oyama", "country": "Japan", "lat": 35.3717, "lng": 138.927, "alt": "", "url": "http://en.wikipedia.org/wiki/Fuji_Speedway"}, {"circuitid": 17, "circuitref": "shanghai", "name": "Shanghai International Circuit", "location": "Shanghai", "country": "China", "lat": 31.3389, "lng": 121.22, "alt": "", "url": "http://en.wikipedia.org/wiki/Shanghai_International_Circuit"}, {"circuitid": 18, "circuitref": "interlagos", "name": "Aut_dromo Jo Carlos Pace", "location": "S\u0323o Paulo", "country": "Brazil", "lat": -23.7036, "lng": -46.6997, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Jos%C3%A9_Carlos_Pace"}, {"circuitid": 19, "circuitref": "indianapolis", "name": "Indianapolis Motor Speedway", "location": "Indianapolis", "country": "USA", "lat": 39.795, "lng": -86.2347, "alt": "", "url": "http://en.wikipedia.org/wiki/Indianapolis_Motor_Speedway"}, {"circuitid": 20, "circuitref": "nurburgring", "name": "N_rburgring", "location": "N_rburg", "country": "Germany", "lat": 50.3356, "lng": 6.9475, "alt": "", "url": "http://en.wikipedia.org/wiki/N%C3%BCrburgring"}, {"circuitid": 21, "circuitref": "imola", "name": "Autodromo Enzo e Dino Ferrari", "location": "Imola", "country": "Italy", "lat": 44.3439, "lng": 11.7167, "alt": "", "url": "http://en.wikipedia.org/wiki/Autodromo_Enzo_e_Dino_Ferrari"}, {"circuitid": 22, "circuitref": "suzuka", "name": "Suzuka Circuit", "location": "Suzuka", "country": "Japan", "lat": 34.8431, "lng": 136.541, "alt": "", "url": "http://en.wikipedia.org/wiki/Suzuka_Circuit"}, {"circuitid": 23, "circuitref": "osterreichring", "name": "A1-Ring", "location": "Spielburg", "country": "Austria", "lat": 47.2197, "lng": 14.7647, "alt": "", "url": "http://en.wikipedia.org/wiki/A1-Ring"}, {"circuitid": 24, "circuitref": "yas_marina", "name": "Yas Marina Circuit", "location": "Abu Dhabi", "country": "UAE", "lat": 24.4672, "lng": 54.6031, "alt": "", "url": "http://en.wikipedia.org/wiki/Yas_Marina_Circuit"}, {"circuitid": 25, "circuitref": "galvez", "name": "Aut_dromo Juan y Oscar Glvez", "location": "Buenos Aires", "country": "Argentina", "lat": -34.6943, "lng": -58.4593, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Oscar_Alfredo_G%C3%A1lvez"}, {"circuitid": 26, "circuitref": "jerez", "name": "Circuito de Jerez", "location": "Jerez de la Frontera", "country": "Spain", "lat": 36.7083, "lng": -6.03417, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuito_Permanente_de_Jerez"}, {"circuitid": 27, "circuitref": "estoril", "name": "Aut_dromo do Estoril", "location": "Estoril", "country": "Portugal", "lat": 38.7506, "lng": -9.39417, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_do_Estoril"}, {"circuitid": 28, "circuitref": "okayama", "name": "Okayama International Circuit", "location": "Okayama", "country": "Japan", "lat": 34.915, "lng": 134.221, "alt": "", "url": "http://en.wikipedia.org/wiki/TI_Circuit"}, {"circuitid": 29, "circuitref": "adelaide", "name": "Adelaide Street Circuit", "location": "Adelaide", "country": "Australia", "lat": -34.9272, "lng": 138.617, "alt": "", "url": "http://en.wikipedia.org/wiki/Adelaide_Street_Circuit"}, {"circuitid": 30, "circuitref": "kyalami", "name": "Kyalami", "location": "Midrand", "country": "South Africa", "lat": -25.9894, "lng": 28.0767, "alt": "", "url": "http://en.wikipedia.org/wiki/Kyalami"}, {"circuitid": 31, "circuitref": "donington", "name": "Donington Park", "location": "Castle Donington", "country": "UK", "lat": 52.8306, "lng": -1.37528, "alt": "", "url": "http://en.wikipedia.org/wiki/Donington_Park"}, {"circuitid": 32, "circuitref": "rodriguez", "name": "Aut_dromo Hermanos Rodr_guez", "location": "Mexico City", "country": "Mexico", "lat": 19.4042, "lng": -99.0907, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Hermanos_Rodr%C3%ADguez"}, {"circuitid": 33, "circuitref": "phoenix", "name": "Phoenix street circuit", "location": "Phoenix", "country": "USA", "lat": 33.4479, "lng": -112.075, "alt": "", "url": "http://en.wikipedia.org/wiki/Phoenix_street_circuit"}, {"circuitid": 34, "circuitref": "ricard", "name": "Circuit Paul Ricard", "location": "Le Castellet", "country": "France", "lat": 43.2506, "lng": 5.79167, "alt": "", "url": "http://en.wikipedia.org/wiki/Paul_Ricard_Circuit"}, {"circuitid": 35, "circuitref": "yeongam", "name": "Korean International Circuit", "location": "Yeongam County", "country": "Korea", "lat": 34.7333, "lng": 126.417, "alt": "", "url": "http://en.wikipedia.org/wiki/Korean_International_Circuit"}, {"circuitid": 36, "circuitref": "jacarepagua", "name": "Aut_dromo Internacional Nelson Piquet", "location": "Rio de Janeiro", "country": "Brazil", "lat": -22.9756, "lng": -43.395, "alt": "", "url": "http://en.wikipedia.org/wiki/Aut%C3%B3dromo_Internacional_Nelson_Piquet"}, {"circuitid": 37, "circuitref": "detroit", "name": "Detroit Street Circuit", "location": "Detroit", "country": "USA", "lat": 42.3298, "lng": -83.0401, "alt": "", "url": "http://en.wikipedia.org/wiki/Detroit_street_circuit"}, {"circuitid": 38, "circuitref": "brands_hatch", "name": "Brands Hatch", "location": "Kent", "country": "UK", "lat": 51.3569, "lng": 0.263056, "alt": "", "url": "http://en.wikipedia.org/wiki/Brands_Hatch"}, {"circuitid": 39, "circuitref": "zandvoort", "name": "Circuit Park Zandvoort", "location": "Zandvoort", "country": "Netherlands", "lat": 52.3888, "lng": 4.54092, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Zandvoort"}, {"circuitid": 40, "circuitref": "zolder", "name": "Zolder", "location": "Heusden-Zolder", "country": "Belgium", "lat": 50.9894, "lng": 5.25694, "alt": "", "url": "http://en.wikipedia.org/wiki/Zolder"}, {"circuitid": 41, "circuitref": "dijon", "name": "Dijon-Prenois", "location": "Dijon", "country": "France", "lat": 47.3625, "lng": 4.89913, "alt": "", "url": "http://en.wikipedia.org/wiki/Dijon-Prenois"}, {"circuitid": 42, "circuitref": "dallas", "name": "Fair Park", "location": "Dallas", "country": "USA", "lat": 32.7774, "lng": -96.7587, "alt": "", "url": "http://en.wikipedia.org/wiki/Fair_Park"}, {"circuitid": 43, "circuitref": "long_beach", "name": "Long Beach", "location": "California", "country": "USA", "lat": 33.7651, "lng": -118.189, "alt": "", "url": "http://en.wikipedia.org/wiki/Long_Beach,_California"}, {"circuitid": 44, "circuitref": "las_vegas", "name": "Las Vegas Street Circuit", "location": "Nevada", "country": "USA", "lat": 36.1162, "lng": -115.174, "alt": "", "url": "http://en.wikipedia.org/wiki/Las_Vegas,_Nevada"}, {"circuitid": 45, "circuitref": "jarama", "name": "Jarama", "location": "Madrid", "country": "Spain", "lat": 40.6171, "lng": -3.58558, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuito_Permanente_Del_Jarama"}, {"circuitid": 46, "circuitref": "watkins_glen", "name": "Watkins Glen", "location": "New York State", "country": "USA", "lat": 42.3369, "lng": -76.9272, "alt": "", "url": "http://en.wikipedia.org/wiki/Watkins_Glen_International"}, {"circuitid": 47, "circuitref": "anderstorp", "name": "Scandinavian Raceway", "location": "Anderstorp", "country": "Sweden", "lat": 57.2653, "lng": 13.6042, "alt": "", "url": "http://en.wikipedia.org/wiki/Scandinavian_Raceway"}, {"circuitid": 48, "circuitref": "mosport", "name": "Mosport International Raceway", "location": "Ontario", "country": "Canada", "lat": 44.0481, "lng": -78.6756, "alt": "", "url": "http://en.wikipedia.org/wiki/Mosport"}, {"circuitid": 49, "circuitref": "montjuic", "name": "Montjuc", "location": "Barcelona", "country": "Spain", "lat": 41.3664, "lng": 2.15167, "alt": "", "url": "http://en.wikipedia.org/wiki/Montju%C3%AFc_circuit"}, {"circuitid": 50, "circuitref": "nivelles", "name": "Nivelles-Baulers", "location": "Brussels", "country": "Belgium", "lat": 50.6211, "lng": 4.32694, "alt": "", "url": "http://en.wikipedia.org/wiki/Nivelles-Baulers"}, {"circuitid": 51, "circuitref": "charade", "name": "Charade Circuit", "location": "Clermont-Ferrand", "country": "France", "lat": 45.7472, "lng": 3.03889, "alt": "", "url": "http://en.wikipedia.org/wiki/Charade_Circuit"}, {"circuitid": 52, "circuitref": "tremblant", "name": "Circuit Mont-Tremblant", "location": "Quebec", "country": "Canada", "lat": 46.1877, "lng": -74.6099, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Mont-Tremblant"}, {"circuitid": 53, "circuitref": "essarts", "name": "Rouen-Les-Essarts", "location": "Rouen", "country": "France", "lat": 49.3306, "lng": 1.00458, "alt": "", "url": "http://en.wikipedia.org/wiki/Rouen-Les-Essarts"}, {"circuitid": 54, "circuitref": "lemans", "name": "Le Mans", "location": "Le Mans", "country": "France", "lat": 47.95, "lng": 0.224231, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_de_la_Sarthe#Bugatti_Circuit"}, {"circuitid": 55, "circuitref": "reims", "name": "Reims-Gueux", "location": "Reims", "country": "France", "lat": 49.2542, "lng": 3.93083, "alt": "", "url": "http://en.wikipedia.org/wiki/Reims-Gueux"}, {"circuitid": 56, "circuitref": "george", "name": "Prince George Circuit", "location": "Eastern Cape Province", "country": "South Africa", "lat": -33.0486, "lng": 27.8736, "alt": "", "url": "http://en.wikipedia.org/wiki/Prince_George_Circuit"}, {"circuitid": 57, "circuitref": "zeltweg", "name": "Zeltweg", "location": "Styria", "country": "Austria", "lat": 47.2039, "lng": 14.7478, "alt": "", "url": "http://en.wikipedia.org/wiki/Zeltweg_Airfield"}, {"circuitid": 58, "circuitref": "aintree", "name": "Aintree", "location": "Liverpool", "country": "UK", "lat": 53.4769, "lng": -2.94056, "alt": "", "url": "http://en.wikipedia.org/wiki/Aintree_Motor_Racing_Circuit"}, {"circuitid": 59, "circuitref": "boavista", "name": "Circuito da Boavista", "location": "Oporto", "country": "Portugal", "lat": 41.1705, "lng": -8.67325, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuito_da_Boavista"}, {"circuitid": 60, "circuitref": "riverside", "name": "Riverside International Raceway", "location": "California", "country": "USA", "lat": 33.937, "lng": -117.273, "alt": "", "url": "http://en.wikipedia.org/wiki/Riverside_International_Raceway"}, {"circuitid": 61, "circuitref": "avus", "name": "AVUS", "location": "Berlin", "country": "Germany", "lat": 52.4806, "lng": 13.2514, "alt": "", "url": "http://en.wikipedia.org/wiki/AVUS"}, {"circuitid": 62, "circuitref": "monsanto", "name": "Monsanto Park Circuit", "location": "Lisbon", "country": "Portugal", "lat": 38.7197, "lng": -9.20306, "alt": "", "url": "http://en.wikipedia.org/wiki/Monsanto_Park_Circuit"}, {"circuitid": 63, "circuitref": "sebring", "name": "Sebring International Raceway", "location": "Florida", "country": "USA", "lat": 27.4547, "lng": -81.3483, "alt": "", "url": "http://en.wikipedia.org/wiki/Sebring_Raceway"}, {"circuitid": 64, "circuitref": "ain-diab", "name": "Ain Diab", "location": "Casablanca", "country": "Morocco", "lat": 33.5786, "lng": -7.6875, "alt": "", "url": "http://en.wikipedia.org/wiki/Ain-Diab_Circuit"}, {"circuitid": 65, "circuitref": "pescara", "name": "Pescara Circuit", "location": "Pescara", "country": "Italy", "lat": 42.475, "lng": 14.1508, "alt": "", "url": "http://en.wikipedia.org/wiki/Pescara_Circuit"}, {"circuitid": 66, "circuitref": "bremgarten", "name": "Circuit Bremgarten", "location": "Bern", "country": "Switzerland", "lat": 46.9589, "lng": 7.40194, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_Bremgarten"}, {"circuitid": 67, "circuitref": "pedralbes", "name": "Circuit de Pedralbes", "location": "Barcelona", "country": "Spain", "lat": 41.3903, "lng": 2.11667, "alt": "", "url": "http://en.wikipedia.org/wiki/Pedralbes_Circuit"}, {"circuitid": 68, "circuitref": "buddh", "name": "Buddh International Circuit", "location": "Uttar Pradesh", "country": "India", "lat": 28.3487, "lng": 77.5331, "alt": "", "url": "http://en.wikipedia.org/wiki/Buddh_International_Circuit"}, {"circuitid": 69, "circuitref": "americas", "name": "Circuit of the Americas", "location": "Austin", "country": "USA", "lat": 30.1328, "lng": -97.6411, "alt": "", "url": "http://en.wikipedia.org/wiki/Circuit_of_the_Americas"}, {"circuitid": 70, "circuitref": "red_bull_ring", "name": "Red Bull Ring", "location": "Spielburg", "country": "Austria", "lat": 47.2197, "lng": 14.7647, "alt": "", "url": "http://en.wikipedia.org/wiki/Red_Bull_Ring"}, {"circuitid": 71, "circuitref": "sochi", "name": "Sochi Autodrom", "location": "Sochi", "country": "Russia", "lat": 43.4057, "lng": 39.9578, "alt": "", "url": "http://en.wikipedia.org/wiki/Sochi_Autodrom"}, {"circuitid": 72, "circuitref": "port_imperial", "name": "Port Imperial Street Circuit", "location": "New Jersey", "country": "USA", "lat": 40.7769, "lng": -74.0111, "alt": "", "url": "http://en.wikipedia.org/wiki/Port_Imperial_Street_Circuit"}, {"circuitid": 73, "circuitref": "BAK", "name": "Baku City Circuit", "location": "Baku", "country": "Azerbaijan", "lat": 40.3725, "lng": 49.8533, "alt": "", "url": "http://en.wikipedia.org/wiki/Baku_City_Circuit"}]}, "correct_code": "-- Load formula_1__races data\nraces = load(\"races\")\n\nfiltered_races = races\n |> filter(time == \"13:00:00\")\n |> select(round, name, raceid, circuitid)\n\n-- Load lookup data\ncircuits = load(\"circuits\")\n |> select(circuitid, lng, url)\n\nenriched = join(filtered_races, circuits, on: circuitid == circuitid)\n |> compute(computed_val: round + raceid)\n\nresult = enriched\n |> sort_by(circuitid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load formula_1__races data\nraces = load(\"races\")\n\nfiltered_races = races\n |> filter(time == \"13:00:00s\")\n |> select(round, name, raceid, circuitid)\n\n-- Load lookup data\ncircuits = load(\"circuits\")\n |> select(circuitid, lng, url)\n\nenriched = join(filtered_races, circuits, on: circuitid == circuitid)\n |> compute(computed_val: round + raceid)\n\nresult = enriched\n |> sort_by(circuitid, asc)\n |> take(3)\n\nemit result", "expected_output": [{"round": 9, "name": "Canadian Grand Prix", "raceid": 61, "circuitid": 7, "lng": -73.5228, "url": "http://en.wikipedia.org/wiki/Circuit_Gilles_Villeneuve", "computed_val": 70}, {"round": 8, "name": "Canadian Grand Prix", "raceid": 78, "circuitid": 7, "lng": -73.5228, "url": "http://en.wikipedia.org/wiki/Circuit_Gilles_Villeneuve", "computed_val": 86}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '13:00:00' \u2192 '13:00:00s'", "line_num": 5, "original": "|> filter(time == \"13:00:00\")", "mutated": "|> filter(time == \"13:00:00s\")"}, {"category": "join_bug", "description": "Swapped join keys: 'circuitid == circuitid' \u2192 'circuitid == circuitid'", "line_num": 12, "original": "enriched = join(filtered_races, circuits, on: circuitid == circuitid)", "mutated": "enriched = join(filtered_races, circuits, on: circuitid == circuitid)"}], "difficulty": "hard", "domain": "formula_1__races", "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": {"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_name == \"slow\")\n |> filter(other_characteristic_details <= 0)\n\nsummary = filtered_characteristics\n |> group_by(characteristic_type_code)\n |> aggregate(min_characteristic_id: min(characteristic_id), count: count())\n\n-- Load lookup data\nref_characteristic_types = load(\"ref_characteristic_types\")\n\nenriched = join(summary, ref_characteristic_types, on: characteristic_type_code == characteristic_type_code)\n\nresult = enriched\n |> sort_by(min_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_name == \"SLOW\")\n |> filter(other_characteristic_details <= 1)\n\nsummary = filtered_characteristics\n |> group_by(characteristic_type_code)\n |> aggregate(min_characteristic_id: min(characteristic_id), count: count())\n\n-- Load lookup data\nref_characteristic_types = load(\"ref_characteristic_types\")\n\nenriched = join(summary, ref_characteristic_types, on: characteristic_type_code == characteristic_type_code)\n\nresult = enriched\n |> sort_by(min_characteristic_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"characteristic_type_code": "Purity", "min_characteristic_id": 13, "count": 2, "characteristic_type_description": "Purity"}, {"characteristic_type_code": "Grade", "min_characteristic_id": 1, "count": 2, "characteristic_type_description": "Grade"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 0 \u2192 1", "line_num": 6, "original": "|> filter(other_characteristic_details <= 0)", "mutated": "|> filter(other_characteristic_details <= 1)"}, {"category": "logic_bug", "description": "Wrong filter value: 'slow' \u2192 'SLOW'", "line_num": 5, "original": "|> filter(characteristic_name == \"slow\")", "mutated": "|> filter(characteristic_name == \"SLOW\")"}], "difficulty": "hard", "domain": "products_gen_characteristics__characteristics", "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": {"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\nfiltered_catalog_contents = catalog_contents\n |> filter(length == \"3\")\n\nsummary = filtered_catalog_contents\n |> group_by(capacity)\n |> aggregate(total_price_in_pounds: sum(price_in_pounds), count: count())\n\nresult = summary\n |> sort_by(total_price_in_pounds, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load product_catalog__catalog_contents data\ncatalog_contents = load(\"catalog_contents\")\n\nfiltered_catalog_contents = catalog_contents\n |> filter(length == \"3\")\n\nsummary = filtered_catalog_contents\n |> group_by(capacity)\n |> aggregate(total_price_in_pounds: sum(price_in_pounds), count: count())\n\nresult = summary\n |> sort_by(total_price_in_pounds, asc)\n |> taek(10)\n\nemit result", "expected_output": [{"capacity": "1", "total_price_in_pounds": 172.17, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'take' \u2192 'taek'", "line_num": 13, "original": "|> take(10)", "mutated": "|> taek(10)"}], "difficulty": "easy", "domain": "product_catalog__catalog_contents", "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": {"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\nsummary = member_of\n |> group_by(appt_type)\n |> aggregate(avg_dno: avg(dno), count: count())\n |> compute(computed_val: count * avg_dno)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_3__member_of data\nmember_of = load(\"member_of\")\n\nsummary = member_of\n |> group_by(appt_type)\n |> aggregate(avg_dno: sum(dno), count: count())\n |> compute(computed_val: count * avg_dno)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"appt_type": "Secondary", "avg_dno": 364.0, "count": 5, "computed_val": 1820.0}, {"appt_type": "Primary", "avg_dno": 494.82758620689657, "count": 58, "computed_val": 28700.0}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'avg' \u2192 'max'", "line_num": 6, "original": "|> aggregate(avg_dno: avg(dno), count: count())", "mutated": "|> aggregate(avg_dno: max(dno), count: count())"}, {"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'sum'", "line_num": 6, "original": "|> aggregate(avg_dno: max(dno), count: count())", "mutated": "|> aggregate(avg_dno: sum(dno), count: count())"}], "difficulty": "medium", "domain": "college_3__member_of", "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": {"dogs": [{"dog_id": 1, "owner_id": 3, "abandoned_yn": "1", "breed_code": "ESK", "size_code": "LGE", "name": "Kacey", "age": "6", "date_of_birth": "2012-01-27 05:11:53", "gender": "1", "weight": "7.57", "date_arrived": "2017-09-08 20:10:13", "date_adopted": "2018-03-06 16:32:11", "date_departed": "2018-03-25 06:58:44"}, {"dog_id": 2, "owner_id": 11, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "LGE", "name": "Hipolito", "age": "9", "date_of_birth": "2013-02-13 05:15:21", "gender": "0", "weight": "1.72", "date_arrived": "2017-12-22 05:02:02", "date_adopted": "2018-03-25 08:12:51", "date_departed": "2018-03-25 02:11:32"}, {"dog_id": 3, "owner_id": 1, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Mavis", "age": "8", "date_of_birth": "2008-05-19 15:54:49", "gender": "1", "weight": "8.04", "date_arrived": "2017-06-25 10:14:05", "date_adopted": "2018-03-07 21:45:43", "date_departed": "2018-03-25 10:25:46"}, {"dog_id": 4, "owner_id": 14, "abandoned_yn": "0", "breed_code": "ESK", "size_code": "LGE", "name": "Houston", "age": "5", "date_of_birth": "2008-10-09 22:38:53", "gender": "0", "weight": "2.18", "date_arrived": "2017-04-20 00:58:55", "date_adopted": "2018-03-18 15:12:50", "date_departed": "2018-03-24 19:12:22"}, {"dog_id": 5, "owner_id": 7, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Jeffrey", "age": "4", "date_of_birth": "2018-03-17 04:05:12", "gender": "0", "weight": "1.39", "date_arrived": "2017-10-25 00:55:34", "date_adopted": "2018-02-27 11:54:35", "date_departed": "2018-03-25 04:50:22"}, {"dog_id": 6, "owner_id": 5, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "MED", "name": "Merritt", "age": "9", "date_of_birth": "2015-02-26 21:31:22", "gender": "1", "weight": "9.8", "date_arrived": "2017-04-15 09:25:31", "date_adopted": "2018-03-08 15:03:00", "date_departed": "2018-03-25 13:07:04"}, {"dog_id": 7, "owner_id": 3, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Narciso", "age": "2", "date_of_birth": "2017-09-19 05:39:09", "gender": "1", "weight": "9.48", "date_arrived": "2017-05-06 08:03:52", "date_adopted": "2018-02-27 00:27:57", "date_departed": "2018-03-25 06:29:10"}, {"dog_id": 8, "owner_id": 14, "abandoned_yn": "0", "breed_code": "ESK", "size_code": "SML", "name": "George", "age": "2", "date_of_birth": "2013-02-20 14:50:56", "gender": "0", "weight": "8.95", "date_arrived": "2017-10-16 20:06:21", "date_adopted": "2018-03-23 16:02:04", "date_departed": "2018-03-25 02:47:40"}, {"dog_id": 9, "owner_id": 2, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Bessie", "age": "4", "date_of_birth": "2012-05-31 08:01:36", "gender": "1", "weight": "3.52", "date_arrived": "2018-01-17 11:44:16", "date_adopted": "2018-02-25 23:45:30", "date_departed": "2018-03-25 06:46:07"}, {"dog_id": 10, "owner_id": 6, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "MED", "name": "Troy", "age": "9", "date_of_birth": "2012-07-11 17:15:10", "gender": "0", "weight": "8.96", "date_arrived": "2017-12-29 06:08:26", "date_adopted": "2018-03-18 07:47:40", "date_departed": "2018-03-25 04:42:14"}, {"dog_id": 11, "owner_id": 13, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "LGE", "name": "Betty", "age": "3", "date_of_birth": "2012-10-14 14:44:37", "gender": "0", "weight": "8.16", "date_arrived": "2017-07-25 15:19:07", "date_adopted": "2018-03-14 08:05:18", "date_departed": "2018-03-25 15:05:16"}, {"dog_id": 12, "owner_id": 12, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "MED", "name": "Holden", "age": "8", "date_of_birth": "2009-04-12 06:02:48", "gender": "0", "weight": "6.92", "date_arrived": "2017-10-24 04:45:13", "date_adopted": "2018-03-05 06:05:23", "date_departed": "2018-03-25 14:15:41"}, {"dog_id": 13, "owner_id": 8, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "SML", "name": "Jesus", "age": "2", "date_of_birth": "2012-05-03 21:42:25", "gender": "0", "weight": "5.16", "date_arrived": "2018-01-02 03:15:29", "date_adopted": "2018-03-21 10:41:18", "date_departed": "2018-03-25 05:07:47"}, {"dog_id": 14, "owner_id": 14, "abandoned_yn": "1", "breed_code": "ESK", "size_code": "MED", "name": "Lyric", "age": "4", "date_of_birth": "2010-11-11 07:11:53", "gender": "0", "weight": "4.36", "date_arrived": "2017-06-18 19:45:38", "date_adopted": "2018-03-13 12:47:15", "date_departed": "2018-03-24 23:48:59"}, {"dog_id": 15, "owner_id": 10, "abandoned_yn": "1", "breed_code": "BUL", "size_code": "MED", "name": "Evangeline", "age": "1", "date_of_birth": "2008-05-30 12:51:34", "gender": "1", "weight": "4.01", "date_arrived": "2017-12-29 23:24:13", "date_adopted": "2018-03-10 15:06:43", "date_departed": "2018-03-24 19:36:59"}], "breeds": [{"breed_code": "ESK", "breed_name": "Eskimo"}, {"breed_code": "HUS", "breed_name": "Husky"}, {"breed_code": "BUL", "breed_name": "Bulldog"}]}, "correct_code": "-- Load dog_kennels__dogs data\ndogs = load(\"dogs\")\n\nfiltered_dogs = dogs\n |> filter(dog_id > 5)\n |> select(abandoned_yn, breed_code, date_adopted, name, dog_id)\n\n-- Load lookup data\nbreeds = load(\"breeds\")\n\nenriched = join(filtered_dogs, breeds, on: breed_code == breed_code)\n\nresult = enriched\n |> sort_by(dog_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load dog_kennels__dogs data\ndogs = load(\"dogs\")\n\nfiltered_dogs = dogs\n |> filter(dog_id > 6)\n |> select(abandoned_yn, breed_code, date_adopted, name, dog_id)\n\n-- Load lookup data\nbreeds = load(\"breeds\")\n\nenriched = join(filtered_dogs, breeds, on: breed_code == breed_code)\n\nresult = enriched\n |> sort_by(dog_id, asc)\n |> take(4)\n\nemit result", "expected_output": [{"abandoned_yn": "0", "breed_code": "HUS", "date_adopted": "2018-03-08 15:03:00", "name": "Merritt", "dog_id": 6, "breed_name": "Husky"}, {"abandoned_yn": "0", "breed_code": "BUL", "date_adopted": "2018-02-27 00:27:57", "name": "Narciso", "dog_id": 7, "breed_name": "Bulldog"}, {"abandoned_yn": "0", "breed_code": "ESK", "date_adopted": "2018-03-23 16:02:04", "name": "George", "dog_id": 8, "breed_name": "Eskimo"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 5 \u2192 6", "line_num": 5, "original": "|> filter(dog_id > 5)", "mutated": "|> filter(dog_id > 6)"}, {"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 4", "line_num": 15, "original": "|> take(3)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "dog_kennels__dogs", "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": {"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 <= 7)\n\n-- Load lookup data\nlots = load(\"lots\")\n |> select(investor_id, lot_id, lot_details)\n\nenriched = join(filtered_transactions_lots, lots, on: lot_id == lot_id)\n |> compute(computed_val: lot_id / transaction_id)\n\nresult = enriched\n |> sort_by(transaction_id, asc)\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 <= 7)\n\n-- Load lookup data\nlots = load(\"lots\")\n |> select(investor_id, lot_id, lot_details)\n\nenriched = join(filtered_transactions_lots, lots, on: lots == lot_id)\n |> compute(computed_val: lot_id / transaction_id)\n\nresult = enriched\n |> sort_by(transaction_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"transaction_id": 1, "lot_id": 1, "investor_id": 13, "lot_details": "r", "computed_val": 1.0}, {"transaction_id": 2, "lot_id": 1, "investor_id": 13, "lot_details": "r", "computed_val": 0.5}, {"transaction_id": 3, "lot_id": 4, "investor_id": 19, "lot_details": "s", "computed_val": 1.3333333333333333}, {"transaction_id": 6, "lot_id": 3, "investor_id": 10, "lot_details": "s", "computed_val": 0.5}, {"transaction_id": 7, "lot_id": 1, "investor_id": 13, "lot_details": "r", "computed_val": 0.14285714285714285}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'lot_id' \u2192 'lots'", "line_num": 11, "original": "enriched = join(filtered_transactions_lots, lots, on: lot_id == lot_id)", "mutated": "enriched = join(filtered_transactions_lots, lots, on: lots == lot_id)"}], "difficulty": "hard", "domain": "tracking_share_transactions__transactions_lots", "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": {"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(event_id, participant_id)\n\nprocessed = participants_in_events\n |> compute(computed_val: event_id + participant_id)\n\nresult = processed\n |> sort_by(computed_val, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n |> select(event_id, participant_id)\n\nprocessed = participants_in_events\n |> compute(computed_val: event_id + participant_id)\n\nresult = processed\n |> sort_by(computed_val, desc)\n |> take(4)\n\nemit result", "expected_output": [{"event_id": 96, "participant_id": 90, "computed_val": 186}, {"event_id": 80, "participant_id": 96, "computed_val": 176}, {"event_id": 95, "participant_id": 63, "computed_val": 158}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 4", "line_num": 10, "original": "|> take(3)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "local_govt_in_alabama__participants_in_events", "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": {"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\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(participant_id, asc)\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\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(participant_details, asc)\n |> take(10)\n\nemit result", "expected_output": [{"event_id": 3, "participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"event_id": 60, "participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"event_id": 80, "participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn"}, {"event_id": 17, "participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"event_id": 40, "participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"event_id": 16, "participant_id": 60, "participant_type_code": "Participant", "participant_details": "Dewitt Walter"}, {"event_id": 95, "participant_id": 63, "participant_type_code": "Participant", "participant_details": "Prof. Michelle Maggio Jr."}, {"event_id": 13, "participant_id": 64, "participant_type_code": "Participant", "participant_details": "Dr. Jaydon Renner"}, {"event_id": 3, "participant_id": 66, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}, {"event_id": 17, "participant_id": 66, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'participant_id' \u2192 'participant_details'", "line_num": 11, "original": "|> sort_by(participant_id, asc)", "mutated": "|> sort_by(participant_details, asc)"}], "difficulty": "medium", "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": {"products": [{"product_id": 1, "color_code": "4", "product_category_code": "Spices", "product_name": "cumin", "typical_buying_price": "", "typical_selling_price": "2878.3", "product_description": "et", "other_product_details": 0}, {"product_id": 2, "color_code": "2", "product_category_code": "Spices", "product_name": "peper", "typical_buying_price": "352447.2874677", "typical_selling_price": "1892070.2803543", "product_description": "rerum", "other_product_details": 0}, {"product_id": 3, "color_code": "9", "product_category_code": "Herbs", "product_name": "basil", "typical_buying_price": "503.8431967", "typical_selling_price": "0.1859512", "product_description": "officia", "other_product_details": 0}, {"product_id": 4, "color_code": "1", "product_category_code": "Herbs", "product_name": "borage", "typical_buying_price": "", "typical_selling_price": "10377614.847385", "product_description": "blanditiis", "other_product_details": 0}, {"product_id": 5, "color_code": "4", "product_category_code": "Spices", "product_name": "chili", "typical_buying_price": "", "typical_selling_price": "39446", "product_description": "eius", "other_product_details": 0}, {"product_id": 6, "color_code": "4", "product_category_code": "Seeds", "product_name": "ginger", "typical_buying_price": "5.578", "typical_selling_price": "52735.6101", "product_description": "doloribus", "other_product_details": 0}, {"product_id": 7, "color_code": "9", "product_category_code": "Seeds", "product_name": "sesame", "typical_buying_price": "1284268.0659", "typical_selling_price": "68205825.7", "product_description": "et", "other_product_details": 0}, {"product_id": 8, "color_code": "9", "product_category_code": "Herbs", "product_name": "caraway", "typical_buying_price": "24493", "typical_selling_price": "", "product_description": "nulla", "other_product_details": 0}, {"product_id": 9, "color_code": "2", "product_category_code": "Herbs", "product_name": "catnip", "typical_buying_price": "12008702.623", "typical_selling_price": "21577.891642", "product_description": "vel", "other_product_details": 0}, {"product_id": 10, "color_code": "5", "product_category_code": "Seeds", "product_name": "flax", "typical_buying_price": "339404395.7", "typical_selling_price": "59622629.74", "product_description": "et", "other_product_details": 0}, {"product_id": 11, "color_code": "7", "product_category_code": "Herbs", "product_name": "chervil", "typical_buying_price": "", "typical_selling_price": "", "product_description": "minus", "other_product_details": 0}, {"product_id": 12, "color_code": "4", "product_category_code": "Seeds", "product_name": "voluptatem", "typical_buying_price": "162", "typical_selling_price": "149", "product_description": "officia", "other_product_details": 0}, {"product_id": 13, "color_code": "5", "product_category_code": "Spices", "product_name": "cinnam", "typical_buying_price": "1686539.4", "typical_selling_price": "17595111.4", "product_description": "nisi", "other_product_details": 0}, {"product_id": 14, "color_code": "4", "product_category_code": "Seeds", "product_name": "lotus", "typical_buying_price": "43221310.465574", "typical_selling_price": "63589.4054376", "product_description": "exercitationem", "other_product_details": 0}, {"product_id": 15, "color_code": "2", "product_category_code": "Herbs", "product_name": "laurel", "typical_buying_price": "", "typical_selling_price": "57857", "product_description": "ut", "other_product_details": 0}], "ref_product_categories": [{"product_category_code": "Herbs", "product_category_description": "Herbs", "unit_of_measure": "Handful "}, {"product_category_code": "Seeds", "product_category_description": "Seeds", "unit_of_measure": "Weight - pound,kilo."}, {"product_category_code": "Spices", "product_category_description": "Spices", "unit_of_measure": "Weight - pound,kilo."}]}, "correct_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n\nfiltered_products = products\n |> filter(product_name == \"laurel\")\n\nsummary = filtered_products\n |> group_by(product_description)\n |> aggregate(max_other_product_details: max(other_product_details), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n\nfiltered_products = products\n |> filter(product_name == \"laurel\")\n\nsummary = filtered_products\n |> group_by(product_description)\n |> aggregate(max_other_product_details: max(other_product_details), count: count())\n\nresult = summary\n |> sort_bi(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"product_description": "ut", "max_other_product_details": 0, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'sort_bi'", "line_num": 12, "original": "|> sort_by(count, desc)", "mutated": "|> sort_bi(count, desc)"}], "difficulty": "easy", "domain": "products_gen_characteristics__products", "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": {"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}], "department": [{"dept_name": "Civil Eng.", "building": "Chandler", "budget": 255041.46}, {"dept_name": "Biology", "building": "Candlestick", "budget": 647610.55}, {"dept_name": "History", "building": "Taylor", "budget": 699140.86}, {"dept_name": "Physics", "building": "Wrigley", "budget": 942162.76}, {"dept_name": "Marketing", "building": "Lambeau", "budget": 210627.58}, {"dept_name": "Pol. Sci.", "building": "Whitman", "budget": 573745.09}, {"dept_name": "English", "building": "Palmer", "budget": 611042.66}, {"dept_name": "Accounting", "building": "Saucon", "budget": 441840.92}, {"dept_name": "Comp. Sci.", "building": "Lamberton", "budget": 106378.69}, {"dept_name": "Languages", "building": "Linderman", "budget": 601283.6}, {"dept_name": "Finance", "building": "Candlestick", "budget": 866831.75}, {"dept_name": "Geology", "building": "Palmer", "budget": 406557.93}, {"dept_name": "Cybernetics", "building": "Mercer", "budget": 794541.46}, {"dept_name": "Astronomy", "building": "Taylor", "budget": 617253.94}, {"dept_name": "Athletics", "building": "Bronfman", "budget": 734550.7}, {"dept_name": "Statistics", "building": "Taylor", "budget": 395051.74}, {"dept_name": "Psychology", "building": "Thompson", "budget": 848175.04}, {"dept_name": "Math", "building": "Brodhead", "budget": 777605.11}, {"dept_name": "Elec. Eng.", "building": "Main", "budget": 276527.61}, {"dept_name": "Mech. Eng.", "building": "Rauch", "budget": 520350.65}]}, "correct_code": "-- Load college_2__instructor data\ninstructor = load(\"instructor\")\n\nsummary = instructor\n |> group_by(dept_name)\n |> aggregate(avg_salary: avg(salary), count: count())\n\nresult = summary\n |> sort_by(avg_salary, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__instructor data\ninstructor = load(\"instructor\")\n\nsummary = instructor\n |> group_by(dept_name)\n |> aggregate(avg_salary: avg(salary), count: count())\n\nresult = summary\n sort_bi(avg_salary, asc)\n |> take(3)\n\nemit result", "expected_output": [{"dept_name": "Accounting", "avg_salary": 48716.5925, "count": 4}, {"dept_name": "Languages", "avg_salary": 57421.85666666667, "count": 3}, {"dept_name": "Psychology", "avg_salary": 61143.05, "count": 2}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'sort_bi'", "line_num": 9, "original": "|> sort_by(avg_salary, asc)", "mutated": "|> sort_bi(avg_salary, asc)"}, {"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> sort_bi(avg_salary, asc)", "mutated": "sort_bi(avg_salary, asc)"}], "difficulty": "easy", "domain": "college_2__instructor", "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": {"student": [{"id": "24746", "name": "Schrefl", "dept_name": "History", "tot_cred": 4}, {"id": "79352", "name": "Rumat", "dept_name": "Finance", "tot_cred": 100}, {"id": "76672", "name": "Miliko", "dept_name": "Statistics", "tot_cred": 116}, {"id": "14182", "name": "Moszkowski", "dept_name": "Civil Eng.", "tot_cred": 73}, {"id": "44985", "name": "Prieto", "dept_name": "Biology", "tot_cred": 91}, {"id": "96052", "name": "Marcol", "dept_name": "Cybernetics", "tot_cred": 15}, {"id": "35175", "name": "Quimby", "dept_name": "History", "tot_cred": 4}, {"id": "44271", "name": "Sowerby", "dept_name": "English", "tot_cred": 108}, {"id": "40897", "name": "Coppens", "dept_name": "Math", "tot_cred": 58}, {"id": "92839", "name": "Cirsto", "dept_name": "Math", "tot_cred": 115}, {"id": "79329", "name": "Velikovs", "dept_name": "Marketing", "tot_cred": 110}, {"id": "97101", "name": "Marek", "dept_name": "Psychology", "tot_cred": 53}, {"id": "24865", "name": "Tran-", "dept_name": "Marketing", "tot_cred": 116}, {"id": "36052", "name": "Guerra", "dept_name": "Elec. Eng.", "tot_cred": 59}, {"id": "98940", "name": "Hawthorne", "dept_name": "Marketing", "tot_cred": 78}, {"id": "21395", "name": "Leuen", "dept_name": "Math", "tot_cred": 43}, {"id": "55859", "name": "Eguchi", "dept_name": "Astronomy", "tot_cred": 14}, {"id": "74016", "name": "Moei", "dept_name": "Elec. Eng.", "tot_cred": 15}, {"id": "93061", "name": "Alfaro", "dept_name": "Elec. Eng.", "tot_cred": 69}, {"id": "94998", "name": "Krishnakumar", "dept_name": "Physics", "tot_cred": 81}, {"id": "30772", "name": "Inoue", "dept_name": "Math", "tot_cred": 18}, {"id": "1968", "name": "Sahm", "dept_name": "Finance", "tot_cred": 4}, {"id": "90567", "name": "Tomason", "dept_name": "Pol. Sci.", "tot_cred": 118}, {"id": "49611", "name": "Karande", "dept_name": "Astronomy", "tot_cred": 57}, {"id": "81538", "name": "Wunderli", "dept_name": "Languages", "tot_cred": 117}, {"id": "68999", "name": "Greve", "dept_name": "Psychology", "tot_cred": 113}, {"id": "74639", "name": "Cerime", "dept_name": "Accounting", "tot_cred": 35}, {"id": "66054", "name": "Crick", "dept_name": "Comp. Sci.", "tot_cred": 86}, {"id": "792", "name": "Hashimoto", "dept_name": "Athletics", "tot_cred": 102}, {"id": "60267", "name": "Dage", "dept_name": "Physics", "tot_cred": 7}, {"id": "17769", "name": "Pearlman", "dept_name": "Biology", "tot_cred": 45}, {"id": "39580", "name": "Macias", "dept_name": "Psychology", "tot_cred": 128}, {"id": "89106", "name": "Dawson", "dept_name": "Mech. Eng.", "tot_cred": 88}, {"id": "37856", "name": "Gay", "dept_name": "Statistics", "tot_cred": 92}, {"id": "58307", "name": "Tiamp", "dept_name": "Pol. Sci.", "tot_cred": 63}, {"id": "57985", "name": "Weller", "dept_name": "Geology", "tot_cred": 45}, {"id": "72014", "name": "Kee", "dept_name": "Languages", "tot_cred": 57}, {"id": "2795", "name": "Milner", "dept_name": "Finance", "tot_cred": 8}, {"id": "89000", "name": "Guthk", "dept_name": "Finance", "tot_cred": 80}, {"id": "46442", "name": "Kagd", "dept_name": "Cybernetics", "tot_cred": 61}, {"id": "60040", "name": "Samel", "dept_name": "Math", "tot_cred": 100}, {"id": "19791", "name": "Vanrell", "dept_name": "Comp. Sci.", "tot_cred": 61}, {"id": "4582", "name": "Zaniolo", "dept_name": "Math", "tot_cred": 0}, {"id": "108", "name": "Dhav", "dept_name": "Biology", "tot_cred": 80}, {"id": "1533", "name": "She", "dept_name": "Statistics", "tot_cred": 29}, {"id": "7123", "name": "Holn", "dept_name": "Math", "tot_cred": 27}, {"id": "44584", "name": "Agar", "dept_name": "Geology", "tot_cred": 58}, {"id": "32954", "name": "Curutchet", "dept_name": "Languages", "tot_cred": 121}, {"id": "98056", "name": "Di", "dept_name": "Civil Eng.", "tot_cred": 81}, {"id": "76953", "name": "Lemoine", "dept_name": "Athletics", "tot_cred": 60}, {"id": "81884", "name": "Kereth", "dept_name": "Accounting", "tot_cred": 96}, {"id": "22057", "name": "Cal", "dept_name": "Cybernetics", "tot_cred": 20}, {"id": "21126", "name": "McCarter", "dept_name": "Cybernetics", "tot_cred": 38}, {"id": "82918", "name": "Yemini", "dept_name": "Statistics", "tot_cred": 43}, {"id": "4173", "name": "Erol", "dept_name": "Statistics", "tot_cred": 21}, {"id": "83022", "name": "Chyr", "dept_name": "Math", "tot_cred": 10}, {"id": "25525", "name": "Moreira", "dept_name": "Comp. Sci.", "tot_cred": 107}, {"id": "75040", "name": "Kruglyak", "dept_name": "Pol. Sci.", "tot_cred": 99}, {"id": "31624", "name": "Keuk", "dept_name": "Geology", "tot_cred": 107}, {"id": "64893", "name": "Katzenb", "dept_name": "Statistics", "tot_cred": 78}, {"id": "59920", "name": "Dano", "dept_name": "Civil Eng.", "tot_cred": 16}, {"id": "38602", "name": "Torres", "dept_name": "Cybernetics", "tot_cred": 108}, {"id": "21401", "name": "Garze", "dept_name": "Physics", "tot_cred": 92}, {"id": "93004", "name": "Gibbs", "dept_name": "Finance", "tot_cred": 129}, {"id": "38899", "name": "Murphy", "dept_name": "Marketing", "tot_cred": 30}, {"id": "75241", "name": "Hughes", "dept_name": "Languages", "tot_cred": 79}, {"id": "98830", "name": "Frolova", "dept_name": "Comp. Sci.", "tot_cred": 13}, {"id": "37101", "name": "Falconer", "dept_name": "Physics", "tot_cred": 78}, {"id": "4508", "name": "Cochran", "dept_name": "English", "tot_cred": 127}, {"id": "32130", "name": "Bannac", "dept_name": "Biology", "tot_cred": 56}, {"id": "56755", "name": "Paul", "dept_name": "Mech. Eng.", "tot_cred": 62}, {"id": "11510", "name": "Rakoj", "dept_name": "Mech. Eng.", "tot_cred": 37}, {"id": "3335", "name": "Otterm", "dept_name": "Finance", "tot_cred": 73}, {"id": "61081", "name": "Bai", "dept_name": "Geology", "tot_cred": 100}, {"id": "33651", "name": "Seike", "dept_name": "Geology", "tot_cred": 2}, {"id": "8251", "name": "Kite", "dept_name": "History", "tot_cred": 47}, {"id": "10705", "name": "Terauchi", "dept_name": "Physics", "tot_cred": 48}, {"id": "64082", "name": "Boyle", "dept_name": "Languages", "tot_cred": 87}, {"id": "59517", "name": "Harrison", "dept_name": "Elec. Eng.", "tot_cred": 81}, {"id": "91569", "name": "Pavlovico", "dept_name": "Marketing", "tot_cred": 90}, {"id": "88085", "name": "Bouamama", "dept_name": "Comp. Sci.", "tot_cred": 8}, {"id": "96722", "name": "Liley", "dept_name": "English", "tot_cred": 34}, {"id": "36379", "name": "Triebel", "dept_name": "Comp. Sci.", "tot_cred": 115}, {"id": "69581", "name": "Prabhakaran", "dept_name": "Statistics", "tot_cred": 26}, {"id": "65329", "name": "Benson", "dept_name": "Mech. Eng.", "tot_cred": 63}, {"id": "49214", "name": "Vogel", "dept_name": "Psychology", "tot_cred": 46}, {"id": "64155", "name": "Midu", "dept_name": "Languages", "tot_cred": 33}, {"id": "58594", "name": "Ivanov", "dept_name": "Finance", "tot_cred": 11}, {"id": "71904", "name": "Boldin", "dept_name": "Mech. Eng.", "tot_cred": 89}, {"id": "69241", "name": "Kannan", "dept_name": "Athletics", "tot_cred": 99}, {"id": "58889", "name": "Collet", "dept_name": "Geology", "tot_cred": 76}, {"id": "30341", "name": "Anse", "dept_name": "History", "tot_cred": 58}, {"id": "70688", "name": "Ishihara", "dept_name": "Elec. Eng.", "tot_cred": 86}, {"id": "81258", "name": "Nirenbu", "dept_name": "History", "tot_cred": 102}, {"id": "63090", "name": "Hoov", "dept_name": "Math", "tot_cred": 118}, {"id": "70572", "name": "Andrews", "dept_name": "Psychology", "tot_cred": 7}, {"id": "58413", "name": "Xiong", "dept_name": "Athletics", "tot_cred": 27}, {"id": "93171", "name": "Carey", "dept_name": "Marketing", "tot_cred": 56}, {"id": "35138", "name": "Corbac", "dept_name": "Mech. Eng.", "tot_cred": 86}, {"id": "77289", "name": "Kok", "dept_name": "Geology", "tot_cred": 57}, {"id": "93571", "name": "Kato", "dept_name": "Psychology", "tot_cred": 0}, {"id": "14554", "name": "Ramadan", "dept_name": "Psychology", "tot_cred": 96}, {"id": "46725", "name": "Richi", "dept_name": "Statistics", "tot_cred": 18}, {"id": "99730", "name": "Courtney", "dept_name": "English", "tot_cred": 99}, {"id": "10527", "name": "Kieras", "dept_name": "Physics", "tot_cred": 128}, {"id": "898", "name": "Heilprin", "dept_name": "Accounting", "tot_cred": 88}, {"id": "64297", "name": "Desp", "dept_name": "Athletics", "tot_cred": 95}, {"id": "10204", "name": "Mediratta", "dept_name": "Geology", "tot_cred": 112}, {"id": "36926", "name": "Kamae", "dept_name": "Civil Eng.", "tot_cred": 87}, {"id": "49618", "name": "Stone", "dept_name": "Languages", "tot_cred": 60}, {"id": "34329", "name": "Malcher", "dept_name": "English", "tot_cred": 32}, {"id": "84410", "name": "Bae", "dept_name": "Psychology", "tot_cred": 71}, {"id": "29435", "name": "Siddiqi", "dept_name": "Psychology", "tot_cred": 86}, {"id": "62636", "name": "Soni", "dept_name": "Geology", "tot_cred": 4}, {"id": "8483", "name": "Luk", "dept_name": "Elec. Eng.", "tot_cred": 53}, {"id": "2177", "name": "Cheah", "dept_name": "Astronomy", "tot_cred": 15}, {"id": "43348", "name": "Venturini", "dept_name": "Mech. Eng.", "tot_cred": 94}, {"id": "37430", "name": "Norman", "dept_name": "Languages", "tot_cred": 35}, {"id": "37586", "name": "Valtchev", "dept_name": "Biology", "tot_cred": 19}, {"id": "55238", "name": "Thadani", "dept_name": "Physics", "tot_cred": 75}, {"id": "34404", "name": "Fries", "dept_name": "History", "tot_cred": 48}, {"id": "59539", "name": "Madden", "dept_name": "Civil Eng.", "tot_cred": 4}, {"id": "43123", "name": "Shim", "dept_name": "Geology", "tot_cred": 69}, {"id": "19582", "name": "Canas", "dept_name": "Finance", "tot_cred": 7}, {"id": "88553", "name": "Levine", "dept_name": "Pol. Sci.", "tot_cred": 51}, {"id": "5898", "name": "Dahl", "dept_name": "Languages", "tot_cred": 28}, {"id": "2419", "name": "Hirakuri", "dept_name": "Mech. Eng.", "tot_cred": 49}, {"id": "31516", "name": "Hassine", "dept_name": "Elec. Eng.", "tot_cred": 49}, {"id": "3487", "name": "Deshpande", "dept_name": "Languages", "tot_cred": 6}, {"id": "66269", "name": "Hsueh", "dept_name": "Accounting", "tot_cred": 43}, {"id": "54622", "name": "Yu", "dept_name": "Statistics", "tot_cred": 107}, {"id": "19638", "name": "Dawson", "dept_name": "Cybernetics", "tot_cred": 107}, {"id": "88418", "name": "Slaw", "dept_name": "Elec. Eng.", "tot_cred": 112}, {"id": "86802", "name": "Hameed", "dept_name": "Mech. Eng.", "tot_cred": 47}, {"id": "63361", "name": "Djurd", "dept_name": "Languages", "tot_cred": 36}, {"id": "6367", "name": "Doisy", "dept_name": "Pol. Sci.", "tot_cred": 66}, {"id": "84239", "name": "Jordan", "dept_name": "Languages", "tot_cred": 20}, {"id": "4940", "name": "Rhyne", "dept_name": "Mech. Eng.", "tot_cred": 102}, {"id": "90663", "name": "Sram", "dept_name": "Comp. Sci.", "tot_cred": 119}, {"id": "38476", "name": "Rzecz", "dept_name": "Pol. Sci.", "tot_cred": 129}, {"id": "96003", "name": "Nakajima", "dept_name": "Astronomy", "tot_cred": 95}, {"id": "64914", "name": "Lembr", "dept_name": "Finance", "tot_cred": 17}, {"id": "41599", "name": "Meneses", "dept_name": "Geology", "tot_cred": 40}, {"id": "22226", "name": "Kinney", "dept_name": "Biology", "tot_cred": 116}, {"id": "96153", "name": "Sawah", "dept_name": "Pol. Sci.", "tot_cred": 67}, {"id": "44998", "name": "Borrus", "dept_name": "Civil Eng.", "tot_cred": 79}, {"id": "74163", "name": "Chettao", "dept_name": "Marketing", "tot_cred": 115}, {"id": "75046", "name": "Hamagi", "dept_name": "Marketing", "tot_cred": 101}, {"id": "97679", "name": "Sacchi", "dept_name": "Psychology", "tot_cred": 102}, {"id": "94894", "name": "Kozlov", "dept_name": "Accounting", "tot_cred": 27}, {"id": "44881", "name": "Harshman", "dept_name": "Cybernetics", "tot_cred": 59}, {"id": "98619", "name": "Nagaraj", "dept_name": "Civil Eng.", "tot_cred": 61}, {"id": "86753", "name": "Leister", "dept_name": "History", "tot_cred": 81}, {"id": "87054", "name": "Dietzsch", "dept_name": "Statistics", "tot_cred": 91}, {"id": "39046", "name": "Narasimhamu", "dept_name": "Math", "tot_cred": 121}, {"id": "29031", "name": "Berthold", "dept_name": "English", "tot_cred": 85}, {"id": "97355", "name": "Ratcliff", "dept_name": "Languages", "tot_cred": 60}, {"id": "24010", "name": "Brookh", "dept_name": "Comp. Sci.", "tot_cred": 65}, {"id": "21789", "name": "Bates", "dept_name": "History", "tot_cred": 118}, {"id": "52157", "name": "Nagle", "dept_name": "Astronomy", "tot_cred": 52}, {"id": "64938", "name": "Kaep", "dept_name": "Civil Eng.", "tot_cred": 126}, {"id": "94535", "name": "Nishida", "dept_name": "History", "tot_cred": 127}, {"id": "58595", "name": "Cronin", "dept_name": "Physics", "tot_cred": 100}, {"id": "72979", "name": "Guix", "dept_name": "Astronomy", "tot_cred": 117}, {"id": "32506", "name": "Suzuki", "dept_name": "Astronomy", "tot_cred": 86}, {"id": "31690", "name": "Bondi", "dept_name": "Comp. Sci.", "tot_cred": 110}, {"id": "87044", "name": "McDonald", "dept_name": "Accounting", "tot_cred": 87}, {"id": "34236", "name": "Maalej", "dept_name": "Math", "tot_cred": 80}, {"id": "18808", "name": "Snif", "dept_name": "Mech. Eng.", "tot_cred": 116}, {"id": "91063", "name": "Dair", "dept_name": "Civil Eng.", "tot_cred": 105}, {"id": "48462", "name": "Wolf", "dept_name": "Civil Eng.", "tot_cred": 19}, {"id": "41965", "name": "Boden", "dept_name": "Cybernetics", "tot_cred": 87}, {"id": "31137", "name": "Porter", "dept_name": "Statistics", "tot_cred": 36}, {"id": "7602", "name": "Ingram", "dept_name": "Geology", "tot_cred": 71}, {"id": "84845", "name": "Zuo", "dept_name": "Comp. Sci.", "tot_cred": 81}, {"id": "28252", "name": "Pfister", "dept_name": "Finance", "tot_cred": 6}, {"id": "10736", "name": "Veselovsky", "dept_name": "Elec. Eng.", "tot_cred": 62}, {"id": "58465", "name": "Romeo", "dept_name": "Elec. Eng.", "tot_cred": 76}, {"id": "64140", "name": "Tiroz", "dept_name": "Athletics", "tot_cred": 118}, {"id": "6523", "name": "Karlsson", "dept_name": "Civil Eng.", "tot_cred": 1}, {"id": "64067", "name": "Mennif", "dept_name": "Languages", "tot_cred": 8}, {"id": "99399", "name": "Duan", "dept_name": "Astronomy", "tot_cred": 96}, {"id": "21337", "name": "Goualh", "dept_name": "Marketing", "tot_cred": 46}, {"id": "15457", "name": "Arinb", "dept_name": "Physics", "tot_cred": 123}, {"id": "26102", "name": "Tanaka", "dept_name": "Statistics", "tot_cred": 118}, {"id": "31337", "name": "Graziano", "dept_name": "Elec. Eng.", "tot_cred": 29}, {"id": "67425", "name": "Cooper", "dept_name": "Athletics", "tot_cred": 51}, {"id": "48640", "name": "Brown", "dept_name": "History", "tot_cred": 33}, {"id": "72741", "name": "Weiss", "dept_name": "Astronomy", "tot_cred": 22}, {"id": "29803", "name": "Beavis", "dept_name": "Accounting", "tot_cred": 76}, {"id": "38895", "name": "Beuthel", "dept_name": "Biology", "tot_cred": 70}, {"id": "49391", "name": "Rammer", "dept_name": "Marketing", "tot_cred": 15}, {"id": "13741", "name": "Grieng", "dept_name": "Psychology", "tot_cred": 122}, {"id": "59538", "name": "Kothari", "dept_name": "Accounting", "tot_cred": 125}, {"id": "9360", "name": "Mukai", "dept_name": "Marketing", "tot_cred": 36}, {"id": "53728", "name": "Eck", "dept_name": "Statistics", "tot_cred": 61}, {"id": "77898", "name": "Yap", "dept_name": "Marketing", "tot_cred": 10}, {"id": "32419", "name": "Sahani", "dept_name": "Civil Eng.", "tot_cred": 48}, {"id": "37521", "name": "Mes", "dept_name": "Biology", "tot_cred": 9}, {"id": "97065", "name": "Gandhi", "dept_name": "Languages", "tot_cred": 22}], "department": [{"dept_name": "Civil Eng.", "building": "Chandler", "budget": 255041.46}, {"dept_name": "Biology", "building": "Candlestick", "budget": 647610.55}, {"dept_name": "History", "building": "Taylor", "budget": 699140.86}, {"dept_name": "Physics", "building": "Wrigley", "budget": 942162.76}, {"dept_name": "Marketing", "building": "Lambeau", "budget": 210627.58}, {"dept_name": "Pol. Sci.", "building": "Whitman", "budget": 573745.09}, {"dept_name": "English", "building": "Palmer", "budget": 611042.66}, {"dept_name": "Accounting", "building": "Saucon", "budget": 441840.92}, {"dept_name": "Comp. Sci.", "building": "Lamberton", "budget": 106378.69}, {"dept_name": "Languages", "building": "Linderman", "budget": 601283.6}, {"dept_name": "Finance", "building": "Candlestick", "budget": 866831.75}, {"dept_name": "Geology", "building": "Palmer", "budget": 406557.93}, {"dept_name": "Cybernetics", "building": "Mercer", "budget": 794541.46}, {"dept_name": "Astronomy", "building": "Taylor", "budget": 617253.94}, {"dept_name": "Athletics", "building": "Bronfman", "budget": 734550.7}, {"dept_name": "Statistics", "building": "Taylor", "budget": 395051.74}, {"dept_name": "Psychology", "building": "Thompson", "budget": 848175.04}, {"dept_name": "Math", "building": "Brodhead", "budget": 777605.11}, {"dept_name": "Elec. Eng.", "building": "Main", "budget": 276527.61}, {"dept_name": "Mech. Eng.", "building": "Rauch", "budget": 520350.65}]}, "correct_code": "-- Load college_2__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(name == \"Veselovsky\")\n |> filter(tot_cred >= 20)\n\nsummary = filtered_student\n |> group_by(id)\n |> aggregate(avg_tot_cred: avg(tot_cred), count: count())\n |> compute(computed_val: count * avg_tot_cred)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(name == \"Veselovsky\")\n |> filter(tot_cred >= 20)\n\nsummary = filtered_student\n |> group_by(id)\n |> aggregate(avg_tot_cred: avg(20), count: count())\n |> compute(computed_val: count * avg_tot_cred)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"id": "10736", "avg_tot_cred": 62.0, "count": 1, "computed_val": 62.0}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'tot_cred' \u2192 '20'", "line_num": 10, "original": "|> aggregate(avg_tot_cred: avg(tot_cred), count: count())", "mutated": "|> aggregate(avg_tot_cred: avg(20), count: count())"}], "difficulty": "hard", "domain": "college_2__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": {"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 == \"T\")\n |> select(start_min, time_slot_id, day, start_hr)\n\nsummary = filtered_time_slot\n |> group_by(day)\n |> aggregate(max_start_hr: max(start_hr), count: count())\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\nfiltered_time_slot = time_slot\n |> filter(day == \"Ts\")\n |> select(start_min, time_slot_id, day, start_hr)\n\nsummary = filtered_time_slot\n |> group_by(day)\n |> aggregate(max_start_hr: max(start_hr), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"day": "T", "max_start_hr": 14, "count": 2}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'T' \u2192 'Ts'", "line_num": 5, "original": "|> filter(day == \"T\")", "mutated": "|> filter(day == \"Ts\")"}], "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": {"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\n-- Load lookup data\nparticipants = load(\"participants\")\n\nenriched = join(participants_in_events, participants, on: participant_id == participant_id)\n |> compute(computed_val: event_id / participant_id)\n\nresult = enriched\n |> sort_by(participant_id, asc)\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\n-- Load lookup data\nparticipants = load(\"participants\")\n\nenriched = join(participants_in_events, participants, on: participant_id == participant_id)\n |> compute(computed_val: event_id / participant_id)\n\nresult = enriched\n |> sort_by(participant_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"event_id": 3, "participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner", "computed_val": 0.11538461538461539}, {"event_id": 60, "participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner", "computed_val": 2.3076923076923075}, {"event_id": 80, "participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn", "computed_val": 2.2222222222222223}, {"event_id": 17, "participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack", "computed_val": 0.4594594594594595}, {"event_id": 40, "participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack", "computed_val": 1.0810810810810811}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 11, "original": "|> sort_by(participant_id, asc)", "mutated": "|> sort_by(participant_id, desc)"}], "difficulty": "medium", "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_hard
{"datasets": {"available_policies": [{"policy_id": 246, "policy_type_code": "Life Insurance", "customer_phone": "+16(2)5838999222"}, {"policy_id": 257, "policy_type_code": "Property Insurance", "customer_phone": "242.763.9214"}, {"policy_id": 300, "policy_type_code": "Property Insurance", "customer_phone": "1-416-503-7735x94204"}, {"policy_id": 301, "policy_type_code": "Property Insurance", "customer_phone": "(777)537-7792"}, {"policy_id": 346, "policy_type_code": "Mortgage Insurance", "customer_phone": "1-446-940-9907x257"}, {"policy_id": 366, "policy_type_code": "Mortgage Insurance", "customer_phone": "(379)862-8274x12620"}, {"policy_id": 472, "policy_type_code": "Mortgage Insurance", "customer_phone": "+85(6)1302858396"}, {"policy_id": 583, "policy_type_code": "Travel Insurance", "customer_phone": "1-797-927-3585x9321"}, {"policy_id": 586, "policy_type_code": "Life Insurance", "customer_phone": "991.642.6485x822"}, {"policy_id": 630, "policy_type_code": "Property Insurance", "customer_phone": "813.178.8211x557"}, {"policy_id": 636, "policy_type_code": "Life Insurance", "customer_phone": "889-572-0609x552"}, {"policy_id": 751, "policy_type_code": "Life Insurance", "customer_phone": "1-138-841-3073"}, {"policy_id": 879, "policy_type_code": "Mortgage Insurance", "customer_phone": "1-381-132-0127x3801"}, {"policy_id": 927, "policy_type_code": "Mortgage Insurance", "customer_phone": "00481937923"}, {"policy_id": 993, "policy_type_code": "Property Insurance", "customer_phone": "405.090.8654x021"}], "customers_policies": [{"customer_id": 214, "policy_id": 257, "date_opened": "2016-11-19", "date_closed": "2018-03-04"}, {"customer_id": 214, "policy_id": 301, "date_opened": "2016-04-12", "date_closed": "2018-02-07"}, {"customer_id": 256, "policy_id": 583, "date_opened": "2016-07-22", "date_closed": "2018-02-20"}, {"customer_id": 562, "policy_id": 346, "date_opened": "2017-01-09", "date_closed": "2018-03-08"}, {"customer_id": 562, "policy_id": 583, "date_opened": "2016-06-24", "date_closed": "2018-02-22"}, {"customer_id": 582, "policy_id": 586, "date_opened": "2016-04-11", "date_closed": "2018-03-17"}, {"customer_id": 641, "policy_id": 366, "date_opened": "2016-07-10", "date_closed": "2018-02-24"}, {"customer_id": 641, "policy_id": 472, "date_opened": "2016-07-07", "date_closed": "2018-03-10"}, {"customer_id": 682, "policy_id": 583, "date_opened": "2016-11-01", "date_closed": "2018-03-03"}, {"customer_id": 826, "policy_id": 630, "date_opened": "2016-11-18", "date_closed": "2018-02-13"}, {"customer_id": 892, "policy_id": 927, "date_opened": "2017-01-08", "date_closed": "2018-02-25"}, {"customer_id": 996, "policy_id": 366, "date_opened": "2016-10-31", "date_closed": "2018-03-19"}, {"customer_id": 996, "policy_id": 879, "date_opened": "2017-01-05", "date_closed": "2018-02-20"}, {"customer_id": 996, "policy_id": 993, "date_opened": "2016-07-03", "date_closed": "2018-03-20"}]}, "correct_code": "-- Load insurance_fnol__available_policies data\navailable_policies = load(\"available_policies\")\n\nfiltered_available_policies = available_policies\n |> filter(policy_type_code == \"Mortgage Insurance\")\n\nsummary = filtered_available_policies\n |> group_by(customer_phone)\n |> aggregate(max_policy_id: max(policy_id), count: count())\n\nresult = summary\n |> sort_by(max_policy_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load insurance_fnol__available_policies data\navailable_policies = load(\"available_policies\")\n\nfiltered_available_policies = available_policies\n |> filter(policy_type_code == \"Mortgage Insurance\")\n\nsummary = filtered_available_policies\n |> group_by(customer_phone)\n |> aggregate(policy_id: max(policy_id), count: count())\n\nresult = summary\n |> sort_by(max_policy_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"customer_phone": "00481937923", "max_policy_id": 927, "count": 1}, {"customer_phone": "1-381-132-0127x3801", "max_policy_id": 879, "count": 1}, {"customer_phone": "+85(6)1302858396", "max_policy_id": 472, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'max_policy_id' \u2192 'policy_id'", "line_num": 9, "original": "|> aggregate(max_policy_id: max(policy_id), count: count())", "mutated": "|> aggregate(policy_id: max(policy_id), count: count())"}], "difficulty": "hard", "domain": "insurance_fnol__available_policies", "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": {"services": [{"service_id": 10, "organization_id": 10, "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"service_id": 11, "organization_id": 7, "service_type_code": "Check", "service_details": "Satisfied"}, {"service_id": 13, "organization_id": 8, "service_type_code": "Moving Out", "service_details": "Satisfied"}, {"service_id": 22, "organization_id": 10, "service_type_code": "Pay bills", "service_details": "Satisfied"}, {"service_id": 29, "organization_id": 8, "service_type_code": "Moving Out", "service_details": "Satisfied"}, {"service_id": 31, "organization_id": 7, "service_type_code": "Pay bills", "service_details": "Satisfied"}, {"service_id": 36, "organization_id": 8, "service_type_code": "Check", "service_details": "Satisfied"}, {"service_id": 41, "organization_id": 10, "service_type_code": "Check", "service_details": "Satisfied"}, {"service_id": 47, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 49, "organization_id": 8, "service_type_code": "Moving Out", "service_details": "Satisfied"}, {"service_id": 52, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 65, "organization_id": 8, "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"service_id": 66, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 77, "organization_id": 7, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}, {"service_id": 87, "organization_id": 8, "service_type_code": "Pay bills", "service_details": "Unsatisfied"}], "residents_services": [{"resident_id": 6, "service_id": 49, "date_moved_in": "2017-06-17 15:43:33", "property_id": 954, "date_requested": "2016-07-25 01:32:23", "date_provided": "2018-02-26 00:27:11", "other_details": "Satisfied"}, {"resident_id": 23, "service_id": 41, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "date_requested": "2016-10-10 21:42:21", "date_provided": "2017-08-21 06:23:06", "other_details": "Unsatisfied"}, {"resident_id": 28, "service_id": 11, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "date_requested": "2017-07-14 19:03:47", "date_provided": "2017-08-28 03:43:56", "other_details": "Unsatisfied"}, {"resident_id": 43, "service_id": 10, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "date_requested": "2016-09-20 22:50:26", "date_provided": "2017-10-17 03:30:08", "other_details": "Unsatisfied"}, {"resident_id": 45, "service_id": 49, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "date_requested": "2017-06-14 14:04:50", "date_provided": "2017-08-14 08:06:43", "other_details": "Unsatisfied"}, {"resident_id": 47, "service_id": 65, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "date_requested": "2016-12-16 06:08:10", "date_provided": "2018-01-30 09:58:57", "other_details": "Unsatisfied"}, {"resident_id": 67, "service_id": 87, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "date_requested": "2016-04-27 14:51:07", "date_provided": "2017-11-13 10:28:34", "other_details": "Unsatisfied"}, {"resident_id": 83, "service_id": 65, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "date_requested": "2016-11-27 15:37:02", "date_provided": "2017-09-10 00:48:58", "other_details": "Unsatisfied"}, {"resident_id": 87, "service_id": 29, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "date_requested": "2016-10-13 04:15:54", "date_provided": "2017-10-29 13:12:29", "other_details": "Unsatisfied"}, {"resident_id": 90, "service_id": 36, "date_moved_in": "2016-09-27 12:00:00", "property_id": 373, "date_requested": "2016-04-13 05:09:24", "date_provided": "2017-10-28 12:36:43", "other_details": "Unsatisfied"}, {"resident_id": 88, "service_id": 11, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "date_requested": "2016-06-18 20:09:24", "date_provided": "2017-08-08 11:24:50", "other_details": "Unsatisfied"}]}, "correct_code": "-- Load local_govt_and_lot__services data\nservices = load(\"services\")\n\nsummary = services\n |> group_by(service_type_code)\n |> aggregate(avg_organization_id: avg(organization_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__services data\nservices = load(\"services\")\n\nsummary = services\n |> group_by(service_type_code)\n |> aggregate(organization_id: avg(organization_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(12)\n\nemit result", "expected_output": [{"service_type_code": "Cleanning", "avg_organization_id": 9.0, "count": 2}, {"service_type_code": "Check", "avg_organization_id": 8.333333333333334, "count": 3}, {"service_type_code": "Moving Out", "avg_organization_id": 8.0, "count": 3}, {"service_type_code": "Pay bills", "avg_organization_id": 8.0, "count": 7}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 12", "line_num": 10, "original": "|> take(10)", "mutated": "|> take(12)"}, {"category": "wrong_col", "description": "Wrong column reference: 'avg_organization_id' \u2192 'organization_id'", "line_num": 6, "original": "|> aggregate(avg_organization_id: avg(organization_id), count: count())", "mutated": "|> aggregate(organization_id: avg(organization_id), count: count())"}], "difficulty": "medium", "domain": "local_govt_and_lot__services", "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": {"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(type_of_thing_code == \"Commen\")\n\nsummary = filtered_things\n |> group_by(type_of_thing_code)\n |> aggregate(min_thing_id: min(thing_id), count: count())\n |> compute(computed_val: count / min_thing_id)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__things data\nthings = load(\"things\")\n\nfiltered_things = things\n |> filter(type_of_thing_code == \"Commen\")\n\nsummary = filtered_things\n |> group_by(type_of_thing_code)\n |> aggregate(type_of_thing_code: min(thing_id), count: count())\n |> compute(computed_val: count / min_thing_id)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"type_of_thing_code": "Commen", "min_thing_id": 10, "count": 8, "computed_val": 0.8}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'min_thing_id' \u2192 'type_of_thing_code'", "line_num": 9, "original": "|> aggregate(min_thing_id: min(thing_id), count: count())", "mutated": "|> aggregate(type_of_thing_code: min(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": {"lessons": [{"lesson_id": 1, "customer_id": 6, "lesson_status_code": "Cancelled", "staff_id": 8, "vehicle_id": 3, "lesson_date": "2018-02-28 10:55:36", "lesson_time": "5", "price": 199.0}, {"lesson_id": 2, "customer_id": 8, "lesson_status_code": "Cancelled", "staff_id": 14, "vehicle_id": 3, "lesson_date": "2018-03-07 16:12:36", "lesson_time": "6", "price": 167.0}, {"lesson_id": 3, "customer_id": 6, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 2, "lesson_date": "2018-03-03 15:10:16", "lesson_time": "3", "price": 352.0}, {"lesson_id": 4, "customer_id": 8, "lesson_status_code": "Completed", "staff_id": 1, "vehicle_id": 2, "lesson_date": "2018-03-17 19:02:07", "lesson_time": "9", "price": 306.0}, {"lesson_id": 5, "customer_id": 10, "lesson_status_code": "Completed", "staff_id": 3, "vehicle_id": 2, "lesson_date": "2018-03-12 00:41:59", "lesson_time": "9", "price": 295.0}, {"lesson_id": 6, "customer_id": 5, "lesson_status_code": "Completed", "staff_id": 4, "vehicle_id": 2, "lesson_date": "2018-03-07 22:03:49", "lesson_time": "6", "price": 492.0}, {"lesson_id": 7, "customer_id": 9, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 1, "lesson_date": "2018-03-08 16:05:05", "lesson_time": "9", "price": 231.0}, {"lesson_id": 8, "customer_id": 3, "lesson_status_code": "Completed", "staff_id": 8, "vehicle_id": 2, "lesson_date": "2018-03-21 06:48:45", "lesson_time": "2", "price": 277.0}, {"lesson_id": 9, "customer_id": 2, "lesson_status_code": "Completed", "staff_id": 4, "vehicle_id": 2, "lesson_date": "2018-03-05 20:05:33", "lesson_time": "9", "price": 456.0}, {"lesson_id": 10, "customer_id": 2, "lesson_status_code": "Cancelled", "staff_id": 5, "vehicle_id": 2, "lesson_date": "2018-02-26 02:36:35", "lesson_time": "4", "price": 495.0}, {"lesson_id": 11, "customer_id": 10, "lesson_status_code": "Cancelled", "staff_id": 15, "vehicle_id": 1, "lesson_date": "2018-03-04 06:55:46", "lesson_time": "2", "price": 223.0}, {"lesson_id": 12, "customer_id": 11, "lesson_status_code": "Cancelled", "staff_id": 12, "vehicle_id": 2, "lesson_date": "2018-03-16 07:08:52", "lesson_time": "2", "price": 184.0}, {"lesson_id": 13, "customer_id": 13, "lesson_status_code": "Completed", "staff_id": 12, "vehicle_id": 1, "lesson_date": "2018-03-05 18:05:31", "lesson_time": "5", "price": 446.0}, {"lesson_id": 14, "customer_id": 11, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 1, "lesson_date": "2018-03-07 11:53:32", "lesson_time": "5", "price": 483.0}, {"lesson_id": 15, "customer_id": 3, "lesson_status_code": "Cancelled", "staff_id": 8, "vehicle_id": 1, "lesson_date": "2018-03-06 21:48:51", "lesson_time": "9", "price": 340.0}], "vehicles": [{"vehicle_id": 1, "vehicle_details": "Van"}, {"vehicle_id": 2, "vehicle_details": "Truck"}, {"vehicle_id": 3, "vehicle_details": "Car"}]}, "correct_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_status_code == \"Cancelled\")\n |> filter(staff_id >= 6)\n |> select(lesson_status_code, lesson_id, staff_id, vehicle_id)\n\nresult = filtered_lessons\n |> sort_by(lesson_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_status_code < \"Cancelled\")\n |> filter(staff_id >= 6)\n |> select(lesson_status_code, lesson_id, staff_id, vehicle_id)\n\nresult = filtered_lessons\n |> sort_by(lesson_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"lesson_status_code": "Cancelled", "lesson_id": 15, "staff_id": 8, "vehicle_id": 1}, {"lesson_status_code": "Cancelled", "lesson_id": 14, "staff_id": 11, "vehicle_id": 1}, {"lesson_status_code": "Cancelled", "lesson_id": 12, "staff_id": 12, "vehicle_id": 2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<'", "line_num": 5, "original": "|> filter(lesson_status_code == \"Cancelled\")", "mutated": "|> filter(lesson_status_code < \"Cancelled\")"}], "difficulty": "medium", "domain": "driving_school__lessons", "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": {"addresses": [{"address_id": 5, "line_1": "0900 Roderick Oval\nNew Albina, WA 19200-7914", "line_2": "Suite 096", "city": "Linnealand", "zip_postcode": "862", "state_province_county": "Montana", "country": "USA"}, {"address_id": 9, "line_1": "966 Dach Ports Apt. 322\nLake Harmonyhaven, VA 65235", "line_2": "Apt. 163", "city": "South Minnie", "zip_postcode": "716", "state_province_county": "Texas", "country": "USA"}, {"address_id": 29, "line_1": "28550 Broderick Underpass Suite 667\nZakaryhaven, WY 22945-1534", "line_2": "Apt. 419", "city": "North Trystanborough", "zip_postcode": "112", "state_province_county": "Vermont", "country": "USA"}, {"address_id": 30, "line_1": "83706 Ana Trafficway Apt. 992\nWest Jarret, MI 01112", "line_2": "Apt. 884", "city": "Lake Kaley", "zip_postcode": "431", "state_province_county": "Washington", "country": "USA"}, {"address_id": 43, "line_1": "69165 Beatty Station\nHaleighstad, MS 55164", "line_2": "Suite 333", "city": "Stephaniemouth", "zip_postcode": "559", "state_province_county": "Massachusetts", "country": "USA"}, {"address_id": 45, "line_1": "242 Pacocha Streets\nEast Isabellashire, ND 03506", "line_2": "Suite 370", "city": "O'Connellview", "zip_postcode": "514", "state_province_county": "NewMexico", "country": "USA"}, {"address_id": 55, "line_1": "801 Modesto Island Suite 306\nLacyville, VT 34059", "line_2": "Suite 764", "city": "New Alta", "zip_postcode": "176", "state_province_county": "Mississippi", "country": "USA"}, {"address_id": 63, "line_1": "0177 Fisher Dam\nBerniershire, KS 00038-7574", "line_2": "Apt. 903", "city": "South Keenan", "zip_postcode": "613", "state_province_county": "Michigan", "country": "USA"}, {"address_id": 68, "line_1": "09471 Hickle Light\nPort Maxime, NJ 91550-5409", "line_2": "Suite 903", "city": "Hannahside", "zip_postcode": "354", "state_province_county": "Connecticut", "country": "USA"}, {"address_id": 73, "line_1": "67831 Lavonne Lodge\nOlsontown, DC 20894", "line_2": "Apt. 756", "city": "Alizeshire", "zip_postcode": "687", "state_province_county": "NewMexico", "country": "USA"}, {"address_id": 82, "line_1": "228 Fahey Land\nBaileymouth, FL 06297-5606", "line_2": "Suite 087", "city": "South Naomibury", "zip_postcode": "079", "state_province_county": "Ohio", "country": "USA"}, {"address_id": 88, "line_1": "1770 Adriel Ramp Apt. 397\nWest Ashlynnchester, UT 91968", "line_2": "Apt. 617", "city": "East Tavaresburgh", "zip_postcode": "179", "state_province_county": "SouthDakota", "country": "USA"}, {"address_id": 92, "line_1": "8760 Eldon Squares Suite 260\nMarquisestad, GA 38537", "line_2": "Apt. 435", "city": "Lake Devon", "zip_postcode": "244", "state_province_county": "SouthDakota", "country": "USA"}, {"address_id": 94, "line_1": "8263 Abbott Crossing Apt. 066\nOberbrunnerbury, LA 67451", "line_2": "Apt. 626", "city": "Boyleshire", "zip_postcode": "536", "state_province_county": "Kansas", "country": "USA"}, {"address_id": 99, "line_1": "521 Paucek Field\nNorth Oscartown, WI 31527", "line_2": "Apt. 849", "city": "Terencetown", "zip_postcode": "979", "state_province_county": "Michigan", "country": "USA"}], "people_addresses": [{"person_address_id": 122, "person_id": 111, "address_id": 9, "date_from": "2012-09-26 13:21:00", "date_to": "2018-03-21 09:46:30"}, {"person_address_id": 257, "person_id": 121, "address_id": 5, "date_from": "2008-07-31 02:17:25", "date_to": "2018-03-09 02:11:12"}, {"person_address_id": 269, "person_id": 131, "address_id": 88, "date_from": "2008-05-26 20:43:41", "date_to": "2018-03-11 20:26:41"}, {"person_address_id": 276, "person_id": 141, "address_id": 99, "date_from": "2014-05-10 00:32:31", "date_to": "2018-03-08 06:16:47"}, {"person_address_id": 281, "person_id": 151, "address_id": 92, "date_from": "2010-11-26 05:21:12", "date_to": "2018-03-12 21:10:02"}, {"person_address_id": 340, "person_id": 161, "address_id": 45, "date_from": "2017-05-01 17:32:26", "date_to": "2018-03-09 08:45:06"}, {"person_address_id": 363, "person_id": 171, "address_id": 55, "date_from": "2015-05-24 16:14:12", "date_to": "2018-02-23 22:44:18"}, {"person_address_id": 396, "person_id": 181, "address_id": 82, "date_from": "2013-12-26 16:57:01", "date_to": "2018-03-03 16:06:17"}]}, "correct_code": "-- Load student_assessment__addresses data\naddresses = load(\"addresses\")\n\nfiltered_addresses = addresses\n |> filter(address_id >= 25)\n |> select(line_1, line_2, state_province_county, zip_postcode, address_id)\n\nsummary = filtered_addresses\n |> group_by(zip_postcode)\n |> aggregate(max_address_id: max(address_id), count: count())\n\nresult = summary\n |> sort_by(max_address_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load student_assessment__addresses data\naddresses = load(\"addresses\")\n\nfiltered_addresses = addresses\n |> filter(address_id >= 25)\n |> select(line_1, line_2, state_province_county, zip_postcode, address_id)\n\nsummary = filtered_addresses\n |> group_by(zip_postcode)\n |> aggregate(max_address_id: max(address_id), count: count())\n\nresult = summary\n |> sort_by(max_address_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"zip_postcode": "979", "max_address_id": 99, "count": 1}, {"zip_postcode": "536", "max_address_id": 94, "count": 1}, {"zip_postcode": "244", "max_address_id": 92, "count": 1}, {"zip_postcode": "179", "max_address_id": 88, "count": 1}, {"zip_postcode": "079", "max_address_id": 82, "count": 1}, {"zip_postcode": "687", "max_address_id": 73, "count": 1}, {"zip_postcode": "354", "max_address_id": 68, "count": 1}, {"zip_postcode": "613", "max_address_id": 63, "count": 1}, {"zip_postcode": "176", "max_address_id": 55, "count": 1}, {"zip_postcode": "514", "max_address_id": 45, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 13, "original": "|> sort_by(max_address_id, desc)", "mutated": "|> sort_by(max_address_id, asc)"}], "difficulty": "easy", "domain": "student_assessment__addresses", "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\nfiltered_delivery_route_locations = delivery_route_locations\n |> filter(location_code == \"73 Nancy Av\")\n\nsummary = filtered_delivery_route_locations\n |> group_by(location_name)\n |> aggregate(total_location_address_id: sum(location_address_id), count: count())\n |> compute(computed_val: total_location_address_id - count)\n\nresult = summary\n |> sort_by(total_location_address_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\nfiltered_delivery_route_locations = delivery_route_locations\n |> filter(location_code == \"73 nancy av\")\n\nsummary = filtered_delivery_route_locations\n |> group_by(location_name)\n |> aggregate(location_name: sum(location_address_id), count: count())\n |> compute(computed_val: total_location_address_id - count)\n\nresult = summary\n |> sort_by(total_location_address_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"location_name": "Streich Group", "total_location_address_id": 10, "count": 1, "computed_val": 9}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'total_location_address_id' \u2192 'location_name'", "line_num": 9, "original": "|> aggregate(total_location_address_id: sum(location_address_id), count: count())", "mutated": "|> aggregate(location_name: sum(location_address_id), count: count())"}, {"category": "logic_bug", "description": "Wrong filter value: '73 Nancy Av' \u2192 '73 nancy av'", "line_num": 5, "original": "|> filter(location_code == \"73 Nancy Av\")", "mutated": "|> filter(location_code == \"73 nancy av\")"}], "difficulty": "medium", "domain": "customer_deliveries__delivery_route_locations", "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": {"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 == \"663\")\n |> select(id, sec_id, year, course_id)\n\nresult = filtered_teaches\n |> sort_by(year, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(course_id == \"663\")\n |> select(id, sec_id, year, course_id)\n\nresult = filtered_teaches\n sort_by(year, asc)\n |> take(10)\n\nemit result", "expected_output": [{"id": "22591", "sec_id": "1", "year": 2005, "course_id": "663"}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> sort_by(year, asc)", "mutated": "sort_by(year, asc)"}], "difficulty": "easy", "domain": "college_2__teaches", "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": {"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(blockfloor >= 1)\n\nsummary = filtered_room\n |> group_by(roomtype)\n |> aggregate(avg_blockfloor: avg(blockfloor), count: count())\n\nresult = summary\n |> sort_by(avg_blockfloor, asc)\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(blockfloor >= 1)\n\nsummary = filtered_room\n |> group_by(roomtype)\n |> agregate(avg_blockfloor: avg(blockfloor), count: count())\n\nresult = summary\n |> sort_by(avg_blockfloor, asc)\n |> take(5)\n\nemit result", "expected_output": [{"roomtype": "Single", "avg_blockfloor": 2.5, "count": 36}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'aggregate' \u2192 'agregate'", "line_num": 10, "original": "|> aggregate(avg_blockfloor: avg(blockfloor), count: count())", "mutated": "|> agregate(avg_blockfloor: avg(blockfloor), 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_easy
{"datasets": {"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}], "department": [{"dept_name": "Civil Eng.", "building": "Chandler", "budget": 255041.46}, {"dept_name": "Biology", "building": "Candlestick", "budget": 647610.55}, {"dept_name": "History", "building": "Taylor", "budget": 699140.86}, {"dept_name": "Physics", "building": "Wrigley", "budget": 942162.76}, {"dept_name": "Marketing", "building": "Lambeau", "budget": 210627.58}, {"dept_name": "Pol. Sci.", "building": "Whitman", "budget": 573745.09}, {"dept_name": "English", "building": "Palmer", "budget": 611042.66}, {"dept_name": "Accounting", "building": "Saucon", "budget": 441840.92}, {"dept_name": "Comp. Sci.", "building": "Lamberton", "budget": 106378.69}, {"dept_name": "Languages", "building": "Linderman", "budget": 601283.6}, {"dept_name": "Finance", "building": "Candlestick", "budget": 866831.75}, {"dept_name": "Geology", "building": "Palmer", "budget": 406557.93}, {"dept_name": "Cybernetics", "building": "Mercer", "budget": 794541.46}, {"dept_name": "Astronomy", "building": "Taylor", "budget": 617253.94}, {"dept_name": "Athletics", "building": "Bronfman", "budget": 734550.7}, {"dept_name": "Statistics", "building": "Taylor", "budget": 395051.74}, {"dept_name": "Psychology", "building": "Thompson", "budget": 848175.04}, {"dept_name": "Math", "building": "Brodhead", "budget": 777605.11}, {"dept_name": "Elec. Eng.", "building": "Main", "budget": 276527.61}, {"dept_name": "Mech. Eng.", "building": "Rauch", "budget": 520350.65}]}, "correct_code": "-- Load college_2__instructor data\ninstructor = load(\"instructor\")\n\nfiltered_instructor = instructor\n |> filter(dept_name == \"Physics\")\n\nsummary = filtered_instructor\n |> group_by(dept_name)\n |> aggregate(avg_salary: avg(salary), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__instructor data\ninstructor = load(\"instructor\")\n\nfiltered_instructor = instructor\n |> filter(dept_name == \"Physics\")\n\nsummary = filtered_instructor\n |> group_by(dept_name)\n |> aggregate(avg_salary: avg(salary), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n take(3)\n\nemit result", "expected_output": [{"dept_name": "Physics", "avg_salary": 114576.9, "count": 2}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 13, "original": "|> take(3)", "mutated": "take(3)"}], "difficulty": "easy", "domain": "college_2__instructor", "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": {"lessons": [{"lesson_id": 1, "customer_id": 6, "lesson_status_code": "Cancelled", "staff_id": 8, "vehicle_id": 3, "lesson_date": "2018-02-28 10:55:36", "lesson_time": "5", "price": 199.0}, {"lesson_id": 2, "customer_id": 8, "lesson_status_code": "Cancelled", "staff_id": 14, "vehicle_id": 3, "lesson_date": "2018-03-07 16:12:36", "lesson_time": "6", "price": 167.0}, {"lesson_id": 3, "customer_id": 6, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 2, "lesson_date": "2018-03-03 15:10:16", "lesson_time": "3", "price": 352.0}, {"lesson_id": 4, "customer_id": 8, "lesson_status_code": "Completed", "staff_id": 1, "vehicle_id": 2, "lesson_date": "2018-03-17 19:02:07", "lesson_time": "9", "price": 306.0}, {"lesson_id": 5, "customer_id": 10, "lesson_status_code": "Completed", "staff_id": 3, "vehicle_id": 2, "lesson_date": "2018-03-12 00:41:59", "lesson_time": "9", "price": 295.0}, {"lesson_id": 6, "customer_id": 5, "lesson_status_code": "Completed", "staff_id": 4, "vehicle_id": 2, "lesson_date": "2018-03-07 22:03:49", "lesson_time": "6", "price": 492.0}, {"lesson_id": 7, "customer_id": 9, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 1, "lesson_date": "2018-03-08 16:05:05", "lesson_time": "9", "price": 231.0}, {"lesson_id": 8, "customer_id": 3, "lesson_status_code": "Completed", "staff_id": 8, "vehicle_id": 2, "lesson_date": "2018-03-21 06:48:45", "lesson_time": "2", "price": 277.0}, {"lesson_id": 9, "customer_id": 2, "lesson_status_code": "Completed", "staff_id": 4, "vehicle_id": 2, "lesson_date": "2018-03-05 20:05:33", "lesson_time": "9", "price": 456.0}, {"lesson_id": 10, "customer_id": 2, "lesson_status_code": "Cancelled", "staff_id": 5, "vehicle_id": 2, "lesson_date": "2018-02-26 02:36:35", "lesson_time": "4", "price": 495.0}, {"lesson_id": 11, "customer_id": 10, "lesson_status_code": "Cancelled", "staff_id": 15, "vehicle_id": 1, "lesson_date": "2018-03-04 06:55:46", "lesson_time": "2", "price": 223.0}, {"lesson_id": 12, "customer_id": 11, "lesson_status_code": "Cancelled", "staff_id": 12, "vehicle_id": 2, "lesson_date": "2018-03-16 07:08:52", "lesson_time": "2", "price": 184.0}, {"lesson_id": 13, "customer_id": 13, "lesson_status_code": "Completed", "staff_id": 12, "vehicle_id": 1, "lesson_date": "2018-03-05 18:05:31", "lesson_time": "5", "price": 446.0}, {"lesson_id": 14, "customer_id": 11, "lesson_status_code": "Cancelled", "staff_id": 11, "vehicle_id": 1, "lesson_date": "2018-03-07 11:53:32", "lesson_time": "5", "price": 483.0}, {"lesson_id": 15, "customer_id": 3, "lesson_status_code": "Cancelled", "staff_id": 8, "vehicle_id": 1, "lesson_date": "2018-03-06 21:48:51", "lesson_time": "9", "price": 340.0}], "vehicles": [{"vehicle_id": 1, "vehicle_details": "Van"}, {"vehicle_id": 2, "vehicle_details": "Truck"}, {"vehicle_id": 3, "vehicle_details": "Car"}]}, "correct_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_date == \"2018-02-26 02:36:35\")\n\nsummary = filtered_lessons\n |> group_by(lesson_status_code)\n |> aggregate(avg_price: avg(price), count: count())\n |> compute(computed_val: avg_price / count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_date == \"2018-02-26 02:36:3\")\n\nsummary = filtered_lessons\n |> group_by(lesson_status_code)\n |> aggregate(avg_price: avg(price), count: count())\n |> compute(computed_val: avg_price / count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"lesson_status_code": "Cancelled", "avg_price": 495.0, "count": 1, "computed_val": 495.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '2018-02-26 02:36:35' \u2192 '2018-02-26 02:36:3'", "line_num": 5, "original": "|> filter(lesson_date == \"2018-02-26 02:36:35\")", "mutated": "|> filter(lesson_date == \"2018-02-26 02:36:3\")"}], "difficulty": "medium", "domain": "driving_school__lessons", "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": {"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-13 12:22:58\")\n |> select(treatment_type_code, treatment_id, cost_of_treatment, date_of_treatment)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, desc)\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-13 12:22:58\")\n |> select(treatment_type_code, treatment_id, cost_of_treatment, date_of_treatment)\n\nresult = filtered_treatments\n |> sort_bi(treatment_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"treatment_type_code": "VAC", "treatment_id": 11, "cost_of_treatment": 514, "date_of_treatment": "2018-03-13 12:22:58"}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'sort_bi'", "line_num": 9, "original": "|> sort_by(treatment_id, desc)", "mutated": "|> sort_bi(treatment_id, desc)"}], "difficulty": "easy", "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_easy
{"datasets": {"faculty_participates_in": [{"facid": 1082, "actid": 784}, {"facid": 1082, "actid": 785}, {"facid": 1082, "actid": 790}, {"facid": 1121, "actid": 771}, {"facid": 1121, "actid": 777}, {"facid": 1121, "actid": 770}, {"facid": 1193, "actid": 790}, {"facid": 1193, "actid": 796}, {"facid": 1193, "actid": 773}, {"facid": 2192, "actid": 773}, {"facid": 2192, "actid": 790}, {"facid": 2192, "actid": 778}, {"facid": 3457, "actid": 782}, {"facid": 3457, "actid": 771}, {"facid": 3457, "actid": 784}, {"facid": 4230, "actid": 790}, {"facid": 4230, "actid": 785}, {"facid": 6112, "actid": 785}, {"facid": 6112, "actid": 772}, {"facid": 7723, "actid": 785}, {"facid": 7723, "actid": 770}, {"facid": 8114, "actid": 776}, {"facid": 8721, "actid": 770}, {"facid": 8721, "actid": 780}, {"facid": 8741, "actid": 780}, {"facid": 8741, "actid": 790}, {"facid": 8918, "actid": 780}, {"facid": 8918, "actid": 782}, {"facid": 8918, "actid": 771}, {"facid": 2881, "actid": 790}, {"facid": 2881, "actid": 784}, {"facid": 4432, "actid": 770}, {"facid": 4432, "actid": 771}, {"facid": 5718, "actid": 776}, {"facid": 6182, "actid": 776}, {"facid": 6182, "actid": 785}, {"facid": 1177, "actid": 790}, {"facid": 1177, "actid": 770}, {"facid": 1177, "actid": 770}, {"facid": 9922, "actid": 796}], "activity": [{"actid": 770, "activity_name": "Mountain Climbing"}, {"actid": 771, "activity_name": "Canoeing"}, {"actid": 772, "activity_name": "Kayaking"}, {"actid": 773, "activity_name": "Spelunking"}, {"actid": 776, "activity_name": "Extreme Canasta"}, {"actid": 777, "activity_name": "Soccer"}, {"actid": 778, "activity_name": "Baseball"}, {"actid": 779, "activity_name": "Accordion Ensemble"}, {"actid": 780, "activity_name": "Football"}, {"actid": 782, "activity_name": "Volleyball"}, {"actid": 784, "activity_name": "Canasta"}, {"actid": 785, "activity_name": "Chess"}, {"actid": 790, "activity_name": "Crossword Puzzles"}, {"actid": 791, "activity_name": "Proselytizing"}, {"actid": 796, "activity_name": "Square Dancing"}, {"actid": 799, "activity_name": "Bungee Jumping"}]}, "correct_code": "-- Load activity_1__faculty_participates_in data\nfaculty_participates_in = load(\"faculty_participates_in\")\n\nresult = faculty_participates_in\n |> sort_by(facid, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load activity_1__faculty_participates_in data\nfaculty_participates_in = load(\"faculty_participates_in\")\n\nresult = faculty_participates_in\n |> srt_by(facid, asc)\n |> take(5)\n\nemit result", "expected_output": [{"facid": 1082, "actid": 784}, {"facid": 1082, "actid": 785}, {"facid": 1082, "actid": 790}, {"facid": 1121, "actid": 771}, {"facid": 1121, "actid": 777}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'srt_by'", "line_num": 5, "original": "|> sort_by(facid, asc)", "mutated": "|> srt_by(facid, asc)"}], "difficulty": "easy", "domain": "activity_1__faculty_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_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\nresult = participates_in\n |> sort_by(actid, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nresult = participates_in\n |> sort_by(actid, asc)\n |> take(11)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 770}, {"stuid": 1005, "actid": 770}, {"stuid": 1014, "actid": 770}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 770}, {"stuid": 1025, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1002, "actid": 771}, {"stuid": 1017, "actid": 771}, {"stuid": 1034, "actid": 771}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 11", "line_num": 6, "original": "|> take(10)", "mutated": "|> take(11)"}], "difficulty": "hard", "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_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 |> select(stuid, actid)\n\n-- Load lookup data\nstudent = load(\"student\")\n\nenriched = join(participates_in, student, on: stuid == stuid)\n |> compute(computed_val: stuid / actid)\n\nresult = enriched\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 |> select(stuid, actid)\n\n-- Load lookup data\nstudent = load(\"student\")\n\nenriched = join(participates_in, student, on: stuid == stuid)\n |> compute(computed_val: stuid / actid)\n\nresult = enriched\n |> sort_by(actid, asc)\n |> take(4)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 770, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL", "computed_val": 1.3}, {"stuid": 1005, "actid": 770, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ", "computed_val": 1.3051948051948052}, {"stuid": 1014, "actid": 770, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL", "computed_val": 1.316883116883117}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 4", "line_num": 13, "original": "|> take(3)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "activity_1__participates_in", "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": {"has_allergy": [{"stuid": 1001, "allergy": "Cat"}, {"stuid": 1002, "allergy": "Shellfish"}, {"stuid": 1002, "allergy": "Tree Pollen"}, {"stuid": 1003, "allergy": "Dog"}, {"stuid": 1004, "allergy": "Nuts"}, {"stuid": 1005, "allergy": "Nuts"}, {"stuid": 1005, "allergy": "Tree Pollen"}, {"stuid": 1006, "allergy": "Nuts"}, {"stuid": 1007, "allergy": "Ragweed"}, {"stuid": 1007, "allergy": "Tree Pollen"}, {"stuid": 1007, "allergy": "Grass Pollen"}, {"stuid": 1007, "allergy": "Eggs"}, {"stuid": 1007, "allergy": "Milk"}, {"stuid": 1007, "allergy": "Shellfish"}, {"stuid": 1007, "allergy": "Anchovies"}, {"stuid": 1007, "allergy": "Cat"}, {"stuid": 1007, "allergy": "Dog"}, {"stuid": 1009, "allergy": "Tree Pollen"}, {"stuid": 1010, "allergy": "Ragweed"}, {"stuid": 1010, "allergy": "Tree Pollen"}, {"stuid": 1010, "allergy": "Grass Pollen"}, {"stuid": 1010, "allergy": "Eggs"}, {"stuid": 1010, "allergy": "Milk"}, {"stuid": 1010, "allergy": "Shellfish"}, {"stuid": 1010, "allergy": "Anchovies"}, {"stuid": 1010, "allergy": "Cat"}, {"stuid": 1010, "allergy": "Dog"}, {"stuid": 1011, "allergy": "Ragweed"}, {"stuid": 1012, "allergy": "Ragweed"}, {"stuid": 1013, "allergy": "Ragweed"}, {"stuid": 1014, "allergy": "Nuts"}, {"stuid": 1015, "allergy": "Nuts"}, {"stuid": 1015, "allergy": "Soy"}, {"stuid": 1016, "allergy": "Nuts"}, {"stuid": 1016, "allergy": "Milk"}, {"stuid": 1017, "allergy": "Tree Pollen"}, {"stuid": 1018, "allergy": "Nuts"}, {"stuid": 1018, "allergy": "Soy"}, {"stuid": 1019, "allergy": "Tree Pollen"}, {"stuid": 1020, "allergy": "Tree Pollen"}, {"stuid": 1021, "allergy": "Tree Pollen"}, {"stuid": 1022, "allergy": "Nuts"}, {"stuid": 1022, "allergy": "Anchovies"}, {"stuid": 1023, "allergy": "Rodent"}, {"stuid": 1023, "allergy": "Cat"}, {"stuid": 1023, "allergy": "Nuts"}, {"stuid": 1024, "allergy": "Ragweed"}, {"stuid": 1024, "allergy": "Tree Pollen"}, {"stuid": 1025, "allergy": "Tree Pollen"}, {"stuid": 1026, "allergy": "Grass Pollen"}, {"stuid": 1027, "allergy": "Tree Pollen"}, {"stuid": 1028, "allergy": "Tree Pollen"}, {"stuid": 1029, "allergy": "Soy"}, {"stuid": 1029, "allergy": "Nuts"}, {"stuid": 1029, "allergy": "Eggs"}, {"stuid": 1030, "allergy": "Grass Pollen"}, {"stuid": 1031, "allergy": "Nuts"}, {"stuid": 1031, "allergy": "Shellfish"}, {"stuid": 1031, "allergy": "Soy"}], "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 allergy_1__has_allergy data\nhas_allergy = load(\"has_allergy\")\n\nfiltered_has_allergy = has_allergy\n |> filter(stuid > 1013)\n |> select(stuid, allergy)\n\nsummary = filtered_has_allergy\n |> group_by(allergy)\n |> aggregate(total_stuid: sum(stuid), count: count())\n\nresult = summary\n |> sort_by(total_stuid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load allergy_1__has_allergy data\nhas_allergy = load(\"has_allergy\")\n\nfiltered_has_allergy = has_allergy\n |> filter(stuid > 1018)\n |> select(stuid, allergy)\n\nsummary = filtered_has_allergy\n |> group_by(allergy)\n |> aggregate(total_stuid: sum(stuid), count: count())\n\nresult = summary\n |> sort_by(1013, desc)\n |> take(10)\n\nemit result", "expected_output": [{"allergy": "Tree Pollen", "total_stuid": 8181, "count": 8}, {"allergy": "Nuts", "total_stuid": 8168, "count": 8}, {"allergy": "Soy", "total_stuid": 4093, "count": 4}, {"allergy": "Grass Pollen", "total_stuid": 2056, "count": 2}, {"allergy": "Shellfish", "total_stuid": 1031, "count": 1}, {"allergy": "Eggs", "total_stuid": 1029, "count": 1}, {"allergy": "Ragweed", "total_stuid": 1024, "count": 1}, {"allergy": "Rodent", "total_stuid": 1023, "count": 1}, {"allergy": "Cat", "total_stuid": 1023, "count": 1}, {"allergy": "Anchovies", "total_stuid": 1022, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'total_stuid' \u2192 '1013'", "line_num": 13, "original": "|> sort_by(total_stuid, desc)", "mutated": "|> sort_by(1013, desc)"}, {"category": "logic_bug", "description": "Wrong filter threshold: 1013 \u2192 1018", "line_num": 5, "original": "|> filter(stuid > 1013)", "mutated": "|> filter(stuid > 1018)"}], "difficulty": "hard", "domain": "allergy_1__has_allergy", "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(url == \"http://en.wikipedia.org/wiki/1973_Formula_One_season\")\n |> filter(year >= 1956)\n\nsummary = filtered_seasons\n |> group_by(url)\n |> aggregate(avg_year: avg(year), count: count())\n |> compute(computed_val: avg_year / count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nfiltered_seasons = seasons\n |> filter(url == \"http://en.wikipedia.org/wiki/1973_Formula_One_seasons\")\n |> filter(year >= 1956)\n\nsummary = filtered_seasons\n |> group_by(url)\n |> aggregate(avg_year: avg(year), count: count())\n |> compute(computed_val: avg_year / count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/1973_Formula_One_season", "avg_year": 1973.0, "count": 1, "computed_val": 1973.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'http://en.wikipedia.org/wiki/1973_Formula_One_season' \u2192 'http://en.wikipedia.org/wiki/1973_Formula_One_seasons'", "line_num": 5, "original": "|> filter(url == \"http://en.wikipedia.org/wiki/1973_Formula_One_season\")", "mutated": "|> filter(url == \"http://en.wikipedia.org/wiki/1973_Formula_One_seasons\")"}], "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_medium
{"datasets": {"dogs": [{"dog_id": 1, "owner_id": 3, "abandoned_yn": "1", "breed_code": "ESK", "size_code": "LGE", "name": "Kacey", "age": "6", "date_of_birth": "2012-01-27 05:11:53", "gender": "1", "weight": "7.57", "date_arrived": "2017-09-08 20:10:13", "date_adopted": "2018-03-06 16:32:11", "date_departed": "2018-03-25 06:58:44"}, {"dog_id": 2, "owner_id": 11, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "LGE", "name": "Hipolito", "age": "9", "date_of_birth": "2013-02-13 05:15:21", "gender": "0", "weight": "1.72", "date_arrived": "2017-12-22 05:02:02", "date_adopted": "2018-03-25 08:12:51", "date_departed": "2018-03-25 02:11:32"}, {"dog_id": 3, "owner_id": 1, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Mavis", "age": "8", "date_of_birth": "2008-05-19 15:54:49", "gender": "1", "weight": "8.04", "date_arrived": "2017-06-25 10:14:05", "date_adopted": "2018-03-07 21:45:43", "date_departed": "2018-03-25 10:25:46"}, {"dog_id": 4, "owner_id": 14, "abandoned_yn": "0", "breed_code": "ESK", "size_code": "LGE", "name": "Houston", "age": "5", "date_of_birth": "2008-10-09 22:38:53", "gender": "0", "weight": "2.18", "date_arrived": "2017-04-20 00:58:55", "date_adopted": "2018-03-18 15:12:50", "date_departed": "2018-03-24 19:12:22"}, {"dog_id": 5, "owner_id": 7, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Jeffrey", "age": "4", "date_of_birth": "2018-03-17 04:05:12", "gender": "0", "weight": "1.39", "date_arrived": "2017-10-25 00:55:34", "date_adopted": "2018-02-27 11:54:35", "date_departed": "2018-03-25 04:50:22"}, {"dog_id": 6, "owner_id": 5, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "MED", "name": "Merritt", "age": "9", "date_of_birth": "2015-02-26 21:31:22", "gender": "1", "weight": "9.8", "date_arrived": "2017-04-15 09:25:31", "date_adopted": "2018-03-08 15:03:00", "date_departed": "2018-03-25 13:07:04"}, {"dog_id": 7, "owner_id": 3, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Narciso", "age": "2", "date_of_birth": "2017-09-19 05:39:09", "gender": "1", "weight": "9.48", "date_arrived": "2017-05-06 08:03:52", "date_adopted": "2018-02-27 00:27:57", "date_departed": "2018-03-25 06:29:10"}, {"dog_id": 8, "owner_id": 14, "abandoned_yn": "0", "breed_code": "ESK", "size_code": "SML", "name": "George", "age": "2", "date_of_birth": "2013-02-20 14:50:56", "gender": "0", "weight": "8.95", "date_arrived": "2017-10-16 20:06:21", "date_adopted": "2018-03-23 16:02:04", "date_departed": "2018-03-25 02:47:40"}, {"dog_id": 9, "owner_id": 2, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "MED", "name": "Bessie", "age": "4", "date_of_birth": "2012-05-31 08:01:36", "gender": "1", "weight": "3.52", "date_arrived": "2018-01-17 11:44:16", "date_adopted": "2018-02-25 23:45:30", "date_departed": "2018-03-25 06:46:07"}, {"dog_id": 10, "owner_id": 6, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "MED", "name": "Troy", "age": "9", "date_of_birth": "2012-07-11 17:15:10", "gender": "0", "weight": "8.96", "date_arrived": "2017-12-29 06:08:26", "date_adopted": "2018-03-18 07:47:40", "date_departed": "2018-03-25 04:42:14"}, {"dog_id": 11, "owner_id": 13, "abandoned_yn": "0", "breed_code": "BUL", "size_code": "LGE", "name": "Betty", "age": "3", "date_of_birth": "2012-10-14 14:44:37", "gender": "0", "weight": "8.16", "date_arrived": "2017-07-25 15:19:07", "date_adopted": "2018-03-14 08:05:18", "date_departed": "2018-03-25 15:05:16"}, {"dog_id": 12, "owner_id": 12, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "MED", "name": "Holden", "age": "8", "date_of_birth": "2009-04-12 06:02:48", "gender": "0", "weight": "6.92", "date_arrived": "2017-10-24 04:45:13", "date_adopted": "2018-03-05 06:05:23", "date_departed": "2018-03-25 14:15:41"}, {"dog_id": 13, "owner_id": 8, "abandoned_yn": "0", "breed_code": "HUS", "size_code": "SML", "name": "Jesus", "age": "2", "date_of_birth": "2012-05-03 21:42:25", "gender": "0", "weight": "5.16", "date_arrived": "2018-01-02 03:15:29", "date_adopted": "2018-03-21 10:41:18", "date_departed": "2018-03-25 05:07:47"}, {"dog_id": 14, "owner_id": 14, "abandoned_yn": "1", "breed_code": "ESK", "size_code": "MED", "name": "Lyric", "age": "4", "date_of_birth": "2010-11-11 07:11:53", "gender": "0", "weight": "4.36", "date_arrived": "2017-06-18 19:45:38", "date_adopted": "2018-03-13 12:47:15", "date_departed": "2018-03-24 23:48:59"}, {"dog_id": 15, "owner_id": 10, "abandoned_yn": "1", "breed_code": "BUL", "size_code": "MED", "name": "Evangeline", "age": "1", "date_of_birth": "2008-05-30 12:51:34", "gender": "1", "weight": "4.01", "date_arrived": "2017-12-29 23:24:13", "date_adopted": "2018-03-10 15:06:43", "date_departed": "2018-03-24 19:36:59"}], "breeds": [{"breed_code": "ESK", "breed_name": "Eskimo"}, {"breed_code": "HUS", "breed_name": "Husky"}, {"breed_code": "BUL", "breed_name": "Bulldog"}]}, "correct_code": "-- Load dog_kennels__dogs data\ndogs = load(\"dogs\")\n\nfiltered_dogs = dogs\n |> filter(dog_id < 8)\n\nsummary = filtered_dogs\n |> group_by(date_adopted)\n |> aggregate(avg_owner_id: avg(owner_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load dog_kennels__dogs data\ndogs = load(\"dogs\")\n\nfiltered_dogs = dogs\n |> filter(dog_id <= 8)\n\nsummary = filtered_dogs\n |> group_by(date_adopted)\n |> aggregate(avg_owner_id: avg(owner_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"date_adopted": "2018-03-06 16:32:11", "avg_owner_id": 3.0, "count": 1}, {"date_adopted": "2018-03-25 08:12:51", "avg_owner_id": 11.0, "count": 1}, {"date_adopted": "2018-03-07 21:45:43", "avg_owner_id": 1.0, "count": 1}, {"date_adopted": "2018-03-18 15:12:50", "avg_owner_id": 14.0, "count": 1}, {"date_adopted": "2018-02-27 11:54:35", "avg_owner_id": 7.0, "count": 1}, {"date_adopted": "2018-03-08 15:03:00", "avg_owner_id": 5.0, "count": 1}, {"date_adopted": "2018-02-27 00:27:57", "avg_owner_id": 3.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '<' \u2192 '<='", "line_num": 5, "original": "|> filter(dog_id < 8)", "mutated": "|> filter(dog_id <= 8)"}], "difficulty": "medium", "domain": "dog_kennels__dogs", "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": {"department": [{"dno": 10, "division": "AS", "dname": "History of Art", "room": "268", "building": "Mergenthaler", "dphone": 7117}, {"dno": 20, "division": "AS", "dname": "Biology", "room": "144", "building": "Mudd", "dphone": 7330}, {"dno": 30, "division": "AS", "dname": "Chemistry", "room": "113", "building": "Remsen", "dphone": 7429}, {"dno": 40, "division": "AS", "dname": "Classics", "room": "121", "building": "Gilman", "dphone": 7556}, {"dno": 50, "division": "AS", "dname": "Cognitive Science", "room": "381", "building": "Krieger", "dphone": 7119}, {"dno": 60, "division": "AS", "dname": "English", "room": "146", "building": "Gilman", "dphone": 7544}, {"dno": 70, "division": "AS", "dname": "Anthropology", "room": "404B", "building": "Macaulay", "dphone": 7272}, {"dno": 90, "division": "AS", "dname": "German", "room": "245", "building": "Gilman", "dphone": 7508}, {"dno": 100, "division": "AS", "dname": "History", "room": "312", "building": "Gilman", "dphone": 7575}, {"dno": 110, "division": "AS", "dname": "Mathematics", "room": "404", "building": "Krieger", "dphone": 7399}, {"dno": 130, "division": "AS", "dname": "Near Eastern Studies", "room": "128", "building": "Gilman", "dphone": 7499}, {"dno": 140, "division": "AS", "dname": "History of Science", "room": "234", "building": "Gilman", "dphone": 7501}, {"dno": 150, "division": "AS", "dname": "Philosophy", "room": "347", "building": "Gilman", "dphone": 7524}, {"dno": 170, "division": "AS", "dname": "Physics and Astronomy", "room": "366", "building": "Bloomberg", "dphone": 7347}, {"dno": 180, "division": "AS", "dname": "Economics", "room": "440", "building": "Mergenthaler", "dphone": 7601}, {"dno": 190, "division": "AS", "dname": "Political Science", "room": "338", "building": "Mergenthaler", "dphone": 7540}, {"dno": 200, "division": "AS", "dname": "Psychology", "room": "223", "building": "Ames", "dphone": 7055}, {"dno": 340, "division": "AS", "dname": "French", "room": "225", "building": "Gilman", "dphone": 7227}, {"dno": 350, "division": "AS", "dname": "Hispanic/Italian Studies", "room": "221", "building": "Gilman", "dphone": 7226}, {"dno": 520, "division": "EN", "dname": "ECE", "room": "105", "building": "Barton", "dphone": 7033}, {"dno": 530, "division": "EN", "dname": "Mechanical Engineering", "room": "122", "building": "Latrobe", "dphone": 7132}, {"dno": 540, "division": "EN", "dname": "Chemical Engineering", "room": "24", "building": "NEB", "dphone": 7170}, {"dno": 550, "division": "EN", "dname": "Mathematical Sciences", "room": "221", "building": "Maryland", "dphone": 7195}, {"dno": 560, "division": "EN", "dname": "Civil Engineering", "room": "206", "building": "Latrobe", "dphone": 8680}, {"dno": 580, "division": "EN", "dname": "Biomedical Engineering", "room": "144", "building": "NEB", "dphone": 8482}, {"dno": 600, "division": "EN", "dname": "Computer Science", "room": "224", "building": "NEB", "dphone": 8577}], "minor_in": [{"stuid": 1004, "dno": 520}, {"stuid": 1005, "dno": 550}, {"stuid": 1006, "dno": 50}, {"stuid": 1007, "dno": 520}, {"stuid": 1008, "dno": 550}, {"stuid": 1014, "dno": 90}, {"stuid": 1015, "dno": 140}, {"stuid": 1016, "dno": 190}, {"stuid": 1027, "dno": 530}, {"stuid": 1031, "dno": 540}]}, "correct_code": "-- Load college_3__department data\ndepartment = load(\"department\")\n |> select(division, dphone, dno, building)\n\nprocessed = department\n |> compute(computed_val: dno * dphone)\n\nresult = processed\n |> sort_by(dphone, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_3__department data\ndepartment = load(\"department\")\n |> select(division, dphone, dno, building)\n\nprocessed = department\n |> compute(computed_val: dno * dphone)\n\nresult = processed\n |> sort_by(dphone, asc)\n |> take(3)\n\nemit result", "expected_output": [{"division": "EN", "dphone": 8680, "dno": 560, "building": "Latrobe", "computed_val": 4860800}, {"division": "EN", "dphone": 8577, "dno": 600, "building": "NEB", "computed_val": 5146200}, {"division": "EN", "dphone": 8482, "dno": 580, "building": "NEB", "computed_val": 4919560}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 9, "original": "|> sort_by(dphone, desc)", "mutated": "|> sort_by(dphone, asc)"}], "difficulty": "easy", "domain": "college_3__department", "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(other_log_details == \"u\")\n\nsummary = filtered_problem_log\n |> group_by(log_entry_fix)\n |> aggregate(total_problem_id: sum(problem_id), count: count())\n\nresult = summary\n |> sort_by(count, 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(other_log_details == \"u\")\n\nsummary = filtered_problem_log\n |> group_by(log_entry_fix)\n |> aggregate(total_problem_id: sum(problem_id), count: count())\n\nresult = summary\n |> sortby(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"log_entry_fix": "n", "total_problem_id": 12, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'sort_by' \u2192 'sortby'", "line_num": 12, "original": "|> sort_by(count, desc)", "mutated": "|> sortby(count, desc)"}], "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_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 > 38)\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(max_statusid: max(statusid), count: count())\n |> compute(computed_val: count / max_statusid)\n\nresult = summary\n |> sort_by(max_statusid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n\nfiltered_status = status\n |> filter(statusid > 38)\n\nsummary = filtered_status\n |> group_by(status)\n |> aggregate(max_statusid: max(statusid), count: count())\n |> compute(computed_val: count / max_statusid)\n\nresult = summary\n |> sort_by(max_statusid, desc)\n |> take(9)\n\nemit result", "expected_output": [{"status": "Seat", "max_statusid": 136, "count": 1, "computed_val": 0.007352941176470588}, {"status": "Brake duct", "max_statusid": 135, "count": 1, "computed_val": 0.007407407407407408}, {"status": "+38 Laps", "max_statusid": 134, "count": 1, "computed_val": 0.007462686567164179}, {"status": "+49 Laps", "max_statusid": 133, "count": 1, "computed_val": 0.007518796992481203}, {"status": "ERS", "max_statusid": 132, "count": 1, "computed_val": 0.007575757575757576}, {"status": "Power Unit", "max_statusid": 131, "count": 1, "computed_val": 0.007633587786259542}, {"status": "Collision damage", "max_statusid": 130, "count": 1, "computed_val": 0.007692307692307693}, {"status": "Engine misfire", "max_statusid": 129, "count": 1, "computed_val": 0.007751937984496124}, {"status": "+42 Laps", "max_statusid": 128, "count": 1, "computed_val": 0.0078125}, {"status": "+20 Laps", "max_statusid": 127, "count": 1, "computed_val": 0.007874015748031496}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 9", "line_num": 14, "original": "|> take(10)", "mutated": "|> take(9)"}], "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": {"works_on": [{"essn": 123456789, "pno": 1, "hours": 32.5}, {"essn": 123456789, "pno": 2, "hours": 7.5}, {"essn": 666884444, "pno": 3, "hours": 40.0}, {"essn": 453453453, "pno": 1, "hours": 20.0}, {"essn": 453453453, "pno": 2, "hours": 20.0}, {"essn": 333445555, "pno": 2, "hours": 10.0}, {"essn": 333445555, "pno": 3, "hours": 10.0}, {"essn": 333445555, "pno": 10, "hours": 10.0}, {"essn": 333445555, "pno": 20, "hours": 10.0}, {"essn": 999887777, "pno": 30, "hours": 30.0}, {"essn": 999887777, "pno": 10, "hours": 10.0}, {"essn": 987987987, "pno": 10, "hours": 35.0}, {"essn": 987987987, "pno": 30, "hours": 5.0}, {"essn": 987654321, "pno": 30, "hours": 20.0}, {"essn": 987654321, "pno": 20, "hours": 15.0}, {"essn": 888665555, "pno": 20, "hours": 0}]}, "correct_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n\nfiltered_works_on = works_on\n |> filter(hours > 7)\n\nresult = filtered_works_on\n |> sort_by(hours, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load company_1__works_on data\nworks_on = load(\"works_on\")\n\nfiltered_works_on = works_on\n |> filter(hours > hours)\n\nresult = filtered_works_on\n |> sort_by(hours, desc)\n |> take(10)\n\nemit result", "expected_output": [{"essn": 666884444, "pno": 3, "hours": 40.0}, {"essn": 987987987, "pno": 10, "hours": 35.0}, {"essn": 123456789, "pno": 1, "hours": 32.5}, {"essn": 999887777, "pno": 30, "hours": 30.0}, {"essn": 453453453, "pno": 1, "hours": 20.0}, {"essn": 453453453, "pno": 2, "hours": 20.0}, {"essn": 987654321, "pno": 30, "hours": 20.0}, {"essn": 987654321, "pno": 20, "hours": 15.0}, {"essn": 333445555, "pno": 2, "hours": 10.0}, {"essn": 333445555, "pno": 3, "hours": 10.0}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '7' \u2192 'hours'", "line_num": 5, "original": "|> filter(hours > 7)", "mutated": "|> filter(hours > hours)"}], "difficulty": "hard", "domain": "company_1__works_on", "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": {"route": [{"train_id": 1, "station_id": 1}, {"train_id": 1, "station_id": 2}, {"train_id": 1, "station_id": 3}, {"train_id": 2, "station_id": 1}, {"train_id": 2, "station_id": 3}, {"train_id": 2, "station_id": 7}, {"train_id": 3, "station_id": 4}, {"train_id": 4, "station_id": 6}, {"train_id": 4, "station_id": 2}, {"train_id": 5, "station_id": 1}, {"train_id": 6, "station_id": 5}, {"train_id": 7, "station_id": 4}, {"train_id": 7, "station_id": 5}, {"train_id": 7, "station_id": 8}, {"train_id": 8, "station_id": 8}, {"train_id": 9, "station_id": 7}, {"train_id": 9, "station_id": 8}, {"train_id": 10, "station_id": 9}], "train": [{"id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily"}, {"id": 2, "train_number": 16127, "name": "Guruvayur Express", "origin": "Chennai", "destination": "Guruvayur", "time": "22:10", "interval": "Daily"}, {"id": 3, "train_number": 16128, "name": "Guruvayur Express", "origin": "Guruvayur", "destination": "Chennai", "time": "4:49", "interval": "Daily"}, {"id": 4, "train_number": 16723, "name": "Ananthapuri Express", "origin": "Chennai", "destination": "Trivandrum", "time": "11:35", "interval": "Daily"}, {"id": 5, "train_number": 16382, "name": "Jayanthi Janatha Express", "origin": "Kanniyakumari", "destination": "Mumbai", "time": "06:30", "interval": "Daily"}, {"id": 6, "train_number": 16525, "name": "Island Express", "origin": "Kanniyakumari", "destination": "Bangalore", "time": "11:15", "interval": "Daily"}, {"id": 7, "train_number": 56701, "name": "Madurai Fast Passenger", "origin": "Quilon", "destination": "Madurai", "time": "21:49", "interval": "Daily"}, {"id": 8, "train_number": 56700, "name": "Quilon Fast Passenger", "origin": "Madurai", "destination": "Quilon Junction", "time": "04:55", "interval": "Daily"}, {"id": 9, "train_number": 16526, "name": "Island Express", "origin": "Bangalore", "destination": "Kanniyakumari", "time": "16:59", "interval": "Daily"}, {"id": 10, "train_number": 16381, "name": "Jayanthi Janatha Express", "origin": "Mumbai", "destination": "Kanniyakumari", "time": "10:38", "interval": "Daily"}, {"id": 11, "train_number": 16650, "name": "Parasuram Express", "origin": "Nagercoil", "destination": "Mangalore", "time": "04:20", "interval": "Daily"}]}, "correct_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(station_id <= 1)\n\n-- Load lookup data\ntrain = load(\"train\")\n |> select(id, destination, origin)\n\nenriched = join(filtered_route, train, on: train_id == id)\n |> compute(computed_val: station_id - train_id)\n\nresult = enriched\n |> sort_by(train_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(station_id <= 1)\n\n-- Load lookup data\ntrain = load(\"train\")\n |> select(id, destination, origin)\n\nenriched = join(filtered_route, train, on: id == train_id)\n |> compute(computed_val: station_id - train_id)\n\nresult = enriched\n |> sort_by(train_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"train_id": 1, "station_id": 1, "id": 1, "destination": "Chennai", "origin": "Trivandrum", "computed_val": 0}, {"train_id": 2, "station_id": 1, "id": 2, "destination": "Guruvayur", "origin": "Chennai", "computed_val": -1}, {"train_id": 5, "station_id": 1, "id": 5, "destination": "Mumbai", "origin": "Kanniyakumari", "computed_val": -4}], "bug_info": [{"category": "join_bug", "description": "Swapped join keys: 'train_id == id' \u2192 'id == train_id'", "line_num": 11, "original": "enriched = join(filtered_route, train, on: train_id == id)", "mutated": "enriched = join(filtered_route, train, on: id == train_id)"}], "difficulty": "hard", "domain": "station_weather__route", "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": {"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(order_status_code == \"Cancel\")\n |> filter(actual_order_id >= 7)\n |> select(order_status_code, regular_order_id, actual_order_id)\n\nresult = filtered_actual_orders\n |> sort_by(regular_order_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_orders data\nactual_orders = load(\"actual_orders\")\n\nfiltered_actual_orders = actual_orders\n |> filter(order_status_code == \"Cancel\")\n |> filter(actual_order_id >= 7)\n |> select(order_status_code, regular_order_id, order_status_code)\n\nresult = filtered_actual_orders\n |> sort_by(regular_order_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"order_status_code": "Cancel", "regular_order_id": 12, "actual_order_id": 12}, {"order_status_code": "Cancel", "regular_order_id": 11, "actual_order_id": 8}, {"order_status_code": "Cancel", "regular_order_id": 8, "actual_order_id": 13}, {"order_status_code": "Cancel", "regular_order_id": 7, "actual_order_id": 15}, {"order_status_code": "Cancel", "regular_order_id": 4, "actual_order_id": 11}, {"order_status_code": "Cancel", "regular_order_id": 4, "actual_order_id": 14}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'actual_order_id' \u2192 'order_status_code'", "line_num": 7, "original": "|> select(order_status_code, regular_order_id, actual_order_id)", "mutated": "|> select(order_status_code, regular_order_id, order_status_code)"}, {"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 10, "original": "|> sort_by(regular_order_id, desc)", "mutated": "|> sort_by(regular_order_id, asc)"}], "difficulty": "medium", "domain": "customer_deliveries__actual_orders", "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": {"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(city_code == \"PHL\")\n |> select(lname, advisor, stuid)\n\n-- Load lookup data\nsportsinfo = load(\"sportsinfo\")\n |> select(stuid, hoursperweek, onscholarship)\n\nenriched = join(filtered_student, sportsinfo, on: stuid == stuid)\n\nresult = enriched\n |> sort_by(stuid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(city_code == \"PH\")\n |> select(lname, advisor, stuid)\n\n-- Load lookup data\nsportsinfo = load(\"sportsinfo\")\n |> select(stuid, hoursperweek, onscholarship)\n\nenriched = join(filtered_student, sportsinfo, on: stuid == stuid)\n\nresult = enriched\n |> sort_by(stuid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"lname": "Woods", "advisor": 8722, "stuid": 1022, "hoursperweek": 29, "onscholarship": "N"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'PHL' \u2192 'PH'", "line_num": 5, "original": "|> filter(city_code == \"PHL\")", "mutated": "|> filter(city_code == \"PH\")"}], "difficulty": "hard", "domain": "game_1__student", "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": {"route": [{"train_id": 1, "station_id": 1}, {"train_id": 1, "station_id": 2}, {"train_id": 1, "station_id": 3}, {"train_id": 2, "station_id": 1}, {"train_id": 2, "station_id": 3}, {"train_id": 2, "station_id": 7}, {"train_id": 3, "station_id": 4}, {"train_id": 4, "station_id": 6}, {"train_id": 4, "station_id": 2}, {"train_id": 5, "station_id": 1}, {"train_id": 6, "station_id": 5}, {"train_id": 7, "station_id": 4}, {"train_id": 7, "station_id": 5}, {"train_id": 7, "station_id": 8}, {"train_id": 8, "station_id": 8}, {"train_id": 9, "station_id": 7}, {"train_id": 9, "station_id": 8}, {"train_id": 10, "station_id": 9}], "train": [{"id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily"}, {"id": 2, "train_number": 16127, "name": "Guruvayur Express", "origin": "Chennai", "destination": "Guruvayur", "time": "22:10", "interval": "Daily"}, {"id": 3, "train_number": 16128, "name": "Guruvayur Express", "origin": "Guruvayur", "destination": "Chennai", "time": "4:49", "interval": "Daily"}, {"id": 4, "train_number": 16723, "name": "Ananthapuri Express", "origin": "Chennai", "destination": "Trivandrum", "time": "11:35", "interval": "Daily"}, {"id": 5, "train_number": 16382, "name": "Jayanthi Janatha Express", "origin": "Kanniyakumari", "destination": "Mumbai", "time": "06:30", "interval": "Daily"}, {"id": 6, "train_number": 16525, "name": "Island Express", "origin": "Kanniyakumari", "destination": "Bangalore", "time": "11:15", "interval": "Daily"}, {"id": 7, "train_number": 56701, "name": "Madurai Fast Passenger", "origin": "Quilon", "destination": "Madurai", "time": "21:49", "interval": "Daily"}, {"id": 8, "train_number": 56700, "name": "Quilon Fast Passenger", "origin": "Madurai", "destination": "Quilon Junction", "time": "04:55", "interval": "Daily"}, {"id": 9, "train_number": 16526, "name": "Island Express", "origin": "Bangalore", "destination": "Kanniyakumari", "time": "16:59", "interval": "Daily"}, {"id": 10, "train_number": 16381, "name": "Jayanthi Janatha Express", "origin": "Mumbai", "destination": "Kanniyakumari", "time": "10:38", "interval": "Daily"}, {"id": 11, "train_number": 16650, "name": "Parasuram Express", "origin": "Nagercoil", "destination": "Mangalore", "time": "04:20", "interval": "Daily"}]}, "correct_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(train_id >= 1)\n\n-- Load lookup data\ntrain = load(\"train\")\n |> select(id, destination, name)\n\nenriched = join(filtered_route, train, on: train_id == id)\n |> compute(computed_val: train_id - station_id)\n\nresult = enriched\n |> sort_by(station_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load station_weather__route data\nroute = load(\"route\")\n\nfiltered_route = route\n |> filter(train_id >= 1)\n\n-- Load lookup data\ntrain = load(\"train\")\n |> select(name, destination, name)\n\nenriched = join(filtered_route, train, on: train_id == id)\n |> compute(computed_val: train_id - station_id)\n\nresult = enriched\n |> sort_by(station_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"train_id": 10, "station_id": 9, "id": 10, "destination": "Kanniyakumari", "name": "Jayanthi Janatha Express", "computed_val": 1}, {"train_id": 7, "station_id": 8, "id": 7, "destination": "Madurai", "name": "Madurai Fast Passenger", "computed_val": -1}, {"train_id": 8, "station_id": 8, "id": 8, "destination": "Quilon Junction", "name": "Quilon Fast Passenger", "computed_val": 0}, {"train_id": 9, "station_id": 8, "id": 9, "destination": "Kanniyakumari", "name": "Island Express", "computed_val": 1}, {"train_id": 2, "station_id": 7, "id": 2, "destination": "Guruvayur", "name": "Guruvayur Express", "computed_val": -5}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'id' \u2192 'name'", "line_num": 9, "original": "|> select(id, destination, name)", "mutated": "|> select(name, destination, name)"}], "difficulty": "medium", "domain": "station_weather__route", "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": {"timed_locations_of_things": [{"thing_id": 2, "date_and_time": "2016-10-12 12:03:07", "location_code": "064 Charles Mou"}, {"thing_id": 10, "date_and_time": "2016-12-29 00:39:19", "location_code": "288 Lang Ferry"}, {"thing_id": 10, "date_and_time": "2017-10-21 04:21:54", "location_code": "854 Keeling Sho"}, {"thing_id": 14, "date_and_time": "2017-03-19 19:28:13", "location_code": "1316 Morgan Spr"}, {"thing_id": 26, "date_and_time": "2016-04-26 16:34:09", "location_code": "192 Kub Rapids"}, {"thing_id": 45, "date_and_time": "2017-04-19 16:41:03", "location_code": "4667 Kellen Fie"}, {"thing_id": 45, "date_and_time": "2017-04-22 00:37:48", "location_code": "1313 Sawayn Riv"}, {"thing_id": 58, "date_and_time": "2016-08-04 00:25:55", "location_code": "94425 Nellie Kn"}, {"thing_id": 68, "date_and_time": "2017-03-06 01:56:27", "location_code": "4223 Rae Fork S"}, {"thing_id": 68, "date_and_time": "2017-08-31 13:54:13", "location_code": "9628 Bins Islan"}, {"thing_id": 85, "date_and_time": "2016-11-07 09:43:05", "location_code": "2677 Runolfsson"}, {"thing_id": 85, "date_and_time": "2017-01-02 23:26:47", "location_code": "26281 Holden Pa"}, {"thing_id": 85, "date_and_time": "2017-11-26 00:13:44", "location_code": "1537 Schmeler G"}, {"thing_id": 92, "date_and_time": "2017-03-19 13:57:49", "location_code": "113 Geo Glens A"}, {"thing_id": 92, "date_and_time": "2017-10-21 21:35:37", "location_code": "9569 Tanner Inl"}], "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_locations_of_things data\ntimed_locations_of_things = load(\"timed_locations_of_things\")\n\nsummary = timed_locations_of_things\n |> group_by(location_code)\n |> aggregate(avg_thing_id: avg(thing_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__timed_locations_of_things data\ntimed_locations_of_things = load(\"timed_locations_of_things\")\n\nsummary = timed_locations_of_things\n |> groupby(location_code)\n |> aggregate(avg_thing_id: avg(thing_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> tke(3)\n\nemit result", "expected_output": [{"location_code": "064 Charles Mou", "avg_thing_id": 2.0, "count": 1}, {"location_code": "288 Lang Ferry", "avg_thing_id": 10.0, "count": 1}, {"location_code": "854 Keeling Sho", "avg_thing_id": 10.0, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'take' \u2192 'tke'", "line_num": 10, "original": "|> take(3)", "mutated": "|> tke(3)"}, {"category": "syntax", "description": "Typo in keyword: 'group_by' \u2192 'groupby'", "line_num": 5, "original": "|> group_by(location_code)", "mutated": "|> groupby(location_code)"}], "difficulty": "easy", "domain": "local_govt_and_lot__timed_locations_of_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_hard
{"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(other_log_details)\n |> aggregate(total_assigned_to_staff_id: sum(assigned_to_staff_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 == \"assigned_to_staff_id\")\n\nsummary = filtered_problem_log\n |> group_by(other_log_details)\n |> aggregate(total_assigned_to_staff_id: sum(assigned_to_staff_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"other_log_details": "b", "total_assigned_to_staff_id": 12, "count": 1}, {"other_log_details": "u", "total_assigned_to_staff_id": 6, "count": 1}, {"other_log_details": "f", "total_assigned_to_staff_id": 10, "count": 1}, {"other_log_details": "o", "total_assigned_to_staff_id": 6, "count": 1}, {"other_log_details": "c", "total_assigned_to_staff_id": 8, "count": 1}, {"other_log_details": "d", "total_assigned_to_staff_id": 11, "count": 2}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'Reported' \u2192 'assigned_to_staff_id'", "line_num": 5, "original": "|> filter(problem_status_code == \"Reported\")", "mutated": "|> filter(problem_status_code == \"assigned_to_staff_id\")"}], "difficulty": "hard", "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_medium
{"datasets": {"constructorresults": [{"constructorresultsid": 1, "raceid": 18, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 2, "raceid": 18, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 3, "raceid": 18, "constructorid": 3, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 4, "raceid": 18, "constructorid": 4, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 5, "raceid": 18, "constructorid": 5, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 6, "raceid": 18, "constructorid": 6, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 7, "raceid": 18, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 8, "raceid": 18, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 9, "raceid": 18, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 10, "raceid": 18, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 11, "raceid": 18, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 12, "raceid": 19, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 13, "raceid": 19, "constructorid": 2, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 14, "raceid": 19, "constructorid": 1, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 15, "raceid": 19, "constructorid": 7, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 16, "raceid": 19, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 17, "raceid": 19, "constructorid": 4, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 18, "raceid": 19, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 19, "raceid": 19, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 20, "raceid": 19, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 21, "raceid": 19, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 22, "raceid": 19, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 23, "raceid": 20, "constructorid": 6, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 24, "raceid": 20, "constructorid": 2, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 25, "raceid": 20, "constructorid": 1, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 26, "raceid": 20, "constructorid": 7, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 27, "raceid": 20, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 28, "raceid": 20, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 29, "raceid": 20, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 30, "raceid": 20, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 31, "raceid": 20, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 32, "raceid": 20, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 33, "raceid": 20, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 34, "raceid": 21, "constructorid": 6, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 35, "raceid": 21, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 36, "raceid": 21, "constructorid": 2, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 37, "raceid": 21, "constructorid": 9, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 38, "raceid": 21, "constructorid": 11, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 39, "raceid": 21, "constructorid": 3, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 40, "raceid": 21, "constructorid": 7, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 41, "raceid": 21, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 42, "raceid": 21, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 43, "raceid": 21, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 44, "raceid": 21, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 45, "raceid": 22, "constructorid": 6, "points": 16.0, "status": "NULL"}, {"constructorresultsid": 46, "raceid": 22, "constructorid": 1, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 47, "raceid": 22, "constructorid": 2, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 48, "raceid": 22, "constructorid": 4, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 49, "raceid": 22, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 50, "raceid": 22, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 51, "raceid": 22, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 52, "raceid": 22, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 53, "raceid": 22, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 54, "raceid": 22, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 55, "raceid": 23, "constructorid": 1, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 56, "raceid": 23, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 57, "raceid": 23, "constructorid": 6, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 58, "raceid": 23, "constructorid": 9, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 59, "raceid": 23, "constructorid": 5, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 60, "raceid": 23, "constructorid": 11, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 61, "raceid": 23, "constructorid": 3, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 62, "raceid": 23, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 63, "raceid": 23, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 64, "raceid": 23, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 65, "raceid": 24, "constructorid": 2, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 66, "raceid": 24, "constructorid": 9, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 67, "raceid": 24, "constructorid": 7, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 68, "raceid": 24, "constructorid": 6, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 69, "raceid": 24, "constructorid": 11, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 70, "raceid": 24, "constructorid": 5, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 71, "raceid": 24, "constructorid": 1, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 72, "raceid": 24, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 73, "raceid": 24, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 74, "raceid": 24, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 75, "raceid": 25, "constructorid": 6, "points": 18.0, "status": "NULL"}, {"constructorresultsid": 76, "raceid": 25, "constructorid": 7, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 77, "raceid": 25, "constructorid": 1, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 78, "raceid": 25, "constructorid": 2, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 79, "raceid": 25, "constructorid": 9, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 80, "raceid": 25, "constructorid": 4, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 81, "raceid": 25, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 82, "raceid": 25, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 83, "raceid": 25, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 84, "raceid": 25, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 85, "raceid": 26, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 86, "raceid": 26, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 87, "raceid": 26, "constructorid": 11, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 88, "raceid": 26, "constructorid": 6, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 89, "raceid": 26, "constructorid": 4, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 90, "raceid": 26, "constructorid": 7, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 91, "raceid": 26, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 92, "raceid": 26, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 93, "raceid": 26, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 94, "raceid": 26, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 95, "raceid": 27, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 96, "raceid": 27, "constructorid": 4, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 97, "raceid": 27, "constructorid": 6, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 98, "raceid": 27, "constructorid": 2, "points": 7.0, "status": "NULL"}, {"constructorresultsid": 99, "raceid": 27, "constructorid": 5, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 100, "raceid": 27, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 101, "raceid": 27, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 102, "raceid": 27, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 103, "raceid": 27, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 104, "raceid": 27, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 105, "raceid": 28, "constructorid": 1, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 106, "raceid": 28, "constructorid": 7, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 107, "raceid": 28, "constructorid": 6, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 108, "raceid": 28, "constructorid": 4, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 109, "raceid": 28, "constructorid": 2, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 110, "raceid": 28, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 111, "raceid": 28, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 112, "raceid": 28, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 113, "raceid": 28, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 114, "raceid": 28, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 115, "raceid": 29, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 116, "raceid": 29, "constructorid": 1, "points": 13.0, "status": "NULL"}, {"constructorresultsid": 117, "raceid": 29, "constructorid": 2, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 118, "raceid": 29, "constructorid": 7, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 119, "raceid": 29, "constructorid": 5, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 120, "raceid": 29, "constructorid": 3, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 121, "raceid": 29, "constructorid": 4, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 122, "raceid": 29, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 123, "raceid": 29, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 124, "raceid": 29, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 125, "raceid": 30, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 126, "raceid": 30, "constructorid": 2, "points": 11.0, "status": "NULL"}, {"constructorresultsid": 127, "raceid": 30, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 128, "raceid": 30, "constructorid": 4, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 129, "raceid": 30, "constructorid": 5, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 130, "raceid": 30, "constructorid": 9, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 131, "raceid": 30, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 132, "raceid": 30, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 133, "raceid": 30, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 134, "raceid": 30, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 135, "raceid": 31, "constructorid": 5, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 136, "raceid": 31, "constructorid": 1, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 137, "raceid": 31, "constructorid": 2, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 138, "raceid": 31, "constructorid": 4, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 139, "raceid": 31, "constructorid": 6, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 140, "raceid": 31, "constructorid": 9, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 141, "raceid": 31, "constructorid": 7, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 142, "raceid": 31, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 143, "raceid": 31, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 144, "raceid": 31, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 145, "raceid": 32, "constructorid": 4, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 146, "raceid": 32, "constructorid": 3, "points": 9.0, "status": "NULL"}, {"constructorresultsid": 147, "raceid": 32, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 148, "raceid": 32, "constructorid": 7, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 149, "raceid": 32, "constructorid": 5, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 150, "raceid": 32, "constructorid": 2, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 151, "raceid": 32, "constructorid": 9, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 152, "raceid": 32, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 153, "raceid": 32, "constructorid": 6, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 154, "raceid": 32, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 155, "raceid": 33, "constructorid": 4, "points": 15.0, "status": "NULL"}, {"constructorresultsid": 156, "raceid": 33, "constructorid": 2, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 157, "raceid": 33, "constructorid": 6, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 158, "raceid": 33, "constructorid": 7, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 159, "raceid": 33, "constructorid": 5, "points": 3.0, "status": "NULL"}, {"constructorresultsid": 160, "raceid": 33, "constructorid": 9, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 161, "raceid": 33, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 162, "raceid": 33, "constructorid": 1, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 163, "raceid": 33, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 164, "raceid": 33, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 165, "raceid": 34, "constructorid": 1, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 166, "raceid": 34, "constructorid": 6, "points": 14.0, "status": "NULL"}, {"constructorresultsid": 167, "raceid": 34, "constructorid": 4, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 168, "raceid": 34, "constructorid": 2, "points": 7.0, "status": "NULL"}, {"constructorresultsid": 169, "raceid": 34, "constructorid": 7, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 170, "raceid": 34, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 171, "raceid": 34, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 172, "raceid": 34, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 173, "raceid": 34, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 174, "raceid": 34, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 175, "raceid": 35, "constructorid": 6, "points": 16.0, "status": "NULL"}, {"constructorresultsid": 176, "raceid": 35, "constructorid": 4, "points": 8.0, "status": "NULL"}, {"constructorresultsid": 177, "raceid": 35, "constructorid": 5, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 178, "raceid": 35, "constructorid": 1, "points": 6.0, "status": "NULL"}, {"constructorresultsid": 179, "raceid": 35, "constructorid": 7, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 180, "raceid": 35, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 181, "raceid": 35, "constructorid": 2, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 182, "raceid": 35, "constructorid": 3, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 183, "raceid": 35, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 184, "raceid": 35, "constructorid": 10, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 185, "raceid": 36, "constructorid": 6, "points": 13.0, "status": "NULL"}, {"constructorresultsid": 186, "raceid": 36, "constructorid": 1, "points": 14.0, "status": "D"}, {"constructorresultsid": 187, "raceid": 36, "constructorid": 2, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 188, "raceid": 36, "constructorid": 4, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 189, "raceid": 36, "constructorid": 3, "points": 2.0, "status": "NULL"}, {"constructorresultsid": 190, "raceid": 36, "constructorid": 7, "points": 1.0, "status": "NULL"}, {"constructorresultsid": 191, "raceid": 36, "constructorid": 11, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 192, "raceid": 36, "constructorid": 8, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 193, "raceid": 36, "constructorid": 9, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 194, "raceid": 36, "constructorid": 5, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 195, "raceid": 36, "constructorid": 12, "points": 0.0, "status": "NULL"}, {"constructorresultsid": 196, "raceid": 37, "constructorid": 1, "points": 18.0, "status": "D"}, {"constructorresultsid": 197, "raceid": 37, "constructorid": 6, "points": 10.0, "status": "NULL"}, {"constructorresultsid": 198, "raceid": 37, "constructorid": 2, "points": 5.0, "status": "NULL"}, {"constructorresultsid": 199, "raceid": 37, "constructorid": 4, "points": 4.0, "status": "NULL"}, {"constructorresultsid": 200, "raceid": 37, "constructorid": 7, "points": 2.0, "status": "NULL"}], "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__constructorresults data\nconstructorresults = load(\"constructorresults\")\n\nfiltered_constructorresults = constructorresults\n |> filter(constructorresultsid <= 83)\n\nsummary = filtered_constructorresults\n |> group_by(status)\n |> aggregate(avg_constructorid: avg(constructorid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__constructorresults data\nconstructorresults = load(\"constructorresults\")\n\nfiltered_constructorresults = constructorresults\n |> filter(constructorresultsid <= 83)\n\nsummary = filtered_constructorresults\n |> group_by(status)\n |> aggregate(constructorresultsid: avg(constructorid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"status": "NULL", "avg_constructorid": 5.855421686746988, "count": 83}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'avg_constructorid' \u2192 'constructorresultsid'", "line_num": 9, "original": "|> aggregate(avg_constructorid: avg(constructorid), count: count())", "mutated": "|> aggregate(constructorresultsid: avg(constructorid), count: count())"}], "difficulty": "medium", "domain": "formula_1__constructorresults", "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": {"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(sec_id == \"3\")\n |> filter(year > 2005)\n\nsummary = filtered_teaches\n |> group_by(course_id)\n |> aggregate(avg_year: avg(year), count: count())\n\n-- Load lookup data\nsection = load(\"section\")\n |> select(course_id, sec_id, year)\n\nenriched = join(summary, section, on: course_id == course_id)\n |> compute(computed_val: year / count)\n\nresult = enriched\n |> sort_by(year, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(sec_id == \"3\")\n |> filter(year > 2005)\n\nsummary = filtered_teaches\n |> group_by(course_id)\n |> aggregate(avg_year: avg(year), count: count())\n\n-- Load lookup data\nsection = load(\"section\")\n |> select(course_id, sec_id, year)\n\nenriched = join(summary, section, on: course_id == course_id)\n |> compute(computed_val: year / count)\n\nresult = enriched\n |> sort_by(year, desc)\n |> take(2)\n\nemit result", "expected_output": [{"course_id": "362", "avg_year": 2008.0, "count": 1, "sec_id": "3", "year": 2008, "computed_val": 2008.0}, {"course_id": "362", "avg_year": 2008.0, "count": 1, "sec_id": "2", "year": 2006, "computed_val": 2006.0}, {"course_id": "362", "avg_year": 2008.0, "count": 1, "sec_id": "1", "year": 2005, "computed_val": 2005.0}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 2", "line_num": 21, "original": "|> take(3)", "mutated": "|> take(2)"}], "difficulty": "hard", "domain": "college_2__teaches", "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": {"product_characteristics": [{"product_id": 13, "characteristic_id": 13, "product_characteristic_value": "low"}, {"product_id": 11, "characteristic_id": 2, "product_characteristic_value": "low"}, {"product_id": 5, "characteristic_id": 15, "product_characteristic_value": "low"}, {"product_id": 1, "characteristic_id": 13, "product_characteristic_value": "low"}, {"product_id": 7, "characteristic_id": 12, "product_characteristic_value": "low"}, {"product_id": 11, "characteristic_id": 6, "product_characteristic_value": "low"}, {"product_id": 7, "characteristic_id": 2, "product_characteristic_value": "medium"}, {"product_id": 12, "characteristic_id": 10, "product_characteristic_value": "medium"}, {"product_id": 8, "characteristic_id": 11, "product_characteristic_value": "high"}, {"product_id": 14, "characteristic_id": 4, "product_characteristic_value": "medium"}, {"product_id": 11, "characteristic_id": 3, "product_characteristic_value": "medium"}, {"product_id": 6, "characteristic_id": 15, "product_characteristic_value": "high"}, {"product_id": 11, "characteristic_id": 3, "product_characteristic_value": "high"}, {"product_id": 6, "characteristic_id": 10, "product_characteristic_value": "high"}, {"product_id": 12, "characteristic_id": 2, "product_characteristic_value": "high"}], "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}]}, "correct_code": "-- Load products_gen_characteristics__product_characteristics data\nproduct_characteristics = load(\"product_characteristics\")\n\nfiltered_product_characteristics = product_characteristics\n |> filter(product_characteristic_value == \"medium\")\n |> filter(characteristic_id <= 5)\n |> select(characteristic_id, product_characteristic_value, product_id)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(avg_product_id: avg(product_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__product_characteristics data\nproduct_characteristics = load(\"product_characteristics\")\n\nfiltered_product_characteristics = product_characteristics\n |> filter(product_characteristic_value == \"medium\")\n |> filter(characteristic_id <= 0)\n |> select(characteristic_id, product_characteristic_value, product_id)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(avg_product_id: avg(product_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"product_characteristic_value": "medium", "avg_product_id": 10.666666666666666, "count": 3}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 5 \u2192 0", "line_num": 6, "original": "|> filter(characteristic_id <= 5)", "mutated": "|> filter(characteristic_id <= 0)"}], "difficulty": "hard", "domain": "products_gen_characteristics__product_characteristics", "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": {"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(appelation == \"Santa Barbara County\")\n |> select(drink, year, grape, name, no)\n\n-- Load lookup data\ngrapes = load(\"grapes\")\n |> select(grape, color, id)\n\nenriched = join(filtered_wine, grapes, on: grape == grape)\n\nresult = enriched\n |> sort_by(no, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load wine_1__wine data\nwine = load(\"wine\")\n\nfiltered_wine = wine\n |> filter(appelation == \"Santa Barbara Count\")\n |> select(drink, year, grape, name, no)\n\n-- Load lookup data\ngrapes = load(\"grapes\")\n |> select(grape, color, id)\n\nenriched = join(filtered_wine, grapes, on: grape == grape)\n\nresult = enriched\n |> sort_by(no, desc)\n |> take(6)\n\nemit result", "expected_output": [{"drink": "now", "year": 2008, "grape": "Syrah", "name": "Syrah", "no": 175, "color": "Red", "id": 17}, {"drink": "now", "year": 2009, "grape": "Syrah", "name": "Colson Canyon Vineyard", "no": 170, "color": "Red", "id": 17}, {"drink": "now", "year": 2008, "grape": "Syrah", "name": "White Hawk Vineyard", "no": 160, "color": "Red", "id": 17}, {"drink": "now", "year": 2008, "grape": "Syrah", "name": "Larner Vinyard", "no": 159, "color": "Red", "id": 17}, {"drink": "now", "year": 2009, "grape": "Petite Sirah", "name": "Thompson Vineyard", "no": 125, "color": "Red", "id": 11}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Santa Barbara County' \u2192 'Santa Barbara Count'", "line_num": 5, "original": "|> filter(appelation == \"Santa Barbara County\")", "mutated": "|> filter(appelation == \"Santa Barbara Count\")"}, {"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 6", "line_num": 16, "original": "|> take(5)", "mutated": "|> take(6)"}], "difficulty": "medium", "domain": "wine_1__wine", "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": {"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\nprocessed = actual_order_products\n |> compute(computed_val: product_id / actual_order_id)\n\nresult = processed\n |> sort_by(product_id, asc)\n |> take(5)\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\nprocessed = actual_order_products\n |> compute(computed_val: product_id / actual_order_id)\n\nresult = processed\n |> sort_by(product_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"actual_order_id": 2, "product_id": 1, "computed_val": 0.5}, {"actual_order_id": 3, "product_id": 1, "computed_val": 0.3333333333333333}, {"actual_order_id": 3, "product_id": 1, "computed_val": 0.3333333333333333}, {"actual_order_id": 9, "product_id": 2, "computed_val": 0.2222222222222222}, {"actual_order_id": 3, "product_id": 2, "computed_val": 0.6666666666666666}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 3", "line_num": 10, "original": "|> take(5)", "mutated": "|> take(3)"}], "difficulty": "hard", "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": {"product_characteristics": [{"product_id": 13, "characteristic_id": 13, "product_characteristic_value": "low"}, {"product_id": 11, "characteristic_id": 2, "product_characteristic_value": "low"}, {"product_id": 5, "characteristic_id": 15, "product_characteristic_value": "low"}, {"product_id": 1, "characteristic_id": 13, "product_characteristic_value": "low"}, {"product_id": 7, "characteristic_id": 12, "product_characteristic_value": "low"}, {"product_id": 11, "characteristic_id": 6, "product_characteristic_value": "low"}, {"product_id": 7, "characteristic_id": 2, "product_characteristic_value": "medium"}, {"product_id": 12, "characteristic_id": 10, "product_characteristic_value": "medium"}, {"product_id": 8, "characteristic_id": 11, "product_characteristic_value": "high"}, {"product_id": 14, "characteristic_id": 4, "product_characteristic_value": "medium"}, {"product_id": 11, "characteristic_id": 3, "product_characteristic_value": "medium"}, {"product_id": 6, "characteristic_id": 15, "product_characteristic_value": "high"}, {"product_id": 11, "characteristic_id": 3, "product_characteristic_value": "high"}, {"product_id": 6, "characteristic_id": 10, "product_characteristic_value": "high"}, {"product_id": 12, "characteristic_id": 2, "product_characteristic_value": "high"}], "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}]}, "correct_code": "-- Load products_gen_characteristics__product_characteristics data\nproduct_characteristics = load(\"product_characteristics\")\n\nfiltered_product_characteristics = product_characteristics\n |> filter(product_characteristic_value == \"medium\")\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(max_product_id: max(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__product_characteristics data\nproduct_characteristics = load(\"product_characteristics\")\n\nfiltered_product_characteristics = product_characteristics\n filter(product_characteristic_value == \"medium\")\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(max_product_id: max(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"product_characteristic_value": "medium", "max_product_id": 14, "count": 4}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(product_characteristic_value == \"medium\")", "mutated": "filter(product_characteristic_value == \"medium\")"}], "difficulty": "easy", "domain": "products_gen_characteristics__product_characteristics", "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": {"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 == \"52647\")\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(52647 == \"52647\")\n |> select(i_id, s_id)\n\nemit filtered_advisor", "expected_output": [{"i_id": "52647", "s_id": "57985"}, {"i_id": "52647", "s_id": "21126"}, {"i_id": "52647", "s_id": "64938"}, {"i_id": "52647", "s_id": "91063"}, {"i_id": "52647", "s_id": "48462"}, {"i_id": "52647", "s_id": "64140"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'i_id' \u2192 '52647'", "line_num": 5, "original": "|> filter(i_id == \"52647\")", "mutated": "|> filter(52647 == \"52647\")"}], "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_status_code == \"Provisional\")\n |> filter(guest_id < 6)\n |> select(booking_status_code, guest_id, apt_booking_id, apt_id)\n\n-- Load lookup data\napartments = load(\"apartments\")\n |> select(apt_id, apt_type_code, apt_number)\n\nenriched = join(filtered_apartment_bookings, apartments, on: apt_id == apt_id)\n\nresult = enriched\n |> sort_by(apt_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load apartment_rentals__apartment_bookings data\napartment_bookings = load(\"apartment_bookings\")\n\nfiltered_apartment_bookings = apartment_bookings\n |> filter(guest_id == \"Provisional\")\n |> filter(guest_id < 6)\n |> select(booking_status_code, guest_id, apt_booking_id, apt_id)\n\n-- Load lookup data\napartments = load(\"apartments\")\n |> select(apt_id, apt_type_code, apt_number)\n\nenriched = join(filtered_apartment_bookings, apartments, on: apt_id == apt_id)\n\nresult = enriched\n |> sort_by(apt_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"booking_status_code": "Provisional", "guest_id": 2, "apt_booking_id": 577, "apt_id": 12, "apt_type_code": "Duplex", "apt_number": "Apt. 477"}, {"booking_status_code": "Provisional", "guest_id": 2, "apt_booking_id": 807, "apt_id": 11, "apt_type_code": "Flat", "apt_number": "Apt. 794"}, {"booking_status_code": "Provisional", "guest_id": 2, "apt_booking_id": 258, "apt_id": 10, "apt_type_code": "Duplex", "apt_number": "Apt. 859"}, {"booking_status_code": "Provisional", "guest_id": 5, "apt_booking_id": 337, "apt_id": 8, "apt_type_code": "Flat", "apt_number": "Suite 693"}, {"booking_status_code": "Provisional", "guest_id": 3, "apt_booking_id": 575, "apt_id": 6, "apt_type_code": "Studio", "apt_number": "Apt. 187"}, {"booking_status_code": "Provisional", "guest_id": 5, "apt_booking_id": 623, "apt_id": 4, "apt_type_code": "Duplex", "apt_number": "Suite 749"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'booking_status_code' \u2192 'guest_id'", "line_num": 5, "original": "|> filter(booking_status_code == \"Provisional\")", "mutated": "|> filter(guest_id == \"Provisional\")"}], "difficulty": "medium", "domain": "apartment_rentals__apartment_bookings", "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": {"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(role_code == \"leader\")\n\nsummary = filtered_project_staff\n |> group_by(date_to)\n |> aggregate(avg_other_details: avg(other_details), count: count())\n\nresult = summary\n |> sort_by(avg_other_details, desc)\n |> take(10)\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(role_code == \"leader\")\n\nsummary = filtered_project_staff\n |> grp_by(date_to)\n |> aggregate(avg_other_details: avg(other_details), count: count())\n\nresult = summary\n |> sort_by(avg_other_details, desc)\n |> take(10)\n\nemit result", "expected_output": [{"date_to": "1985-05-30 22:26:30", "avg_other_details": 0.0, "count": 1}, {"date_to": "2010-12-08 11:55:36", "avg_other_details": 0.0, "count": 1}, {"date_to": "1988-03-04 19:30:05", "avg_other_details": 0.0, "count": 1}, {"date_to": "1983-03-19 16:06:31", "avg_other_details": 0.0, "count": 1}, {"date_to": "2008-09-25 20:06:28", "avg_other_details": 0.0, "count": 1}, {"date_to": "1985-09-22 09:06:08", "avg_other_details": 0.0, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'group_by' \u2192 'grp_by'", "line_num": 8, "original": "|> group_by(date_to)", "mutated": "|> grp_by(date_to)"}], "difficulty": "easy", "domain": "tracking_grants_for_research__project_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": {"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 |> select(status, statusid)\n\nsummary = 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", "buggy_code": "-- Load formula_1__status data\nstatus = load(\"status\")\n |> select(status, statusid)\n\nsummary = 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", "expected_output": [{"status": "Seat", "max_statusid": 136, "count": 1}, {"status": "Brake duct", "max_statusid": 135, "count": 1}, {"status": "+38 Laps", "max_statusid": 134, "count": 1}, {"status": "+49 Laps", "max_statusid": 133, "count": 1}, {"status": "ERS", "max_statusid": 132, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 10, "original": "|> sort_by(max_statusid, desc)", "mutated": "|> sort_by(max_statusid, asc)"}], "difficulty": "medium", "domain": "formula_1__status", "num_nodes": 3, "has_join": false}