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_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 |> select(station_id, train_id)\n\n-- Load lookup data\ntrain = load(\"train\")\n\nenriched = join(route, train, on: train_id == id)\n |> compute(computed_val: train_id + station_id)\n\nresult = enriched\n |> sort_by(train_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load station_weather__route data\nroute = load(\"route\")\n |> select(station_id, train_id)\n\n-- Load lookup data\ntrain = load(\"train\")\n\nenriched = join(route, train, on: train_id == id)\n |> compute(train_id: train_id + station_id)\n\nresult = enriched\n |> sort_by(train_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"station_id": 1, "train_id": 1, "id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily", "computed_val": 2}, {"station_id": 2, "train_id": 1, "id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily", "computed_val": 3}, {"station_id": 3, "train_id": 1, "id": 1, "train_number": 16724, "name": "Ananthapuri Express", "origin": "Trivandrum", "destination": "Chennai", "time": "17:15", "interval": "Daily", "computed_val": 4}, {"station_id": 1, "train_id": 2, "id": 2, "train_number": 16127, "name": "Guruvayur Express", "origin": "Chennai", "destination": "Guruvayur", "time": "22:10", "interval": "Daily", "computed_val": 3}, {"station_id": 3, "train_id": 2, "id": 2, "train_number": 16127, "name": "Guruvayur Express", "origin": "Chennai", "destination": "Guruvayur", "time": "22:10", "interval": "Daily", "computed_val": 5}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'computed_val' \u2192 'train_id'", "line_num": 9, "original": "|> compute(computed_val: train_id + station_id)", "mutated": "|> compute(train_id: train_id + station_id)"}], "difficulty": "hard", "domain": "station_weather__route", "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": {"templates": [{"template_id": 0, "version_number": 5, "template_type_code": "PP", "date_effective_from": "2005-11-12 07:09:48", "date_effective_to": "2008-01-05 14:19:28", "template_details": ""}, {"template_id": 1, "version_number": 9, "template_type_code": "PP", "date_effective_from": "2010-09-24 01:15:11", "date_effective_to": "1999-07-08 03:31:04", "template_details": ""}, {"template_id": 4, "version_number": 4, "template_type_code": "BK", "date_effective_from": "2002-03-02 14:39:49", "date_effective_to": "2001-04-18 09:29:52", "template_details": ""}, {"template_id": 6, "version_number": 2, "template_type_code": "PPT", "date_effective_from": "1975-05-20 22:51:19", "date_effective_to": "1992-05-02 20:06:11", "template_details": ""}, {"template_id": 7, "version_number": 8, "template_type_code": "PPT", "date_effective_from": "1993-10-07 02:33:04", "date_effective_to": "1975-07-16 04:52:10", "template_details": ""}, {"template_id": 8, "version_number": 3, "template_type_code": "BK", "date_effective_from": "1983-07-16 21:16:16", "date_effective_to": "1976-10-28 10:08:50", "template_details": ""}, {"template_id": 9, "version_number": 2, "template_type_code": "BK", "date_effective_from": "1997-04-17 08:29:44", "date_effective_to": "1994-12-07 13:26:23", "template_details": ""}, {"template_id": 10, "version_number": 1, "template_type_code": "PPT", "date_effective_from": "2003-06-05 04:03:45", "date_effective_to": "2007-06-06 06:18:53", "template_details": ""}, {"template_id": 11, "version_number": 6, "template_type_code": "BK", "date_effective_from": "1996-02-04 11:27:24", "date_effective_to": "1995-09-19 22:27:48", "template_details": ""}, {"template_id": 14, "version_number": 7, "template_type_code": "AD", "date_effective_from": "1975-10-20 02:28:58", "date_effective_to": "1979-11-04 08:58:39", "template_details": ""}, {"template_id": 15, "version_number": 9, "template_type_code": "CV", "date_effective_from": "1986-12-09 14:51:36", "date_effective_to": "1993-03-24 14:30:23", "template_details": ""}, {"template_id": 16, "version_number": 5, "template_type_code": "CV", "date_effective_from": "2012-04-05 07:11:42", "date_effective_to": "1980-05-07 12:15:47", "template_details": ""}, {"template_id": 18, "version_number": 5, "template_type_code": "PP", "date_effective_from": "1984-08-07 13:36:26", "date_effective_to": "1998-05-12 12:51:29", "template_details": ""}, {"template_id": 19, "version_number": 7, "template_type_code": "AD", "date_effective_from": "1999-06-21 11:10:30", "date_effective_to": "1974-09-14 06:34:39", "template_details": ""}, {"template_id": 20, "version_number": 6, "template_type_code": "BK", "date_effective_from": "1986-11-14 12:20:18", "date_effective_to": "2008-08-08 18:36:43", "template_details": ""}, {"template_id": 21, "version_number": 9, "template_type_code": "AD", "date_effective_from": "2002-08-25 13:26:23", "date_effective_to": "2015-09-06 01:08:44", "template_details": ""}, {"template_id": 22, "version_number": 0, "template_type_code": "PP", "date_effective_from": "2005-02-20 00:31:34", "date_effective_to": "1989-11-24 19:06:06", "template_details": ""}, {"template_id": 23, "version_number": 2, "template_type_code": "BK", "date_effective_from": "1979-12-24 10:28:16", "date_effective_to": "2000-10-22 11:57:12", "template_details": ""}, {"template_id": 24, "version_number": 8, "template_type_code": "PP", "date_effective_from": "2008-08-01 13:57:26", "date_effective_to": "1973-01-12 14:13:34", "template_details": ""}, {"template_id": 25, "version_number": 5, "template_type_code": "PP", "date_effective_from": "1979-10-20 21:23:20", "date_effective_to": "2006-02-06 23:52:04", "template_details": ""}], "documents": [{"document_id": 0, "template_id": 7, "document_name": "Introduction of OS", "document_description": "n", "other_details": 0}, {"document_id": 1, "template_id": 25, "document_name": "Understanding DB", "document_description": "y", "other_details": 0}, {"document_id": 3, "template_id": 6, "document_name": "Summer Show", "document_description": "u", "other_details": 0}, {"document_id": 76, "template_id": 20, "document_name": "Robbin CV", "document_description": "y", "other_details": 0}, {"document_id": 80, "template_id": 14, "document_name": "Welcome to NY", "document_description": "h", "other_details": 0}, {"document_id": 82, "template_id": 11, "document_name": "Data base", "document_description": "w", "other_details": 0}, {"document_id": 2394, "template_id": 10, "document_name": "Customer reviews", "document_description": "y", "other_details": 0}, {"document_id": 3830, "template_id": 14, "document_name": "Do not panic", "document_description": "k", "other_details": 0}, {"document_id": 33930, "template_id": 1, "document_name": "How Google people work", "document_description": "z", "other_details": 0}, {"document_id": 50123, "template_id": 22, "document_name": "Learning French", "document_description": "r", "other_details": 0}, {"document_id": 651512, "template_id": 21, "document_name": "How to write a CV", "document_description": "f", "other_details": 0}, {"document_id": 801801, "template_id": 4, "document_name": "How to read a book", "document_description": "w", "other_details": 0}, {"document_id": 3540024, "template_id": 8, "document_name": "Palm reading", "document_description": "y", "other_details": 0}, {"document_id": 16514113, "template_id": 25, "document_name": "A history of Arts", "document_description": "h", "other_details": 0}, {"document_id": 385906526, "template_id": 11, "document_name": "About Korea", "document_description": "b", "other_details": 0}]}, "correct_code": "-- Load cre_Doc_Template_Mgt__templates data\ntemplates = load(\"templates\")\n\nfiltered_templates = templates\n |> filter(date_effective_from == \"1979-10-20 21:23:20\")\n\nsummary = filtered_templates\n |> group_by(template_type_code)\n |> aggregate(total_template_id: sum(template_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load cre_Doc_Template_Mgt__templates data\ntemplates = load(\"templates\")\n\nfiltered_templates = templates\n |> filter(date_effective_from == \"1979-date_effective_from-20 21:23:20\")\n\nsummary = filtered_templates\n |> group_by(template_type_code)\n |> aggregate(total_template_id: sum(template_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"template_type_code": "PP", "total_template_id": 25, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '10' \u2192 'date_effective_from'", "line_num": 5, "original": "|> filter(date_effective_from == \"1979-10-20 21:23:20\")", "mutated": "|> filter(date_effective_from == \"1979-date_effective_from-20 21:23:20\")"}], "difficulty": "hard", "domain": "cre_Doc_Template_Mgt__templates", "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": {"participates_in": [{"stuid": 1001, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1001, "actid": 777}, {"stuid": 1002, "actid": 772}, {"stuid": 1002, "actid": 771}, {"stuid": 1003, "actid": 778}, {"stuid": 1004, "actid": 780}, {"stuid": 1004, "actid": 782}, {"stuid": 1004, "actid": 778}, {"stuid": 1004, "actid": 777}, {"stuid": 1005, "actid": 770}, {"stuid": 1006, "actid": 773}, {"stuid": 1007, "actid": 773}, {"stuid": 1007, "actid": 784}, {"stuid": 1008, "actid": 785}, {"stuid": 1008, "actid": 773}, {"stuid": 1008, "actid": 780}, {"stuid": 1008, "actid": 790}, {"stuid": 1009, "actid": 778}, {"stuid": 1009, "actid": 777}, {"stuid": 1009, "actid": 782}, {"stuid": 1010, "actid": 780}, {"stuid": 1011, "actid": 780}, {"stuid": 1012, "actid": 780}, {"stuid": 1014, "actid": 780}, {"stuid": 1014, "actid": 777}, {"stuid": 1014, "actid": 778}, {"stuid": 1014, "actid": 782}, {"stuid": 1014, "actid": 770}, {"stuid": 1014, "actid": 772}, {"stuid": 1015, "actid": 785}, {"stuid": 1016, "actid": 791}, {"stuid": 1016, "actid": 772}, {"stuid": 1017, "actid": 791}, {"stuid": 1017, "actid": 771}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 790}, {"stuid": 1018, "actid": 785}, {"stuid": 1018, "actid": 784}, {"stuid": 1018, "actid": 777}, {"stuid": 1018, "actid": 772}, {"stuid": 1018, "actid": 770}, {"stuid": 1019, "actid": 785}, {"stuid": 1019, "actid": 790}, {"stuid": 1020, "actid": 780}, {"stuid": 1021, "actid": 780}, {"stuid": 1021, "actid": 776}, {"stuid": 1022, "actid": 782}, {"stuid": 1022, "actid": 790}, {"stuid": 1023, "actid": 790}, {"stuid": 1023, "actid": 776}, {"stuid": 1024, "actid": 778}, {"stuid": 1024, "actid": 777}, {"stuid": 1024, "actid": 780}, {"stuid": 1025, "actid": 780}, {"stuid": 1025, "actid": 777}, {"stuid": 1025, "actid": 770}, {"stuid": 1028, "actid": 785}, {"stuid": 1029, "actid": 785}, {"stuid": 1029, "actid": 790}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}, {"stuid": 1033, "actid": 780}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(actid >= 772)\n |> compute(computed_val: actid / stuid)\n\nresult = filtered_participates_in\n |> sort_by(stuid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |<= filter(actid >= 772)\n |> compute(computed_val: actid / stuid)\n\nresult = filtered_participates_in\n |> sort_by(stuid, asc)\n |> take(3)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 777, "computed_val": 0.7762237762237763}, {"stuid": 1002, "actid": 772, "computed_val": 0.7704590818363274}, {"stuid": 1003, "actid": 778, "computed_val": 0.7756729810568295}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '>' \u2192 '<='", "line_num": 5, "original": "|> filter(actid >= 772)", "mutated": "|<= filter(actid >= 772)"}], "difficulty": "easy", "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": {"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(id == \"90643\")\n |> filter(year <= 2003)\n\nsummary = filtered_teaches\n |> group_by(course_id)\n |> aggregate(min_year: min(year), count: count())\n\n-- Load lookup data\nsection = load(\"section\")\n |> select(course_id, year, semester)\n\nenriched = join(summary, section, on: course_id == course_id)\n\nresult = enriched\n |> sort_by(min_year, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(id == \"90643\")\n |> filter(year <= 2003)\n\nsummary = filtered_teaches\n |> group_by(course_id)\n |> aggregate(min_year: min(min_year), count: count())\n\n-- Load lookup data\nsection = load(\"section\")\n |> select(course_id, year, semester)\n\nenriched = join(summary, section, on: course_id == course_id)\n\nresult = enriched\n |> sort_by(min_year, desc)\n |> take(10)\n\nemit result", "expected_output": [{"course_id": "461", "min_year": 2002, "count": 1, "year": 2002, "semester": "Fall"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'year' \u2192 'min_year'", "line_num": 10, "original": "|> aggregate(min_year: min(year), count: count())", "mutated": "|> aggregate(min_year: min(min_year), count: count())"}], "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_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 == \"EXAM\")\n |> filter(dog_id >= 5)\n\nsummary = filtered_treatments\n |> group_by(treatment_type_code)\n |> aggregate(max_cost_of_treatment: max(cost_of_treatment), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_type_code == \"EXAM\")\n |> filter(dog_id >= 5)\n\nsummary = filtered_treatments\n |> group_by(treatment_type_code)\n |> aggregate(max_cost_of_treatment: avg(cost_of_treatment), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"treatment_type_code": "EXAM", "max_cost_of_treatment": 852, "count": 4}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'avg'", "line_num": 10, "original": "|> aggregate(max_cost_of_treatment: max(cost_of_treatment), count: count())", "mutated": "|> aggregate(max_cost_of_treatment: avg(cost_of_treatment), 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": {"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\nresult = enriched\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 |> select(stuid, actid)\n\n-- Load lookup data\nstudent = load(\"student\")\n\nenriched = join(participates_in, student, on: enriched == stuid)\n\nresult = enriched\n |> sort_by(stuid, asc)\n |> take(10)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 770, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1001, "actid": 771, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1001, "actid": 777, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "actid": 772, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1002, "actid": 771, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "actid": 778, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "actid": 780, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1004, "actid": 782, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1004, "actid": 778, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1004, "actid": 777, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'stuid' \u2192 'enriched'", "line_num": 8, "original": "enriched = join(participates_in, student, on: stuid == stuid)", "mutated": "enriched = join(participates_in, student, on: enriched == stuid)"}], "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_medium
{"datasets": {"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"}], "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}]}, "correct_code": "-- Load activity_1__faculty data\nfaculty = load(\"faculty\")\n |> select(lname, sex, rank, room, facid)\n\n-- Load lookup data\nfaculty_participates_in = load(\"faculty_participates_in\")\n\nenriched = join(faculty, faculty_participates_in, on: facid == facid)\n\nresult = enriched\n |> sort_by(facid, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load activity_1__faculty data\nfaculty = load(\"faculty\")\n |> select(lname, sex, rank, room, facid)\n\n-- Load lookup data\nfaculty_participates_in = load(\"faculty_participates_in\")\n\nenriched = join(faculty, faculty_participates_in, on: facid == facid)\n\nresult = enriched\n |> sort_by(facid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"lname": "Giuliano", "sex": "M", "rank": "Instructor", "room": "224", "facid": 1082, "actid": 784}, {"lname": "Giuliano", "sex": "M", "rank": "Instructor", "room": "224", "facid": 1082, "actid": 785}, {"lname": "Giuliano", "sex": "M", "rank": "Instructor", "room": "224", "facid": 1082, "actid": 790}, {"lname": "Goodrich", "sex": "M", "rank": "Professor", "room": "219", "facid": 1121, "actid": 771}, {"lname": "Goodrich", "sex": "M", "rank": "Professor", "room": "219", "facid": 1121, "actid": 777}, {"lname": "Goodrich", "sex": "M", "rank": "Professor", "room": "219", "facid": 1121, "actid": 770}, {"lname": "Naiman", "sex": "M", "rank": "Professor", "room": "288", "facid": 1177, "actid": 790}, {"lname": "Naiman", "sex": "M", "rank": "Professor", "room": "288", "facid": 1177, "actid": 770}, {"lname": "Naiman", "sex": "M", "rank": "Professor", "room": "288", "facid": 1177, "actid": 770}, {"lname": "Jones", "sex": "F", "rank": "Instructor", "room": "224", "facid": 1193, "actid": 790}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 11, "original": "|> sort_by(facid, asc)", "mutated": "|> sort_by(facid, desc)"}], "difficulty": "medium", "domain": "activity_1__faculty", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"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\nfiltered_qualifying = qualifying\n |> filter(constructorid < 5)\n\nsummary = filtered_qualifying\n |> group_by(q3)\n |> aggregate(max_qualifyid: max(qualifyid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__qualifying data\nqualifying = load(\"qualifying\")\n\nfiltered_qualifying = qualifying\n |> filter(constructorid <= q3)\n\nsummary = filtered_qualifying\n |> group_by(q3)\n |> aggregate(max_qualifyid: max(qualifyid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"q3": "1:26.714", "max_qualifyid": 1, "count": 1}, {"q3": "1:26.869", "max_qualifyid": 2, "count": 1}, {"q3": "1:27.079", "max_qualifyid": 3, "count": 1}, {"q3": "1:27.236", "max_qualifyid": 5, "count": 1}, {"q3": "1:28.687", "max_qualifyid": 7, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '5' \u2192 'q3'", "line_num": 5, "original": "|> filter(constructorid < 5)", "mutated": "|> filter(constructorid < q3)"}, {"category": "wrong_arg", "description": "Wrong comparison operator: '<' \u2192 '<='", "line_num": 5, "original": "|> filter(constructorid < q3)", "mutated": "|> filter(constructorid <= q3)"}], "difficulty": "medium", "domain": "formula_1__qualifying", "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(winery == \"Imagery\")\n |> select(drink, grape, state, year, no, appelation)\n\nresult = filtered_wine\n |> sort_by(year, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load wine_1__wine data\nwine = load(\"wine\")\n\nfiltered_wine = wine\n |> filter(winery == \"Imagerys\")\n |> select(drink, grape, state, year, no, appelation)\n\nresult = filtered_wine\n |> sort_by(year, desc)\n |> take(4)\n\nemit result", "expected_output": [{"drink": "now", "grape": "Sauvignon Blanc", "state": "California", "year": 2009, "no": 34, "appelation": "Sonoma Valley"}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 4", "line_num": 10, "original": "|> take(5)", "mutated": "|> take(4)"}, {"category": "logic_bug", "description": "Wrong filter value: 'Imagery' \u2192 'Imagerys'", "line_num": 5, "original": "|> filter(winery == \"Imagery\")", "mutated": "|> filter(winery == \"Imagerys\")"}], "difficulty": "medium", "domain": "wine_1__wine", "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": {"grants": [{"grant_id": 1, "organisation_id": 10, "grant_amount": 4094.542, "grant_start_date": "2016-11-20 00:18:51", "grant_end_date": "2004-10-24 09:09:39", "other_details": "et"}, {"grant_id": 2, "organisation_id": 3, "grant_amount": 281.2446, "grant_start_date": "1985-10-09 20:08:49", "grant_end_date": "1985-06-08 00:22:07", "other_details": "occaecati"}, {"grant_id": 3, "organisation_id": 14, "grant_amount": 4515947.7015, "grant_start_date": "1970-09-19 22:53:49", "grant_end_date": "1989-03-16 18:27:16", "other_details": "et"}, {"grant_id": 4, "organisation_id": 11, "grant_amount": 330.6339, "grant_start_date": "1990-08-13 20:27:28", "grant_end_date": "2014-08-13 22:58:50", "other_details": "et"}, {"grant_id": 5, "organisation_id": 2, "grant_amount": 608413.3291, "grant_start_date": "1979-10-29 07:44:22", "grant_end_date": "1996-08-16 20:45:05", "other_details": "corrupti"}, {"grant_id": 6, "organisation_id": 8, "grant_amount": 42.8061, "grant_start_date": "2011-05-10 22:44:08", "grant_end_date": "1977-12-27 01:51:18", "other_details": "dolor"}, {"grant_id": 7, "organisation_id": 7, "grant_amount": 76977808.306, "grant_start_date": "2015-12-14 13:02:11", "grant_end_date": "1981-03-09 17:12:27", "other_details": "explicabo"}, {"grant_id": 8, "organisation_id": 10, "grant_amount": 38675408.6017, "grant_start_date": "2016-02-25 04:28:44", "grant_end_date": "1983-06-22 15:12:32", "other_details": "aliquam"}, {"grant_id": 9, "organisation_id": 8, "grant_amount": 0, "grant_start_date": "2009-07-14 18:26:05", "grant_end_date": "1982-03-11 15:27:55", "other_details": "sapiente"}, {"grant_id": 10, "organisation_id": 14, "grant_amount": 66.4203, "grant_start_date": "1986-08-26 20:49:27", "grant_end_date": "2007-09-26 19:19:26", "other_details": "veniam"}, {"grant_id": 11, "organisation_id": 5, "grant_amount": 610.7004, "grant_start_date": "1986-10-31 17:11:29", "grant_end_date": "2001-05-22 21:02:43", "other_details": "voluptatum"}, {"grant_id": 12, "organisation_id": 12, "grant_amount": 2001349.459, "grant_start_date": "2001-06-22 16:01:05", "grant_end_date": "2007-04-24 03:04:13", "other_details": "aut"}, {"grant_id": 13, "organisation_id": 7, "grant_amount": 1.9848, "grant_start_date": "2004-11-10 02:26:01", "grant_end_date": "2011-05-29 11:21:59", "other_details": "qui"}, {"grant_id": 14, "organisation_id": 2, "grant_amount": 24.7, "grant_start_date": "2004-12-05 19:43:13", "grant_end_date": "1983-12-17 12:29:58", "other_details": "aliquam"}, {"grant_id": 15, "organisation_id": 9, "grant_amount": 25313.51, "grant_start_date": "1982-04-07 00:07:43", "grant_end_date": "1991-06-06 07:26:25", "other_details": "ea"}], "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__grants data\ngrants = load(\"grants\")\n\nfiltered_grants = grants\n |> filter(grant_end_date == \"1983-06-22 15:12:32\")\n |> filter(grant_amount > 9792953)\n\nsummary = filtered_grants\n |> group_by(grant_start_date)\n |> aggregate(total_grant_id: sum(grant_id), count: count())\n\nresult = summary\n |> sort_by(total_grant_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__grants data\ngrants = load(\"grants\")\n\nfiltered_grants = grants\n |> filter(grant_end_date == \"1983-06-22 15:12:3\")\n |> filter(grant_amount > 9792953)\n\nsummary = filtered_grants\n |> group_by(grant_start_date)\n |> aggregate(total_grant_id: min(grant_id), count: count())\n\nresult = summary\n |> sort_by(total_grant_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"grant_start_date": "2016-02-25 04:28:44", "total_grant_id": 8, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '1983-06-22 15:12:32' \u2192 '1983-06-22 15:12:3'", "line_num": 5, "original": "|> filter(grant_end_date == \"1983-06-22 15:12:32\")", "mutated": "|> filter(grant_end_date == \"1983-06-22 15:12:3\")"}, {"category": "wrong_arg", "description": "Wrong aggregate function: 'sum' \u2192 'min'", "line_num": 10, "original": "|> aggregate(total_grant_id: sum(grant_id), count: count())", "mutated": "|> aggregate(total_grant_id: min(grant_id), count: count())"}], "difficulty": "medium", "domain": "tracking_grants_for_research__grants", "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": {"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 == \"low\")\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(avg_product_id, 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 > \"low\")\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(avg_product_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"product_characteristic_value": "low", "avg_product_id": 8.0, "count": 6}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>'", "line_num": 5, "original": "|> filter(product_characteristic_value == \"low\")", "mutated": "|> filter(product_characteristic_value > \"low\")"}], "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": {"trained_in": [{"physician": 3, "treatment": 1, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 2, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 5, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 6, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 3, "treatment": 7, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 6, "treatment": 2, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 6, "treatment": 5, "certificationdate": "2007-01-01", "certificationexpires": "2007-12-31"}, {"physician": 6, "treatment": 6, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 1, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 2, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 3, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 4, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 5, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 6, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}, {"physician": 7, "treatment": 7, "certificationdate": "2008-01-01", "certificationexpires": "2008-12-31"}], "physician": [{"employeeid": 1, "name": "John Dorian", "position": "Staff Internist", "ssn": 111111111}, {"employeeid": 2, "name": "Elliot Reid", "position": "Attending Physician", "ssn": 222222222}, {"employeeid": 3, "name": "Christopher Turk", "position": "Surgical Attending Physician", "ssn": 333333333}, {"employeeid": 4, "name": "Percival Cox", "position": "Senior Attending Physician", "ssn": 444444444}, {"employeeid": 5, "name": "Bob Kelso", "position": "Head Chief of Medicine", "ssn": 555555555}, {"employeeid": 6, "name": "Todd Quinlan", "position": "Surgical Attending Physician", "ssn": 666666666}, {"employeeid": 7, "name": "John Wen", "position": "Surgical Attending Physician", "ssn": 777777777}, {"employeeid": 8, "name": "Keith Dudemeister", "position": "MD Resident", "ssn": 888888888}, {"employeeid": 9, "name": "Molly Clock", "position": "Attending Psychiatrist", "ssn": 999999999}]}, "correct_code": "-- Load hospital_1__trained_in data\ntrained_in = load(\"trained_in\")\n\nfiltered_trained_in = trained_in\n |> filter(certificationdate == \"2008-01-01\")\n\nsummary = filtered_trained_in\n |> group_by(certificationexpires)\n |> aggregate(min_treatment: min(treatment), count: count())\n |> compute(computed_val: count / min_treatment)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load hospital_1__trained_in data\ntrained_in = load(\"trained_in\")\n\nfiltered_trained_in = trained_in\n |> filter(certificationdate == \"2008-01-0\")\n\nsummary = filtered_trained_in\n |> group_by(certificationexpires)\n |> aggregate(min_treatment: min(treatment), count: count())\n |> compute(computed_val: count / min_treatment)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"certificationexpires": "2008-12-31", "min_treatment": 1, "count": 14, "computed_val": 14.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '2008-01-01' \u2192 '2008-01-0'", "line_num": 5, "original": "|> filter(certificationdate == \"2008-01-01\")", "mutated": "|> filter(certificationdate == \"2008-01-0\")"}], "difficulty": "hard", "domain": "hospital_1__trained_in", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"purchases": [{"purchase_transaction_id": 1, "purchase_details": "c"}, {"purchase_transaction_id": 2, "purchase_details": "y"}, {"purchase_transaction_id": 3, "purchase_details": "i"}, {"purchase_transaction_id": 4, "purchase_details": "x"}, {"purchase_transaction_id": 5, "purchase_details": "y"}, {"purchase_transaction_id": 6, "purchase_details": "a"}, {"purchase_transaction_id": 7, "purchase_details": "r"}, {"purchase_transaction_id": 8, "purchase_details": "a"}, {"purchase_transaction_id": 9, "purchase_details": "r"}, {"purchase_transaction_id": 10, "purchase_details": "l"}, {"purchase_transaction_id": 11, "purchase_details": "z"}, {"purchase_transaction_id": 12, "purchase_details": "h"}, {"purchase_transaction_id": 13, "purchase_details": "t"}, {"purchase_transaction_id": 14, "purchase_details": "o"}, {"purchase_transaction_id": 15, "purchase_details": "x"}], "transactions": [{"transaction_id": 1, "investor_id": 6, "transaction_type_code": "SALE", "date_of_transaction": "1988-09-16 19:02:51", "amount_of_transaction": 302507.6996, "share_count": "8718572", "other_details": 0}, {"transaction_id": 2, "investor_id": 18, "transaction_type_code": "PUR", "date_of_transaction": "1982-06-06 17:19:00", "amount_of_transaction": 27.257, "share_count": "9", "other_details": 0}, {"transaction_id": 3, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1979-04-27 06:03:59", "amount_of_transaction": 48777.969, "share_count": "8580", "other_details": 0}, {"transaction_id": 4, "investor_id": 14, "transaction_type_code": "PUR", "date_of_transaction": "2001-11-28 15:06:25", "amount_of_transaction": 4.5263, "share_count": "8040", "other_details": 0}, {"transaction_id": 5, "investor_id": 8, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-17 13:13:30", "amount_of_transaction": 0, "share_count": "930", "other_details": 0}, {"transaction_id": 6, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1985-10-08 13:13:39", "amount_of_transaction": 207484122.2796, "share_count": "2751", "other_details": 0}, {"transaction_id": 7, "investor_id": 7, "transaction_type_code": "PUR", "date_of_transaction": "1990-12-02 09:03:38", "amount_of_transaction": 822.803, "share_count": "1522", "other_details": 0}, {"transaction_id": 8, "investor_id": 17, "transaction_type_code": "SALE", "date_of_transaction": "2004-01-18 20:37:50", "amount_of_transaction": 78035671.4424, "share_count": "96178", "other_details": 0}, {"transaction_id": 9, "investor_id": 20, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-13 02:18:47", "amount_of_transaction": 82057.207, "share_count": "", "other_details": 0}, {"transaction_id": 10, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1981-01-28 08:07:03", "amount_of_transaction": 29.3534, "share_count": "1654756", "other_details": 0}, {"transaction_id": 11, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2000-04-03 20:55:43", "amount_of_transaction": 0, "share_count": "674529892", "other_details": 0}, {"transaction_id": 12, "investor_id": 18, "transaction_type_code": "SALE", "date_of_transaction": "1983-11-01 17:57:27", "amount_of_transaction": 1, "share_count": "587", "other_details": 0}, {"transaction_id": 13, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2002-04-07 20:28:37", "amount_of_transaction": 183.2, "share_count": "", "other_details": 0}, {"transaction_id": 14, "investor_id": 3, "transaction_type_code": "PUR", "date_of_transaction": "2002-09-13 03:04:56", "amount_of_transaction": 0, "share_count": "630021", "other_details": 0}, {"transaction_id": 15, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1997-12-30 05:05:40", "amount_of_transaction": 8.9, "share_count": "93191", "other_details": 0}]}, "correct_code": "-- Load tracking_share_transactions__purchases data\npurchases = load(\"purchases\")\n\nsummary = purchases\n |> group_by(purchase_details)\n |> aggregate(total_purchase_transaction_id: sum(purchase_transaction_id), count: count())\n |> compute(computed_val: count * total_purchase_transaction_id)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__purchases data\npurchases = load(\"purchases\")\n\nsummary = purchases\n |> group_by(purchase_details)\n |> aggregate(total_purchase_transaction_id: sum(total_purchase_transaction_id), count: count())\n |> compute(computed_val: count * total_purchase_transaction_id)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"purchase_details": "y", "total_purchase_transaction_id": 7, "count": 2, "computed_val": 14}, {"purchase_details": "x", "total_purchase_transaction_id": 19, "count": 2, "computed_val": 38}, {"purchase_details": "a", "total_purchase_transaction_id": 14, "count": 2, "computed_val": 28}, {"purchase_details": "r", "total_purchase_transaction_id": 16, "count": 2, "computed_val": 32}, {"purchase_details": "c", "total_purchase_transaction_id": 1, "count": 1, "computed_val": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'purchase_transaction_id' \u2192 'total_purchase_transaction_id'", "line_num": 6, "original": "|> aggregate(total_purchase_transaction_id: sum(purchase_transaction_id), count: count())", "mutated": "|> aggregate(total_purchase_transaction_id: sum(total_purchase_transaction_id), count: count())"}], "difficulty": "medium", "domain": "tracking_share_transactions__purchases", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"investors": [{"investor_id": 1, "investor_details": "z"}, {"investor_id": 2, "investor_details": "z"}, {"investor_id": 3, "investor_details": "d"}, {"investor_id": 4, "investor_details": "d"}, {"investor_id": 5, "investor_details": "b"}, {"investor_id": 6, "investor_details": "k"}, {"investor_id": 7, "investor_details": "l"}, {"investor_id": 8, "investor_details": "t"}, {"investor_id": 9, "investor_details": "y"}, {"investor_id": 10, "investor_details": "r"}, {"investor_id": 11, "investor_details": "q"}, {"investor_id": 12, "investor_details": "c"}, {"investor_id": 13, "investor_details": "o"}, {"investor_id": 14, "investor_details": "w"}, {"investor_id": 15, "investor_details": "i"}, {"investor_id": 16, "investor_details": "y"}, {"investor_id": 17, "investor_details": "k"}, {"investor_id": 18, "investor_details": "w"}, {"investor_id": 19, "investor_details": "l"}, {"investor_id": 20, "investor_details": "j"}], "transactions": [{"transaction_id": 1, "investor_id": 6, "transaction_type_code": "SALE", "date_of_transaction": "1988-09-16 19:02:51", "amount_of_transaction": 302507.6996, "share_count": "8718572", "other_details": 0}, {"transaction_id": 2, "investor_id": 18, "transaction_type_code": "PUR", "date_of_transaction": "1982-06-06 17:19:00", "amount_of_transaction": 27.257, "share_count": "9", "other_details": 0}, {"transaction_id": 3, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1979-04-27 06:03:59", "amount_of_transaction": 48777.969, "share_count": "8580", "other_details": 0}, {"transaction_id": 4, "investor_id": 14, "transaction_type_code": "PUR", "date_of_transaction": "2001-11-28 15:06:25", "amount_of_transaction": 4.5263, "share_count": "8040", "other_details": 0}, {"transaction_id": 5, "investor_id": 8, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-17 13:13:30", "amount_of_transaction": 0, "share_count": "930", "other_details": 0}, {"transaction_id": 6, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1985-10-08 13:13:39", "amount_of_transaction": 207484122.2796, "share_count": "2751", "other_details": 0}, {"transaction_id": 7, "investor_id": 7, "transaction_type_code": "PUR", "date_of_transaction": "1990-12-02 09:03:38", "amount_of_transaction": 822.803, "share_count": "1522", "other_details": 0}, {"transaction_id": 8, "investor_id": 17, "transaction_type_code": "SALE", "date_of_transaction": "2004-01-18 20:37:50", "amount_of_transaction": 78035671.4424, "share_count": "96178", "other_details": 0}, {"transaction_id": 9, "investor_id": 20, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-13 02:18:47", "amount_of_transaction": 82057.207, "share_count": "", "other_details": 0}, {"transaction_id": 10, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1981-01-28 08:07:03", "amount_of_transaction": 29.3534, "share_count": "1654756", "other_details": 0}, {"transaction_id": 11, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2000-04-03 20:55:43", "amount_of_transaction": 0, "share_count": "674529892", "other_details": 0}, {"transaction_id": 12, "investor_id": 18, "transaction_type_code": "SALE", "date_of_transaction": "1983-11-01 17:57:27", "amount_of_transaction": 1, "share_count": "587", "other_details": 0}, {"transaction_id": 13, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2002-04-07 20:28:37", "amount_of_transaction": 183.2, "share_count": "", "other_details": 0}, {"transaction_id": 14, "investor_id": 3, "transaction_type_code": "PUR", "date_of_transaction": "2002-09-13 03:04:56", "amount_of_transaction": 0, "share_count": "630021", "other_details": 0}, {"transaction_id": 15, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1997-12-30 05:05:40", "amount_of_transaction": 8.9, "share_count": "93191", "other_details": 0}]}, "correct_code": "-- Load tracking_share_transactions__investors data\ninvestors = load(\"investors\")\n\nfiltered_investors = investors\n |> filter(investor_id < 3)\n\nsummary = filtered_investors\n |> group_by(investor_details)\n |> aggregate(total_investor_id: sum(investor_id), count: count())\n |> compute(computed_val: count - total_investor_id)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__investors data\ninvestors = load(\"investors\")\n\nfiltered_investors = investors\n |> filter(investor_id < 3)\n\nsummary = filtered_investors\n |> group_by(investor_id)\n |> aggregate(total_investor_id: sum(investor_id), count: count())\n |> compute(computed_val: count - total_investor_id)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"investor_details": "z", "total_investor_id": 3, "count": 2, "computed_val": -1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'investor_details' \u2192 'investor_id'", "line_num": 8, "original": "|> group_by(investor_details)", "mutated": "|> group_by(investor_id)"}], "difficulty": "hard", "domain": "tracking_share_transactions__investors", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"teaches": [{"id": "34175", "course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "3199", "course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "6569", "course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001}, {"id": "28097", "course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "22591", "course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "90376", "course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008}, {"id": "3199", "course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "34175", "course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "34175", "course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "79081", "course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "80759", "course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "22591", "course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "22591", "course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003}, {"id": "74420", "course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "73623", "course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "6569", "course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002}, {"id": "95709", "course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "36897", "course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "74420", "course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002}, {"id": "77346", "course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "79081", "course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "6569", "course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008}, {"id": "6569", "course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004}, {"id": "41930", "course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "79081", "course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003}, {"id": "77346", "course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "4233", "course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "99052", "course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009}, {"id": "95709", "course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "63287", "course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "28097", "course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "19368", "course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "42782", "course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002}, {"id": "74420", "course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "41930", "course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004}, {"id": "6569", "course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "6569", "course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006}, {"id": "77346", "course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "3335", "course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "43779", "course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "48507", "course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "99052", "course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "22591", "course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "25946", "course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "6569", "course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "99052", "course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "22591", "course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009}, {"id": "77346", "course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "36897", "course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "99052", "course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008}, {"id": "19368", "course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001}, {"id": "36897", "course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "22591", "course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004}, {"id": "95709", "course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "3335", "course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "99052", "course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "43779", "course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "28400", "course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "81991", "course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "48570", "course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010}, {"id": "3199", "course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "74420", "course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "81991", "course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001}, {"id": "14365", "course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "74420", "course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007}, {"id": "99052", "course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "43779", "course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002}, {"id": "79081", "course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002}, {"id": "99052", "course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001}, {"id": "50330", "course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007}, {"id": "36897", "course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002}, {"id": "77346", "course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "14365", "course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "90643", "course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "77346", "course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010}, {"id": "6569", "course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "43779", "course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "74420", "course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "6569", "course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009}, {"id": "22591", "course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "63287", "course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008}, {"id": "79081", "course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004}, {"id": "19368", "course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "3199", "course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002}, {"id": "36897", "course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010}, {"id": "41930", "course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010}, {"id": "22591", "course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006}, {"id": "22591", "course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005}, {"id": "15347", "course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001}, {"id": "99052", "course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003}, {"id": "22591", "course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "22591", "course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006}, {"id": "22591", "course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006}, {"id": "95709", "course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006}, {"id": "65931", "course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005}, {"id": "22591", "course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007}, {"id": "99052", "course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002}, {"id": "79081", "course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003}, {"id": "28400", "course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009}, {"id": "6569", "course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003}], "section": [{"course_id": "313", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}, {"course_id": "747", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Gates", "room_number": "314", "time_slot_id": "K"}, {"course_id": "443", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Whitman", "room_number": "434", "time_slot_id": "O"}, {"course_id": "893", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "B"}, {"course_id": "663", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Fairchild", "room_number": "145", "time_slot_id": "D"}, {"course_id": "457", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "445", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Alumni", "room_number": "547", "time_slot_id": "J"}, {"course_id": "559", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "239", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "802", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Saucon", "room_number": "113", "time_slot_id": "J"}, {"course_id": "158", "sec_id": "1", "semester": "Fall", "year": 2008, "building": "Whitman", "room_number": "434", "time_slot_id": "F"}, {"course_id": "735", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Drown", "room_number": "757", "time_slot_id": "D"}, {"course_id": "237", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Power", "room_number": "717", "time_slot_id": "D"}, {"course_id": "338", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Fairchild", "room_number": "145", "time_slot_id": "G"}, {"course_id": "376", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "K"}, {"course_id": "927", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "692", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "I"}, {"course_id": "867", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "561", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Main", "room_number": "45", "time_slot_id": "L"}, {"course_id": "604", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Bronfman", "room_number": "700", "time_slot_id": "N"}, {"course_id": "974", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "959", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Saucon", "room_number": "180", "time_slot_id": "M"}, {"course_id": "702", "sec_id": "1", "semester": "Spring", "year": 2001, "building": "Saucon", "room_number": "113", "time_slot_id": "O"}, {"course_id": "631", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "183", "time_slot_id": "E"}, {"course_id": "334", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Taylor", "room_number": "812", "time_slot_id": "O"}, {"course_id": "274", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "N"}, {"course_id": "366", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Saucon", "room_number": "844", "time_slot_id": "O"}, {"course_id": "545", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Saucon", "room_number": "180", "time_slot_id": "P"}, {"course_id": "486", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Whitman", "room_number": "134", "time_slot_id": "K"}, {"course_id": "426", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lamberton", "room_number": "134", "time_slot_id": "G"}, {"course_id": "258", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Main", "room_number": "45", "time_slot_id": "K"}, {"course_id": "972", "sec_id": "1", "semester": "Spring", "year": 2009, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "349", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Saucon", "room_number": "113", "time_slot_id": "K"}, {"course_id": "415", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "D"}, {"course_id": "137", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Fairchild", "room_number": "145", "time_slot_id": "I"}, {"course_id": "304", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "143", "time_slot_id": "H"}, {"course_id": "468", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lambeau", "room_number": "348", "time_slot_id": "J"}, {"course_id": "748", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "L"}, {"course_id": "694", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Alumni", "room_number": "143", "time_slot_id": "O"}, {"course_id": "345", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "183", "time_slot_id": "A"}, {"course_id": "352", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "581", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Alumni", "room_number": "547", "time_slot_id": "G"}, {"course_id": "493", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "H"}, {"course_id": "795", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "793", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Nassau", "room_number": "45", "time_slot_id": "F"}, {"course_id": "237", "sec_id": "2", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "362", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Lamberton", "room_number": "143", "time_slot_id": "I"}, {"course_id": "642", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "D"}, {"course_id": "808", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Polya", "room_number": "808", "time_slot_id": "M"}, {"course_id": "679", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Saucon", "room_number": "844", "time_slot_id": "D"}, {"course_id": "629", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Stabler", "room_number": "105", "time_slot_id": "F"}, {"course_id": "400", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Lambeau", "room_number": "348", "time_slot_id": "M"}, {"course_id": "599", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Chandler", "room_number": "804", "time_slot_id": "D"}, {"course_id": "760", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Garfield", "room_number": "119", "time_slot_id": "A"}, {"course_id": "843", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Fairchild", "room_number": "145", "time_slot_id": "J"}, {"course_id": "200", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "D"}, {"course_id": "443", "sec_id": "2", "semester": "Spring", "year": 2002, "building": "Gates", "room_number": "707", "time_slot_id": "K"}, {"course_id": "612", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "G"}, {"course_id": "169", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Gates", "room_number": "314", "time_slot_id": "A"}, {"course_id": "791", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Polya", "room_number": "808", "time_slot_id": "H"}, {"course_id": "867", "sec_id": "2", "semester": "Fall", "year": 2010, "building": "Lamberton", "room_number": "134", "time_slot_id": "M"}, {"course_id": "489", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Lamberton", "room_number": "143", "time_slot_id": "D"}, {"course_id": "158", "sec_id": "2", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "D"}, {"course_id": "242", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Fairchild", "room_number": "145", "time_slot_id": "C"}, {"course_id": "960", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "421", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Gates", "room_number": "707", "time_slot_id": "E"}, {"course_id": "105", "sec_id": "1", "semester": "Fall", "year": 2009, "building": "Chandler", "room_number": "375", "time_slot_id": "C"}, {"course_id": "591", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Saucon", "room_number": "180", "time_slot_id": "F"}, {"course_id": "192", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Polya", "room_number": "808", "time_slot_id": "B"}, {"course_id": "362", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Alumni", "room_number": "547", "time_slot_id": "A"}, {"course_id": "270", "sec_id": "1", "semester": "Spring", "year": 2010, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "461", "sec_id": "1", "semester": "Fall", "year": 2002, "building": "Main", "room_number": "425", "time_slot_id": "P"}, {"course_id": "704", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Taylor", "room_number": "812", "time_slot_id": "E"}, {"course_id": "626", "sec_id": "1", "semester": "Fall", "year": 2006, "building": "Lamberton", "room_number": "143", "time_slot_id": "B"}, {"course_id": "105", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Taylor", "room_number": "183", "time_slot_id": "C"}, {"course_id": "696", "sec_id": "1", "semester": "Spring", "year": 2002, "building": "Saucon", "room_number": "180", "time_slot_id": "E"}, {"course_id": "962", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Nassau", "room_number": "45", "time_slot_id": "L"}, {"course_id": "362", "sec_id": "3", "semester": "Spring", "year": 2008, "building": "Bronfman", "room_number": "700", "time_slot_id": "L"}, {"course_id": "852", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Gates", "room_number": "707", "time_slot_id": "F"}, {"course_id": "949", "sec_id": "1", "semester": "Fall", "year": 2007, "building": "Saucon", "room_number": "180", "time_slot_id": "B"}, {"course_id": "482", "sec_id": "1", "semester": "Fall", "year": 2005, "building": "Whitman", "room_number": "434", "time_slot_id": "H"}, {"course_id": "527", "sec_id": "1", "semester": "Fall", "year": 2004, "building": "Saucon", "room_number": "113", "time_slot_id": "M"}, {"course_id": "476", "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Drown", "room_number": "757", "time_slot_id": "C"}, {"course_id": "991", "sec_id": "1", "semester": "Spring", "year": 2008, "building": "Lamberton", "room_number": "134", "time_slot_id": "J"}, {"course_id": "408", "sec_id": "1", "semester": "Spring", "year": 2007, "building": "Taylor", "room_number": "812", "time_slot_id": "C"}, {"course_id": "319", "sec_id": "1", "semester": "Spring", "year": 2003, "building": "Rathbone", "room_number": "261", "time_slot_id": "E"}, {"course_id": "400", "sec_id": "2", "semester": "Fall", "year": 2003, "building": "Main", "room_number": "425", "time_slot_id": "O"}, {"course_id": "401", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Saucon", "room_number": "180", "time_slot_id": "A"}, {"course_id": "960", "sec_id": "2", "semester": "Fall", "year": 2006, "building": "Power", "room_number": "717", "time_slot_id": "M"}, {"course_id": "571", "sec_id": "1", "semester": "Spring", "year": 2004, "building": "Power", "room_number": "972", "time_slot_id": "I"}, {"course_id": "468", "sec_id": "2", "semester": "Fall", "year": 2007, "building": "Power", "room_number": "717", "time_slot_id": "L"}, {"course_id": "735", "sec_id": "2", "semester": "Spring", "year": 2010, "building": "Taylor", "room_number": "183", "time_slot_id": "D"}, {"course_id": "169", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Drown", "room_number": "757", "time_slot_id": "L"}, {"course_id": "496", "sec_id": "1", "semester": "Fall", "year": 2001, "building": "Taylor", "room_number": "812", "time_slot_id": "I"}, {"course_id": "200", "sec_id": "2", "semester": "Fall", "year": 2002, "building": "Chandler", "room_number": "375", "time_slot_id": "D"}, {"course_id": "875", "sec_id": "1", "semester": "Spring", "year": 2005, "building": "Power", "room_number": "717", "time_slot_id": "P"}, {"course_id": "603", "sec_id": "1", "semester": "Fall", "year": 2003, "building": "Taylor", "room_number": "812", "time_slot_id": "P"}, {"course_id": "408", "sec_id": "2", "semester": "Spring", "year": 2003, "building": "Taylor", "room_number": "183", "time_slot_id": "J"}, {"course_id": "338", "sec_id": "2", "semester": "Spring", "year": 2006, "building": "Stabler", "room_number": "105", "time_slot_id": "J"}, {"course_id": "864", "sec_id": "1", "semester": "Spring", "year": 2006, "building": "Power", "room_number": "972", "time_slot_id": "D"}]}, "correct_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(course_id == \"169\")\n\nsummary = filtered_teaches\n |> group_by(sec_id)\n |> aggregate(min_year: min(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(course_id == \"169\")\n\nsummary = filtered_teaches\n |> group_by(year)\n |> aggregate(min_year: min(year), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"sec_id": "1", "min_year": 2007, "count": 1}, {"sec_id": "2", "min_year": 2002, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'sec_id' \u2192 'year'", "line_num": 8, "original": "|> group_by(sec_id)", "mutated": "|> group_by(year)"}], "difficulty": "medium", "domain": "college_2__teaches", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_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\nfiltered_products = products\n |> filter(other_product_details >= 0)\n |> select(product_name, typical_buying_price, color_code, product_id)\n\nsummary = filtered_products\n |> group_by(product_name)\n |> aggregate(avg_product_id: avg(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n\nfiltered_products = products\n |> filter(other_product_details >= 0)\n |> select(product_name, typical_buying_price, color_code, product_id)\n\nsummary = filtered_products\n |> group_by(product_name)\n |> aggregate(avg_product_id: avg(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(8)\n\nemit result", "expected_output": [{"product_name": "cumin", "avg_product_id": 1.0, "count": 1}, {"product_name": "peper", "avg_product_id": 2.0, "count": 1}, {"product_name": "basil", "avg_product_id": 3.0, "count": 1}, {"product_name": "borage", "avg_product_id": 4.0, "count": 1}, {"product_name": "chili", "avg_product_id": 5.0, "count": 1}, {"product_name": "ginger", "avg_product_id": 6.0, "count": 1}, {"product_name": "sesame", "avg_product_id": 7.0, "count": 1}, {"product_name": "caraway", "avg_product_id": 8.0, "count": 1}, {"product_name": "catnip", "avg_product_id": 9.0, "count": 1}, {"product_name": "flax", "avg_product_id": 10.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 8", "line_num": 14, "original": "|> take(10)", "mutated": "|> take(8)"}], "difficulty": "hard", "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_medium
{"datasets": {"match_season": [{"season": 1996.0, "player": "Steve Ralston Category:Articles with hCards", "position": "Midfielder", "country": 6, "team": 1, "draft_pick_number": 18, "draft_class": "1996 MLS College Draft", "college": "Florida International"}, {"season": 1997.0, "player": "Mike Duhaney Category:Articles with hCards", "position": "Defender", "country": 6, "team": 2, "draft_pick_number": 87, "draft_class": "1996 MLS Inaugural Player Draft", "college": "UNLV"}, {"season": 1998.0, "player": "Ben Olsen Category:Articles with hCards", "position": "Midfielder", "country": 4, "team": 3, "draft_pick_number": 2, "draft_class": "Project-40", "college": "Virginia"}, {"season": 1999.0, "player": "Jay Heaps Category:Articles with hCards", "position": "Defender", "country": 5, "team": 4, "draft_pick_number": 5, "draft_class": "1999 MLS College Draft", "college": "Duke"}, {"season": 2000.0, "player": "Carlos Bocanegra Category:Articles with hCards", "position": "Defender", "country": 5, "team": 5, "draft_pick_number": 4, "draft_class": "2000 MLS SuperDraft", "college": "UCLA"}, {"season": 2001.0, "player": "Rodrigo Faria Category:Articles with hCards", "position": "Forward", "country": 4, "team": 5, "draft_pick_number": 13, "draft_class": "2001 MLS SuperDraft", "college": "Concordia College"}, {"season": 2002.0, "player": "Kyle Martino Category:Articles with hCards", "position": "Midfielder", "country": 6, "team": 3, "draft_pick_number": 8, "draft_class": "2002 MLS SuperDraft", "college": "Virginia"}, {"season": 2003.0, "player": "Damani Ralph Category:Articles with hCards", "position": "Forward", "country": 1, "team": 2, "draft_pick_number": 18, "draft_class": "2003 MLS SuperDraft", "college": "Connecticut"}, {"season": 2004.0, "player": "Clint Dempsey Category:Articles with hCards", "position": "Midfielder", "country": 6, "team": 3, "draft_pick_number": 8, "draft_class": "2004 MLS SuperDraft", "college": "Furman"}, {"season": 2005.0, "player": "Michael Parkhurst Category:Articles with hCards", "position": "Defender", "country": 6, "team": 4, "draft_pick_number": 9, "draft_class": "2005 MLS SuperDraft", "college": "Wake Forest"}, {"season": 2006.0, "player": "Jonathan Bornstein Category:Articles with hCards", "position": "Defender", "country": 6, "team": 10, "draft_pick_number": 37, "draft_class": "2006 MLS SuperDraft", "college": "UCLA"}, {"season": 2007.0, "player": "Maurice Edu Category:Articles with hCards", "position": "Midfielder", "country": 4, "team": 9, "draft_pick_number": 1, "draft_class": "2007 MLS SuperDraft", "college": "Maryland"}, {"season": 2008.0, "player": "Sean Franklin Category:Articles with hCards", "position": "Defender", "country": 6, "team": 5, "draft_pick_number": 4, "draft_class": "2008 MLS SuperDraft", "college": "Cal State Northridge"}, {"season": 2009.0, "player": "Omar Gonzalez Category:Articles with hCards", "position": "Defender", "country": 6, "team": 5, "draft_pick_number": 3, "draft_class": "2009 MLS SuperDraft", "college": "Maryland"}, {"season": 2010.0, "player": "Andy Najar Category:Articles with hCards", "position": "Midfielder", "country": 4, "team": 5, "draft_pick_number": 6, "draft_class": "D.C. United Academy", "college": "none"}, {"season": 2011.0, "player": "C. J. Sapong Category:Articles with hCards", "position": "Forward", "country": 6, "team": 3, "draft_pick_number": 10, "draft_class": "2011 MLS SuperDraft", "college": "James Madison"}], "country": [{"country_id": 1, "country_name": "Indonesia", "capital": "Jakarta", "official_native_language": "Bahasa Indonesia"}, {"country_id": 2, "country_name": "Iran", "capital": "Tehran", "official_native_language": "Persian ( Arabic script )"}, {"country_id": 3, "country_name": "Iraq", "capital": "Baghdad", "official_native_language": "Arabic ( Arabic script ) Kurdish"}, {"country_id": 4, "country_name": "Ireland", "capital": "Dublin", "official_native_language": "Irish English"}, {"country_id": 5, "country_name": "Isle of Man", "capital": "Douglas", "official_native_language": "English Manx"}, {"country_id": 6, "country_name": "United States", "capital": "Washington", "official_native_language": "English"}]}, "correct_code": "-- Load match_season__match_season data\nmatch_season = load(\"match_season\")\n\nfiltered_match_season = match_season\n |> filter(player == \"Clint Dempsey Category:Articles with hCards\")\n |> select(college, position, player, draft_class, season, team)\n |> compute(computed_val: season * team)\n\nresult = filtered_match_season\n |> sort_by(team, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load match_season__match_season data\nmatch_season = load(\"match_season\")\n\nfiltered_match_season = match_season\n |> filter(player == \"Clint Dempsey Category:Articles with hCards\")\n |> select(college, position, player, draft_class, season, team)\n |> compute(computed_val: team * team)\n\nresult = filtered_match_season\n |> sort_by(team, desc)\n |> take(10)\n\nemit result", "expected_output": [{"college": "Furman", "position": "Midfielder", "player": "Clint Dempsey Category:Articles with hCards", "draft_class": "2004 MLS SuperDraft", "season": 2004.0, "team": 3, "computed_val": 6012.0}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'season' \u2192 'team'", "line_num": 7, "original": "|> compute(computed_val: season * team)", "mutated": "|> compute(computed_val: team * team)"}], "difficulty": "medium", "domain": "match_season__match_season", "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": {"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\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(10)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\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(8)\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}, {"stuid": 1017, "actid": 770, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON", "computed_val": 1.3207792207792208}, {"stuid": 1018, "actid": 770, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT", "computed_val": 1.3220779220779222}, {"stuid": 1025, "actid": 770, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT", "computed_val": 1.3311688311688312}, {"stuid": 1001, "actid": 771, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL", "computed_val": 1.298313878080415}, {"stuid": 1002, "actid": 771, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG", "computed_val": 1.2996108949416343}, {"stuid": 1017, "actid": 771, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON", "computed_val": 1.3190661478599222}, {"stuid": 1034, "actid": 771, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS", "computed_val": 1.3411154345006484}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 10 \u2192 8", "line_num": 12, "original": "|> take(10)", "mutated": "|> take(8)"}], "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_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\n-- Load lookup data\nlots = load(\"lots\")\n\nenriched = join(transactions_lots, lots, on: lot_id == lot_id)\n\nresult = enriched\n |> sort_by(transaction_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\n-- Load lookup data\nlots = load(\"lots\")\n\nenriched = join(transactions_lots, lots, on: lot_id == lot_id)\n\nresult = enriched\n |> sort_by(transaction_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"transaction_id": 1, "lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"transaction_id": 1, "lot_id": 14, "investor_id": 6, "lot_details": "d"}, {"transaction_id": 2, "lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"transaction_id": 2, "lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"transaction_id": 3, "lot_id": 11, "investor_id": 1, "lot_details": "d"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 10, "original": "|> sort_by(transaction_id, asc)", "mutated": "|> sort_by(transaction_id, desc)"}], "difficulty": "medium", "domain": "tracking_share_transactions__transactions_lots", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"documents": [{"document_id": 1, "document_type_code": "APP", "grant_id": 5, "sent_date": "1986-11-30 07:56:35", "response_received_date": "1977-12-01 02:18:53", "other_details": ""}, {"document_id": 2, "document_type_code": "APP", "grant_id": 13, "sent_date": "2004-01-23 11:57:08", "response_received_date": "1979-12-08 10:38:07", "other_details": ""}, {"document_id": 3, "document_type_code": "REG", "grant_id": 10, "sent_date": "1999-03-03 12:25:58", "response_received_date": "1995-09-12 13:13:48", "other_details": ""}, {"document_id": 4, "document_type_code": "APP", "grant_id": 13, "sent_date": "1999-05-29 00:02:46", "response_received_date": "1991-09-25 10:38:24", "other_details": ""}, {"document_id": 5, "document_type_code": "APP", "grant_id": 11, "sent_date": "2003-08-29 03:32:52", "response_received_date": "1986-05-23 07:17:59", "other_details": ""}, {"document_id": 6, "document_type_code": "REG", "grant_id": 5, "sent_date": "1979-07-04 08:54:23", "response_received_date": "1976-10-04 22:13:27", "other_details": ""}, {"document_id": 7, "document_type_code": "APP", "grant_id": 13, "sent_date": "1978-09-13 16:23:29", "response_received_date": "1979-01-06 05:05:30", "other_details": ""}, {"document_id": 8, "document_type_code": "APP", "grant_id": 15, "sent_date": "2001-06-18 06:35:49", "response_received_date": "1986-05-18 01:54:56", "other_details": ""}, {"document_id": 9, "document_type_code": "APP", "grant_id": 6, "sent_date": "2014-01-28 05:11:34", "response_received_date": "1980-02-24 15:23:44", "other_details": ""}, {"document_id": 10, "document_type_code": "REG", "grant_id": 7, "sent_date": "2002-07-26 15:50:28", "response_received_date": "1987-10-29 15:35:50", "other_details": ""}, {"document_id": 11, "document_type_code": "REG", "grant_id": 15, "sent_date": "1993-02-19 16:31:12", "response_received_date": "1994-03-13 01:52:45", "other_details": ""}, {"document_id": 12, "document_type_code": "REG", "grant_id": 13, "sent_date": "1997-03-09 03:42:19", "response_received_date": "1977-01-27 07:14:11", "other_details": ""}, {"document_id": 13, "document_type_code": "APP", "grant_id": 13, "sent_date": "1979-08-23 08:22:34", "response_received_date": "1990-01-19 19:57:14", "other_details": ""}, {"document_id": 14, "document_type_code": "APP", "grant_id": 15, "sent_date": "2000-06-06 01:03:46", "response_received_date": "1971-08-28 11:20:56", "other_details": ""}, {"document_id": 15, "document_type_code": "APP", "grant_id": 8, "sent_date": "1981-08-06 14:56:55", "response_received_date": "1999-06-01 18:41:00", "other_details": ""}], "document_types": [{"document_type_code": "APP", "document_description": "Initial Application"}, {"document_type_code": "REG", "document_description": "Regular"}]}, "correct_code": "-- Load tracking_grants_for_research__documents data\ndocuments = load(\"documents\")\n\nfiltered_documents = documents\n |> filter(response_received_date == \"1986-05-18 01:54:56\")\n\nsummary = filtered_documents\n |> group_by(other_details)\n |> aggregate(max_document_id: max(document_id), count: count())\n\nresult = summary\n |> sort_by(max_document_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__documents data\ndocuments = load(\"documents\")\n\nfiltered_documents = documents\n |> filter(response_received_date < \"1986-05-18 01:54:56\")\n\nsummary = filtered_documents\n |> group_by(other_details)\n |> aggregate(max_document_id: max(document_id), count: count())\n\nresult = summary\n |> sort_by(max_document_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"other_details": "", "max_document_id": 8, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<'", "line_num": 5, "original": "|> filter(response_received_date == \"1986-05-18 01:54:56\")", "mutated": "|> filter(response_received_date < \"1986-05-18 01:54:56\")"}, {"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 12, "original": "|> sort_by(max_document_id, desc)", "mutated": "|> sort_by(max_document_id, asc)"}], "difficulty": "easy", "domain": "tracking_grants_for_research__documents", "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": {"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 |> select(lesson_status_code, price, customer_id, lesson_id)\n\nresult = lessons\n |> sort_by(customer_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n |> select(customer_id, price, customer_id, lesson_id)\n\nresult = lessons\n |> sort_by(customer_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"lesson_status_code": "Completed", "price": 456.0, "customer_id": 2, "lesson_id": 9}, {"lesson_status_code": "Cancelled", "price": 495.0, "customer_id": 2, "lesson_id": 10}, {"lesson_status_code": "Completed", "price": 277.0, "customer_id": 3, "lesson_id": 8}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'lesson_status_code' \u2192 'customer_id'", "line_num": 3, "original": "|> select(lesson_status_code, price, customer_id, lesson_id)", "mutated": "|> select(customer_id, price, customer_id, lesson_id)"}], "difficulty": "hard", "domain": "driving_school__lessons", "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": {"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-03-16 07:08:52\")\n |> filter(vehicle_id > 1)\n\nsummary = filtered_lessons\n |> group_by(lesson_time)\n |> aggregate(min_staff_id: min(staff_id), count: count())\n\nresult = summary\n |> sort_by(min_staff_id, 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-03-16 07:08:52\")\n |> filter(52 > 1)\n\nsummary = filtered_lessons\n |> group_by(lesson_time)\n |> aggregate(min_staff_id: min(staff_id), count: count())\n\nresult = summary\n |> sort_by(min_staff_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"lesson_time": "2", "min_staff_id": 12, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'vehicle_id' \u2192 '52'", "line_num": 6, "original": "|> filter(vehicle_id > 1)", "mutated": "|> filter(52 > 1)"}], "difficulty": "hard", "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": {"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(position == \"14\")\n\nsummary = filtered_results\n |> group_by(positiontext)\n |> aggregate(max_grid: max(grid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__results data\nresults = load(\"results\")\n\nfiltered_results = results\n |> filter(position == \"14\")\n\nsummary = filtered_results\n |> group_by(positiontext)\n aggregate(max_grid: max(grid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"positiontext": "14", "max_grid": 20, "count": 5}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> aggregate(max_grid: max(grid), count: count())", "mutated": "aggregate(max_grid: max(grid), count: count())"}], "difficulty": "easy", "domain": "formula_1__results", "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_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}], "customers": [{"customer_id": 1, "payment_method": "Visa", "customer_name": "Ron Emard", "customer_phone": "1-382-503-5179x53639", "customer_email": "shaniya45@example.net", "date_became_customer": "2011-04-25 22:20:35"}, {"customer_id": 2, "payment_method": "MasterCard", "customer_name": "Gabe Schroeder", "customer_phone": "1-728-537-4293x0885", "customer_email": "alexandra91@example.net", "date_became_customer": "2011-10-17 16:08:25"}, {"customer_id": 3, "payment_method": "Discover", "customer_name": "Candace Schneider", "customer_phone": "940.575.3682x7959", "customer_email": "tkassulke@example.com", "date_became_customer": "2012-01-11 21:17:01"}, {"customer_id": 4, "payment_method": "Visa", "customer_name": "Jaden Lang", "customer_phone": "361.151.3489x7272", "customer_email": "dedric17@example.org", "date_became_customer": "2009-12-29 17:38:10"}, {"customer_id": 5, "payment_method": "Visa", "customer_name": "Geovanni Grady", "customer_phone": "1-005-644-2495", "customer_email": "elmira.langworth@example.org", "date_became_customer": "2017-05-21 07:09:55"}, {"customer_id": 6, "payment_method": "Visa", "customer_name": "Dr. Karine Farrell", "customer_phone": "+49(2)0677806107", "customer_email": "reichel.winnifred@example.org", "date_became_customer": "2010-11-06 08:42:56"}, {"customer_id": 7, "payment_method": "Discover", "customer_name": "Emmanuel Reilly", "customer_phone": "129.959.6420", "customer_email": "gleichner.ethelyn@example.net", "date_became_customer": "2013-11-29 06:15:22"}, {"customer_id": 8, "payment_method": "MasterCard", "customer_name": "Keenan Kuhic", "customer_phone": "686-517-9923x348", "customer_email": "dallin76@example.org", "date_became_customer": "2013-04-09 18:17:05"}, {"customer_id": 9, "payment_method": "American", "customer_name": "Rusty Morar", "customer_phone": "1-123-197-9677x7194", "customer_email": "njenkins@example.org", "date_became_customer": "2015-09-09 09:29:06"}, {"customer_id": 10, "payment_method": "Visa", "customer_name": "Lila Howe", "customer_phone": "1-492-284-1097", "customer_email": "leann.hamill@example.org", "date_became_customer": "2014-02-04 04:51:58"}, {"customer_id": 11, "payment_method": "Visa", "customer_name": "Amalia Hudson DDS", "customer_phone": "003-991-1506x483", "customer_email": "danika49@example.com", "date_became_customer": "2014-02-25 19:39:51"}, {"customer_id": 12, "payment_method": "Discover", "customer_name": "Verda Streich", "customer_phone": "06730471330", "customer_email": "xgraham@example.org", "date_became_customer": "2008-10-12 12:19:27"}, {"customer_id": 13, "payment_method": "Discover", "customer_name": "Patience Yundt", "customer_phone": "969-208-8932x715", "customer_email": "kira82@example.com", "date_became_customer": "2017-03-25 18:48:04"}, {"customer_id": 14, "payment_method": "Visa", "customer_name": "Annabell Walsh", "customer_phone": "(881)096-1281x6448", "customer_email": "adriana83@example.org", "date_became_customer": "2017-06-30 19:02:11"}, {"customer_id": 15, "payment_method": "Visa", "customer_name": "Aracely Borer V", "customer_phone": "531-617-3230", "customer_email": "rollin95@example.net", "date_became_customer": "2015-09-13 22:39:50"}]}, "correct_code": "-- Load customer_deliveries__regular_orders data\nregular_orders = load(\"regular_orders\")\n\nfiltered_regular_orders = regular_orders\n |> filter(distributer_id <= 3)\n\n-- Load lookup data\ncustomers = load(\"customers\")\n |> select(customer_id, date_became_customer, customer_email)\n\nenriched = join(filtered_regular_orders, customers, on: distributer_id == customer_id)\n |> compute(computed_val: regular_order_id * distributer_id)\n\nresult = enriched\n |> sort_by(regular_order_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__regular_orders data\nregular_orders = load(\"regular_orders\")\n\nfiltered_regular_orders = regular_orders\n |> filter(distributer_id <= 2)\n\n-- Load lookup data\ncustomers = load(\"customers\")\n |> select(customer_id, date_became_customer, customer_email)\n\nenriched = join(filtered_regular_orders, customers, on: distributer_id == customer_id)\n |> compute(computed_val: regular_order_id * distributer_id)\n\nresult = enriched\n |> sort_by(regular_order_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"regular_order_id": 4, "distributer_id": 3, "customer_id": 3, "date_became_customer": "2012-01-11 21:17:01", "customer_email": "tkassulke@example.com", "computed_val": 12}, {"regular_order_id": 7, "distributer_id": 2, "customer_id": 2, "date_became_customer": "2011-10-17 16:08:25", "customer_email": "alexandra91@example.net", "computed_val": 14}, {"regular_order_id": 11, "distributer_id": 3, "customer_id": 3, "date_became_customer": "2012-01-11 21:17:01", "customer_email": "tkassulke@example.com", "computed_val": 33}, {"regular_order_id": 12, "distributer_id": 1, "customer_id": 1, "date_became_customer": "2011-04-25 22:20:35", "customer_email": "shaniya45@example.net", "computed_val": 12}, {"regular_order_id": 13, "distributer_id": 1, "customer_id": 1, "date_became_customer": "2011-04-25 22:20:35", "customer_email": "shaniya45@example.net", "computed_val": 13}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 3 \u2192 2", "line_num": 5, "original": "|> filter(distributer_id <= 3)", "mutated": "|> filter(distributer_id <= 2)"}], "difficulty": "medium", "domain": "customer_deliveries__regular_orders", "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": {"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(allergy == \"Milk\")\n\nsummary = filtered_has_allergy\n |> group_by(allergy)\n |> aggregate(min_stuid: min(stuid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\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(allergy == \"Milk\")\n\nsummary = filtered_has_allergy\n |> group_by(allergy)\n |> aggregate(min_stuid: max(stuid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"allergy": "Milk", "min_stuid": 1007, "count": 3}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'min' \u2192 'max'", "line_num": 9, "original": "|> aggregate(min_stuid: min(stuid), count: count())", "mutated": "|> aggregate(min_stuid: max(stuid), count: count())"}], "difficulty": "easy", "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_medium
{"datasets": {"residents": [{"resident_id": 6, "property_id": 954, "date_moved_in": "2017-06-17 15:43:33", "date_moved_out": "2017-12-18 03:46:04", "other_details": "Anderson Batz"}, {"resident_id": 10, "property_id": 605, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-03-17 07:48:09", "other_details": "Miss Naomie Osinski"}, {"resident_id": 23, "property_id": 879, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-11-14 06:28:48", "other_details": "Jess Wyman"}, {"resident_id": 28, "property_id": 629, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-05 02:47:31", "other_details": "Miss Alanis Lockman"}, {"resident_id": 37, "property_id": 669, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-01-30 10:20:59", "other_details": "Prof. Arvel Kozey"}, {"resident_id": 38, "property_id": 748, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-12-30 23:55:10", "other_details": "Chaim Swaniawski"}, {"resident_id": 43, "property_id": 108, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-02-22 06:24:15", "other_details": "Elroy Schuster"}, {"resident_id": 45, "property_id": 954, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-14 10:23:42", "other_details": "Prof. Nasir Hoppe"}, {"resident_id": 47, "property_id": 669, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-10 02:25:53", "other_details": "Tiffany Jaskolski"}, {"resident_id": 58, "property_id": 107, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-11-29 21:24:08", "other_details": "Tomasa Hoeger"}, {"resident_id": 67, "property_id": 120, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2017-10-23 16:40:19", "other_details": "Terrill Bernhard"}, {"resident_id": 83, "property_id": 445, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-01-19 01:35:51", "other_details": "Loy Walter"}, {"resident_id": 87, "property_id": 748, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-01-28 13:19:54", "other_details": "Mrs. Raphaelle Fisher"}, {"resident_id": 88, "property_id": 107, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-02-03 11:30:20", "other_details": "Jacques Glover II"}, {"resident_id": 90, "property_id": 373, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2017-11-19 03:11:44", "other_details": "Cassie Johnson"}], "customer_events": [{"customer_event_id": 70, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10, "thing_id": 1}, {"customer_event_id": 160, "customer_id": 5, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23, "thing_id": 80}, {"customer_event_id": 166, "customer_id": 16, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28, "thing_id": 14}, {"customer_event_id": 216, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37, "thing_id": 46}, {"customer_event_id": 226, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38, "thing_id": 80}, {"customer_event_id": 256, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43, "thing_id": 2}, {"customer_event_id": 428, "customer_id": 63, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45, "thing_id": 68}, {"customer_event_id": 530, "customer_id": 4, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47, "thing_id": 10}, {"customer_event_id": 559, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58, "thing_id": 1}, {"customer_event_id": 591, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "resident_id": 67, "thing_id": 10}, {"customer_event_id": 606, "customer_id": 31, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "resident_id": 83, "thing_id": 85}, {"customer_event_id": 627, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "resident_id": 87, "thing_id": 92}, {"customer_event_id": 817, "customer_id": 19, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "resident_id": 88, "thing_id": 10}]}, "correct_code": "-- Load local_govt_and_lot__residents data\nresidents = load(\"residents\")\n\nsummary = residents\n |> group_by(date_moved_out)\n |> aggregate(max_resident_id: max(resident_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__residents data\nresidents = load(\"residents\")\n\nsummary = residents\n |> group_by(date_moved_out)\n |> aggregate(max_resident_id: max(date_moved_out), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"date_moved_out": "2017-12-18 03:46:04", "max_resident_id": 6, "count": 1}, {"date_moved_out": "2018-03-17 07:48:09", "max_resident_id": 10, "count": 1}, {"date_moved_out": "2017-11-14 06:28:48", "max_resident_id": 23, "count": 1}, {"date_moved_out": "2017-10-05 02:47:31", "max_resident_id": 28, "count": 1}, {"date_moved_out": "2018-01-30 10:20:59", "max_resident_id": 37, "count": 1}, {"date_moved_out": "2017-12-30 23:55:10", "max_resident_id": 38, "count": 1}, {"date_moved_out": "2018-02-22 06:24:15", "max_resident_id": 43, "count": 1}, {"date_moved_out": "2017-10-14 10:23:42", "max_resident_id": 45, "count": 1}, {"date_moved_out": "2017-10-10 02:25:53", "max_resident_id": 47, "count": 1}, {"date_moved_out": "2017-11-29 21:24:08", "max_resident_id": 58, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'resident_id' \u2192 'date_moved_out'", "line_num": 6, "original": "|> aggregate(max_resident_id: max(resident_id), count: count())", "mutated": "|> aggregate(max_resident_id: max(date_moved_out), count: count())"}], "difficulty": "medium", "domain": "local_govt_and_lot__residents", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"treatments": [{"treatment_id": 1, "dog_id": 14, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-19 04:39:54", "cost_of_treatment": 567}, {"treatment_id": 2, "dog_id": 4, "professional_id": 10, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-15 20:25:34", "cost_of_treatment": 147}, {"treatment_id": 3, "dog_id": 14, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-08 05:26:23", "cost_of_treatment": 429}, {"treatment_id": 4, "dog_id": 2, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-01 04:14:46", "cost_of_treatment": 266}, {"treatment_id": 5, "dog_id": 12, "professional_id": 14, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-23 13:52:10", "cost_of_treatment": 668}, {"treatment_id": 6, "dog_id": 10, "professional_id": 4, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-11 04:23:15", "cost_of_treatment": 313}, {"treatment_id": 7, "dog_id": 15, "professional_id": 14, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-10 11:45:58", "cost_of_treatment": 852}, {"treatment_id": 8, "dog_id": 2, "professional_id": 6, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-24 22:25:58", "cost_of_treatment": 407}, {"treatment_id": 9, "dog_id": 14, "professional_id": 10, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-14 19:10:40", "cost_of_treatment": 139}, {"treatment_id": 10, "dog_id": 10, "professional_id": 7, "treatment_type_code": "WALK", "date_of_treatment": "2018-02-28 17:09:43", "cost_of_treatment": 681}, {"treatment_id": 11, "dog_id": 15, "professional_id": 5, "treatment_type_code": "VAC", "date_of_treatment": "2018-03-13 12:22:58", "cost_of_treatment": 514}, {"treatment_id": 12, "dog_id": 13, "professional_id": 9, "treatment_type_code": "EXAM", "date_of_treatment": "2018-03-16 10:27:36", "cost_of_treatment": 428}, {"treatment_id": 13, "dog_id": 7, "professional_id": 8, "treatment_type_code": "VAC", "date_of_treatment": "2018-02-26 09:08:53", "cost_of_treatment": 945}, {"treatment_id": 14, "dog_id": 10, "professional_id": 9, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-04 20:33:43", "cost_of_treatment": 349}, {"treatment_id": 15, "dog_id": 1, "professional_id": 6, "treatment_type_code": "WALK", "date_of_treatment": "2018-03-15 19:10:02", "cost_of_treatment": 656}], "treatment_types": [{"treatment_type_code": "EXAM", "treatment_type_description": "Physical examination"}, {"treatment_type_code": "VAC", "treatment_type_description": "Vaccination"}, {"treatment_type_code": "WALK", "treatment_type_description": "Take for a Walk"}]}, "correct_code": "-- Load dog_kennels__treatments data\ntreatments = load(\"treatments\")\n\nfiltered_treatments = treatments\n |> filter(treatment_type_code == \"VAC\")\n |> select(treatment_type_code, cost_of_treatment, treatment_id, dog_id)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, asc)\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 == \"VAC\")\n |> select(treatment_type_code, cost_of_treatment, treatment_id, dog_id)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"treatment_type_code": "VAC", "cost_of_treatment": 147, "treatment_id": 2, "dog_id": 4}, {"treatment_type_code": "VAC", "cost_of_treatment": 266, "treatment_id": 4, "dog_id": 2}, {"treatment_type_code": "VAC", "cost_of_treatment": 668, "treatment_id": 5, "dog_id": 12}, {"treatment_type_code": "VAC", "cost_of_treatment": 514, "treatment_id": 11, "dog_id": 15}, {"treatment_type_code": "VAC", "cost_of_treatment": 945, "treatment_id": 13, "dog_id": 7}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 9, "original": "|> sort_by(treatment_id, asc)", "mutated": "|> sort_by(treatment_id, desc)"}], "difficulty": "medium", "domain": "dog_kennels__treatments", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"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 == \"06:00:00\")\n |> select(name, time, raceid, circuitid)\n |> compute(computed_val: raceid * circuitid)\n\nresult = filtered_races\n |> sort_by(circuitid, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__races data\nraces = load(\"races\")\n\nfiltered_races = races\n |> filter(time == \"06:00:00s\")\n |> select(name, time, raceid, circuitid)\n |> compute(computed_val: raceid * circuitid)\n\nresult = filtered_races\n |> sort_by(circuitid, asc)\n |> take(5)\n\nemit result", "expected_output": [{"name": "Chinese Grand Prix", "time": "06:00:00", "raceid": 51, "circuitid": 17, "computed_val": 867}, {"name": "Australian Grand Prix", "time": "06:00:00", "raceid": 1, "circuitid": 1, "computed_val": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '06:00:00' \u2192 '06:00:00s'", "line_num": 5, "original": "|> filter(time == \"06:00:00\")", "mutated": "|> filter(time == \"06:00:00s\")"}, {"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 10, "original": "|> sort_by(circuitid, desc)", "mutated": "|> sort_by(circuitid, asc)"}], "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_medium
{"datasets": {"timed_status_of_things": [{"thing_id": 2, "date_and_date": "2016-05-27 23:33:34", "status_of_thing_code": "Open"}, {"thing_id": 2, "date_and_date": "2016-07-17 08:35:27", "status_of_thing_code": "Close"}, {"thing_id": 2, "date_and_date": "2017-06-19 02:59:21", "status_of_thing_code": "In Progress"}, {"thing_id": 10, "date_and_date": "2016-09-06 16:31:13", "status_of_thing_code": "Close"}, {"thing_id": 10, "date_and_date": "2016-11-14 17:30:51", "status_of_thing_code": "Open"}, {"thing_id": 14, "date_and_date": "2017-07-03 02:22:12", "status_of_thing_code": "In Progress"}, {"thing_id": 26, "date_and_date": "2016-04-10 06:32:15", "status_of_thing_code": "Close"}, {"thing_id": 26, "date_and_date": "2017-08-05 02:10:02", "status_of_thing_code": "In Progress"}, {"thing_id": 26, "date_and_date": "2018-02-04 02:44:39", "status_of_thing_code": "Close"}, {"thing_id": 35, "date_and_date": "2017-11-27 06:32:46", "status_of_thing_code": "In Progress"}, {"thing_id": 47, "date_and_date": "2016-04-02 00:57:17", "status_of_thing_code": "In Progress"}, {"thing_id": 47, "date_and_date": "2016-12-02 11:08:16", "status_of_thing_code": "Close"}, {"thing_id": 58, "date_and_date": "2017-05-31 00:52:33", "status_of_thing_code": "In Progress"}, {"thing_id": 80, "date_and_date": "2016-10-08 08:02:57", "status_of_thing_code": "Open"}, {"thing_id": 84, "date_and_date": "2017-12-28 16:05:08", "status_of_thing_code": "Open"}, {"thing_id": 85, "date_and_date": "2017-03-24 12:12:46", "status_of_thing_code": "Close"}, {"thing_id": 92, "date_and_date": "2016-11-24 12:44:00", "status_of_thing_code": "In Progress"}, {"thing_id": 92, "date_and_date": "2017-09-27 01:35:51", "status_of_thing_code": "Close"}], "things": [{"thing_id": 1, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 2, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 10, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 14, "organization_id": 10, "type_of_thing_code": "Furniture", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 26, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 35, "organization_id": 7, "type_of_thing_code": "Electronics", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 45, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 46, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 47, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Satisfied"}, {"thing_id": 58, "organization_id": 8, "type_of_thing_code": "Electronics", "service_type_code": "Check", "service_details": "Satisfied"}, {"thing_id": 68, "organization_id": 10, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 80, "organization_id": 8, "type_of_thing_code": "Furniture", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 84, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}, {"thing_id": 85, "organization_id": 8, "type_of_thing_code": "Commen", "service_type_code": "Cleanning", "service_details": "Unsatisfied"}, {"thing_id": 92, "organization_id": 7, "type_of_thing_code": "Commen", "service_type_code": "Check", "service_details": "Unsatisfied"}]}, "correct_code": "-- Load local_govt_and_lot__timed_status_of_things data\ntimed_status_of_things = load(\"timed_status_of_things\")\n\nfiltered_timed_status_of_things = timed_status_of_things\n |> filter(status_of_thing_code == \"Open\")\n |> select(thing_id, status_of_thing_code, date_and_date)\n\nsummary = filtered_timed_status_of_things\n |> group_by(date_and_date)\n |> aggregate(total_thing_id: sum(thing_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__timed_status_of_things data\ntimed_status_of_things = load(\"timed_status_of_things\")\n\nfiltered_timed_status_of_things = timed_status_of_things\n |> filter(status_of_thing_code == \"Open\")\n |> select(thing_id, status_of_thing_code, date_and_date)\n\nsummary = filtered_timed_status_of_things\n |> group_by(total_thing_id)\n |> aggregate(total_thing_id: sum(thing_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"date_and_date": "2016-05-27 23:33:34", "total_thing_id": 2, "count": 1}, {"date_and_date": "2016-11-14 17:30:51", "total_thing_id": 10, "count": 1}, {"date_and_date": "2016-10-08 08:02:57", "total_thing_id": 80, "count": 1}, {"date_and_date": "2017-12-28 16:05:08", "total_thing_id": 84, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'date_and_date' \u2192 'total_thing_id'", "line_num": 9, "original": "|> group_by(date_and_date)", "mutated": "|> group_by(total_thing_id)"}], "difficulty": "medium", "domain": "local_govt_and_lot__timed_status_of_things", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"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_address_id > 1)\n\nsummary = filtered_employees\n |> group_by(employee_name)\n |> aggregate(total_employee_id: sum(employee_id), count: count())\n |> compute(computed_val: total_employee_id * count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load customer_deliveries__employees data\nemployees = load(\"employees\")\n\nfiltered_employees = employees\n |> filter(employee_address_id > 6)\n\nsummary = filtered_employees\n |> group_by(employee_name)\n |> aggregate(total_employee_id: sum(computed_val), count: count())\n |> compute(computed_val: total_employee_id * count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"employee_name": "Kacie", "total_employee_id": 1, "count": 1, "computed_val": 1}, {"employee_name": "Dejuan", "total_employee_id": 2, "count": 1, "computed_val": 2}, {"employee_name": "Rogelio", "total_employee_id": 4, "count": 1, "computed_val": 4}, {"employee_name": "Eriberto", "total_employee_id": 5, "count": 1, "computed_val": 5}, {"employee_name": "Matteo", "total_employee_id": 6, "count": 1, "computed_val": 6}, {"employee_name": "Sasha", "total_employee_id": 7, "count": 1, "computed_val": 7}, {"employee_name": "Eino", "total_employee_id": 8, "count": 1, "computed_val": 8}, {"employee_name": "Cydney", "total_employee_id": 9, "count": 1, "computed_val": 9}, {"employee_name": "Cristian", "total_employee_id": 10, "count": 1, "computed_val": 10}, {"employee_name": "Lew", "total_employee_id": 11, "count": 1, "computed_val": 11}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'employee_id' \u2192 'computed_val'", "line_num": 9, "original": "|> aggregate(total_employee_id: sum(employee_id), count: count())", "mutated": "|> aggregate(total_employee_id: sum(computed_val), count: count())"}, {"category": "logic_bug", "description": "Wrong filter threshold: 1 \u2192 6", "line_num": 5, "original": "|> filter(employee_address_id > 1)", "mutated": "|> filter(employee_address_id > 6)"}], "difficulty": "hard", "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_hard
{"datasets": {"player": [{"player_id": 1, "name": "Michael Platt", "position": "Full Back", "club_id": 1, "apps": 20.0, "tries": 5.0, "goals": "0", "points": 20.0}, {"player_id": 2, "name": "Dave Halley", "position": "Right Wing", "club_id": 2, "apps": 23.0, "tries": 9.0, "goals": "0", "points": 36.0}, {"player_id": 3, "name": "James Evans", "position": "Right Centre", "club_id": 1, "apps": 30.0, "tries": 9.0, "goals": "0", "points": 36.0}, {"player_id": 4, "name": "Tame Tupou", "position": "Left Wing", "club_id": 2, "apps": 10.0, "tries": 3.0, "goals": "0", "points": 12.0}, {"player_id": 5, "name": "Iestyn Harris", "position": "Stand Off", "club_id": 4, "apps": 27.0, "tries": 3.0, "goals": "50/60", "points": 110.0}, {"player_id": 6, "name": "Paul Deacon (c)", "position": "Scrum Half", "club_id": 4, "apps": 20.0, "tries": 3.0, "goals": "90/106", "points": 188.0}, {"player_id": 7, "name": "Joe Vagana", "position": "Prop", "club_id": 5, "apps": 19.0, "tries": 1.0, "goals": "0/1", "points": 4.0}, {"player_id": 8, "name": "Terry Newton", "position": "Hooker", "club_id": 5, "apps": 26.0, "tries": 9.0, "goals": "0", "points": 36.0}, {"player_id": 9, "name": "Andy Lynch", "position": "Prop", "club_id": 2, "apps": 29.0, "tries": 5.0, "goals": "0", "points": 20.0}, {"player_id": 10, "name": "David Solomona", "position": "Second Row", "club_id": 2, "apps": 24.0, "tries": 5.0, "goals": "0", "points": 20.0}, {"player_id": 11, "name": "Glenn Morrison (vc)", "position": "Second Row", "club_id": 2, "apps": 14.0, "tries": 6.0, "goals": "0", "points": 24.0}, {"player_id": 12, "name": "Jamie Langley (vc)", "position": "Loose Forward", "club_id": 2, "apps": 28.0, "tries": 2.0, "goals": "0", "points": 8.0}, {"player_id": 13, "name": "Chris Feather", "position": "Prop", "club_id": 3, "apps": 13.0, "tries": 1.0, "goals": "0", "points": 4.0}, {"player_id": 14, "name": "Matt Cook", "position": "Second Row", "club_id": 4, "apps": 17.0, "tries": 4.0, "goals": "0", "points": 16.0}, {"player_id": 15, "name": "Sam Burgess", "position": "Loose Forward", "club_id": 4, "apps": 23.0, "tries": 8.0, "goals": "0", "points": 32.0}], "club": [{"club_id": 1, "name": "AIB", "region": "USA", "start_year": "2009"}, {"club_id": 2, "name": "BK Slide", "region": "UK", "start_year": "1998"}, {"club_id": 3, "name": "IFG", "region": "China", "start_year": "2005"}, {"club_id": 4, "name": "ASC", "region": "Japan", "start_year": "2001"}, {"club_id": 5, "name": "HGS2", "region": "England", "start_year": "2000"}, {"club_id": 6, "name": "HSBIF", "region": "Brazil", "start_year": "2011"}]}, "correct_code": "-- Load sports_competition__player data\nplayer = load(\"player\")\n\nfiltered_player = player\n |> filter(position == \"Right Centre\")\n |> select(name, player_id, club_id)\n\n-- Load lookup data\nclub = load(\"club\")\n\nenriched = join(filtered_player, club, on: club_id == club_id)\n\nresult = enriched\n |> sort_by(player_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load sports_competition__player data\nplayer = load(\"player\")\n\nfiltered_player = player\n |> filter(Centre == \"Right Centre\")\n |> select(name, player_id, club_id)\n\n-- Load lookup data\nclub = load(\"club\")\n\nenriched = join(filtered_player, club, on: club_id == club_id)\n\nresult = enriched\n |> sort_by(player_id, desc)\n |> take(7)\n\nemit result", "expected_output": [{"name": "AIB", "player_id": 3, "club_id": 1, "region": "USA", "start_year": "2009"}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'position' \u2192 'Centre'", "line_num": 5, "original": "|> filter(position == \"Right Centre\")", "mutated": "|> filter(Centre == \"Right Centre\")"}, {"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 7", "line_num": 15, "original": "|> take(5)", "mutated": "|> take(7)"}], "difficulty": "hard", "domain": "sports_competition__player", "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": {"investors": [{"investor_id": 1, "investor_details": "z"}, {"investor_id": 2, "investor_details": "z"}, {"investor_id": 3, "investor_details": "d"}, {"investor_id": 4, "investor_details": "d"}, {"investor_id": 5, "investor_details": "b"}, {"investor_id": 6, "investor_details": "k"}, {"investor_id": 7, "investor_details": "l"}, {"investor_id": 8, "investor_details": "t"}, {"investor_id": 9, "investor_details": "y"}, {"investor_id": 10, "investor_details": "r"}, {"investor_id": 11, "investor_details": "q"}, {"investor_id": 12, "investor_details": "c"}, {"investor_id": 13, "investor_details": "o"}, {"investor_id": 14, "investor_details": "w"}, {"investor_id": 15, "investor_details": "i"}, {"investor_id": 16, "investor_details": "y"}, {"investor_id": 17, "investor_details": "k"}, {"investor_id": 18, "investor_details": "w"}, {"investor_id": 19, "investor_details": "l"}, {"investor_id": 20, "investor_details": "j"}], "transactions": [{"transaction_id": 1, "investor_id": 6, "transaction_type_code": "SALE", "date_of_transaction": "1988-09-16 19:02:51", "amount_of_transaction": 302507.6996, "share_count": "8718572", "other_details": 0}, {"transaction_id": 2, "investor_id": 18, "transaction_type_code": "PUR", "date_of_transaction": "1982-06-06 17:19:00", "amount_of_transaction": 27.257, "share_count": "9", "other_details": 0}, {"transaction_id": 3, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1979-04-27 06:03:59", "amount_of_transaction": 48777.969, "share_count": "8580", "other_details": 0}, {"transaction_id": 4, "investor_id": 14, "transaction_type_code": "PUR", "date_of_transaction": "2001-11-28 15:06:25", "amount_of_transaction": 4.5263, "share_count": "8040", "other_details": 0}, {"transaction_id": 5, "investor_id": 8, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-17 13:13:30", "amount_of_transaction": 0, "share_count": "930", "other_details": 0}, {"transaction_id": 6, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1985-10-08 13:13:39", "amount_of_transaction": 207484122.2796, "share_count": "2751", "other_details": 0}, {"transaction_id": 7, "investor_id": 7, "transaction_type_code": "PUR", "date_of_transaction": "1990-12-02 09:03:38", "amount_of_transaction": 822.803, "share_count": "1522", "other_details": 0}, {"transaction_id": 8, "investor_id": 17, "transaction_type_code": "SALE", "date_of_transaction": "2004-01-18 20:37:50", "amount_of_transaction": 78035671.4424, "share_count": "96178", "other_details": 0}, {"transaction_id": 9, "investor_id": 20, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-13 02:18:47", "amount_of_transaction": 82057.207, "share_count": "", "other_details": 0}, {"transaction_id": 10, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1981-01-28 08:07:03", "amount_of_transaction": 29.3534, "share_count": "1654756", "other_details": 0}, {"transaction_id": 11, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2000-04-03 20:55:43", "amount_of_transaction": 0, "share_count": "674529892", "other_details": 0}, {"transaction_id": 12, "investor_id": 18, "transaction_type_code": "SALE", "date_of_transaction": "1983-11-01 17:57:27", "amount_of_transaction": 1, "share_count": "587", "other_details": 0}, {"transaction_id": 13, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2002-04-07 20:28:37", "amount_of_transaction": 183.2, "share_count": "", "other_details": 0}, {"transaction_id": 14, "investor_id": 3, "transaction_type_code": "PUR", "date_of_transaction": "2002-09-13 03:04:56", "amount_of_transaction": 0, "share_count": "630021", "other_details": 0}, {"transaction_id": 15, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1997-12-30 05:05:40", "amount_of_transaction": 8.9, "share_count": "93191", "other_details": 0}]}, "correct_code": "-- Load tracking_share_transactions__investors data\ninvestors = load(\"investors\")\n\nfiltered_investors = investors\n |> filter(investor_details == \"i\")\n\nsummary = filtered_investors\n |> group_by(investor_details)\n |> aggregate(min_investor_id: min(investor_id), count: count())\n\nresult = summary\n |> sort_by(min_investor_id, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__investors data\ninvestors = load(\"investors\")\n\nfiltered_investors = investors\n |> filter(investor_details == \"i\")\n\nsummary = filtered_investors\n |> group_by(investor_details)\n |> aggregate(min_investor_id: count(investor_id), count: count())\n\nresult = summary\n |> sort_by(min_investor_id, asc)\n |> take(3)\n\nemit result", "expected_output": [{"investor_details": "i", "min_investor_id": 15, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'min' \u2192 'count'", "line_num": 9, "original": "|> aggregate(min_investor_id: min(investor_id), count: count())", "mutated": "|> aggregate(min_investor_id: count(investor_id), count: count())"}], "difficulty": "medium", "domain": "tracking_share_transactions__investors", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"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"}], "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}]}, "correct_code": "-- Load activity_1__faculty data\nfaculty = load(\"faculty\")\n\nfiltered_faculty = faculty\n |> filter(fname == \"Lancelot\")\n |> filter(facid >= 2377)\n\nsummary = filtered_faculty\n |> group_by(rank)\n |> aggregate(avg_facid: avg(facid), count: count())\n\nresult = summary\n |> sort_by(avg_facid, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load activity_1__faculty data\nfaculty = load(\"faculty\")\n\nfiltered_faculty = faculty\n |> filter(fname == \"lancelots\")\n |> filter(facid >= 2377)\n\nsummary = filtered_faculty\n |> group_by(rank)\n |> aggregate(avg_facid: avg(facid), count: count())\n\nresult = summary\n |> sort_by(avg_facid, desc)\n |> take(10)\n\nemit result", "expected_output": [{"rank": "AsstProf", "avg_facid": 8102.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Lancelot' \u2192 'lancelot'", "line_num": 5, "original": "|> filter(fname == \"Lancelot\")", "mutated": "|> filter(fname == \"lancelot\")"}, {"category": "logic_bug", "description": "Wrong filter value: 'lancelot' \u2192 'lancelots'", "line_num": 5, "original": "|> filter(fname == \"lancelot\")", "mutated": "|> filter(fname == \"lancelots\")"}], "difficulty": "medium", "domain": "activity_1__faculty", "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": {"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\n-- Load lookup data\nproducts = load(\"products\")\n\nenriched = join(actual_order_products, products, on: product_id == product_id)\n |> compute(computed_val: product_id / actual_order_id)\n\nresult = enriched\n |> sort_by(product_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\n-- Load lookup data\nproducts = load(\"products\")\n\nenriched = join(actual_order_products, products, on: product_id == product_id)\n |> compute(computed_val: product_id / actual_order_id)\n\nresult = enriched\n |> sort_by(product_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"actual_order_id": 13, "product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition", "computed_val": 0.46153846153846156}, {"actual_order_id": 6, "product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition", "computed_val": 1.0}, {"actual_order_id": 14, "product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition", "computed_val": 0.35714285714285715}, {"actual_order_id": 5, "product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition", "computed_val": 1.0}, {"actual_order_id": 15, "product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition", "computed_val": 0.26666666666666666}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'desc' \u2192 'asc'", "line_num": 11, "original": "|> sort_by(product_id, desc)", "mutated": "|> sort_by(product_id, asc)"}], "difficulty": "medium", "domain": "customer_deliveries__actual_order_products", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"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\nsummary = dogs\n |> group_by(date_arrived)\n |> aggregate(max_dog_id: max(dog_id), count: count())\n |> compute(computed_val: max_dog_id - count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load dog_kennels__dogs data\ndogs = load(\"dogs\")\n\nsummary = dogs\n |> group_by(date_arrived)\n |> aggregate(max_dog_id: max(dog_id), count: count())\n |> compute(computed_val: max_dog_id - count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(4)\n\nemit result", "expected_output": [{"date_arrived": "2017-09-08 20:10:13", "max_dog_id": 1, "count": 1, "computed_val": 0}, {"date_arrived": "2017-12-22 05:02:02", "max_dog_id": 2, "count": 1, "computed_val": 1}, {"date_arrived": "2017-06-25 10:14:05", "max_dog_id": 3, "count": 1, "computed_val": 2}, {"date_arrived": "2017-04-20 00:58:55", "max_dog_id": 4, "count": 1, "computed_val": 3}, {"date_arrived": "2017-10-25 00:55:34", "max_dog_id": 5, "count": 1, "computed_val": 4}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 4", "line_num": 11, "original": "|> take(5)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "dog_kennels__dogs", "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": {"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_type_code == \"Purity\")\n\nsummary = filtered_characteristics\n |> group_by(characteristic_name)\n |> aggregate(max_other_characteristic_details: max(other_characteristic_details), count: count())\n |> compute(computed_val: max_other_characteristic_details - count)\n\nresult = summary\n |> sort_by(max_other_characteristic_details, 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_type_code == \"Purity\")\n\nsummary = filtered_characteristics\n |> group_by(characteristic_name)\n |> aggregate(max_other_characteristic_details: max(other_characteristic_details), count: count())\n |> compute(characteristic_type_code: computed_val - count)\n\nresult = summary\n |> sort_by(max_other_characteristic_details, desc)\n |> take(5)\n\nemit result", "expected_output": [{"characteristic_name": "warm", "max_other_characteristic_details": 0, "count": 2, "computed_val": -2}, {"characteristic_name": "hot", "max_other_characteristic_details": 0, "count": 1, "computed_val": -1}, {"characteristic_name": "fast", "max_other_characteristic_details": 0, "count": 1, "computed_val": -1}, {"characteristic_name": "slow", "max_other_characteristic_details": 0, "count": 2, "computed_val": -2}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'max_other_characteristic_details' \u2192 'computed_val'", "line_num": 10, "original": "|> compute(computed_val: max_other_characteristic_details - count)", "mutated": "|> compute(computed_val: computed_val - count)"}, {"category": "wrong_col", "description": "Wrong column reference: 'computed_val' \u2192 'characteristic_type_code'", "line_num": 10, "original": "|> compute(computed_val: computed_val - count)", "mutated": "|> compute(characteristic_type_code: computed_val - count)"}], "difficulty": "medium", "domain": "products_gen_characteristics__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": {"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 == \"313\")\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\nenriched = join(summary, section, on: course_id == course_id)\n\nresult = enriched\n |> sort_by(avg_year, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nfiltered_teaches = teaches\n |> filter(course_id == \"313s\")\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\nenriched = join(summary, section, on: course_id == course_id)\n\nresult = enriched\n |> sort_by(avg_year, desc)\n |> take(10)\n\nemit result", "expected_output": [{"course_id": "313", "avg_year": 2010.0, "count": 1, "sec_id": "1", "semester": "Fall", "year": 2010, "building": "Chandler", "room_number": "804", "time_slot_id": "N"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '313' \u2192 '313s'", "line_num": 5, "original": "|> filter(course_id == \"313\")", "mutated": "|> filter(course_id == \"313s\")"}], "difficulty": "medium", "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_easy
{"datasets": {"driverstandings": [{"driverstandingsid": 1, "raceid": 18, "driverid": 1, "points": 10.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 2, "raceid": 18, "driverid": 2, "points": 8.0, "position": 2, "positiontext": "2", "wins": 0}, {"driverstandingsid": 3, "raceid": 18, "driverid": 3, "points": 6.0, "position": 3, "positiontext": "3", "wins": 0}, {"driverstandingsid": 4, "raceid": 18, "driverid": 4, "points": 5.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 5, "raceid": 18, "driverid": 5, "points": 4.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 6, "raceid": 18, "driverid": 6, "points": 3.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 7, "raceid": 18, "driverid": 7, "points": 2.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 8, "raceid": 18, "driverid": 8, "points": 1.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 9, "raceid": 19, "driverid": 1, "points": 14.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 10, "raceid": 19, "driverid": 2, "points": 11.0, "position": 3, "positiontext": "3", "wins": 0}, {"driverstandingsid": 11, "raceid": 19, "driverid": 3, "points": 6.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 12, "raceid": 19, "driverid": 4, "points": 6.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 13, "raceid": 19, "driverid": 5, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 14, "raceid": 19, "driverid": 6, "points": 3.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 15, "raceid": 19, "driverid": 7, "points": 2.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 16, "raceid": 19, "driverid": 8, "points": 11.0, "position": 2, "positiontext": "2", "wins": 1}, {"driverstandingsid": 17, "raceid": 19, "driverid": 9, "points": 8.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 18, "raceid": 19, "driverid": 15, "points": 5.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 19, "raceid": 19, "driverid": 17, "points": 2.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 20, "raceid": 19, "driverid": 14, "points": 0.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 21, "raceid": 19, "driverid": 18, "points": 0.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 22, "raceid": 19, "driverid": 12, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 23, "raceid": 19, "driverid": 21, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 24, "raceid": 19, "driverid": 22, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 25, "raceid": 19, "driverid": 19, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 26, "raceid": 19, "driverid": 11, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 27, "raceid": 20, "driverid": 1, "points": 14.0, "position": 3, "positiontext": "3", "wins": 1}, {"driverstandingsid": 28, "raceid": 20, "driverid": 2, "points": 16.0, "position": 2, "positiontext": "2", "wins": 0}, {"driverstandingsid": 29, "raceid": 20, "driverid": 3, "points": 7.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 30, "raceid": 20, "driverid": 4, "points": 6.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 31, "raceid": 20, "driverid": 5, "points": 14.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 32, "raceid": 20, "driverid": 6, "points": 3.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 33, "raceid": 20, "driverid": 7, "points": 2.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 34, "raceid": 20, "driverid": 8, "points": 19.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 35, "raceid": 20, "driverid": 9, "points": 14.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 36, "raceid": 20, "driverid": 15, "points": 8.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 37, "raceid": 20, "driverid": 17, "points": 4.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 38, "raceid": 20, "driverid": 14, "points": 0.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 39, "raceid": 20, "driverid": 18, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 40, "raceid": 20, "driverid": 12, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 41, "raceid": 20, "driverid": 21, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 42, "raceid": 20, "driverid": 22, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 43, "raceid": 20, "driverid": 19, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 44, "raceid": 20, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 45, "raceid": 20, "driverid": 13, "points": 10.0, "position": 6, "positiontext": "6", "wins": 1}, {"driverstandingsid": 46, "raceid": 20, "driverid": 10, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 47, "raceid": 20, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 48, "raceid": 21, "driverid": 1, "points": 20.0, "position": 2, "positiontext": "2", "wins": 1}, {"driverstandingsid": 49, "raceid": 21, "driverid": 2, "points": 16.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 50, "raceid": 21, "driverid": 3, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 51, "raceid": 21, "driverid": 4, "points": 6.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 52, "raceid": 21, "driverid": 5, "points": 14.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 53, "raceid": 21, "driverid": 6, "points": 5.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 54, "raceid": 21, "driverid": 7, "points": 2.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 55, "raceid": 21, "driverid": 8, "points": 29.0, "position": 1, "positiontext": "1", "wins": 2}, {"driverstandingsid": 56, "raceid": 21, "driverid": 9, "points": 19.0, "position": 3, "positiontext": "3", "wins": 0}, {"driverstandingsid": 57, "raceid": 21, "driverid": 15, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 58, "raceid": 21, "driverid": 17, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 59, "raceid": 21, "driverid": 14, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 60, "raceid": 21, "driverid": 18, "points": 3.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 61, "raceid": 21, "driverid": 12, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 62, "raceid": 21, "driverid": 21, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 63, "raceid": 21, "driverid": 22, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 64, "raceid": 21, "driverid": 19, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 65, "raceid": 21, "driverid": 11, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 66, "raceid": 21, "driverid": 13, "points": 18.0, "position": 4, "positiontext": "4", "wins": 1}, {"driverstandingsid": 67, "raceid": 21, "driverid": 10, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 68, "raceid": 21, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 69, "raceid": 22, "driverid": 1, "points": 28.0, "position": 3, "positiontext": "3", "wins": 1}, {"driverstandingsid": 70, "raceid": 22, "driverid": 2, "points": 20.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 71, "raceid": 22, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 72, "raceid": 22, "driverid": 4, "points": 9.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 73, "raceid": 22, "driverid": 5, "points": 14.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 74, "raceid": 22, "driverid": 6, "points": 5.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 75, "raceid": 22, "driverid": 7, "points": 2.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 76, "raceid": 22, "driverid": 8, "points": 35.0, "position": 1, "positiontext": "1", "wins": 2}, {"driverstandingsid": 77, "raceid": 22, "driverid": 9, "points": 24.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 78, "raceid": 22, "driverid": 15, "points": 9.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 79, "raceid": 22, "driverid": 17, "points": 10.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 80, "raceid": 22, "driverid": 14, "points": 0.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 81, "raceid": 22, "driverid": 18, "points": 3.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 82, "raceid": 22, "driverid": 12, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 83, "raceid": 22, "driverid": 21, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 84, "raceid": 22, "driverid": 22, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 85, "raceid": 22, "driverid": 19, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 86, "raceid": 22, "driverid": 11, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 87, "raceid": 22, "driverid": 13, "points": 28.0, "position": 2, "positiontext": "2", "wins": 2}, {"driverstandingsid": 88, "raceid": 22, "driverid": 10, "points": 0.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 89, "raceid": 22, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 90, "raceid": 22, "driverid": 20, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 91, "raceid": 23, "driverid": 1, "points": 38.0, "position": 1, "positiontext": "1", "wins": 2}, {"driverstandingsid": 92, "raceid": 23, "driverid": 2, "points": 20.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 93, "raceid": 23, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 94, "raceid": 23, "driverid": 4, "points": 9.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 95, "raceid": 23, "driverid": 5, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 96, "raceid": 23, "driverid": 6, "points": 7.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 97, "raceid": 23, "driverid": 7, "points": 2.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 98, "raceid": 23, "driverid": 8, "points": 35.0, "position": 2, "positiontext": "2", "wins": 2}, {"driverstandingsid": 99, "raceid": 23, "driverid": 9, "points": 32.0, "position": 4, "positiontext": "4", "wins": 0}, {"driverstandingsid": 100, "raceid": 23, "driverid": 15, "points": 9.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 101, "raceid": 23, "driverid": 17, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 102, "raceid": 23, "driverid": 14, "points": 0.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 103, "raceid": 23, "driverid": 18, "points": 3.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 104, "raceid": 23, "driverid": 12, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 105, "raceid": 23, "driverid": 21, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 106, "raceid": 23, "driverid": 22, "points": 3.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 107, "raceid": 23, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 108, "raceid": 23, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 109, "raceid": 23, "driverid": 13, "points": 34.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 110, "raceid": 23, "driverid": 10, "points": 0.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 111, "raceid": 23, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 112, "raceid": 23, "driverid": 20, "points": 4.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 113, "raceid": 24, "driverid": 1, "points": 38.0, "position": 2, "positiontext": "2", "wins": 2}, {"driverstandingsid": 114, "raceid": 24, "driverid": 2, "points": 28.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 115, "raceid": 24, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 116, "raceid": 24, "driverid": 4, "points": 9.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 117, "raceid": 24, "driverid": 5, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 118, "raceid": 24, "driverid": 6, "points": 7.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 119, "raceid": 24, "driverid": 7, "points": 2.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 120, "raceid": 24, "driverid": 8, "points": 35.0, "position": 4, "positiontext": "4", "wins": 2}, {"driverstandingsid": 121, "raceid": 24, "driverid": 9, "points": 42.0, "position": 1, "positiontext": "1", "wins": 1}, {"driverstandingsid": 122, "raceid": 24, "driverid": 15, "points": 12.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 123, "raceid": 24, "driverid": 17, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 124, "raceid": 24, "driverid": 14, "points": 6.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 125, "raceid": 24, "driverid": 18, "points": 3.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 126, "raceid": 24, "driverid": 12, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 127, "raceid": 24, "driverid": 21, "points": 0.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 128, "raceid": 24, "driverid": 22, "points": 5.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 129, "raceid": 24, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 130, "raceid": 24, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 131, "raceid": 24, "driverid": 13, "points": 38.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 132, "raceid": 24, "driverid": 10, "points": 5.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 133, "raceid": 24, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 134, "raceid": 24, "driverid": 20, "points": 5.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 135, "raceid": 25, "driverid": 1, "points": 38.0, "position": 4, "positiontext": "4", "wins": 2}, {"driverstandingsid": 136, "raceid": 25, "driverid": 2, "points": 28.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 137, "raceid": 25, "driverid": 3, "points": 8.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 138, "raceid": 25, "driverid": 4, "points": 10.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 139, "raceid": 25, "driverid": 5, "points": 20.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 140, "raceid": 25, "driverid": 6, "points": 7.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 141, "raceid": 25, "driverid": 7, "points": 2.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 142, "raceid": 25, "driverid": 8, "points": 43.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 143, "raceid": 25, "driverid": 9, "points": 46.0, "position": 2, "positiontext": "2", "wins": 1}, {"driverstandingsid": 144, "raceid": 25, "driverid": 15, "points": 18.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 145, "raceid": 25, "driverid": 17, "points": 18.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 146, "raceid": 25, "driverid": 14, "points": 6.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 147, "raceid": 25, "driverid": 18, "points": 3.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 148, "raceid": 25, "driverid": 12, "points": 2.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 149, "raceid": 25, "driverid": 21, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 150, "raceid": 25, "driverid": 22, "points": 5.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 151, "raceid": 25, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 152, "raceid": 25, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 153, "raceid": 25, "driverid": 13, "points": 48.0, "position": 1, "positiontext": "1", "wins": 3}, {"driverstandingsid": 154, "raceid": 25, "driverid": 10, "points": 5.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 155, "raceid": 25, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 156, "raceid": 25, "driverid": 20, "points": 5.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 157, "raceid": 26, "driverid": 1, "points": 48.0, "position": 1, "positiontext": "1", "wins": 3}, {"driverstandingsid": 158, "raceid": 26, "driverid": 2, "points": 36.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 159, "raceid": 26, "driverid": 3, "points": 8.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 160, "raceid": 26, "driverid": 4, "points": 13.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 161, "raceid": 26, "driverid": 5, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 162, "raceid": 26, "driverid": 6, "points": 8.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 163, "raceid": 26, "driverid": 7, "points": 2.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 164, "raceid": 26, "driverid": 8, "points": 48.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 165, "raceid": 26, "driverid": 9, "points": 46.0, "position": 4, "positiontext": "4", "wins": 1}, {"driverstandingsid": 166, "raceid": 26, "driverid": 15, "points": 20.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 167, "raceid": 26, "driverid": 17, "points": 18.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 168, "raceid": 26, "driverid": 14, "points": 6.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 169, "raceid": 26, "driverid": 18, "points": 3.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 170, "raceid": 26, "driverid": 12, "points": 2.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 171, "raceid": 26, "driverid": 21, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 172, "raceid": 26, "driverid": 22, "points": 11.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 173, "raceid": 26, "driverid": 19, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 174, "raceid": 26, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 175, "raceid": 26, "driverid": 13, "points": 48.0, "position": 2, "positiontext": "2", "wins": 3}, {"driverstandingsid": 176, "raceid": 26, "driverid": 10, "points": 5.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 177, "raceid": 26, "driverid": 16, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 178, "raceid": 26, "driverid": 20, "points": 5.0, "position": 15, "positiontext": "15", "wins": 0}, {"driverstandingsid": 179, "raceid": 27, "driverid": 1, "points": 58.0, "position": 1, "positiontext": "1", "wins": 4}, {"driverstandingsid": 180, "raceid": 27, "driverid": 2, "points": 41.0, "position": 5, "positiontext": "5", "wins": 0}, {"driverstandingsid": 181, "raceid": 27, "driverid": 3, "points": 8.0, "position": 12, "positiontext": "12", "wins": 0}, {"driverstandingsid": 182, "raceid": 27, "driverid": 4, "points": 13.0, "position": 9, "positiontext": "9", "wins": 0}, {"driverstandingsid": 183, "raceid": 27, "driverid": 5, "points": 28.0, "position": 6, "positiontext": "6", "wins": 0}, {"driverstandingsid": 184, "raceid": 27, "driverid": 6, "points": 8.0, "position": 13, "positiontext": "13", "wins": 0}, {"driverstandingsid": 185, "raceid": 27, "driverid": 7, "points": 2.0, "position": 18, "positiontext": "18", "wins": 0}, {"driverstandingsid": 186, "raceid": 27, "driverid": 8, "points": 51.0, "position": 3, "positiontext": "3", "wins": 2}, {"driverstandingsid": 187, "raceid": 27, "driverid": 9, "points": 48.0, "position": 4, "positiontext": "4", "wins": 1}, {"driverstandingsid": 188, "raceid": 27, "driverid": 15, "points": 20.0, "position": 7, "positiontext": "7", "wins": 0}, {"driverstandingsid": 189, "raceid": 27, "driverid": 17, "points": 18.0, "position": 8, "positiontext": "8", "wins": 0}, {"driverstandingsid": 190, "raceid": 27, "driverid": 14, "points": 6.0, "position": 14, "positiontext": "14", "wins": 0}, {"driverstandingsid": 191, "raceid": 27, "driverid": 18, "points": 3.0, "position": 17, "positiontext": "17", "wins": 0}, {"driverstandingsid": 192, "raceid": 27, "driverid": 12, "points": 10.0, "position": 11, "positiontext": "11", "wins": 0}, {"driverstandingsid": 193, "raceid": 27, "driverid": 21, "points": 0.0, "position": 19, "positiontext": "19", "wins": 0}, {"driverstandingsid": 194, "raceid": 27, "driverid": 22, "points": 11.0, "position": 10, "positiontext": "10", "wins": 0}, {"driverstandingsid": 195, "raceid": 27, "driverid": 19, "points": 0.0, "position": 22, "positiontext": "22", "wins": 0}, {"driverstandingsid": 196, "raceid": 27, "driverid": 11, "points": 0.0, "position": 20, "positiontext": "20", "wins": 0}, {"driverstandingsid": 197, "raceid": 27, "driverid": 13, "points": 54.0, "position": 2, "positiontext": "2", "wins": 3}, {"driverstandingsid": 198, "raceid": 27, "driverid": 10, "points": 5.0, "position": 16, "positiontext": "16", "wins": 0}, {"driverstandingsid": 199, "raceid": 27, "driverid": 16, "points": 0.0, "position": 21, "positiontext": "21", "wins": 0}, {"driverstandingsid": 200, "raceid": 27, "driverid": 20, "points": 6.0, "position": 15, "positiontext": "15", "wins": 0}], "races": [{"raceid": 1, "year": 2009, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2009-03-29", "time": "06:00:00", "url": "http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix"}, {"raceid": 2, "year": 2009, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2009-04-05", "time": "09:00:00", "url": "http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix"}, {"raceid": 3, "year": 2009, "round": 3, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2009-04-19", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix"}, {"raceid": 4, "year": 2009, "round": 4, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2009-04-26", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Bahrain_Grand_Prix"}, {"raceid": 5, "year": 2009, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2009-05-10", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Spanish_Grand_Prix"}, {"raceid": 6, "year": 2009, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2009-05-24", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Monaco_Grand_Prix"}, {"raceid": 7, "year": 2009, "round": 7, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2009-06-07", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Turkish_Grand_Prix"}, {"raceid": 8, "year": 2009, "round": 8, "circuitid": 9, "name": "British Grand Prix", "date": "2009-06-21", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_British_Grand_Prix"}, {"raceid": 9, "year": 2009, "round": 9, "circuitid": 20, "name": "German Grand Prix", "date": "2009-07-12", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_German_Grand_Prix"}, {"raceid": 10, "year": 2009, "round": 10, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2009-07-26", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Hungarian_Grand_Prix"}, {"raceid": 11, "year": 2009, "round": 11, "circuitid": 12, "name": "European Grand Prix", "date": "2009-08-23", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_European_Grand_Prix"}, {"raceid": 12, "year": 2009, "round": 12, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2009-08-30", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Belgian_Grand_Prix"}, {"raceid": 13, "year": 2009, "round": 13, "circuitid": 14, "name": "Italian Grand Prix", "date": "2009-09-13", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Italian_Grand_Prix"}, {"raceid": 14, "year": 2009, "round": 14, "circuitid": 15, "name": "Singapore Grand Prix", "date": "2009-09-27", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2009_Singapore_Grand_Prix"}, {"raceid": 15, "year": 2009, "round": 15, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2009-10-04", "time": "05:00:00", "url": "http://en.wikipedia.org/wiki/2009_Japanese_Grand_Prix"}, {"raceid": 16, "year": 2009, "round": 16, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2009-10-18", "time": "16:00:00", "url": "http://en.wikipedia.org/wiki/2009_Brazilian_Grand_Prix"}, {"raceid": 17, "year": 2009, "round": 17, "circuitid": 24, "name": "Abu Dhabi Grand Prix", "date": "2009-11-01", "time": "11:00:00", "url": "http://en.wikipedia.org/wiki/2009_Abu_Dhabi_Grand_Prix"}, {"raceid": 18, "year": 2008, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2008-03-16", "time": "04:30:00", "url": "http://en.wikipedia.org/wiki/2008_Australian_Grand_Prix"}, {"raceid": 19, "year": 2008, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2008-03-23", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2008_Malaysian_Grand_Prix"}, {"raceid": 20, "year": 2008, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2008-04-06", "time": "11:30:00", "url": "http://en.wikipedia.org/wiki/2008_Bahrain_Grand_Prix"}, {"raceid": 21, "year": 2008, "round": 4, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2008-04-27", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Spanish_Grand_Prix"}, {"raceid": 22, "year": 2008, "round": 5, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2008-05-11", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Turkish_Grand_Prix"}, {"raceid": 23, "year": 2008, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2008-05-25", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Monaco_Grand_Prix"}, {"raceid": 24, "year": 2008, "round": 7, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2008-06-08", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2008_Canadian_Grand_Prix"}, {"raceid": 25, "year": 2008, "round": 8, "circuitid": 8, "name": "French Grand Prix", "date": "2008-06-22", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_French_Grand_Prix"}, {"raceid": 26, "year": 2008, "round": 9, "circuitid": 9, "name": "British Grand Prix", "date": "2008-07-06", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_British_Grand_Prix"}, {"raceid": 27, "year": 2008, "round": 10, "circuitid": 10, "name": "German Grand Prix", "date": "2008-07-20", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_German_Grand_Prix"}, {"raceid": 28, "year": 2008, "round": 11, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2008-08-03", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Hungarian_Grand_Prix"}, {"raceid": 29, "year": 2008, "round": 12, "circuitid": 12, "name": "European Grand Prix", "date": "2008-08-24", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_European_Grand_Prix"}, {"raceid": 30, "year": 2008, "round": 13, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2008-09-07", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Belgian_Grand_Prix"}, {"raceid": 31, "year": 2008, "round": 14, "circuitid": 14, "name": "Italian Grand Prix", "date": "2008-09-14", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Italian_Grand_Prix"}, {"raceid": 32, "year": 2008, "round": 15, "circuitid": 15, "name": "Singapore Grand Prix", "date": "2008-09-28", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2008_Singapore_Grand_Prix"}, {"raceid": 33, "year": 2008, "round": 16, "circuitid": 16, "name": "Japanese Grand Prix", "date": "2008-10-12", "time": "04:30:00", "url": "http://en.wikipedia.org/wiki/2008_Japanese_Grand_Prix"}, {"raceid": 34, "year": 2008, "round": 17, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2008-10-19", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2008_Chinese_Grand_Prix"}, {"raceid": 35, "year": 2008, "round": 18, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2008-11-02", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2008_Brazilian_Grand_Prix"}, {"raceid": 36, "year": 2007, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2007-03-18", "time": "03:00:00", "url": "http://en.wikipedia.org/wiki/2007_Australian_Grand_Prix"}, {"raceid": 37, "year": 2007, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2007-04-08", "time": "07:00:00", "url": "http://en.wikipedia.org/wiki/2007_Malaysian_Grand_Prix"}, {"raceid": 38, "year": 2007, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2007-04-15", "time": "11:30:00", "url": "http://en.wikipedia.org/wiki/2007_Bahrain_Grand_Prix"}, {"raceid": 39, "year": 2007, "round": 4, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2007-05-13", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Spanish_Grand_Prix"}, {"raceid": 40, "year": 2007, "round": 5, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2007-05-27", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Monaco_Grand_Prix"}, {"raceid": 41, "year": 2007, "round": 6, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2007-06-10", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2007_Canadian_Grand_Prix"}, {"raceid": 42, "year": 2007, "round": 7, "circuitid": 19, "name": "United States Grand Prix", "date": "2007-06-17", "time": "17:00:00", "url": "http://en.wikipedia.org/wiki/2007_United_States_Grand_Prix"}, {"raceid": 43, "year": 2007, "round": 8, "circuitid": 8, "name": "French Grand Prix", "date": "2007-07-01", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_French_Grand_Prix"}, {"raceid": 44, "year": 2007, "round": 9, "circuitid": 9, "name": "British Grand Prix", "date": "2007-07-08", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_British_Grand_Prix"}, {"raceid": 45, "year": 2007, "round": 10, "circuitid": 20, "name": "European Grand Prix", "date": "2007-07-22", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_European_Grand_Prix"}, {"raceid": 46, "year": 2007, "round": 11, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2007-08-05", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Hungarian_Grand_Prix"}, {"raceid": 47, "year": 2007, "round": 12, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2007-08-26", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Turkish_Grand_Prix"}, {"raceid": 48, "year": 2007, "round": 13, "circuitid": 14, "name": "Italian Grand Prix", "date": "2007-09-09", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Italian_Grand_Prix"}, {"raceid": 49, "year": 2007, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2007-09-16", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2007_Belgian_Grand_Prix"}, {"raceid": 50, "year": 2007, "round": 15, "circuitid": 16, "name": "Japanese Grand Prix", "date": "2007-09-30", "time": "04:30:00", "url": "http://en.wikipedia.org/wiki/2007_Japanese_Grand_Prix"}, {"raceid": 51, "year": 2007, "round": 16, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2007-10-07", "time": "06:00:00", "url": "http://en.wikipedia.org/wiki/2007_Chinese_Grand_Prix"}, {"raceid": 52, "year": 2007, "round": 17, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2007-10-21", "time": "16:00:00", "url": "http://en.wikipedia.org/wiki/2007_Brazilian_Grand_Prix"}, {"raceid": 53, "year": 2006, "round": 1, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2006-03-12", "time": "14:30:00", "url": "http://en.wikipedia.org/wiki/2006_Bahrain_Grand_Prix"}, {"raceid": 54, "year": 2006, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2006-03-19", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2006_Malaysian_Grand_Prix"}, {"raceid": 55, "year": 2006, "round": 3, "circuitid": 1, "name": "Australian Grand Prix", "date": "2006-04-02", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Australian_Grand_Prix"}, {"raceid": 56, "year": 2006, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2006-04-23", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_San_Marino_Grand_Prix"}, {"raceid": 57, "year": 2006, "round": 5, "circuitid": 20, "name": "European Grand Prix", "date": "2006-05-07", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_European_Grand_Prix"}, {"raceid": 58, "year": 2006, "round": 6, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2006-05-14", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Spanish_Grand_Prix"}, {"raceid": 59, "year": 2006, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2006-05-28", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Monaco_Grand_Prix"}, {"raceid": 60, "year": 2006, "round": 8, "circuitid": 9, "name": "British Grand Prix", "date": "2006-06-11", "time": "12:00:00", "url": "http://en.wikipedia.org/wiki/2006_British_Grand_Prix"}, {"raceid": 61, "year": 2006, "round": 9, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2006-06-25", "time": "13:00:00", "url": "http://en.wikipedia.org/wiki/2006_Canadian_Grand_Prix"}, {"raceid": 62, "year": 2006, "round": 10, "circuitid": 19, "name": "United States Grand Prix", "date": "2006-07-02", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_United_States_Grand_Prix"}, {"raceid": 63, "year": 2006, "round": 11, "circuitid": 8, "name": "French Grand Prix", "date": "2006-07-16", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_French_Grand_Prix"}, {"raceid": 64, "year": 2006, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2006-07-30", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_German_Grand_Prix"}, {"raceid": 65, "year": 2006, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2006-08-06", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Hungarian_Grand_Prix"}, {"raceid": 66, "year": 2006, "round": 14, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2006-08-27", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2006_Turkish_Grand_Prix"}, {"raceid": 67, "year": 2006, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2006-09-10", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Italian_Grand_Prix"}, {"raceid": 68, "year": 2006, "round": 16, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2006-10-01", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Chinese_Grand_Prix"}, {"raceid": 69, "year": 2006, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2006-10-08", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Japanese_Grand_Prix"}, {"raceid": 70, "year": 2006, "round": 18, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2006-10-22", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2006_Brazilian_Grand_Prix"}, {"raceid": 71, "year": 2005, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2005-03-06", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Australian_Grand_Prix"}, {"raceid": 72, "year": 2005, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2005-03-20", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2005_Malaysian_Grand_Prix"}, {"raceid": 73, "year": 2005, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2005-04-03", "time": "14:30:00", "url": "http://en.wikipedia.org/wiki/2005_Bahrain_Grand_Prix"}, {"raceid": 74, "year": 2005, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2005-04-24", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_San_Marino_Grand_Prix"}, {"raceid": 75, "year": 2005, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2005-05-08", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Spanish_Grand_Prix"}, {"raceid": 76, "year": 2005, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2005-05-22", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Monaco_Grand_Prix"}, {"raceid": 77, "year": 2005, "round": 7, "circuitid": 20, "name": "European Grand Prix", "date": "2005-05-29", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_European_Grand_Prix"}, {"raceid": 78, "year": 2005, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2005-06-12", "time": "13:00:00", "url": "http://en.wikipedia.org/wiki/2005_Canadian_Grand_Prix"}, {"raceid": 79, "year": 2005, "round": 9, "circuitid": 19, "name": "United States Grand Prix", "date": "2005-06-19", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_United_States_Grand_Prix"}, {"raceid": 80, "year": 2005, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2005-07-03", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_French_Grand_Prix"}, {"raceid": 81, "year": 2005, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2005-07-10", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_British_Grand_Prix"}, {"raceid": 82, "year": 2005, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2005-07-24", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_German_Grand_Prix"}, {"raceid": 83, "year": 2005, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2005-07-31", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Hungarian_Grand_Prix"}, {"raceid": 84, "year": 2005, "round": 14, "circuitid": 5, "name": "Turkish Grand Prix", "date": "2005-08-21", "time": "15:00:00", "url": "http://en.wikipedia.org/wiki/2005_Turkish_Grand_Prix"}, {"raceid": 85, "year": 2005, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2005-09-04", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Italian_Grand_Prix"}, {"raceid": 86, "year": 2005, "round": 16, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2005-09-11", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Belgian_Grand_Prix"}, {"raceid": 87, "year": 2005, "round": 17, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2005-09-25", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Brazilian_Grand_Prix"}, {"raceid": 88, "year": 2005, "round": 18, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2005-10-09", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Japanese_Grand_Prix"}, {"raceid": 89, "year": 2005, "round": 19, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2005-10-16", "time": "14:00:00", "url": "http://en.wikipedia.org/wiki/2005_Chinese_Grand_Prix"}, {"raceid": 90, "year": 2004, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2004-03-07", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Australian_Grand_Prix"}, {"raceid": 91, "year": 2004, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2004-03-21", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Malaysian_Grand_Prix"}, {"raceid": 92, "year": 2004, "round": 3, "circuitid": 3, "name": "Bahrain Grand Prix", "date": "2004-04-04", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Bahrain_Grand_Prix"}, {"raceid": 93, "year": 2004, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2004-04-25", "time": "", "url": "http://en.wikipedia.org/wiki/2004_San_Marino_Grand_Prix"}, {"raceid": 94, "year": 2004, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2004-05-09", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Spanish_Grand_Prix"}, {"raceid": 95, "year": 2004, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2004-05-23", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Monaco_Grand_Prix"}, {"raceid": 96, "year": 2004, "round": 7, "circuitid": 20, "name": "European Grand Prix", "date": "2004-05-30", "time": "", "url": "http://en.wikipedia.org/wiki/2004_European_Grand_Prix"}, {"raceid": 97, "year": 2004, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2004-06-13", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Canadian_Grand_Prix"}, {"raceid": 98, "year": 2004, "round": 9, "circuitid": 19, "name": "United States Grand Prix", "date": "2004-06-20", "time": "", "url": "http://en.wikipedia.org/wiki/2004_United_States_Grand_Prix"}, {"raceid": 99, "year": 2004, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2004-07-04", "time": "", "url": "http://en.wikipedia.org/wiki/2004_French_Grand_Prix"}, {"raceid": 100, "year": 2004, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2004-07-11", "time": "", "url": "http://en.wikipedia.org/wiki/2004_British_Grand_Prix"}, {"raceid": 101, "year": 2004, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2004-07-25", "time": "", "url": "http://en.wikipedia.org/wiki/2004_German_Grand_Prix"}, {"raceid": 102, "year": 2004, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2004-08-15", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Hungarian_Grand_Prix"}, {"raceid": 103, "year": 2004, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2004-08-29", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Belgian_Grand_Prix"}, {"raceid": 104, "year": 2004, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2004-09-12", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Italian_Grand_Prix"}, {"raceid": 105, "year": 2004, "round": 16, "circuitid": 17, "name": "Chinese Grand Prix", "date": "2004-09-26", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Chinese_Grand_Prix"}, {"raceid": 106, "year": 2004, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2004-10-10", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Japanese_Grand_Prix"}, {"raceid": 107, "year": 2004, "round": 18, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2004-10-24", "time": "", "url": "http://en.wikipedia.org/wiki/2004_Brazilian_Grand_Prix"}, {"raceid": 108, "year": 2003, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2003-03-09", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Australian_Grand_Prix"}, {"raceid": 109, "year": 2003, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2003-03-23", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Malaysian_Grand_Prix"}, {"raceid": 110, "year": 2003, "round": 3, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2003-04-06", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Brazilian_Grand_Prix"}, {"raceid": 111, "year": 2003, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2003-04-20", "time": "", "url": "http://en.wikipedia.org/wiki/2003_San_Marino_Grand_Prix"}, {"raceid": 112, "year": 2003, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2003-05-04", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Spanish_Grand_Prix"}, {"raceid": 113, "year": 2003, "round": 6, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2003-05-18", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Austrian_Grand_Prix"}, {"raceid": 114, "year": 2003, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2003-06-01", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Monaco_Grand_Prix"}, {"raceid": 115, "year": 2003, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2003-06-15", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Canadian_Grand_Prix"}, {"raceid": 116, "year": 2003, "round": 9, "circuitid": 20, "name": "European Grand Prix", "date": "2003-06-29", "time": "", "url": "http://en.wikipedia.org/wiki/2003_European_Grand_Prix"}, {"raceid": 117, "year": 2003, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2003-07-06", "time": "", "url": "http://en.wikipedia.org/wiki/2003_French_Grand_Prix"}, {"raceid": 118, "year": 2003, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2003-07-20", "time": "", "url": "http://en.wikipedia.org/wiki/2003_British_Grand_Prix"}, {"raceid": 119, "year": 2003, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2003-08-03", "time": "", "url": "http://en.wikipedia.org/wiki/2003_German_Grand_Prix"}, {"raceid": 120, "year": 2003, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2003-08-24", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Hungarian_Grand_Prix"}, {"raceid": 121, "year": 2003, "round": 14, "circuitid": 14, "name": "Italian Grand Prix", "date": "2003-09-14", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Italian_Grand_Prix"}, {"raceid": 122, "year": 2003, "round": 15, "circuitid": 19, "name": "United States Grand Prix", "date": "2003-09-28", "time": "", "url": "http://en.wikipedia.org/wiki/2003_United_States_Grand_Prix"}, {"raceid": 123, "year": 2003, "round": 16, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2003-10-12", "time": "", "url": "http://en.wikipedia.org/wiki/2003_Japanese_Grand_Prix"}, {"raceid": 124, "year": 2002, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2002-03-03", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Australian_Grand_Prix"}, {"raceid": 125, "year": 2002, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2002-03-17", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Malaysian_Grand_Prix"}, {"raceid": 126, "year": 2002, "round": 3, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2002-03-31", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Brazilian_Grand_Prix"}, {"raceid": 127, "year": 2002, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2002-04-14", "time": "", "url": "http://en.wikipedia.org/wiki/2002_San_Marino_Grand_Prix"}, {"raceid": 128, "year": 2002, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2002-04-28", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Spanish_Grand_Prix"}, {"raceid": 129, "year": 2002, "round": 6, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2002-05-12", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Austrian_Grand_Prix"}, {"raceid": 130, "year": 2002, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2002-05-26", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Monaco_Grand_Prix"}, {"raceid": 131, "year": 2002, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2002-06-09", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Canadian_Grand_Prix"}, {"raceid": 132, "year": 2002, "round": 9, "circuitid": 20, "name": "European Grand Prix", "date": "2002-06-23", "time": "", "url": "http://en.wikipedia.org/wiki/2002_European_Grand_Prix"}, {"raceid": 133, "year": 2002, "round": 10, "circuitid": 9, "name": "British Grand Prix", "date": "2002-07-07", "time": "", "url": "http://en.wikipedia.org/wiki/2002_British_Grand_Prix"}, {"raceid": 134, "year": 2002, "round": 11, "circuitid": 8, "name": "French Grand Prix", "date": "2002-07-21", "time": "", "url": "http://en.wikipedia.org/wiki/2002_French_Grand_Prix"}, {"raceid": 135, "year": 2002, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2002-07-28", "time": "", "url": "http://en.wikipedia.org/wiki/2002_German_Grand_Prix"}, {"raceid": 136, "year": 2002, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2002-08-18", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Hungarian_Grand_Prix"}, {"raceid": 137, "year": 2002, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2002-09-01", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Belgian_Grand_Prix"}, {"raceid": 138, "year": 2002, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2002-09-15", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Italian_Grand_Prix"}, {"raceid": 139, "year": 2002, "round": 16, "circuitid": 19, "name": "United States Grand Prix", "date": "2002-09-29", "time": "", "url": "http://en.wikipedia.org/wiki/2002_United_States_Grand_Prix"}, {"raceid": 140, "year": 2002, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2002-10-13", "time": "", "url": "http://en.wikipedia.org/wiki/2002_Japanese_Grand_Prix"}, {"raceid": 141, "year": 2001, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2001-03-04", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Australian_Grand_Prix"}, {"raceid": 142, "year": 2001, "round": 2, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2001-03-18", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Malaysian_Grand_Prix"}, {"raceid": 143, "year": 2001, "round": 3, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2001-04-01", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Brazilian_Grand_Prix"}, {"raceid": 144, "year": 2001, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2001-04-15", "time": "", "url": "http://en.wikipedia.org/wiki/2001_San_Marino_Grand_Prix"}, {"raceid": 145, "year": 2001, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2001-04-29", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Spanish_Grand_Prix"}, {"raceid": 146, "year": 2001, "round": 6, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2001-05-13", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Austrian_Grand_Prix"}, {"raceid": 147, "year": 2001, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2001-05-27", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Monaco_Grand_Prix"}, {"raceid": 148, "year": 2001, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2001-06-10", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Canadian_Grand_Prix"}, {"raceid": 149, "year": 2001, "round": 9, "circuitid": 20, "name": "European Grand Prix", "date": "2001-06-24", "time": "", "url": "http://en.wikipedia.org/wiki/2001_European_Grand_Prix"}, {"raceid": 150, "year": 2001, "round": 10, "circuitid": 8, "name": "French Grand Prix", "date": "2001-07-01", "time": "", "url": "http://en.wikipedia.org/wiki/2001_French_Grand_Prix"}, {"raceid": 151, "year": 2001, "round": 11, "circuitid": 9, "name": "British Grand Prix", "date": "2001-07-15", "time": "", "url": "http://en.wikipedia.org/wiki/2001_British_Grand_Prix"}, {"raceid": 152, "year": 2001, "round": 12, "circuitid": 10, "name": "German Grand Prix", "date": "2001-07-29", "time": "", "url": "http://en.wikipedia.org/wiki/2001_German_Grand_Prix"}, {"raceid": 153, "year": 2001, "round": 13, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2001-08-19", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Hungarian_Grand_Prix"}, {"raceid": 154, "year": 2001, "round": 14, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2001-09-02", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Belgian_Grand_Prix"}, {"raceid": 155, "year": 2001, "round": 15, "circuitid": 14, "name": "Italian Grand Prix", "date": "2001-09-16", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Italian_Grand_Prix"}, {"raceid": 156, "year": 2001, "round": 16, "circuitid": 19, "name": "United States Grand Prix", "date": "2001-09-30", "time": "", "url": "http://en.wikipedia.org/wiki/2001_United_States_Grand_Prix"}, {"raceid": 157, "year": 2001, "round": 17, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2001-10-14", "time": "", "url": "http://en.wikipedia.org/wiki/2001_Japanese_Grand_Prix"}, {"raceid": 158, "year": 2000, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "2000-03-12", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Australian_Grand_Prix"}, {"raceid": 159, "year": 2000, "round": 2, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "2000-03-26", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Brazilian_Grand_Prix"}, {"raceid": 160, "year": 2000, "round": 3, "circuitid": 21, "name": "San Marino Grand Prix", "date": "2000-04-09", "time": "", "url": "http://en.wikipedia.org/wiki/2000_San_Marino_Grand_Prix"}, {"raceid": 161, "year": 2000, "round": 4, "circuitid": 9, "name": "British Grand Prix", "date": "2000-04-23", "time": "", "url": "http://en.wikipedia.org/wiki/2000_British_Grand_Prix"}, {"raceid": 162, "year": 2000, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "2000-05-07", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Spanish_Grand_Prix"}, {"raceid": 163, "year": 2000, "round": 6, "circuitid": 20, "name": "European Grand Prix", "date": "2000-05-21", "time": "", "url": "http://en.wikipedia.org/wiki/2000_European_Grand_Prix"}, {"raceid": 164, "year": 2000, "round": 7, "circuitid": 6, "name": "Monaco Grand Prix", "date": "2000-06-04", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Monaco_Grand_Prix"}, {"raceid": 165, "year": 2000, "round": 8, "circuitid": 7, "name": "Canadian Grand Prix", "date": "2000-06-18", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Canadian_Grand_Prix"}, {"raceid": 166, "year": 2000, "round": 9, "circuitid": 8, "name": "French Grand Prix", "date": "2000-07-02", "time": "", "url": "http://en.wikipedia.org/wiki/2000_French_Grand_Prix"}, {"raceid": 167, "year": 2000, "round": 10, "circuitid": 23, "name": "Austrian Grand Prix", "date": "2000-07-16", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Austrian_Grand_Prix"}, {"raceid": 168, "year": 2000, "round": 11, "circuitid": 10, "name": "German Grand Prix", "date": "2000-07-30", "time": "", "url": "http://en.wikipedia.org/wiki/2000_German_Grand_Prix"}, {"raceid": 169, "year": 2000, "round": 12, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "2000-08-13", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Hungarian_Grand_Prix"}, {"raceid": 170, "year": 2000, "round": 13, "circuitid": 13, "name": "Belgian Grand Prix", "date": "2000-08-27", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Belgian_Grand_Prix"}, {"raceid": 171, "year": 2000, "round": 14, "circuitid": 14, "name": "Italian Grand Prix", "date": "2000-09-10", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Italian_Grand_Prix"}, {"raceid": 172, "year": 2000, "round": 15, "circuitid": 19, "name": "United States Grand Prix", "date": "2000-09-24", "time": "", "url": "http://en.wikipedia.org/wiki/2000_United_States_Grand_Prix"}, {"raceid": 173, "year": 2000, "round": 16, "circuitid": 22, "name": "Japanese Grand Prix", "date": "2000-10-08", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Japanese_Grand_Prix"}, {"raceid": 174, "year": 2000, "round": 17, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "2000-10-22", "time": "", "url": "http://en.wikipedia.org/wiki/2000_Malaysian_Grand_Prix"}, {"raceid": 175, "year": 1999, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "1999-03-07", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Australian_Grand_Prix"}, {"raceid": 176, "year": 1999, "round": 2, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "1999-04-11", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Brazilian_Grand_Prix"}, {"raceid": 177, "year": 1999, "round": 3, "circuitid": 21, "name": "San Marino Grand Prix", "date": "1999-05-02", "time": "", "url": "http://en.wikipedia.org/wiki/1999_San_Marino_Grand_Prix"}, {"raceid": 178, "year": 1999, "round": 4, "circuitid": 6, "name": "Monaco Grand Prix", "date": "1999-05-16", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Monaco_Grand_Prix"}, {"raceid": 179, "year": 1999, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "1999-05-30", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Spanish_Grand_Prix"}, {"raceid": 180, "year": 1999, "round": 6, "circuitid": 7, "name": "Canadian Grand Prix", "date": "1999-06-13", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Canadian_Grand_Prix"}, {"raceid": 181, "year": 1999, "round": 7, "circuitid": 8, "name": "French Grand Prix", "date": "1999-06-27", "time": "", "url": "http://en.wikipedia.org/wiki/1999_French_Grand_Prix"}, {"raceid": 182, "year": 1999, "round": 8, "circuitid": 9, "name": "British Grand Prix", "date": "1999-07-11", "time": "", "url": "http://en.wikipedia.org/wiki/1999_British_Grand_Prix"}, {"raceid": 183, "year": 1999, "round": 9, "circuitid": 23, "name": "Austrian Grand Prix", "date": "1999-07-25", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Austrian_Grand_Prix"}, {"raceid": 184, "year": 1999, "round": 10, "circuitid": 10, "name": "German Grand Prix", "date": "1999-08-01", "time": "", "url": "http://en.wikipedia.org/wiki/1999_German_Grand_Prix"}, {"raceid": 185, "year": 1999, "round": 11, "circuitid": 11, "name": "Hungarian Grand Prix", "date": "1999-08-15", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Hungarian_Grand_Prix"}, {"raceid": 186, "year": 1999, "round": 12, "circuitid": 13, "name": "Belgian Grand Prix", "date": "1999-08-29", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Belgian_Grand_Prix"}, {"raceid": 187, "year": 1999, "round": 13, "circuitid": 14, "name": "Italian Grand Prix", "date": "1999-09-12", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Italian_Grand_Prix"}, {"raceid": 188, "year": 1999, "round": 14, "circuitid": 20, "name": "European Grand Prix", "date": "1999-09-26", "time": "", "url": "http://en.wikipedia.org/wiki/1999_European_Grand_Prix"}, {"raceid": 189, "year": 1999, "round": 15, "circuitid": 2, "name": "Malaysian Grand Prix", "date": "1999-10-17", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Malaysian_Grand_Prix"}, {"raceid": 190, "year": 1999, "round": 16, "circuitid": 22, "name": "Japanese Grand Prix", "date": "1999-10-31", "time": "", "url": "http://en.wikipedia.org/wiki/1999_Japanese_Grand_Prix"}, {"raceid": 191, "year": 1998, "round": 1, "circuitid": 1, "name": "Australian Grand Prix", "date": "1998-03-08", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Australian_Grand_Prix"}, {"raceid": 192, "year": 1998, "round": 2, "circuitid": 18, "name": "Brazilian Grand Prix", "date": "1998-03-29", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Brazilian_Grand_Prix"}, {"raceid": 193, "year": 1998, "round": 3, "circuitid": 25, "name": "Argentine Grand Prix", "date": "1998-04-12", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Argentine_Grand_Prix"}, {"raceid": 194, "year": 1998, "round": 4, "circuitid": 21, "name": "San Marino Grand Prix", "date": "1998-04-26", "time": "", "url": "http://en.wikipedia.org/wiki/1998_San_Marino_Grand_Prix"}, {"raceid": 195, "year": 1998, "round": 5, "circuitid": 4, "name": "Spanish Grand Prix", "date": "1998-05-10", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Spanish_Grand_Prix"}, {"raceid": 196, "year": 1998, "round": 6, "circuitid": 6, "name": "Monaco Grand Prix", "date": "1998-05-24", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Monaco_Grand_Prix"}, {"raceid": 197, "year": 1998, "round": 7, "circuitid": 7, "name": "Canadian Grand Prix", "date": "1998-06-07", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Canadian_Grand_Prix"}, {"raceid": 198, "year": 1998, "round": 8, "circuitid": 8, "name": "French Grand Prix", "date": "1998-06-28", "time": "", "url": "http://en.wikipedia.org/wiki/1998_French_Grand_Prix"}, {"raceid": 199, "year": 1998, "round": 9, "circuitid": 9, "name": "British Grand Prix", "date": "1998-07-12", "time": "", "url": "http://en.wikipedia.org/wiki/1998_British_Grand_Prix"}, {"raceid": 200, "year": 1998, "round": 10, "circuitid": 23, "name": "Austrian Grand Prix", "date": "1998-07-26", "time": "", "url": "http://en.wikipedia.org/wiki/1998_Austrian_Grand_Prix"}]}, "correct_code": "-- Load formula_1__driverstandings data\ndriverstandings = load(\"driverstandings\")\n\nfiltered_driverstandings = driverstandings\n |> filter(positiontext == \"2\")\n\nsummary = filtered_driverstandings\n |> group_by(positiontext)\n |> aggregate(total_points: sum(points), count: count())\n\nresult = summary\n |> sort_by(total_points, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__driverstandings data\ndriverstandings = load(\"driverstandings\")\n\nfiltered_driverstandings = driverstandings\n |> filter(positiontext == \"2\")\n\nsummary = filtered_driverstandings\n |> group_by(positiontext)\n |> aggregate(total_points: count(points), count: count())\n\nresult = summary\n |> sort_by(total_points, asc)\n |> take(5)\n\nemit result", "expected_output": [{"positiontext": "2", "total_points": 304.0, "count": 10}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'sum' \u2192 'count'", "line_num": 9, "original": "|> aggregate(total_points: sum(points), count: count())", "mutated": "|> aggregate(total_points: count(points), count: count())"}], "difficulty": "easy", "domain": "formula_1__driverstandings", "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(treatment_type_code == \"EXAM\")\n |> select(treatment_type_code, date_of_treatment, treatment_id, dog_id)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, 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 >= \"EXAM\")\n |> select(treatment_type_code, date_of_treatment, treatment_id, dog_id)\n\nresult = filtered_treatments\n |> sort_by(treatment_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"treatment_type_code": "EXAM", "date_of_treatment": "2018-03-16 10:27:36", "treatment_id": 12, "dog_id": 13}, {"treatment_type_code": "EXAM", "date_of_treatment": "2018-03-24 22:25:58", "treatment_id": 8, "dog_id": 2}, {"treatment_type_code": "EXAM", "date_of_treatment": "2018-03-10 11:45:58", "treatment_id": 7, "dog_id": 15}, {"treatment_type_code": "EXAM", "date_of_treatment": "2018-03-11 04:23:15", "treatment_id": 6, "dog_id": 10}, {"treatment_type_code": "EXAM", "date_of_treatment": "2018-03-08 05:26:23", "treatment_id": 3, "dog_id": 14}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>='", "line_num": 5, "original": "|> filter(treatment_type_code == \"EXAM\")", "mutated": "|> filter(treatment_type_code >= \"EXAM\")"}], "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": {"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 >= 4131)\n |> select(dno, appt_type, facid)\n\nresult = filtered_member_of\n |> sort_by(dno, asc)\n |> take(5)\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 >= 4131)\n |> select(dno, appt_type, facid)\n\nresult = filtered_member_of\n |> sort_by(dno, asc)\n |> take(5)\n\nemit result", "expected_output": [{"dno": 50, "appt_type": "Secondary", "facid": 8741}, {"dno": 50, "appt_type": "Secondary", "facid": 7271}, {"dno": 520, "appt_type": "Secondary", "facid": 8721}, {"dno": 600, "appt_type": "Secondary", "facid": 8989}, {"dno": 600, "appt_type": "Secondary", "facid": 7271}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(appt_type == \"Secondary\")", "mutated": "filter(appt_type == \"Secondary\")"}], "difficulty": "easy", "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_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(blockfloor >= 1)\n |> select(roomtype, unavailable, blockfloor, roomnumber)\n\nresult = filtered_room\n |> sort_by(roomnumber, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load hospital_1__room data\nroom = load(\"room\")\n\nfiltered_room = room\n filter(blockfloor >= 1)\n |> select(roomtype, unavailable, blockfloor, roomnumber)\n\nresult = filtered_room\n |> sort_by(roomnumber, asc)\n |> take(10)\n\nemit result", "expected_output": [{"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 101}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 102}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 103}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 111}, {"roomtype": "Single", "unavailable": 1, "blockfloor": 1, "roomnumber": 112}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 113}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 121}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 122}, {"roomtype": "Single", "unavailable": 0, "blockfloor": 1, "roomnumber": 123}, {"roomtype": "Single", "unavailable": 1, "blockfloor": 2, "roomnumber": 201}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 5, "original": "|> filter(blockfloor >= 1)", "mutated": "filter(blockfloor >= 1)"}], "difficulty": "easy", "domain": "hospital_1__room", "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": {"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 == \"ALB\")\n\nsummary = filtered_countrylanguage\n |> group_by(language)\n |> aggregate(avg_percentage: avg(percentage), count: count())\n\nresult = summary\n |> sort_by(avg_percentage, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(countrycode != \"ALB\")\n\nsummary = filtered_countrylanguage\n |> group_by(language)\n |> aggregate(avg_percentage: avg(percentage), count: count())\n\nresult = summary\n |> sort_by(avg_percentage, desc)\n |> take(10)\n\nemit result", "expected_output": [{"language": "Albaniana", "avg_percentage": 97.9, "count": 1}, {"language": "Greek", "avg_percentage": 1.8, "count": 1}, {"language": "Macedonian", "avg_percentage": 0.1, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '!='", "line_num": 5, "original": "|> filter(countrycode == \"ALB\")", "mutated": "|> filter(countrycode != \"ALB\")"}], "difficulty": "medium", "domain": "world_1__countrylanguage", "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": {"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\nfiltered_transactions = transactions\n |> filter(transaction_type_code == \"PUR\")\n |> filter(investor_id > 3)\n\nsummary = filtered_transactions\n |> group_by(date_of_transaction)\n |> aggregate(avg_investor_id: avg(investor_id), count: count())\n\nresult = summary\n |> sort_by(avg_investor_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions data\ntransactions = load(\"transactions\")\n\nfiltered_transactions = transactions\n |> filter(transaction_type_code != \"PUR\")\n |== filter(investor_id > 3)\n\nsummary = filtered_transactions\n |> group_by(date_of_transaction)\n |> aggregate(avg_investor_id: avg(investor_id), count: count())\n\nresult = summary\n |> sort_by(avg_investor_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"date_of_transaction": "1990-12-02 09:03:38", "avg_investor_id": 7.0, "count": 1}, {"date_of_transaction": "1977-08-17 13:13:30", "avg_investor_id": 8.0, "count": 1}, {"date_of_transaction": "2001-11-28 15:06:25", "avg_investor_id": 14.0, "count": 1}, {"date_of_transaction": "1982-06-06 17:19:00", "avg_investor_id": 18.0, "count": 1}, {"date_of_transaction": "1985-10-08 13:13:39", "avg_investor_id": 19.0, "count": 1}, {"date_of_transaction": "1997-12-30 05:05:40", "avg_investor_id": 19.0, "count": 1}, {"date_of_transaction": "1977-08-13 02:18:47", "avg_investor_id": 20.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '>' \u2192 '=='", "line_num": 6, "original": "|> filter(investor_id > 3)", "mutated": "|== filter(investor_id > 3)"}, {"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '!='", "line_num": 5, "original": "|> filter(transaction_type_code == \"PUR\")", "mutated": "|> filter(transaction_type_code != \"PUR\")"}], "difficulty": "medium", "domain": "tracking_share_transactions__transactions", "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": {"transactions_lots": [{"transaction_id": 3, "lot_id": 11}, {"transaction_id": 3, "lot_id": 8}, {"transaction_id": 2, "lot_id": 11}, {"transaction_id": 3, "lot_id": 14}, {"transaction_id": 12, "lot_id": 10}, {"transaction_id": 15, "lot_id": 10}, {"transaction_id": 10, "lot_id": 10}, {"transaction_id": 1, "lot_id": 1}, {"transaction_id": 1, "lot_id": 14}, {"transaction_id": 3, "lot_id": 4}, {"transaction_id": 14, "lot_id": 9}, {"transaction_id": 7, "lot_id": 1}, {"transaction_id": 12, "lot_id": 15}, {"transaction_id": 6, "lot_id": 3}, {"transaction_id": 2, "lot_id": 1}], "lots": [{"lot_id": 1, "investor_id": 13, "lot_details": "r"}, {"lot_id": 2, "investor_id": 16, "lot_details": "z"}, {"lot_id": 3, "investor_id": 10, "lot_details": "s"}, {"lot_id": 4, "investor_id": 19, "lot_details": "s"}, {"lot_id": 5, "investor_id": 6, "lot_details": "q"}, {"lot_id": 6, "investor_id": 20, "lot_details": "d"}, {"lot_id": 7, "investor_id": 7, "lot_details": "m"}, {"lot_id": 8, "investor_id": 7, "lot_details": "h"}, {"lot_id": 9, "investor_id": 20, "lot_details": "z"}, {"lot_id": 10, "investor_id": 9, "lot_details": "x"}, {"lot_id": 11, "investor_id": 1, "lot_details": "d"}, {"lot_id": 12, "investor_id": 19, "lot_details": "m"}, {"lot_id": 13, "investor_id": 7, "lot_details": "z"}, {"lot_id": 14, "investor_id": 6, "lot_details": "d"}, {"lot_id": 15, "investor_id": 1, "lot_details": "h"}]}, "correct_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\n-- Load lookup data\nlots = load(\"lots\")\n |> select(investor_id, lot_details, lot_id)\n\nenriched = join(transactions_lots, lots, on: lot_id == lot_id)\n |> compute(computed_val: transaction_id * lot_id)\n\nresult = enriched\n |> sort_by(transaction_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__transactions_lots data\ntransactions_lots = load(\"transactions_lots\")\n\n-- Load lookup data\nlots = load(\"lots\")\n |> select(investor_id, lot_details, lot_id)\n\nenriched = join(transactions_lots, lots, on: lot_id == lot_id)\n |> compute(computed_val: transaction_id * lot_id)\n\nresult = enriched\n |> sort_by(investor_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"transaction_id": 15, "lot_id": 10, "investor_id": 9, "lot_details": "x", "computed_val": 150}, {"transaction_id": 14, "lot_id": 9, "investor_id": 20, "lot_details": "z", "computed_val": 126}, {"transaction_id": 12, "lot_id": 10, "investor_id": 9, "lot_details": "x", "computed_val": 120}, {"transaction_id": 12, "lot_id": 15, "investor_id": 1, "lot_details": "h", "computed_val": 180}, {"transaction_id": 10, "lot_id": 10, "investor_id": 9, "lot_details": "x", "computed_val": 100}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'transaction_id' \u2192 'investor_id'", "line_num": 12, "original": "|> sort_by(transaction_id, desc)", "mutated": "|> sort_by(investor_id, desc)"}], "difficulty": "medium", "domain": "tracking_share_transactions__transactions_lots", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"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\nsummary = filtered_order_deliveries\n |> group_by(location_code)\n |> aggregate(avg_truck_id: avg(truck_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load customer_deliveries__order_deliveries data\norder_deliveries = load(\"order_deliveries\")\n\nfiltered_order_deliveries = order_deliveries\n |> filter(delivery_status_code == \"Delivered\")\n\nsummary = filtered_order_deliveries\n |> group_by(location_code)\n |> aggregate(avg_truck_id: max(truck_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"location_code": "73 Nancy Av", "avg_truck_id": 10.0, "count": 1}, {"location_code": "34 Benz St", "avg_truck_id": 7.333333333333333, "count": 3}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'avg' \u2192 'max'", "line_num": 9, "original": "|> aggregate(avg_truck_id: avg(truck_id), count: count())", "mutated": "|> aggregate(avg_truck_id: max(truck_id), count: count())"}], "difficulty": "medium", "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": {"paragraphs": [{"paragraph_id": 7, "document_id": 2394, "paragraph_text": "Korea", "other_details": 0}, {"paragraph_id": 9, "document_id": 3, "paragraph_text": "Somalia", "other_details": 0}, {"paragraph_id": 65, "document_id": 50123, "paragraph_text": "Palestinian Territory", "other_details": 0}, {"paragraph_id": 241, "document_id": 651512, "paragraph_text": "Jersey", "other_details": 0}, {"paragraph_id": 3708, "document_id": 33930, "paragraph_text": "UK", "other_details": 0}, {"paragraph_id": 9946, "document_id": 385906526, "paragraph_text": "Fiji", "other_details": 0}, {"paragraph_id": 16615, "document_id": 80, "paragraph_text": "Japan", "other_details": 0}, {"paragraph_id": 1104059, "document_id": 3830, "paragraph_text": "Senegal", "other_details": 0}, {"paragraph_id": 243399026, "document_id": 651512, "paragraph_text": "Indonesia", "other_details": 0}, {"paragraph_id": 280120913, "document_id": 2394, "paragraph_text": "Ukraine", "other_details": 0}, {"paragraph_id": 510442723, "document_id": 2394, "paragraph_text": "Korea", "other_details": 0}, {"paragraph_id": 571212310, "document_id": 16514113, "paragraph_text": "Brazil", "other_details": 0}, {"paragraph_id": 608931827, "document_id": 80, "paragraph_text": "Micronesia", "other_details": 0}, {"paragraph_id": 765713812, "document_id": 16514113, "paragraph_text": "Ireland", "other_details": 0}, {"paragraph_id": 946335436, "document_id": 3540024, "paragraph_text": "Papua New Guinea", "other_details": 0}], "documents": [{"document_id": 0, "template_id": 7, "document_name": "Introduction of OS", "document_description": "n", "other_details": 0}, {"document_id": 1, "template_id": 25, "document_name": "Understanding DB", "document_description": "y", "other_details": 0}, {"document_id": 3, "template_id": 6, "document_name": "Summer Show", "document_description": "u", "other_details": 0}, {"document_id": 76, "template_id": 20, "document_name": "Robbin CV", "document_description": "y", "other_details": 0}, {"document_id": 80, "template_id": 14, "document_name": "Welcome to NY", "document_description": "h", "other_details": 0}, {"document_id": 82, "template_id": 11, "document_name": "Data base", "document_description": "w", "other_details": 0}, {"document_id": 2394, "template_id": 10, "document_name": "Customer reviews", "document_description": "y", "other_details": 0}, {"document_id": 3830, "template_id": 14, "document_name": "Do not panic", "document_description": "k", "other_details": 0}, {"document_id": 33930, "template_id": 1, "document_name": "How Google people work", "document_description": "z", "other_details": 0}, {"document_id": 50123, "template_id": 22, "document_name": "Learning French", "document_description": "r", "other_details": 0}, {"document_id": 651512, "template_id": 21, "document_name": "How to write a CV", "document_description": "f", "other_details": 0}, {"document_id": 801801, "template_id": 4, "document_name": "How to read a book", "document_description": "w", "other_details": 0}, {"document_id": 3540024, "template_id": 8, "document_name": "Palm reading", "document_description": "y", "other_details": 0}, {"document_id": 16514113, "template_id": 25, "document_name": "A history of Arts", "document_description": "h", "other_details": 0}, {"document_id": 385906526, "template_id": 11, "document_name": "About Korea", "document_description": "b", "other_details": 0}]}, "correct_code": "-- Load cre_Doc_Template_Mgt__paragraphs data\nparagraphs = load(\"paragraphs\")\n\nfiltered_paragraphs = paragraphs\n |> filter(paragraph_text == \"Ireland\")\n\nsummary = filtered_paragraphs\n |> group_by(paragraph_text)\n |> aggregate(avg_paragraph_id: avg(paragraph_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load cre_Doc_Template_Mgt__paragraphs data\nparagraphs = load(\"paragraphs\")\n\nfiltered_paragraphs = paragraphs\n |> filter(paragraph_text == \"Irelan\")\n\nsummary = filtered_paragraphs\n |> group_by(paragraph_text)\n |> aggregate(avg_paragraph_id: avg(paragraph_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"paragraph_text": "Ireland", "avg_paragraph_id": 765713812.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Ireland' \u2192 'Irelan'", "line_num": 5, "original": "|> filter(paragraph_text == \"Ireland\")", "mutated": "|> filter(paragraph_text == \"Irelan\")"}], "difficulty": "medium", "domain": "cre_Doc_Template_Mgt__paragraphs", "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": {"customers": [{"customer_id": 1, "customer_address_id": 13, "customer_status_code": "Bad Customer", "date_became_customer": "2016-05-11 17:03:48", "date_of_birth": "1998-12-15 13:24:40", "first_name": "Carole", "last_name": "Bernhard", "amount_outstanding": 255.0, "email_address": "everette.goyette@example.org", "phone_number": "07278206718", "cell_mobile_phone_number": "861-638-9797"}, {"customer_id": 2, "customer_address_id": 10, "customer_status_code": "Bad Customer", "date_became_customer": "2015-11-16 22:52:14", "date_of_birth": "1995-07-17 12:13:16", "first_name": "Genevieve", "last_name": "Terry", "amount_outstanding": 7256.0, "email_address": "huel.jana@example.org", "phone_number": "+14(5)2351480248", "cell_mobile_phone_number": "578-518-4785x612"}, {"customer_id": 3, "customer_address_id": 10, "customer_status_code": "Good Customer", "date_became_customer": "2016-04-08 00:28:15", "date_of_birth": "1994-06-21 01:34:56", "first_name": "Clara", "last_name": "Ortiz", "amount_outstanding": 9443.0, "email_address": "hilario.sporer@example.org", "phone_number": "374-483-2758x85087", "cell_mobile_phone_number": "1-197-686-2849x8761"}, {"customer_id": 4, "customer_address_id": 8, "customer_status_code": "Good Customer", "date_became_customer": "2016-07-22 15:53:44", "date_of_birth": "1993-02-07 05:40:26", "first_name": "Jordy", "last_name": "Tromp", "amount_outstanding": 3751.0, "email_address": "afranecki@example.com", "phone_number": "218.550.1362", "cell_mobile_phone_number": "081-097-3684"}, {"customer_id": 5, "customer_address_id": 2, "customer_status_code": "Bad Customer", "date_became_customer": "2017-11-12 04:34:44", "date_of_birth": "1991-02-10 00:42:17", "first_name": "Millie", "last_name": "Bruen", "amount_outstanding": 5687.0, "email_address": "asha.kilback@example.org", "phone_number": "1-618-535-9750", "cell_mobile_phone_number": "00659133944"}, {"customer_id": 6, "customer_address_id": 9, "customer_status_code": "Good Customer", "date_became_customer": "2017-04-16 05:12:21", "date_of_birth": "1993-03-08 08:48:42", "first_name": "Amya", "last_name": "Spinka", "amount_outstanding": 3900.0, "email_address": "kozey.citlalli@example.org", "phone_number": "1-673-962-8158x7646", "cell_mobile_phone_number": "(780)719-4206x033"}, {"customer_id": 7, "customer_address_id": 1, "customer_status_code": "Bad Customer", "date_became_customer": "2015-06-24 03:50:04", "date_of_birth": "1996-11-07 05:30:55", "first_name": "Marina", "last_name": "Koelpin", "amount_outstanding": 8144.0, "email_address": "mayert.judy@example.com", "phone_number": "(662)490-3108", "cell_mobile_phone_number": "848-099-2095x785"}, {"customer_id": 8, "customer_address_id": 10, "customer_status_code": "Bad Customer", "date_became_customer": "2017-10-05 14:15:46", "date_of_birth": "1998-09-18 04:45:01", "first_name": "Dianna", "last_name": "Trantow", "amount_outstanding": 9500.0, "email_address": "kroberts@example.org", "phone_number": "206-054-0689x05861", "cell_mobile_phone_number": "739-333-6966x187"}, {"customer_id": 9, "customer_address_id": 12, "customer_status_code": "Bad Customer", "date_became_customer": "2016-02-17 08:26:23", "date_of_birth": "1991-12-05 02:50:15", "first_name": "Leif", "last_name": "Mertz", "amount_outstanding": 7093.0, "email_address": "mariela28@example.org", "phone_number": "753.921.0871", "cell_mobile_phone_number": "1-387-258-1016x96963"}, {"customer_id": 10, "customer_address_id": 1, "customer_status_code": "Bad Customer", "date_became_customer": "2017-11-25 01:42:26", "date_of_birth": "1996-08-29 00:03:08", "first_name": "Rylan", "last_name": "Goodwin", "amount_outstanding": 1000.0, "email_address": "nichole59@example.com", "phone_number": "1-387-884-0656", "cell_mobile_phone_number": "+45(6)4872981083"}, {"customer_id": 11, "customer_address_id": 13, "customer_status_code": "Good Customer", "date_became_customer": "2016-11-30 10:37:41", "date_of_birth": "1994-05-07 01:32:16", "first_name": "Ray", "last_name": "Kohler", "amount_outstanding": 9447.0, "email_address": "karina.carroll@example.net", "phone_number": "(297)122-0086", "cell_mobile_phone_number": "577-584-4864"}, {"customer_id": 12, "customer_address_id": 9, "customer_status_code": "Bad Customer", "date_became_customer": "2016-05-13 07:38:23", "date_of_birth": "1993-07-09 11:11:36", "first_name": "Omer", "last_name": "Leuschke", "amount_outstanding": 2099.0, "email_address": "myrl.lind@example.net", "phone_number": "417.136.2900x672", "cell_mobile_phone_number": "200.830.8723"}, {"customer_id": 13, "customer_address_id": 7, "customer_status_code": "Good Customer", "date_became_customer": "2016-09-04 23:08:20", "date_of_birth": "1988-09-19 14:45:56", "first_name": "Sigrid", "last_name": "Schmeler", "amount_outstanding": 2255.0, "email_address": "wehner.harold@example.com", "phone_number": "192-395-2411", "cell_mobile_phone_number": "+57(9)4602098297"}, {"customer_id": 14, "customer_address_id": 10, "customer_status_code": "Good Customer", "date_became_customer": "2016-03-18 06:14:18", "date_of_birth": "1996-05-23 01:21:54", "first_name": "Estelle", "last_name": "Grant", "amount_outstanding": 5494.0, "email_address": "ehowell@example.com", "phone_number": "1-875-045-0806", "cell_mobile_phone_number": "1-401-108-8016x078"}, {"customer_id": 15, "customer_address_id": 1, "customer_status_code": "Bad Customer", "date_became_customer": "2015-09-25 13:59:21", "date_of_birth": "1996-08-30 06:17:50", "first_name": "Dameon", "last_name": "Sanford", "amount_outstanding": 9332.0, "email_address": "kitty.hand@example.net", "phone_number": "(729)396-4354x3576", "cell_mobile_phone_number": "(630)964-2426"}], "addresses": [{"address_id": 1, "line_1_number_building": "3904 Stroman Passage", "city": "Port Melyssa", "zip_postcode": "14445", "state_province_county": "Georgia", "country": "USA"}, {"address_id": 2, "line_1_number_building": "053 Quigley Island", "city": "Hagenesfurt", "zip_postcode": "22194", "state_province_county": "Kentucky", "country": "USA"}, {"address_id": 3, "line_1_number_building": "00704 Zoe Alley", "city": "Lake Elaina", "zip_postcode": "08938", "state_province_county": "Georgia", "country": "USA"}, {"address_id": 4, "line_1_number_building": "484 O'Hara Drive", "city": "Buckridgehaven", "zip_postcode": "00005", "state_province_county": "Oregon", "country": "USA"}, {"address_id": 5, "line_1_number_building": "354 Frederik Ridge", "city": "Powlowskichester", "zip_postcode": "27559", "state_province_county": "Ohio", "country": "USA"}, {"address_id": 6, "line_1_number_building": "376 Kallie Tunnel Apt. 784", "city": "Elviebury", "zip_postcode": "63768", "state_province_county": "Connecticut", "country": "USA"}, {"address_id": 7, "line_1_number_building": "56461 Baumbach Well Suite 634", "city": "Lockmanfurt", "zip_postcode": "34975", "state_province_county": "Washington", "country": "USA"}, {"address_id": 8, "line_1_number_building": "29085 Dejah Pine Suite 059", "city": "Lake Rafaela", "zip_postcode": "80376", "state_province_county": "WestVirginia", "country": "USA"}, {"address_id": 9, "line_1_number_building": "535 Ariel Brook", "city": "Port Jackelinemouth", "zip_postcode": "85954", "state_province_county": "Maine", "country": "USA"}, {"address_id": 10, "line_1_number_building": "2291 Larkin Ports", "city": "South Richieport", "zip_postcode": "95098", "state_province_county": "Idaho", "country": "USA"}, {"address_id": 11, "line_1_number_building": "37698 Hahn Curve Apt. 572", "city": "South Eugene", "zip_postcode": "99903", "state_province_county": "Alabama", "country": "USA"}, {"address_id": 12, "line_1_number_building": "7089 Mueller Forks", "city": "New Bernieceburgh", "zip_postcode": "38197", "state_province_county": "Louisiana", "country": "USA"}, {"address_id": 13, "line_1_number_building": "43235 Jazmin Mountain Suite 251", "city": "Ericamouth", "zip_postcode": "75074", "state_province_county": "Louisiana", "country": "USA"}, {"address_id": 14, "line_1_number_building": "4834 Schaefer Light Suite 947", "city": "Damianfort", "zip_postcode": "61121", "state_province_county": "Connecticut", "country": "USA"}, {"address_id": 15, "line_1_number_building": "9260 Streich Mountain", "city": "West Edmondview", "zip_postcode": "43988", "state_province_county": "Kentucky", "country": "USA"}]}, "correct_code": "-- Load driving_school__customers data\ncustomers = load(\"customers\")\n\nsummary = customers\n |> group_by(first_name)\n |> aggregate(total_amount_outstanding: sum(amount_outstanding), count: count())\n\nresult = summary\n |> sort_by(total_amount_outstanding, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load driving_school__customers data\ncustomers = load(\"customers\")\n\nsummary = customers\n |> group_by(first_name)\n |> agregate(total_amount_outstanding: sum(amount_outstanding), count: count())\n\nresult = summary\n |> sort_by(total_amount_outstanding, desc)\n |> take(3)\n\nemit result", "expected_output": [{"first_name": "Dianna", "total_amount_outstanding": 9500.0, "count": 1}, {"first_name": "Ray", "total_amount_outstanding": 9447.0, "count": 1}, {"first_name": "Clara", "total_amount_outstanding": 9443.0, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'aggregate' \u2192 'agregate'", "line_num": 6, "original": "|> aggregate(total_amount_outstanding: sum(amount_outstanding), count: count())", "mutated": "|> agregate(total_amount_outstanding: sum(amount_outstanding), count: count())"}], "difficulty": "easy", "domain": "driving_school__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_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 == \"6\")\n |> filter(raceid < 22)\n\nsummary = filtered_constructorstandings\n |> group_by(positiontext)\n |> aggregate(min_points: min(points), count: count())\n |> compute(computed_val: count - min_points)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n\nfiltered_constructorstandings = constructorstandings\n |> filter(positiontext == \"6s\")\n |> filter(raceid < 22)\n\nsummary = filtered_constructorstandings\n |> group_by(positiontext)\n |> aggregate(min_points: min(points), count: count())\n |> compute(computed_val: count - min_points)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"positiontext": "6", "min_points": 1.0, "count": 4, "computed_val": 3.0}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: '6' \u2192 '6s'", "line_num": 5, "original": "|> filter(positiontext == \"6\")", "mutated": "|> filter(positiontext == \"6s\")"}], "difficulty": "hard", "domain": "formula_1__constructorstandings", "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": {"grants": [{"grant_id": 1, "organisation_id": 10, "grant_amount": 4094.542, "grant_start_date": "2016-11-20 00:18:51", "grant_end_date": "2004-10-24 09:09:39", "other_details": "et"}, {"grant_id": 2, "organisation_id": 3, "grant_amount": 281.2446, "grant_start_date": "1985-10-09 20:08:49", "grant_end_date": "1985-06-08 00:22:07", "other_details": "occaecati"}, {"grant_id": 3, "organisation_id": 14, "grant_amount": 4515947.7015, "grant_start_date": "1970-09-19 22:53:49", "grant_end_date": "1989-03-16 18:27:16", "other_details": "et"}, {"grant_id": 4, "organisation_id": 11, "grant_amount": 330.6339, "grant_start_date": "1990-08-13 20:27:28", "grant_end_date": "2014-08-13 22:58:50", "other_details": "et"}, {"grant_id": 5, "organisation_id": 2, "grant_amount": 608413.3291, "grant_start_date": "1979-10-29 07:44:22", "grant_end_date": "1996-08-16 20:45:05", "other_details": "corrupti"}, {"grant_id": 6, "organisation_id": 8, "grant_amount": 42.8061, "grant_start_date": "2011-05-10 22:44:08", "grant_end_date": "1977-12-27 01:51:18", "other_details": "dolor"}, {"grant_id": 7, "organisation_id": 7, "grant_amount": 76977808.306, "grant_start_date": "2015-12-14 13:02:11", "grant_end_date": "1981-03-09 17:12:27", "other_details": "explicabo"}, {"grant_id": 8, "organisation_id": 10, "grant_amount": 38675408.6017, "grant_start_date": "2016-02-25 04:28:44", "grant_end_date": "1983-06-22 15:12:32", "other_details": "aliquam"}, {"grant_id": 9, "organisation_id": 8, "grant_amount": 0, "grant_start_date": "2009-07-14 18:26:05", "grant_end_date": "1982-03-11 15:27:55", "other_details": "sapiente"}, {"grant_id": 10, "organisation_id": 14, "grant_amount": 66.4203, "grant_start_date": "1986-08-26 20:49:27", "grant_end_date": "2007-09-26 19:19:26", "other_details": "veniam"}, {"grant_id": 11, "organisation_id": 5, "grant_amount": 610.7004, "grant_start_date": "1986-10-31 17:11:29", "grant_end_date": "2001-05-22 21:02:43", "other_details": "voluptatum"}, {"grant_id": 12, "organisation_id": 12, "grant_amount": 2001349.459, "grant_start_date": "2001-06-22 16:01:05", "grant_end_date": "2007-04-24 03:04:13", "other_details": "aut"}, {"grant_id": 13, "organisation_id": 7, "grant_amount": 1.9848, "grant_start_date": "2004-11-10 02:26:01", "grant_end_date": "2011-05-29 11:21:59", "other_details": "qui"}, {"grant_id": 14, "organisation_id": 2, "grant_amount": 24.7, "grant_start_date": "2004-12-05 19:43:13", "grant_end_date": "1983-12-17 12:29:58", "other_details": "aliquam"}, {"grant_id": 15, "organisation_id": 9, "grant_amount": 25313.51, "grant_start_date": "1982-04-07 00:07:43", "grant_end_date": "1991-06-06 07:26:25", "other_details": "ea"}], "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__grants data\ngrants = load(\"grants\")\n\nfiltered_grants = grants\n |> filter(grant_start_date == \"2009-07-14 18:26:05\")\n\nsummary = filtered_grants\n |> group_by(grant_start_date)\n |> aggregate(max_organisation_id: max(organisation_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__grants data\ngrants = load(\"grants\")\n\nfiltered_grants = grants\n |> filter(grant_start_date == \"2009-07-14 18:26:05\")\n\nsummary = filtered_grants\n |> group_by(2009)\n |> aggregate(max_organisation_id: max(organisation_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"grant_start_date": "2009-07-14 18:26:05", "max_organisation_id": 8, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'grant_start_date' \u2192 '2009'", "line_num": 8, "original": "|> group_by(grant_start_date)", "mutated": "|> group_by(2009)"}], "difficulty": "medium", "domain": "tracking_grants_for_research__grants", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"actual_order_products": [{"actual_order_id": 2, "product_id": 1}, {"actual_order_id": 14, "product_id": 5}, {"actual_order_id": 13, "product_id": 6}, {"actual_order_id": 9, "product_id": 2}, {"actual_order_id": 3, "product_id": 2}, {"actual_order_id": 2, "product_id": 3}, {"actual_order_id": 13, "product_id": 2}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 10, "product_id": 3}, {"actual_order_id": 6, "product_id": 6}, {"actual_order_id": 5, "product_id": 5}, {"actual_order_id": 7, "product_id": 3}, {"actual_order_id": 5, "product_id": 3}, {"actual_order_id": 15, "product_id": 4}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_description, product_id, product_price)\n\nenriched = join(actual_order_products, products, on: product_id == product_id)\n\nresult = enriched\n |> sort_by(actual_order_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_description, product_id, product_price)\n\nenriched = join(actual_order_products, products, on: product_id == product_id)\n\nresult = enriched\n |> sort_by(actual_order_id, desc)\n |> take(1)\n\nemit result", "expected_output": [{"actual_order_id": 15, "product_id": 4, "product_description": "good condition", "product_price": 7111.68}, {"actual_order_id": 14, "product_id": 5, "product_description": "good condition", "product_price": 3644.45}, {"actual_order_id": 13, "product_id": 6, "product_description": "bad condition", "product_price": 5022.39}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 12, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "hard", "domain": "customer_deliveries__actual_order_products", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"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"}], "apartment_facilities": [{"apt_id": 1, "facility_code": "Boardband"}, {"apt_id": 2, "facility_code": "Boardband"}, {"apt_id": 3, "facility_code": "Gym"}, {"apt_id": 5, "facility_code": "Swimming Pool"}, {"apt_id": 6, "facility_code": "Cable TV"}, {"apt_id": 9, "facility_code": "Boardband"}, {"apt_id": 15, "facility_code": "Gym"}]}, "correct_code": "-- Load apartment_rentals__apartments data\napartments = load(\"apartments\")\n\nfiltered_apartments = apartments\n |> filter(apt_type_code == \"Studio\")\n\nsummary = filtered_apartments\n |> group_by(apt_type_code)\n |> aggregate(total_bedroom_count: sum(bedroom_count), count: count())\n |> compute(computed_val: count - total_bedroom_count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load apartment_rentals__apartments data\napartments = load(\"apartments\")\n\nfiltered_apartments = apartments\n |> filter(apt_type_code == \"Studi\")\n\nsummary = filtered_apartments\n |> group_by(apt_type_code)\n |> aggregate(total_bedroom_count: sum(bedroom_count), count: count())\n |> compute(computed_val: count - total_bedroom_count)\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"apt_type_code": "Studio", "total_bedroom_count": 19, "count": 4, "computed_val": -15}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Studio' \u2192 'Studi'", "line_num": 5, "original": "|> filter(apt_type_code == \"Studio\")", "mutated": "|> filter(apt_type_code == \"Studi\")"}], "difficulty": "hard", "domain": "apartment_rentals__apartments", "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": {"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\nsummary = lessons\n |> group_by(lesson_time)\n |> aggregate(avg_staff_id: avg(staff_id), count: count())\n\nresult = summary\n |> sort_by(avg_staff_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nsummary = lessons\n |> group_by(lesson_time)\n |> aggregate(avg_staff_id: avg(staff_id), count: count())\n\nresult = summary\n |> sort_by(avg_staff_id, asc)\n |> take(4)\n\nemit result", "expected_output": [{"lesson_time": "4", "avg_staff_id": 5.0, "count": 1}, {"lesson_time": "9", "avg_staff_id": 5.4, "count": 5}, {"lesson_time": "6", "avg_staff_id": 9.0, "count": 2}, {"lesson_time": "5", "avg_staff_id": 10.333333333333334, "count": 3}, {"lesson_time": "3", "avg_staff_id": 11.0, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 4", "line_num": 10, "original": "|> take(5)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "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_hard
{"datasets": {"participates_in": [{"stuid": 1001, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1001, "actid": 777}, {"stuid": 1002, "actid": 772}, {"stuid": 1002, "actid": 771}, {"stuid": 1003, "actid": 778}, {"stuid": 1004, "actid": 780}, {"stuid": 1004, "actid": 782}, {"stuid": 1004, "actid": 778}, {"stuid": 1004, "actid": 777}, {"stuid": 1005, "actid": 770}, {"stuid": 1006, "actid": 773}, {"stuid": 1007, "actid": 773}, {"stuid": 1007, "actid": 784}, {"stuid": 1008, "actid": 785}, {"stuid": 1008, "actid": 773}, {"stuid": 1008, "actid": 780}, {"stuid": 1008, "actid": 790}, {"stuid": 1009, "actid": 778}, {"stuid": 1009, "actid": 777}, {"stuid": 1009, "actid": 782}, {"stuid": 1010, "actid": 780}, {"stuid": 1011, "actid": 780}, {"stuid": 1012, "actid": 780}, {"stuid": 1014, "actid": 780}, {"stuid": 1014, "actid": 777}, {"stuid": 1014, "actid": 778}, {"stuid": 1014, "actid": 782}, {"stuid": 1014, "actid": 770}, {"stuid": 1014, "actid": 772}, {"stuid": 1015, "actid": 785}, {"stuid": 1016, "actid": 791}, {"stuid": 1016, "actid": 772}, {"stuid": 1017, "actid": 791}, {"stuid": 1017, "actid": 771}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 790}, {"stuid": 1018, "actid": 785}, {"stuid": 1018, "actid": 784}, {"stuid": 1018, "actid": 777}, {"stuid": 1018, "actid": 772}, {"stuid": 1018, "actid": 770}, {"stuid": 1019, "actid": 785}, {"stuid": 1019, "actid": 790}, {"stuid": 1020, "actid": 780}, {"stuid": 1021, "actid": 780}, {"stuid": 1021, "actid": 776}, {"stuid": 1022, "actid": 782}, {"stuid": 1022, "actid": 790}, {"stuid": 1023, "actid": 790}, {"stuid": 1023, "actid": 776}, {"stuid": 1024, "actid": 778}, {"stuid": 1024, "actid": 777}, {"stuid": 1024, "actid": 780}, {"stuid": 1025, "actid": 780}, {"stuid": 1025, "actid": 777}, {"stuid": 1025, "actid": 770}, {"stuid": 1028, "actid": 785}, {"stuid": 1029, "actid": 785}, {"stuid": 1029, "actid": 790}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}, {"stuid": 1033, "actid": 780}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(stuid <= 1008)\n |> select(stuid, actid)\n\n-- Load lookup data\nstudent = load(\"student\")\n |> select(sex, age, stuid)\n\nenriched = join(filtered_participates_in, student, on: stuid == stuid)\n |> compute(computed_val: stuid * actid)\n\nresult = enriched\n |> sort_by(stuid, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(stuid <= 1008)\n |> select(stuid, actid)\n\n-- Load lookup data\nstudent = load(\"student\")\n |> select(sex, age, stuid)\n\nenriched = join(filtered_participates_in, student, on: stuid == stuid)\n |> compute(computed_val: stuid * actid)\n\nresult = enriched\n |> sort_by(stuid, asc)\n |> take(4)\n\nemit result", "expected_output": [{"stuid": 1001, "actid": 770, "sex": "F", "age": 18, "computed_val": 770770}, {"stuid": 1001, "actid": 771, "sex": "F", "age": 18, "computed_val": 771771}, {"stuid": 1001, "actid": 777, "sex": "F", "age": 18, "computed_val": 777777}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 5", "line_num": 17, "original": "|> take(3)", "mutated": "|> take(5)"}, {"category": "logic_bug", "description": "Off-by-one in take: 5 \u2192 4", "line_num": 17, "original": "|> take(5)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "activity_1__participates_in", "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": {"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(id >= 11)\n\nsummary = filtered_city\n |> group_by(countrycode)\n |> aggregate(max_population: max(population), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n |> select(code, lifeexpectancy, continent)\n\nenriched = join(summary, country, on: countrycode == code)\n |> compute(computed_val: max_population + count)\n\nresult = enriched\n |> sort_by(max_population, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(id >= 11)\n\nsummary = filtered_city\n |> group_by(countrycode)\n |> aggregate(max_population: max(population), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n |> select(code, lifeexpectancy, continent)\n\nenriched = join(summary, country, on: code == countrycode)\n |> compute(computed_val: max_population + count)\n\nresult = enriched\n |> sort_by(max_population, asc)\n |> take(7)\n\nemit result", "expected_output": [{"countrycode": "AIA", "max_population": 961, "count": 2, "code": "AIA", "lifeexpectancy": 76.1, "continent": "North America", "computed_val": 963}, {"countrycode": "BMU", "max_population": 1800, "count": 2, "code": "BMU", "lifeexpectancy": 76.9, "continent": "North America", "computed_val": 1802}, {"countrycode": "ANT", "max_population": 2345, "count": 1, "code": "ANT", "lifeexpectancy": 74.7, "continent": "North America", "computed_val": 2346}, {"countrycode": "ASM", "max_population": 5200, "count": 2, "code": "ASM", "lifeexpectancy": 75.1, "continent": "Oceania", "computed_val": 5202}, {"countrycode": "BRB", "max_population": 6070, "count": 1, "code": "BRB", "lifeexpectancy": 73.0, "continent": "North America", "computed_val": 6071}], "bug_info": [{"category": "join_bug", "description": "Swapped join keys: 'countrycode == code' \u2192 'code == countrycode'", "line_num": 15, "original": "enriched = join(summary, country, on: countrycode == code)", "mutated": "enriched = join(summary, country, on: code == countrycode)"}, {"category": "logic_bug", "description": "Off-by-2 in take: 5 \u2192 7", "line_num": 20, "original": "|> take(5)", "mutated": "|> take(7)"}], "difficulty": "hard", "domain": "world_1__city", "num_nodes": 6, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"actual_order_products": [{"actual_order_id": 2, "product_id": 1}, {"actual_order_id": 14, "product_id": 5}, {"actual_order_id": 13, "product_id": 6}, {"actual_order_id": 9, "product_id": 2}, {"actual_order_id": 3, "product_id": 2}, {"actual_order_id": 2, "product_id": 3}, {"actual_order_id": 13, "product_id": 2}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 3, "product_id": 1}, {"actual_order_id": 10, "product_id": 3}, {"actual_order_id": 6, "product_id": 6}, {"actual_order_id": 5, "product_id": 5}, {"actual_order_id": 7, "product_id": 3}, {"actual_order_id": 5, "product_id": 3}, {"actual_order_id": 15, "product_id": 4}], "products": [{"product_id": 1, "product_name": "dvds", "product_price": 1322.78, "product_description": "good condition"}, {"product_id": 2, "product_name": "cloth", "product_price": 6402.09, "product_description": "good condition"}, {"product_id": 3, "product_name": "electronics", "product_price": 2511.29, "product_description": "great condition"}, {"product_id": 4, "product_name": "books", "product_price": 7111.68, "product_description": "good condition"}, {"product_id": 5, "product_name": "food", "product_price": 3644.45, "product_description": "good condition"}, {"product_id": 6, "product_name": "gift", "product_price": 5022.39, "product_description": "bad condition"}]}, "correct_code": "-- Load customer_deliveries__actual_order_products data\nactual_order_products = load(\"actual_order_products\")\n |> select(actual_order_id, product_id)\n\nprocessed = actual_order_products\n |> compute(computed_val: actual_order_id / product_id)\n\nresult = processed\n |> sort_by(actual_order_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(computed_val, product_id)\n\nprocessed = actual_order_products\n |> compute(computed_val: actual_order_id / product_id)\n\nresult = processed\n |> sort_by(actual_order_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"actual_order_id": 2, "product_id": 1, "computed_val": 2.0}, {"actual_order_id": 2, "product_id": 3, "computed_val": 0.6666666666666666}, {"actual_order_id": 3, "product_id": 2, "computed_val": 1.5}, {"actual_order_id": 3, "product_id": 1, "computed_val": 3.0}, {"actual_order_id": 3, "product_id": 1, "computed_val": 3.0}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'actual_order_id' \u2192 'computed_val'", "line_num": 3, "original": "|> select(actual_order_id, product_id)", "mutated": "|> select(computed_val, product_id)"}], "difficulty": "medium", "domain": "customer_deliveries__actual_order_products", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"highschooler": [{"id": 1510, "name": "Jordan", "grade": 9}, {"id": 1689, "name": "Gabriel", "grade": 9}, {"id": 1381, "name": "Tiffany", "grade": 9}, {"id": 1709, "name": "Cassandra", "grade": 9}, {"id": 1101, "name": "Haley", "grade": 10}, {"id": 1782, "name": "Andrew", "grade": 10}, {"id": 1468, "name": "Kris", "grade": 10}, {"id": 1641, "name": "Brittany", "grade": 10}, {"id": 1247, "name": "Alexis", "grade": 11}, {"id": 1316, "name": "Austin", "grade": 11}, {"id": 1911, "name": "Gabriel", "grade": 11}, {"id": 1501, "name": "Jessica", "grade": 11}, {"id": 1304, "name": "Jordan", "grade": 12}, {"id": 1025, "name": "John", "grade": 12}, {"id": 1934, "name": "Kyle", "grade": 12}, {"id": 1661, "name": "Logan", "grade": 12}], "likes": [{"student_id": 1689, "liked_id": 1709}, {"student_id": 1709, "liked_id": 1689}, {"student_id": 1782, "liked_id": 1709}, {"student_id": 1911, "liked_id": 1247}, {"student_id": 1247, "liked_id": 1468}, {"student_id": 1641, "liked_id": 1468}, {"student_id": 1316, "liked_id": 1304}, {"student_id": 1501, "liked_id": 1934}, {"student_id": 1934, "liked_id": 1501}, {"student_id": 1025, "liked_id": 1101}]}, "correct_code": "-- Load network_1__highschooler data\nhighschooler = load(\"highschooler\")\n\nfiltered_highschooler = highschooler\n |> filter(name == \"Gabriel\")\n |> filter(grade > 9)\n |> select(name, id, grade)\n\nsummary = filtered_highschooler\n |> group_by(name)\n |> aggregate(max_id: max(id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load network_1__highschooler data\nhighschooler = load(\"highschooler\")\n\nfiltered_highschooler = highschooler\n |> filter(name == \"Gabriel\")\n |!= filter(grade > 9)\n |> select(name, id, grade)\n\nsummary = filtered_highschooler\n |> group_by(name)\n |> aggregate(max_id: max(id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"name": "Gabriel", "max_id": 1911, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '>' \u2192 '!='", "line_num": 6, "original": "|> filter(grade > 9)", "mutated": "|!= filter(grade > 9)"}], "difficulty": "medium", "domain": "network_1__highschooler", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}], "sportsinfo": [{"stuid": 1001, "sportname": "Athletics", "hoursperweek": 2, "gamesplayed": 5, "onscholarship": "N"}, {"stuid": 1002, "sportname": "Football", "hoursperweek": 7, "gamesplayed": 20, "onscholarship": "Y"}, {"stuid": 1003, "sportname": "Football", "hoursperweek": 45, "gamesplayed": 18, "onscholarship": "Y"}, {"stuid": 1005, "sportname": "Lacrosse", "hoursperweek": 35, "gamesplayed": 16, "onscholarship": "N"}, {"stuid": 1015, "sportname": "Lacrosse", "hoursperweek": 25, "gamesplayed": 41, "onscholarship": "Y"}, {"stuid": 1018, "sportname": "Lacrosse", "hoursperweek": 39, "gamesplayed": 25, "onscholarship": "N"}, {"stuid": 1019, "sportname": "Swimming", "hoursperweek": 8, "gamesplayed": 16, "onscholarship": "Y"}, {"stuid": 1019, "sportname": "Tennis", "hoursperweek": 19, "gamesplayed": 62, "onscholarship": "N"}, {"stuid": 1022, "sportname": "Baseball", "hoursperweek": 29, "gamesplayed": 31, "onscholarship": "N"}, {"stuid": 1023, "sportname": "Basketball", "hoursperweek": 14, "gamesplayed": 8, "onscholarship": "Y"}, {"stuid": 1023, "sportname": "Tennis", "hoursperweek": 1, "gamesplayed": 56, "onscholarship": "Y"}, {"stuid": 1026, "sportname": "Cricket", "hoursperweek": 23, "gamesplayed": 37, "onscholarship": "Y"}, {"stuid": 1033, "sportname": "Soccer", "hoursperweek": 45, "gamesplayed": 45, "onscholarship": "Y"}, {"stuid": 1035, "sportname": "Curling", "hoursperweek": 50, "gamesplayed": 94, "onscholarship": "N"}]}, "correct_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(sex == \"M\")\n\nsummary = filtered_student\n |> group_by(lname)\n |> aggregate(avg_major: avg(major), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(sex == \"M\")\n\nsummary = filtered_student\n |> group_by(lname)\n |> aggregate(avg_major: avg(major), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"lname": "Kumar", "avg_major": 600.0, "count": 1}, {"lname": "Gompers", "avg_major": 600.0, "count": 1}, {"lname": "Schultz", "avg_major": 600.0, "count": 1}], "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": "game_1__student", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"company": [{"company_id": 1.0, "name": "ExxonMobil", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 433.5, "profits_in_billion": 41.1, "assets_in_billion": 331.1, "market_value_in_billion": 407.4}, {"company_id": 2.0, "name": "JPMorgan Chase", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 110.8, "profits_in_billion": 19.0, "assets_in_billion": 2265.8, "market_value_in_billion": 170.1}, {"company_id": 3.0, "name": "General Electric", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 147.3, "profits_in_billion": 14.2, "assets_in_billion": 717.2, "market_value_in_billion": 213.7}, {"company_id": 4.0, "name": "Royal Dutch Shell", "headquarters": "Netherlands", "industry": "Oil and gas", "sales_in_billion": 470.2, "profits_in_billion": 30.9, "assets_in_billion": 340.5, "market_value_in_billion": 227.6}, {"company_id": 5.0, "name": "Industrial and Commercial Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 82.6, "profits_in_billion": 25.1, "assets_in_billion": 2039.1, "market_value_in_billion": 237.4}, {"company_id": 6.0, "name": "HSBC", "headquarters": "UK", "industry": "Banking", "sales_in_billion": 102.0, "profits_in_billion": 16.2, "assets_in_billion": 2550.0, "market_value_in_billion": 164.3}, {"company_id": 7.0, "name": "PetroChina", "headquarters": "China", "industry": "Oil and gas", "sales_in_billion": 310.1, "profits_in_billion": 20.6, "assets_in_billion": 304.7, "market_value_in_billion": 294.7}, {"company_id": 8.0, "name": "Berkshire Hathaway", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 143.7, "profits_in_billion": 10.3, "assets_in_billion": 392.6, "market_value_in_billion": 202.2}, {"company_id": 9.0, "name": "Wells Fargo", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 87.6, "profits_in_billion": 15.9, "assets_in_billion": 1313.9, "market_value_in_billion": 178.7}, {"company_id": 10.0, "name": "Petrobras", "headquarters": "Brazil", "industry": "Oil and gas", "sales_in_billion": 145.9, "profits_in_billion": 20.1, "assets_in_billion": 319.4, "market_value_in_billion": 180.0}, {"company_id": 11.0, "name": "BP", "headquarters": "UK", "industry": "Oil and gas", "sales_in_billion": 375.5, "profits_in_billion": 25.7, "assets_in_billion": 292.5, "market_value_in_billion": 147.4}, {"company_id": 12.0, "name": "Chevron", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 236.3, "profits_in_billion": 26.9, "assets_in_billion": 209.5, "market_value_in_billion": 218.0}, {"company_id": 13.0, "name": "China Construction Bank", "headquarters": "China", "industry": "Banking", "sales_in_billion": 68.7, "profits_in_billion": 20.5, "assets_in_billion": 1637.8, "market_value_in_billion": 201.9}, {"company_id": 14.0, "name": "Citigroup", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 102.6, "profits_in_billion": 11.1, "assets_in_billion": 1873.9, "market_value_in_billion": 107.5}, {"company_id": 15.0, "name": "Gazprom", "headquarters": "Russia", "industry": "Oil and gas", "sales_in_billion": 117.6, "profits_in_billion": 31.7, "assets_in_billion": 302.6, "market_value_in_billion": 159.8}, {"company_id": 16.0, "name": "Walmart", "headquarters": "USA", "industry": "Retailing", "sales_in_billion": 447.0, "profits_in_billion": 15.7, "assets_in_billion": 193.4, "market_value_in_billion": 208.4}, {"company_id": 17.0, "name": "Volkswagen Group", "headquarters": "Germany", "industry": "Automotive", "sales_in_billion": 221.9, "profits_in_billion": 21.5, "assets_in_billion": 328.7, "market_value_in_billion": 79.5}, {"company_id": 18.0, "name": "Total", "headquarters": "France", "industry": "Oil and gas", "sales_in_billion": 216.2, "profits_in_billion": 15.9, "assets_in_billion": 213.0, "market_value_in_billion": 132.4}, {"company_id": 19.0, "name": "Agricultural Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 62.4, "profits_in_billion": 14.4, "assets_in_billion": 1563.9, "market_value_in_billion": 154.8}], "employment": [{"company_id": 11, "people_id": 3, "year_working": 2}, {"company_id": 13, "people_id": 2, "year_working": 3}, {"company_id": 17, "people_id": 7, "year_working": 4}, {"company_id": 15, "people_id": 1, "year_working": 1}, {"company_id": 7, "people_id": 4, "year_working": 1}]}, "correct_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(market_value_in_billion >= 174)\n\nsummary = filtered_company\n |> group_by(name)\n |> aggregate(max_sales_in_billion: max(sales_in_billion), count: count())\n\nresult = summary\n |> sort_by(max_sales_in_billion, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(market_value_in_billion >= 164)\n\nsummary = filtered_company\n |> group_by(name)\n |> aggregate(max_sales_in_billion: max(name), count: count())\n\nresult = summary\n |> sort_by(max_sales_in_billion, desc)\n |> take(3)\n\nemit result", "expected_output": [{"name": "Royal Dutch Shell", "max_sales_in_billion": 470.2, "count": 1}, {"name": "Walmart", "max_sales_in_billion": 447.0, "count": 1}, {"name": "ExxonMobil", "max_sales_in_billion": 433.5, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 174 \u2192 164", "line_num": 5, "original": "|> filter(market_value_in_billion >= 174)", "mutated": "|> filter(market_value_in_billion >= 164)"}, {"category": "wrong_col", "description": "Wrong column reference: 'sales_in_billion' \u2192 'name'", "line_num": 9, "original": "|> aggregate(max_sales_in_billion: max(sales_in_billion), count: count())", "mutated": "|> aggregate(max_sales_in_billion: max(name), count: count())"}], "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": {"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_name, product_id, product_price)\n\nenriched = join(regular_order_products, products, on: product_id == product_id)\n\nresult = enriched\n |> sort_by(regular_order_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load customer_deliveries__regular_order_products data\nregular_order_products = load(\"regular_order_products\")\n\n-- Load lookup data\nproducts = load(\"products\")\n |> select(product_name, product_id, regular_order_id)\n\nenriched = join(regular_order_products, products, on: product_id == product_id)\n\nresult = enriched\n |> sort_by(regular_order_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"regular_order_id": 1, "product_id": 4, "product_name": "books", "product_price": 7111.68}, {"regular_order_id": 1, "product_id": 1, "product_name": "dvds", "product_price": 1322.78}, {"regular_order_id": 2, "product_id": 3, "product_name": "electronics", "product_price": 2511.29}, {"regular_order_id": 3, "product_id": 6, "product_name": "gift", "product_price": 5022.39}, {"regular_order_id": 3, "product_id": 1, "product_name": "dvds", "product_price": 1322.78}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'product_price' \u2192 'regular_order_id'", "line_num": 6, "original": "|> select(product_name, product_id, product_price)", "mutated": "|> select(product_name, product_id, regular_order_id)"}], "difficulty": "hard", "domain": "customer_deliveries__regular_order_products", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"advisor": [{"s_id": "24746", "i_id": "19368"}, {"s_id": "79352", "i_id": "95030"}, {"s_id": "76672", "i_id": "22591"}, {"s_id": "14182", "i_id": "77346"}, {"s_id": "44985", "i_id": "31955"}, {"s_id": "96052", "i_id": "73623"}, {"s_id": "35175", "i_id": "90643"}, {"s_id": "44271", "i_id": "58558"}, {"s_id": "40897", "i_id": "73623"}, {"s_id": "92839", "i_id": "25946"}, {"s_id": "79329", "i_id": "58558"}, {"s_id": "97101", "i_id": "48570"}, {"s_id": "24865", "i_id": "6569"}, {"s_id": "36052", "i_id": "31955"}, {"s_id": "98940", "i_id": "99052"}, {"s_id": "21395", "i_id": "58558"}, {"s_id": "55859", "i_id": "28097"}, {"s_id": "74016", "i_id": "74420"}, {"s_id": "93061", "i_id": "64871"}, {"s_id": "94998", "i_id": "50330"}, {"s_id": "30772", "i_id": "57180"}, {"s_id": "1968", "i_id": "3335"}, {"s_id": "90567", "i_id": "48507"}, {"s_id": "49611", "i_id": "58558"}, {"s_id": "81538", "i_id": "59795"}, {"s_id": "68999", "i_id": "6569"}, {"s_id": "74639", "i_id": "41930"}, {"s_id": "66054", "i_id": "25946"}, {"s_id": "792", "i_id": "48507"}, {"s_id": "60267", "i_id": "81991"}, {"s_id": "17769", "i_id": "36897"}, {"s_id": "39580", "i_id": "3199"}, {"s_id": "89106", "i_id": "15347"}, {"s_id": "37856", "i_id": "25946"}, {"s_id": "58307", "i_id": "48507"}, {"s_id": "57985", "i_id": "52647"}, {"s_id": "72014", "i_id": "22591"}, {"s_id": "2795", "i_id": "28400"}, {"s_id": "89000", "i_id": "58558"}, {"s_id": "46442", "i_id": "48570"}, {"s_id": "60040", "i_id": "15347"}, {"s_id": "19791", "i_id": "59795"}, {"s_id": "4582", "i_id": "64871"}, {"s_id": "108", "i_id": "77346"}, {"s_id": "1533", "i_id": "50885"}, {"s_id": "7123", "i_id": "65931"}, {"s_id": "44584", "i_id": "64871"}, {"s_id": "32954", "i_id": "90376"}, {"s_id": "98056", "i_id": "73623"}, {"s_id": "76953", "i_id": "79081"}, {"s_id": "81884", "i_id": "3199"}, {"s_id": "22057", "i_id": "48507"}, {"s_id": "21126", "i_id": "52647"}, {"s_id": "82918", "i_id": "81991"}, {"s_id": "4173", "i_id": "25946"}, {"s_id": "83022", "i_id": "64871"}, {"s_id": "25525", "i_id": "96895"}, {"s_id": "75040", "i_id": "80759"}, {"s_id": "31624", "i_id": "41930"}, {"s_id": "64893", "i_id": "96895"}, {"s_id": "59920", "i_id": "72553"}, {"s_id": "38602", "i_id": "77346"}, {"s_id": "21401", "i_id": "79081"}, {"s_id": "93004", "i_id": "15347"}, {"s_id": "38899", "i_id": "37687"}, {"s_id": "75241", "i_id": "28097"}, {"s_id": "98830", "i_id": "80759"}, {"s_id": "37101", "i_id": "80759"}, {"s_id": "4508", "i_id": "28097"}, {"s_id": "32130", "i_id": "16807"}, {"s_id": "56755", "i_id": "79653"}, {"s_id": "11510", "i_id": "95709"}, {"s_id": "3335", "i_id": "74420"}, {"s_id": "61081", "i_id": "80759"}, {"s_id": "33651", "i_id": "96895"}, {"s_id": "8251", "i_id": "73623"}, {"s_id": "10705", "i_id": "6569"}, {"s_id": "64082", "i_id": "74426"}, {"s_id": "59517", "i_id": "34175"}, {"s_id": "91569", "i_id": "14365"}, {"s_id": "88085", "i_id": "28400"}, {"s_id": "96722", "i_id": "58558"}, {"s_id": "36379", "i_id": "42782"}, {"s_id": "69581", "i_id": "25946"}, {"s_id": "65329", "i_id": "3335"}, {"s_id": "49214", "i_id": "4034"}, {"s_id": "64155", "i_id": "36897"}, {"s_id": "58594", "i_id": "74420"}, {"s_id": "71904", "i_id": "95030"}, {"s_id": "69241", "i_id": "72553"}, {"s_id": "58889", "i_id": "3335"}, {"s_id": "30341", "i_id": "79081"}, {"s_id": "70688", "i_id": "97302"}, {"s_id": "81258", "i_id": "58558"}, {"s_id": "63090", "i_id": "25946"}, {"s_id": "70572", "i_id": "35579"}, {"s_id": "58413", "i_id": "28400"}, {"s_id": "93171", "i_id": "6569"}, {"s_id": "35138", "i_id": "41930"}, {"s_id": "77289", "i_id": "59795"}, {"s_id": "93571", "i_id": "57180"}, {"s_id": "14554", "i_id": "22591"}, {"s_id": "46725", "i_id": "90376"}, {"s_id": "99730", "i_id": "3199"}, {"s_id": "10527", "i_id": "36897"}, {"s_id": "898", "i_id": "22591"}, {"s_id": "64297", "i_id": "43779"}, {"s_id": "10204", "i_id": "65931"}, {"s_id": "36926", "i_id": "43779"}, {"s_id": "49618", "i_id": "74426"}, {"s_id": "34329", "i_id": "81991"}, {"s_id": "84410", "i_id": "81991"}, {"s_id": "29435", "i_id": "77346"}, {"s_id": "62636", "i_id": "79081"}, {"s_id": "8483", "i_id": "74426"}, {"s_id": "2177", "i_id": "50330"}, {"s_id": "43348", "i_id": "81991"}, {"s_id": "37430", "i_id": "41930"}, {"s_id": "37586", "i_id": "81991"}, {"s_id": "55238", "i_id": "35579"}, {"s_id": "34404", "i_id": "74426"}, {"s_id": "59539", "i_id": "28400"}, {"s_id": "43123", "i_id": "95030"}, {"s_id": "19582", "i_id": "96895"}, {"s_id": "88553", "i_id": "31955"}, {"s_id": "5898", "i_id": "34175"}, {"s_id": "2419", "i_id": "73623"}, {"s_id": "31516", "i_id": "95030"}, {"s_id": "3487", "i_id": "4034"}, {"s_id": "66269", "i_id": "58558"}, {"s_id": "54622", "i_id": "4034"}, {"s_id": "19638", "i_id": "4034"}, {"s_id": "88418", "i_id": "57180"}, {"s_id": "86802", "i_id": "35579"}, {"s_id": "63361", "i_id": "90643"}, {"s_id": "6367", "i_id": "14365"}, {"s_id": "84239", "i_id": "22591"}, {"s_id": "4940", "i_id": "15347"}, {"s_id": "90663", "i_id": "77346"}, {"s_id": "38476", "i_id": "95030"}, {"s_id": "96003", "i_id": "3335"}, {"s_id": "64914", "i_id": "14365"}, {"s_id": "41599", "i_id": "48507"}, {"s_id": "22226", "i_id": "64871"}, {"s_id": "96153", "i_id": "28097"}, {"s_id": "44998", "i_id": "36897"}, {"s_id": "74163", "i_id": "80759"}, {"s_id": "75046", "i_id": "16807"}, {"s_id": "97679", "i_id": "43779"}, {"s_id": "94894", "i_id": "78699"}, {"s_id": "44881", "i_id": "22591"}, {"s_id": "98619", "i_id": "77346"}, {"s_id": "86753", "i_id": "22591"}, {"s_id": "87054", "i_id": "35579"}, {"s_id": "39046", "i_id": "19368"}, {"s_id": "29031", "i_id": "78699"}, {"s_id": "97355", "i_id": "28400"}, {"s_id": "24010", "i_id": "80759"}, {"s_id": "21789", "i_id": "63395"}, {"s_id": "52157", "i_id": "65931"}, {"s_id": "64938", "i_id": "52647"}, {"s_id": "94535", "i_id": "50885"}, {"s_id": "58595", "i_id": "31955"}, {"s_id": "72979", "i_id": "41930"}, {"s_id": "32506", "i_id": "28097"}, {"s_id": "31690", "i_id": "14365"}, {"s_id": "87044", "i_id": "36897"}, {"s_id": "34236", "i_id": "57180"}, {"s_id": "18808", "i_id": "77346"}, {"s_id": "91063", "i_id": "52647"}, {"s_id": "48462", "i_id": "52647"}, {"s_id": "41965", "i_id": "65931"}, {"s_id": "31137", "i_id": "50330"}, {"s_id": "7602", "i_id": "63287"}, {"s_id": "84845", "i_id": "6569"}, {"s_id": "28252", "i_id": "90643"}, {"s_id": "10736", "i_id": "90643"}, {"s_id": "58465", "i_id": "59795"}, {"s_id": "64140", "i_id": "52647"}, {"s_id": "6523", "i_id": "43779"}, {"s_id": "64067", "i_id": "77346"}, {"s_id": "99399", "i_id": "4034"}, {"s_id": "21337", "i_id": "43779"}, {"s_id": "15457", "i_id": "95709"}, {"s_id": "26102", "i_id": "99052"}, {"s_id": "31337", "i_id": "50330"}, {"s_id": "67425", "i_id": "42782"}, {"s_id": "48640", "i_id": "3335"}, {"s_id": "72741", "i_id": "80759"}, {"s_id": "29803", "i_id": "3199"}, {"s_id": "38895", "i_id": "15347"}, {"s_id": "49391", "i_id": "16807"}, {"s_id": "13741", "i_id": "4034"}, {"s_id": "59538", "i_id": "42782"}, {"s_id": "9360", "i_id": "28097"}, {"s_id": "53728", "i_id": "57180"}, {"s_id": "77898", "i_id": "15347"}, {"s_id": "32419", "i_id": "95030"}, {"s_id": "37521", "i_id": "4034"}, {"s_id": "97065", "i_id": "79653"}], "instructor": [{"id": "63395", "name": "McKinnon", "dept_name": "Cybernetics", "salary": 94333.99}, {"id": "78699", "name": "Pingr", "dept_name": "Statistics", "salary": 59303.62}, {"id": "96895", "name": "Mird", "dept_name": "Marketing", "salary": 119921.41}, {"id": "4233", "name": "Luo", "dept_name": "English", "salary": 88791.45}, {"id": "4034", "name": "Murata", "dept_name": "Athletics", "salary": 61387.56}, {"id": "50885", "name": "Konstantinides", "dept_name": "Languages", "salary": 32570.5}, {"id": "79653", "name": "Levine", "dept_name": "Elec. Eng.", "salary": 89805.83}, {"id": "50330", "name": "Shuming", "dept_name": "Physics", "salary": 108011.81}, {"id": "80759", "name": "Queiroz", "dept_name": "Biology", "salary": 45538.32}, {"id": "73623", "name": "Sullivan", "dept_name": "Elec. Eng.", "salary": 90038.09}, {"id": "97302", "name": "Bertolino", "dept_name": "Mech. Eng.", "salary": 51647.57}, {"id": "57180", "name": "Hau", "dept_name": "Accounting", "salary": 43966.29}, {"id": "74420", "name": "Voronina", "dept_name": "Physics", "salary": 121141.99}, {"id": "35579", "name": "Soisalon-Soininen", "dept_name": "Psychology", "salary": 62579.61}, {"id": "31955", "name": "Moreira", "dept_name": "Accounting", "salary": 71351.42}, {"id": "37687", "name": "Arias", "dept_name": "Statistics", "salary": 104563.38}, {"id": "6569", "name": "Mingoz", "dept_name": "Finance", "salary": 105311.38}, {"id": "16807", "name": "Yazdi", "dept_name": "Athletics", "salary": 98333.65}, {"id": "14365", "name": "Lembr", "dept_name": "Accounting", "salary": 32241.56}, {"id": "90643", "name": "Choll", "dept_name": "Statistics", "salary": 57807.09}, {"id": "81991", "name": "Valtchev", "dept_name": "Biology", "salary": 77036.18}, {"id": "95030", "name": "Arinb", "dept_name": "Statistics", "salary": 54805.11}, {"id": "15347", "name": "Bawa", "dept_name": "Athletics", "salary": 72140.88}, {"id": "74426", "name": "Kenje", "dept_name": "Marketing", "salary": 106554.73}, {"id": "42782", "name": "Vicentino", "dept_name": "Elec. Eng.", "salary": 34272.67}, {"id": "58558", "name": "Dusserre", "dept_name": "Marketing", "salary": 66143.25}, {"id": "63287", "name": "Jaekel", "dept_name": "Athletics", "salary": 103146.87}, {"id": "59795", "name": "Desyl", "dept_name": "Languages", "salary": 48803.38}, {"id": "22591", "name": "DAgostino", "dept_name": "Psychology", "salary": 59706.49}, {"id": "48570", "name": "Sarkar", "dept_name": "Pol. Sci.", "salary": 87549.8}, {"id": "79081", "name": "Ullman ", "dept_name": "Accounting", "salary": 47307.1}, {"id": "52647", "name": "Bancilhon", "dept_name": "Pol. Sci.", "salary": 87958.01}, {"id": "25946", "name": "Liley", "dept_name": "Languages", "salary": 90891.69}, {"id": "36897", "name": "Morris", "dept_name": "Marketing", "salary": 43770.36}, {"id": "72553", "name": "Yin", "dept_name": "English", "salary": 46397.59}, {"id": "3199", "name": "Gustafsson", "dept_name": "Elec. Eng.", "salary": 82534.37}, {"id": "34175", "name": "Bondi", "dept_name": "Comp. Sci.", "salary": 115469.11}, {"id": "48507", "name": "Lent", "dept_name": "Mech. Eng.", "salary": 107978.47}, {"id": "65931", "name": "Pimenta", "dept_name": "Cybernetics", "salary": 79866.95}, {"id": "3335", "name": "Bourrier", "dept_name": "Comp. Sci.", "salary": 80797.83}, {"id": "64871", "name": "Gutierrez", "dept_name": "Statistics", "salary": 45310.53}, {"id": "95709", "name": "Sakurai", "dept_name": "English", "salary": 118143.98}, {"id": "43779", "name": "Romero", "dept_name": "Astronomy", "salary": 79070.08}, {"id": "77346", "name": "Mahmoud", "dept_name": "Geology", "salary": 99382.59}, {"id": "28097", "name": "Kean", "dept_name": "English", "salary": 35023.18}, {"id": "90376", "name": "Bietzk", "dept_name": "Cybernetics", "salary": 117836.5}, {"id": "28400", "name": "Atanassov", "dept_name": "Statistics", "salary": 84982.92}, {"id": "41930", "name": "Tung", "dept_name": "Athletics", "salary": 50482.03}, {"id": "19368", "name": "Wieland", "dept_name": "Pol. Sci.", "salary": 124651.41}, {"id": "99052", "name": "Dale", "dept_name": "Cybernetics", "salary": 93348.83}]}, "correct_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(s_id == \"58307\")\n\nemit filtered_advisor", "buggy_code": "-- Load college_2__advisor data\nadvisor = load(\"advisor\")\n\nfiltered_advisor = advisor\n |> filter(s_id >= \"58307\")\n\nemit filtered_advisor", "expected_output": [{"s_id": "58307", "i_id": "48507"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '>='", "line_num": 5, "original": "|> filter(s_id == \"58307\")", "mutated": "|> filter(s_id >= \"58307\")"}], "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": {"purchases": [{"purchase_transaction_id": 1, "purchase_details": "c"}, {"purchase_transaction_id": 2, "purchase_details": "y"}, {"purchase_transaction_id": 3, "purchase_details": "i"}, {"purchase_transaction_id": 4, "purchase_details": "x"}, {"purchase_transaction_id": 5, "purchase_details": "y"}, {"purchase_transaction_id": 6, "purchase_details": "a"}, {"purchase_transaction_id": 7, "purchase_details": "r"}, {"purchase_transaction_id": 8, "purchase_details": "a"}, {"purchase_transaction_id": 9, "purchase_details": "r"}, {"purchase_transaction_id": 10, "purchase_details": "l"}, {"purchase_transaction_id": 11, "purchase_details": "z"}, {"purchase_transaction_id": 12, "purchase_details": "h"}, {"purchase_transaction_id": 13, "purchase_details": "t"}, {"purchase_transaction_id": 14, "purchase_details": "o"}, {"purchase_transaction_id": 15, "purchase_details": "x"}], "transactions": [{"transaction_id": 1, "investor_id": 6, "transaction_type_code": "SALE", "date_of_transaction": "1988-09-16 19:02:51", "amount_of_transaction": 302507.6996, "share_count": "8718572", "other_details": 0}, {"transaction_id": 2, "investor_id": 18, "transaction_type_code": "PUR", "date_of_transaction": "1982-06-06 17:19:00", "amount_of_transaction": 27.257, "share_count": "9", "other_details": 0}, {"transaction_id": 3, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1979-04-27 06:03:59", "amount_of_transaction": 48777.969, "share_count": "8580", "other_details": 0}, {"transaction_id": 4, "investor_id": 14, "transaction_type_code": "PUR", "date_of_transaction": "2001-11-28 15:06:25", "amount_of_transaction": 4.5263, "share_count": "8040", "other_details": 0}, {"transaction_id": 5, "investor_id": 8, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-17 13:13:30", "amount_of_transaction": 0, "share_count": "930", "other_details": 0}, {"transaction_id": 6, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1985-10-08 13:13:39", "amount_of_transaction": 207484122.2796, "share_count": "2751", "other_details": 0}, {"transaction_id": 7, "investor_id": 7, "transaction_type_code": "PUR", "date_of_transaction": "1990-12-02 09:03:38", "amount_of_transaction": 822.803, "share_count": "1522", "other_details": 0}, {"transaction_id": 8, "investor_id": 17, "transaction_type_code": "SALE", "date_of_transaction": "2004-01-18 20:37:50", "amount_of_transaction": 78035671.4424, "share_count": "96178", "other_details": 0}, {"transaction_id": 9, "investor_id": 20, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-13 02:18:47", "amount_of_transaction": 82057.207, "share_count": "", "other_details": 0}, {"transaction_id": 10, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1981-01-28 08:07:03", "amount_of_transaction": 29.3534, "share_count": "1654756", "other_details": 0}, {"transaction_id": 11, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2000-04-03 20:55:43", "amount_of_transaction": 0, "share_count": "674529892", "other_details": 0}, {"transaction_id": 12, "investor_id": 18, "transaction_type_code": "SALE", "date_of_transaction": "1983-11-01 17:57:27", "amount_of_transaction": 1, "share_count": "587", "other_details": 0}, {"transaction_id": 13, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2002-04-07 20:28:37", "amount_of_transaction": 183.2, "share_count": "", "other_details": 0}, {"transaction_id": 14, "investor_id": 3, "transaction_type_code": "PUR", "date_of_transaction": "2002-09-13 03:04:56", "amount_of_transaction": 0, "share_count": "630021", "other_details": 0}, {"transaction_id": 15, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1997-12-30 05:05:40", "amount_of_transaction": 8.9, "share_count": "93191", "other_details": 0}]}, "correct_code": "-- Load tracking_share_transactions__purchases data\npurchases = load(\"purchases\")\n\nfiltered_purchases = purchases\n |> filter(purchase_details == \"t\")\n\nsummary = filtered_purchases\n |> group_by(purchase_details)\n |> aggregate(min_purchase_transaction_id: min(purchase_transaction_id), count: count())\n |> compute(computed_val: count / min_purchase_transaction_id)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__purchases data\npurchases = load(\"purchases\")\n\nfiltered_purchases = purchases\n |> filter(purchase_details == \"ts\")\n\nsummary = filtered_purchases\n |> group_by(purchase_details)\n |> aggregate(min_purchase_transaction_id: min(purchase_transaction_id), count: count())\n |> compute(computed_val: count / min_purchase_transaction_id)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"purchase_details": "t", "min_purchase_transaction_id": 13, "count": 1, "computed_val": 0.07692307692307693}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 't' \u2192 'ts'", "line_num": 5, "original": "|> filter(purchase_details == \"t\")", "mutated": "|> filter(purchase_details == \"ts\")"}], "difficulty": "medium", "domain": "tracking_share_transactions__purchases", "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": {"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_name == \"Hermiston, Hand and Wisoky\")\n\nsummary = filtered_delivery_route_locations\n |> group_by(location_code)\n |> aggregate(max_location_address_id: max(location_address_id), count: count())\n |> compute(computed_val: max_location_address_id - count)\n\nresult = summary\n |> sort_by(count, 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_name == \"max_location_address_id, Hand and Wisoky\")\n\nsummary = filtered_delivery_route_locations\n |> group_by(location_code)\n |> aggregate(max_location_address_id: max(location_address_id), count: count())\n |> compute(computed_val: max_location_address_id - count)\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"location_code": "04 Elm Rd", "max_location_address_id": 8, "count": 1, "computed_val": 7}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'Hermiston' \u2192 'max_location_address_id'", "line_num": 5, "original": "|> filter(location_name == \"Hermiston, Hand and Wisoky\")", "mutated": "|> filter(location_name == \"max_location_address_id, Hand and Wisoky\")"}], "difficulty": "hard", "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_medium
{"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_date == \"2018-03-21 00:57:22\")\n |> select(location_code, delivery_status_code, delivery_date, actual_order_id, truck_id)\n\nsummary = filtered_order_deliveries\n |> group_by(delivery_date)\n |> aggregate(avg_actual_order_id: avg(actual_order_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\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(delivery_date == \"2018-03-21 00:57:22s\")\n |> select(location_code, delivery_status_code, delivery_date, actual_order_id, truck_id)\n\nsummary = filtered_order_deliveries\n |> group_by(delivery_date)\n |> aggregate(avg_actual_order_id: avg(actual_order_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"delivery_date": "2018-03-21 00:57:22", "avg_actual_order_id": 11.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 13, "original": "|> sort_by(count, asc)", "mutated": "|> sort_by(count, desc)"}, {"category": "logic_bug", "description": "Wrong filter value: '2018-03-21 00:57:22' \u2192 '2018-03-21 00:57:22s'", "line_num": 5, "original": "|> filter(delivery_date == \"2018-03-21 00:57:22\")", "mutated": "|> filter(delivery_date == \"2018-03-21 00:57:22s\")"}], "difficulty": "medium", "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_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 == \"F\")\n |> filter(end_hr < 11)\n\nsummary = filtered_time_slot\n |> group_by(time_slot_id)\n |> aggregate(avg_start_hr: avg(start_hr), count: count())\n\nresult = summary\n |> sort_by(count, desc)\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 == \"F\")\n |> filter(end_hr < 11)\n\nsummary = filtered_time_slot\n |> group_by(avg_start_hr)\n |> aggregate(avg_start_hr: avg(start_hr), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"time_slot_id": "A", "avg_start_hr": 8.0, "count": 1}, {"time_slot_id": "B", "avg_start_hr": 9.0, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'time_slot_id' \u2192 'avg_start_hr'", "line_num": 9, "original": "|> group_by(time_slot_id)", "mutated": "|> group_by(avg_start_hr)"}], "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": {"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 |> select(problem_category_code, problem_status_code, log_entry_description, problem_log_id)\n\nresult = problem_log\n |> sort_by(problem_log_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_software_problems__problem_log data\nproblem_log = load(\"problem_log\")\n |> select(problem_category_code, problem_status_code, log_entry_description, problem_log_id)\n\nresult = problem_log\n |> sort_by(problem_log_id, desc)\n |> take(2)\n\nemit result", "expected_output": [{"problem_category_code": "GUI", "problem_status_code": "Reported", "log_entry_description": "v", "problem_log_id": 15}, {"problem_category_code": "Datatabase", "problem_status_code": "Reported", "log_entry_description": "a", "problem_log_id": 14}, {"problem_category_code": "Middleware", "problem_status_code": "Reported", "log_entry_description": "q", "problem_log_id": 13}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 2", "line_num": 7, "original": "|> take(3)", "mutated": "|> take(2)"}], "difficulty": "medium", "domain": "tracking_software_problems__problem_log", "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": {"friend": [{"student_id": 1510, "friend_id": 1381}, {"student_id": 1510, "friend_id": 1689}, {"student_id": 1689, "friend_id": 1709}, {"student_id": 1381, "friend_id": 1247}, {"student_id": 1709, "friend_id": 1247}, {"student_id": 1689, "friend_id": 1782}, {"student_id": 1782, "friend_id": 1468}, {"student_id": 1782, "friend_id": 1316}, {"student_id": 1782, "friend_id": 1304}, {"student_id": 1468, "friend_id": 1101}, {"student_id": 1468, "friend_id": 1641}, {"student_id": 1101, "friend_id": 1641}, {"student_id": 1247, "friend_id": 1911}, {"student_id": 1247, "friend_id": 1501}, {"student_id": 1911, "friend_id": 1501}, {"student_id": 1501, "friend_id": 1934}, {"student_id": 1316, "friend_id": 1934}, {"student_id": 1934, "friend_id": 1304}, {"student_id": 1304, "friend_id": 1661}, {"student_id": 1661, "friend_id": 1025}], "highschooler": [{"id": 1510, "name": "Jordan", "grade": 9}, {"id": 1689, "name": "Gabriel", "grade": 9}, {"id": 1381, "name": "Tiffany", "grade": 9}, {"id": 1709, "name": "Cassandra", "grade": 9}, {"id": 1101, "name": "Haley", "grade": 10}, {"id": 1782, "name": "Andrew", "grade": 10}, {"id": 1468, "name": "Kris", "grade": 10}, {"id": 1641, "name": "Brittany", "grade": 10}, {"id": 1247, "name": "Alexis", "grade": 11}, {"id": 1316, "name": "Austin", "grade": 11}, {"id": 1911, "name": "Gabriel", "grade": 11}, {"id": 1501, "name": "Jessica", "grade": 11}, {"id": 1304, "name": "Jordan", "grade": 12}, {"id": 1025, "name": "John", "grade": 12}, {"id": 1934, "name": "Kyle", "grade": 12}, {"id": 1661, "name": "Logan", "grade": 12}]}, "correct_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n\nenriched = join(friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(friend_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load network_1__friend data\nfriend = load(\"friend\")\n\n-- Load lookup data\nhighschooler = load(\"highschooler\")\n\nenriched = join(friend, highschooler, on: friend_id == id)\n\nresult = enriched\n |> sort_by(friend_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"student_id": 1661, "friend_id": 1025, "id": 1025, "name": "John", "grade": 12}, {"student_id": 1468, "friend_id": 1101, "id": 1101, "name": "Haley", "grade": 10}, {"student_id": 1381, "friend_id": 1247, "id": 1247, "name": "Alexis", "grade": 11}, {"student_id": 1709, "friend_id": 1247, "id": 1247, "name": "Alexis", "grade": 11}, {"student_id": 1782, "friend_id": 1304, "id": 1304, "name": "Jordan", "grade": 12}], "bug_info": [{"category": "wrong_arg", "description": "Wrong sort order: 'asc' \u2192 'desc'", "line_num": 10, "original": "|> sort_by(friend_id, asc)", "mutated": "|> sort_by(friend_id, desc)"}], "difficulty": "medium", "domain": "network_1__friend", "num_nodes": 4, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"seasons": [{"year": 1950, "url": "http://en.wikipedia.org/wiki/1950_Formula_One_season"}, {"year": 1951, "url": "http://en.wikipedia.org/wiki/1951_Formula_One_season"}, {"year": 1952, "url": "http://en.wikipedia.org/wiki/1952_Formula_One_season"}, {"year": 1953, "url": "http://en.wikipedia.org/wiki/1953_Formula_One_season"}, {"year": 1954, "url": "http://en.wikipedia.org/wiki/1954_Formula_One_season"}, {"year": 1955, "url": "http://en.wikipedia.org/wiki/1955_Formula_One_season"}, {"year": 1956, "url": "http://en.wikipedia.org/wiki/1956_Formula_One_season"}, {"year": 1957, "url": "http://en.wikipedia.org/wiki/1957_Formula_One_season"}, {"year": 1958, "url": "http://en.wikipedia.org/wiki/1958_Formula_One_season"}, {"year": 1959, "url": "http://en.wikipedia.org/wiki/1959_Formula_One_season"}, {"year": 1960, "url": "http://en.wikipedia.org/wiki/1960_Formula_One_season"}, {"year": 1961, "url": "http://en.wikipedia.org/wiki/1961_Formula_One_season"}, {"year": 1962, "url": "http://en.wikipedia.org/wiki/1962_Formula_One_season"}, {"year": 1963, "url": "http://en.wikipedia.org/wiki/1963_Formula_One_season"}, {"year": 1964, "url": "http://en.wikipedia.org/wiki/1964_Formula_One_season"}, {"year": 1965, "url": "http://en.wikipedia.org/wiki/1965_Formula_One_season"}, {"year": 1966, "url": "http://en.wikipedia.org/wiki/1966_Formula_One_season"}, {"year": 1967, "url": "http://en.wikipedia.org/wiki/1967_Formula_One_season"}, {"year": 1968, "url": "http://en.wikipedia.org/wiki/1968_Formula_One_season"}, {"year": 1969, "url": "http://en.wikipedia.org/wiki/1969_Formula_One_season"}, {"year": 1970, "url": "http://en.wikipedia.org/wiki/1970_Formula_One_season"}, {"year": 1971, "url": "http://en.wikipedia.org/wiki/1971_Formula_One_season"}, {"year": 1972, "url": "http://en.wikipedia.org/wiki/1972_Formula_One_season"}, {"year": 1973, "url": "http://en.wikipedia.org/wiki/1973_Formula_One_season"}, {"year": 1974, "url": "http://en.wikipedia.org/wiki/1974_Formula_One_season"}, {"year": 1975, "url": "http://en.wikipedia.org/wiki/1975_Formula_One_season"}, {"year": 1976, "url": "http://en.wikipedia.org/wiki/1976_Formula_One_season"}, {"year": 1977, "url": "http://en.wikipedia.org/wiki/1977_Formula_One_season"}, {"year": 1978, "url": "http://en.wikipedia.org/wiki/1978_Formula_One_season"}, {"year": 1979, "url": "http://en.wikipedia.org/wiki/1979_Formula_One_season"}, {"year": 1980, "url": "http://en.wikipedia.org/wiki/1980_Formula_One_season"}, {"year": 1981, "url": "http://en.wikipedia.org/wiki/1981_Formula_One_season"}, {"year": 1982, "url": "http://en.wikipedia.org/wiki/1982_Formula_One_season"}, {"year": 1983, "url": "http://en.wikipedia.org/wiki/1983_Formula_One_season"}, {"year": 1984, "url": "http://en.wikipedia.org/wiki/1984_Formula_One_season"}, {"year": 1985, "url": "http://en.wikipedia.org/wiki/1985_Formula_One_season"}, {"year": 1986, "url": "http://en.wikipedia.org/wiki/1986_Formula_One_season"}, {"year": 1987, "url": "http://en.wikipedia.org/wiki/1987_Formula_One_season"}, {"year": 1988, "url": "http://en.wikipedia.org/wiki/1988_Formula_One_season"}, {"year": 1989, "url": "http://en.wikipedia.org/wiki/1989_Formula_One_season"}, {"year": 1990, "url": "http://en.wikipedia.org/wiki/1990_Formula_One_season"}, {"year": 1991, "url": "http://en.wikipedia.org/wiki/1991_Formula_One_season"}, {"year": 1992, "url": "http://en.wikipedia.org/wiki/1992_Formula_One_season"}, {"year": 1993, "url": "http://en.wikipedia.org/wiki/1993_Formula_One_season"}, {"year": 1994, "url": "http://en.wikipedia.org/wiki/1994_Formula_One_season"}, {"year": 1995, "url": "http://en.wikipedia.org/wiki/1995_Formula_One_season"}, {"year": 1996, "url": "http://en.wikipedia.org/wiki/1996_Formula_One_season"}, {"year": 1997, "url": "http://en.wikipedia.org/wiki/1997_Formula_One_season"}, {"year": 1998, "url": "http://en.wikipedia.org/wiki/1998_Formula_One_season"}, {"year": 1999, "url": "http://en.wikipedia.org/wiki/1999_Formula_One_season"}, {"year": 2000, "url": "http://en.wikipedia.org/wiki/2000_Formula_One_season"}, {"year": 2001, "url": "http://en.wikipedia.org/wiki/2001_Formula_One_season"}, {"year": 2002, "url": "http://en.wikipedia.org/wiki/2002_Formula_One_season"}, {"year": 2003, "url": "http://en.wikipedia.org/wiki/2003_Formula_One_season"}, {"year": 2004, "url": "http://en.wikipedia.org/wiki/2004_Formula_One_season"}, {"year": 2005, "url": "http://en.wikipedia.org/wiki/2005_Formula_One_season"}, {"year": 2006, "url": "http://en.wikipedia.org/wiki/2006_Formula_One_season"}, {"year": 2007, "url": "http://en.wikipedia.org/wiki/2007_Formula_One_season"}, {"year": 2008, "url": "http://en.wikipedia.org/wiki/2008_Formula_One_season"}, {"year": 2009, "url": "http://en.wikipedia.org/wiki/2009_Formula_One_season"}, {"year": 2010, "url": "http://en.wikipedia.org/wiki/2010_Formula_One_season"}, {"year": 2011, "url": "http://en.wikipedia.org/wiki/2011_Formula_One_season"}, {"year": 2012, "url": "http://en.wikipedia.org/wiki/2012_Formula_One_season"}, {"year": 2013, "url": "http://en.wikipedia.org/wiki/2013_Formula_One_season"}, {"year": 2014, "url": "http://en.wikipedia.org/wiki/2014_Formula_One_season"}, {"year": 2015, "url": "http://en.wikipedia.org/wiki/2015_Formula_One_season"}, {"year": 2016, "url": "https://en.wikipedia.org/wiki/2016_Formula_One_season"}, {"year": 2017, "url": "https://en.wikipedia.org/wiki/2017_Formula_One_season"}, {"year": 2018, "url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship"}]}, "correct_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(max_year: max(year), count: count())\n |> compute(computed_val: max_year * count)\n\nresult = summary\n |> sort_by(max_year, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(max_year)\n |> aggregate(max_year: max(year), count: count())\n |> compute(computed_val: max_year * count)\n\nresult = summary\n |> sort_by(max_year, desc)\n |> take(10)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship", "max_year": 2018, "count": 1, "computed_val": 2018}, {"url": "https://en.wikipedia.org/wiki/2017_Formula_One_season", "max_year": 2017, "count": 1, "computed_val": 2017}, {"url": "https://en.wikipedia.org/wiki/2016_Formula_One_season", "max_year": 2016, "count": 1, "computed_val": 2016}, {"url": "http://en.wikipedia.org/wiki/2015_Formula_One_season", "max_year": 2015, "count": 1, "computed_val": 2015}, {"url": "http://en.wikipedia.org/wiki/2014_Formula_One_season", "max_year": 2014, "count": 1, "computed_val": 2014}, {"url": "http://en.wikipedia.org/wiki/2013_Formula_One_season", "max_year": 2013, "count": 1, "computed_val": 2013}, {"url": "http://en.wikipedia.org/wiki/2012_Formula_One_season", "max_year": 2012, "count": 1, "computed_val": 2012}, {"url": "http://en.wikipedia.org/wiki/2011_Formula_One_season", "max_year": 2011, "count": 1, "computed_val": 2011}, {"url": "http://en.wikipedia.org/wiki/2010_Formula_One_season", "max_year": 2010, "count": 1, "computed_val": 2010}, {"url": "http://en.wikipedia.org/wiki/2009_Formula_One_season", "max_year": 2009, "count": 1, "computed_val": 2009}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'url' \u2192 'max_year'", "line_num": 5, "original": "|> group_by(url)", "mutated": "|> group_by(max_year)"}], "difficulty": "hard", "domain": "formula_1__seasons", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"company": [{"company_id": 1.0, "name": "ExxonMobil", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 433.5, "profits_in_billion": 41.1, "assets_in_billion": 331.1, "market_value_in_billion": 407.4}, {"company_id": 2.0, "name": "JPMorgan Chase", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 110.8, "profits_in_billion": 19.0, "assets_in_billion": 2265.8, "market_value_in_billion": 170.1}, {"company_id": 3.0, "name": "General Electric", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 147.3, "profits_in_billion": 14.2, "assets_in_billion": 717.2, "market_value_in_billion": 213.7}, {"company_id": 4.0, "name": "Royal Dutch Shell", "headquarters": "Netherlands", "industry": "Oil and gas", "sales_in_billion": 470.2, "profits_in_billion": 30.9, "assets_in_billion": 340.5, "market_value_in_billion": 227.6}, {"company_id": 5.0, "name": "Industrial and Commercial Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 82.6, "profits_in_billion": 25.1, "assets_in_billion": 2039.1, "market_value_in_billion": 237.4}, {"company_id": 6.0, "name": "HSBC", "headquarters": "UK", "industry": "Banking", "sales_in_billion": 102.0, "profits_in_billion": 16.2, "assets_in_billion": 2550.0, "market_value_in_billion": 164.3}, {"company_id": 7.0, "name": "PetroChina", "headquarters": "China", "industry": "Oil and gas", "sales_in_billion": 310.1, "profits_in_billion": 20.6, "assets_in_billion": 304.7, "market_value_in_billion": 294.7}, {"company_id": 8.0, "name": "Berkshire Hathaway", "headquarters": "USA", "industry": "Conglomerate", "sales_in_billion": 143.7, "profits_in_billion": 10.3, "assets_in_billion": 392.6, "market_value_in_billion": 202.2}, {"company_id": 9.0, "name": "Wells Fargo", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 87.6, "profits_in_billion": 15.9, "assets_in_billion": 1313.9, "market_value_in_billion": 178.7}, {"company_id": 10.0, "name": "Petrobras", "headquarters": "Brazil", "industry": "Oil and gas", "sales_in_billion": 145.9, "profits_in_billion": 20.1, "assets_in_billion": 319.4, "market_value_in_billion": 180.0}, {"company_id": 11.0, "name": "BP", "headquarters": "UK", "industry": "Oil and gas", "sales_in_billion": 375.5, "profits_in_billion": 25.7, "assets_in_billion": 292.5, "market_value_in_billion": 147.4}, {"company_id": 12.0, "name": "Chevron", "headquarters": "USA", "industry": "Oil and gas", "sales_in_billion": 236.3, "profits_in_billion": 26.9, "assets_in_billion": 209.5, "market_value_in_billion": 218.0}, {"company_id": 13.0, "name": "China Construction Bank", "headquarters": "China", "industry": "Banking", "sales_in_billion": 68.7, "profits_in_billion": 20.5, "assets_in_billion": 1637.8, "market_value_in_billion": 201.9}, {"company_id": 14.0, "name": "Citigroup", "headquarters": "USA", "industry": "Banking", "sales_in_billion": 102.6, "profits_in_billion": 11.1, "assets_in_billion": 1873.9, "market_value_in_billion": 107.5}, {"company_id": 15.0, "name": "Gazprom", "headquarters": "Russia", "industry": "Oil and gas", "sales_in_billion": 117.6, "profits_in_billion": 31.7, "assets_in_billion": 302.6, "market_value_in_billion": 159.8}, {"company_id": 16.0, "name": "Walmart", "headquarters": "USA", "industry": "Retailing", "sales_in_billion": 447.0, "profits_in_billion": 15.7, "assets_in_billion": 193.4, "market_value_in_billion": 208.4}, {"company_id": 17.0, "name": "Volkswagen Group", "headquarters": "Germany", "industry": "Automotive", "sales_in_billion": 221.9, "profits_in_billion": 21.5, "assets_in_billion": 328.7, "market_value_in_billion": 79.5}, {"company_id": 18.0, "name": "Total", "headquarters": "France", "industry": "Oil and gas", "sales_in_billion": 216.2, "profits_in_billion": 15.9, "assets_in_billion": 213.0, "market_value_in_billion": 132.4}, {"company_id": 19.0, "name": "Agricultural Bank of China", "headquarters": "China", "industry": "Banking", "sales_in_billion": 62.4, "profits_in_billion": 14.4, "assets_in_billion": 1563.9, "market_value_in_billion": 154.8}], "employment": [{"company_id": 11, "people_id": 3, "year_working": 2}, {"company_id": 13, "people_id": 2, "year_working": 3}, {"company_id": 17, "people_id": 7, "year_working": 4}, {"company_id": 15, "people_id": 1, "year_working": 1}, {"company_id": 7, "people_id": 4, "year_working": 1}]}, "correct_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(name == \"PetroChina\")\n |> select(assets_in_billion, industry, name, market_value_in_billion, company_id)\n\n-- Load lookup data\nemployment = load(\"employment\")\n |> select(company_id, people_id, year_working)\n\nenriched = join(filtered_company, employment, on: company_id == company_id)\n\nresult = enriched\n |> sort_by(assets_in_billion, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load company_employee__company data\ncompany = load(\"company\")\n\nfiltered_company = company\n |> filter(name == \"company_id\")\n |> select(assets_in_billion, industry, name, market_value_in_billion, company_id)\n\n-- Load lookup data\nemployment = load(\"employment\")\n |> select(company_id, people_id, year_working)\n\nenriched = join(filtered_company, employment, on: company_id == company_id)\n\nresult = enriched\n |> sort_by(assets_in_billion, desc)\n |> take(5)\n\nemit result", "expected_output": [{"assets_in_billion": 304.7, "industry": "Oil and gas", "name": "PetroChina", "market_value_in_billion": 294.7, "company_id": 7, "people_id": 4, "year_working": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'PetroChina' \u2192 'company_id'", "line_num": 5, "original": "|> filter(name == \"PetroChina\")", "mutated": "|> filter(name == \"company_id\")"}], "difficulty": "medium", "domain": "company_employee__company", "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": {"seasons": [{"year": 1950, "url": "http://en.wikipedia.org/wiki/1950_Formula_One_season"}, {"year": 1951, "url": "http://en.wikipedia.org/wiki/1951_Formula_One_season"}, {"year": 1952, "url": "http://en.wikipedia.org/wiki/1952_Formula_One_season"}, {"year": 1953, "url": "http://en.wikipedia.org/wiki/1953_Formula_One_season"}, {"year": 1954, "url": "http://en.wikipedia.org/wiki/1954_Formula_One_season"}, {"year": 1955, "url": "http://en.wikipedia.org/wiki/1955_Formula_One_season"}, {"year": 1956, "url": "http://en.wikipedia.org/wiki/1956_Formula_One_season"}, {"year": 1957, "url": "http://en.wikipedia.org/wiki/1957_Formula_One_season"}, {"year": 1958, "url": "http://en.wikipedia.org/wiki/1958_Formula_One_season"}, {"year": 1959, "url": "http://en.wikipedia.org/wiki/1959_Formula_One_season"}, {"year": 1960, "url": "http://en.wikipedia.org/wiki/1960_Formula_One_season"}, {"year": 1961, "url": "http://en.wikipedia.org/wiki/1961_Formula_One_season"}, {"year": 1962, "url": "http://en.wikipedia.org/wiki/1962_Formula_One_season"}, {"year": 1963, "url": "http://en.wikipedia.org/wiki/1963_Formula_One_season"}, {"year": 1964, "url": "http://en.wikipedia.org/wiki/1964_Formula_One_season"}, {"year": 1965, "url": "http://en.wikipedia.org/wiki/1965_Formula_One_season"}, {"year": 1966, "url": "http://en.wikipedia.org/wiki/1966_Formula_One_season"}, {"year": 1967, "url": "http://en.wikipedia.org/wiki/1967_Formula_One_season"}, {"year": 1968, "url": "http://en.wikipedia.org/wiki/1968_Formula_One_season"}, {"year": 1969, "url": "http://en.wikipedia.org/wiki/1969_Formula_One_season"}, {"year": 1970, "url": "http://en.wikipedia.org/wiki/1970_Formula_One_season"}, {"year": 1971, "url": "http://en.wikipedia.org/wiki/1971_Formula_One_season"}, {"year": 1972, "url": "http://en.wikipedia.org/wiki/1972_Formula_One_season"}, {"year": 1973, "url": "http://en.wikipedia.org/wiki/1973_Formula_One_season"}, {"year": 1974, "url": "http://en.wikipedia.org/wiki/1974_Formula_One_season"}, {"year": 1975, "url": "http://en.wikipedia.org/wiki/1975_Formula_One_season"}, {"year": 1976, "url": "http://en.wikipedia.org/wiki/1976_Formula_One_season"}, {"year": 1977, "url": "http://en.wikipedia.org/wiki/1977_Formula_One_season"}, {"year": 1978, "url": "http://en.wikipedia.org/wiki/1978_Formula_One_season"}, {"year": 1979, "url": "http://en.wikipedia.org/wiki/1979_Formula_One_season"}, {"year": 1980, "url": "http://en.wikipedia.org/wiki/1980_Formula_One_season"}, {"year": 1981, "url": "http://en.wikipedia.org/wiki/1981_Formula_One_season"}, {"year": 1982, "url": "http://en.wikipedia.org/wiki/1982_Formula_One_season"}, {"year": 1983, "url": "http://en.wikipedia.org/wiki/1983_Formula_One_season"}, {"year": 1984, "url": "http://en.wikipedia.org/wiki/1984_Formula_One_season"}, {"year": 1985, "url": "http://en.wikipedia.org/wiki/1985_Formula_One_season"}, {"year": 1986, "url": "http://en.wikipedia.org/wiki/1986_Formula_One_season"}, {"year": 1987, "url": "http://en.wikipedia.org/wiki/1987_Formula_One_season"}, {"year": 1988, "url": "http://en.wikipedia.org/wiki/1988_Formula_One_season"}, {"year": 1989, "url": "http://en.wikipedia.org/wiki/1989_Formula_One_season"}, {"year": 1990, "url": "http://en.wikipedia.org/wiki/1990_Formula_One_season"}, {"year": 1991, "url": "http://en.wikipedia.org/wiki/1991_Formula_One_season"}, {"year": 1992, "url": "http://en.wikipedia.org/wiki/1992_Formula_One_season"}, {"year": 1993, "url": "http://en.wikipedia.org/wiki/1993_Formula_One_season"}, {"year": 1994, "url": "http://en.wikipedia.org/wiki/1994_Formula_One_season"}, {"year": 1995, "url": "http://en.wikipedia.org/wiki/1995_Formula_One_season"}, {"year": 1996, "url": "http://en.wikipedia.org/wiki/1996_Formula_One_season"}, {"year": 1997, "url": "http://en.wikipedia.org/wiki/1997_Formula_One_season"}, {"year": 1998, "url": "http://en.wikipedia.org/wiki/1998_Formula_One_season"}, {"year": 1999, "url": "http://en.wikipedia.org/wiki/1999_Formula_One_season"}, {"year": 2000, "url": "http://en.wikipedia.org/wiki/2000_Formula_One_season"}, {"year": 2001, "url": "http://en.wikipedia.org/wiki/2001_Formula_One_season"}, {"year": 2002, "url": "http://en.wikipedia.org/wiki/2002_Formula_One_season"}, {"year": 2003, "url": "http://en.wikipedia.org/wiki/2003_Formula_One_season"}, {"year": 2004, "url": "http://en.wikipedia.org/wiki/2004_Formula_One_season"}, {"year": 2005, "url": "http://en.wikipedia.org/wiki/2005_Formula_One_season"}, {"year": 2006, "url": "http://en.wikipedia.org/wiki/2006_Formula_One_season"}, {"year": 2007, "url": "http://en.wikipedia.org/wiki/2007_Formula_One_season"}, {"year": 2008, "url": "http://en.wikipedia.org/wiki/2008_Formula_One_season"}, {"year": 2009, "url": "http://en.wikipedia.org/wiki/2009_Formula_One_season"}, {"year": 2010, "url": "http://en.wikipedia.org/wiki/2010_Formula_One_season"}, {"year": 2011, "url": "http://en.wikipedia.org/wiki/2011_Formula_One_season"}, {"year": 2012, "url": "http://en.wikipedia.org/wiki/2012_Formula_One_season"}, {"year": 2013, "url": "http://en.wikipedia.org/wiki/2013_Formula_One_season"}, {"year": 2014, "url": "http://en.wikipedia.org/wiki/2014_Formula_One_season"}, {"year": 2015, "url": "http://en.wikipedia.org/wiki/2015_Formula_One_season"}, {"year": 2016, "url": "https://en.wikipedia.org/wiki/2016_Formula_One_season"}, {"year": 2017, "url": "https://en.wikipedia.org/wiki/2017_Formula_One_season"}, {"year": 2018, "url": "http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship"}]}, "correct_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(min_year: min(year), count: count())\n\nresult = summary\n |> sort_by(min_year, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load formula_1__seasons data\nseasons = load(\"seasons\")\n\nsummary = seasons\n |> group_by(url)\n |> aggregate(min_year: min(year), count: count())\n\nresult = summary\n |> sort_by(min_year, asc)\n |> take(11)\n\nemit result", "expected_output": [{"url": "http://en.wikipedia.org/wiki/1950_Formula_One_season", "min_year": 1950, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1951_Formula_One_season", "min_year": 1951, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1952_Formula_One_season", "min_year": 1952, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1953_Formula_One_season", "min_year": 1953, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1954_Formula_One_season", "min_year": 1954, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1955_Formula_One_season", "min_year": 1955, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1956_Formula_One_season", "min_year": 1956, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1957_Formula_One_season", "min_year": 1957, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1958_Formula_One_season", "min_year": 1958, "count": 1}, {"url": "http://en.wikipedia.org/wiki/1959_Formula_One_season", "min_year": 1959, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Off-by-one in take: 10 \u2192 11", "line_num": 10, "original": "|> take(10)", "mutated": "|> take(11)"}], "difficulty": "hard", "domain": "formula_1__seasons", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_easy
{"datasets": {"participants_in_events": [{"event_id": 3, "participant_id": 26}, {"event_id": 3, "participant_id": 66}, {"event_id": 8, "participant_id": 86}, {"event_id": 13, "participant_id": 64}, {"event_id": 13, "participant_id": 90}, {"event_id": 16, "participant_id": 60}, {"event_id": 17, "participant_id": 37}, {"event_id": 17, "participant_id": 66}, {"event_id": 38, "participant_id": 66}, {"event_id": 40, "participant_id": 37}, {"event_id": 40, "participant_id": 86}, {"event_id": 57, "participant_id": 90}, {"event_id": 60, "participant_id": 26}, {"event_id": 80, "participant_id": 36}, {"event_id": 80, "participant_id": 66}, {"event_id": 80, "participant_id": 96}, {"event_id": 95, "participant_id": 63}, {"event_id": 96, "participant_id": 90}], "participants": [{"participant_id": 9, "participant_type_code": "Organizer", "participant_details": "Karlee Batz"}, {"participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner"}, {"participant_id": 28, "participant_type_code": "Organizer", "participant_details": "Lupe Deckow"}, {"participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn"}, {"participant_id": 37, "participant_type_code": "Participant", "participant_details": "Miss Kaci Lebsack"}, {"participant_id": 38, "participant_type_code": "Organizer", "participant_details": "Macy Mayer DDS"}, {"participant_id": 60, "participant_type_code": "Participant", "participant_details": "Dewitt Walter"}, {"participant_id": 63, "participant_type_code": "Participant", "participant_details": "Prof. Michelle Maggio Jr."}, {"participant_id": 64, "participant_type_code": "Participant", "participant_details": "Dr. Jaydon Renner"}, {"participant_id": 66, "participant_type_code": "Participant", "participant_details": "Justyn Lebsack"}, {"participant_id": 75, "participant_type_code": "Participant", "participant_details": "Berniece Weimann"}, {"participant_id": 86, "participant_type_code": "Organizer", "participant_details": "Neil Blick"}, {"participant_id": 90, "participant_type_code": "Participant", "participant_details": "Dedrick Ebert"}, {"participant_id": 96, "participant_type_code": "Organizer", "participant_details": "Miss Joyce Cremin"}, {"participant_id": 98, "participant_type_code": "Participant", "participant_details": "Dr. Kris Deckow"}]}, "correct_code": "-- Load local_govt_in_alabama__participants_in_events data\nparticipants_in_events = load(\"participants_in_events\")\n\nprocessed = participants_in_events\n |> compute(computed_val: participant_id - event_id)\n\nresult = processed\n |> sort_by(event_id, asc)\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\nprocessed = participants_in_events\n |> compute(computed_val: participant_id - event_id)\n\nresult = processed\n sort_by(event_id, asc)\n take(3)\n\nemit result", "expected_output": [{"event_id": 3, "participant_id": 26, "computed_val": 23}, {"event_id": 3, "participant_id": 66, "computed_val": 63}, {"event_id": 8, "participant_id": 86, "computed_val": 78}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> take(3)", "mutated": "take(3)"}, {"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 8, "original": "|> sort_by(event_id, asc)", "mutated": "sort_by(event_id, asc)"}], "difficulty": "easy", "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_hard
{"datasets": {"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"}], "apartment_facilities": [{"apt_id": 1, "facility_code": "Boardband"}, {"apt_id": 2, "facility_code": "Boardband"}, {"apt_id": 3, "facility_code": "Gym"}, {"apt_id": 5, "facility_code": "Swimming Pool"}, {"apt_id": 6, "facility_code": "Cable TV"}, {"apt_id": 9, "facility_code": "Boardband"}, {"apt_id": 15, "facility_code": "Gym"}]}, "correct_code": "-- Load apartment_rentals__apartments data\napartments = load(\"apartments\")\n\nsummary = apartments\n |> group_by(apt_number)\n |> aggregate(max_bedroom_count: max(bedroom_count), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load apartment_rentals__apartments data\napartments = load(\"apartments\")\n\nsummary = apartments\n |> group_by(max_bedroom_count)\n |> aggregate(max_bedroom_count: max(bedroom_count), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"apt_number": "Suite 645", "max_bedroom_count": 3, "count": 1}, {"apt_number": "Apt. 585", "max_bedroom_count": 4, "count": 1}, {"apt_number": "Apt. 908", "max_bedroom_count": 6, "count": 1}, {"apt_number": "Suite 749", "max_bedroom_count": 5, "count": 1}, {"apt_number": "Suite 307", "max_bedroom_count": 4, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'apt_number' \u2192 'max_bedroom_count'", "line_num": 5, "original": "|> group_by(apt_number)", "mutated": "|> group_by(max_bedroom_count)"}], "difficulty": "hard", "domain": "apartment_rentals__apartments", "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": {"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 == \"Completed\")\n |> select(vehicle_id, customer_id, lesson_status_code, price, lesson_id)\n\n-- Load lookup data\nvehicles = load(\"vehicles\")\n\nenriched = join(filtered_lessons, vehicles, on: vehicle_id == vehicle_id)\n\nresult = enriched\n |> sort_by(customer_id, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load driving_school__lessons data\nlessons = load(\"lessons\")\n\nfiltered_lessons = lessons\n |> filter(lesson_status_code == \"Completed\")\n |> select(vehicle_id, customer_id, lesson_status_code, price, lesson_id)\n\n-- Load lookup data\nvehicles = load(\"vehicles\")\n\nenriched = join(filtered_lessons, vehicles, on: Load == vehicle_id)\n\nresult = enriched\n |> sort_by(customer_id, asc)\n |> take(10)\n\nemit result", "expected_output": [{"vehicle_id": 2, "customer_id": 2, "lesson_status_code": "Completed", "price": 456.0, "lesson_id": 9, "vehicle_details": "Truck"}, {"vehicle_id": 2, "customer_id": 3, "lesson_status_code": "Completed", "price": 277.0, "lesson_id": 8, "vehicle_details": "Truck"}, {"vehicle_id": 2, "customer_id": 5, "lesson_status_code": "Completed", "price": 492.0, "lesson_id": 6, "vehicle_details": "Truck"}, {"vehicle_id": 2, "customer_id": 8, "lesson_status_code": "Completed", "price": 306.0, "lesson_id": 4, "vehicle_details": "Truck"}, {"vehicle_id": 2, "customer_id": 10, "lesson_status_code": "Completed", "price": 295.0, "lesson_id": 5, "vehicle_details": "Truck"}, {"vehicle_id": 1, "customer_id": 13, "lesson_status_code": "Completed", "price": 446.0, "lesson_id": 13, "vehicle_details": "Van"}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'vehicle_id' \u2192 'Load'", "line_num": 11, "original": "enriched = join(filtered_lessons, vehicles, on: vehicle_id == vehicle_id)", "mutated": "enriched = join(filtered_lessons, vehicles, on: Load == vehicle_id)"}], "difficulty": "hard", "domain": "driving_school__lessons", "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": {"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(owner_id < 5)\n |> select(abandoned_yn, size_code, dog_id, owner_id)\n |> compute(computed_val: owner_id - dog_id)\n\nresult = filtered_dogs\n |> sort_by(owner_id, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load dog_kennels__dogs data\ndogs = load(\"dogs\")\n\nfiltered_dogs = dogs\n |> filter(owner_id > 5)\n |> select(abandoned_yn, size_code, dog_id, owner_id)\n |> compute(computed_val: owner_id - dog_id)\n\nresult = filtered_dogs\n |> sort_by(owner_id, desc)\n |> take(5)\n\nemit result", "expected_output": [{"abandoned_yn": "1", "size_code": "LGE", "dog_id": 1, "owner_id": 3, "computed_val": 2}, {"abandoned_yn": "0", "size_code": "MED", "dog_id": 7, "owner_id": 3, "computed_val": -4}, {"abandoned_yn": "0", "size_code": "MED", "dog_id": 9, "owner_id": 2, "computed_val": -7}, {"abandoned_yn": "0", "size_code": "MED", "dog_id": 3, "owner_id": 1, "computed_val": -2}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '<' \u2192 '>'", "line_num": 5, "original": "|> filter(owner_id < 5)", "mutated": "|> filter(owner_id > 5)"}], "difficulty": "medium", "domain": "dog_kennels__dogs", "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": {"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\nfiltered_qualifying = qualifying\n |> filter(q1 == \"1:27.568\")\n |> filter(driverid >= 8)\n\nsummary = filtered_qualifying\n |> group_by(q3)\n |> aggregate(max_qualifyid: max(qualifyid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__qualifying data\nqualifying = load(\"qualifying\")\n\nfiltered_qualifying = qualifying\n |> filter(q1 == \"1:27.driverid\")\n |> filter(driverid >= 8)\n\nsummary = filtered_qualifying\n |> group_by(q3)\n |> aggregate(max_qualifyid: max(qualifyid), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"q3": "NULL", "max_qualifyid": 105, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '568' \u2192 'driverid'", "line_num": 5, "original": "|> filter(q1 == \"1:27.568\")", "mutated": "|> filter(q1 == \"1:27.driverid\")"}], "difficulty": "hard", "domain": "formula_1__qualifying", "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": {"customer_addresses": [{"customer_id": 5, "address_id": 6, "date_from": "2016-09-06 19:23:46", "address_type": "House", "date_to": "2018-02-25 15:34:58"}, {"customer_id": 14, "address_id": 5, "date_from": "2016-12-21 03:49:54", "address_type": "House", "date_to": "2018-03-13 21:20:21"}, {"customer_id": 2, "address_id": 2, "date_from": "2014-06-09 06:31:49", "address_type": "Flat", "date_to": "2018-03-02 21:56:40"}, {"customer_id": 10, "address_id": 6, "date_from": "2011-05-24 21:49:34", "address_type": "House", "date_to": "2018-03-18 12:45:44"}, {"customer_id": 14, "address_id": 2, "date_from": "2011-12-06 16:49:10", "address_type": "Flat", "date_to": "2018-02-24 20:18:08"}, {"customer_id": 10, "address_id": 1, "date_from": "2012-05-24 11:47:54", "address_type": "House", "date_to": "2018-03-14 20:26:33"}, {"customer_id": 7, "address_id": 3, "date_from": "2016-08-17 17:45:20", "address_type": "Flat", "date_to": "2018-03-16 14:09:24"}, {"customer_id": 4, "address_id": 9, "date_from": "2009-08-03 03:17:03", "address_type": "House", "date_to": "2018-03-15 23:45:59"}, {"customer_id": 3, "address_id": 7, "date_from": "2010-12-29 11:01:39", "address_type": "House", "date_to": "2018-03-22 02:54:10"}, {"customer_id": 12, "address_id": 6, "date_from": "2012-08-31 15:41:03", "address_type": "Flat", "date_to": "2018-03-02 23:42:49"}, {"customer_id": 12, "address_id": 11, "date_from": "2008-04-02 08:23:13", "address_type": "Apartment", "date_to": "2018-03-17 12:51:37"}, {"customer_id": 14, "address_id": 10, "date_from": "2011-08-18 09:40:49", "address_type": "House", "date_to": "2018-03-06 15:48:13"}, {"customer_id": 1, "address_id": 11, "date_from": "2014-12-20 18:58:32", "address_type": "House", "date_to": "2018-02-27 00:53:48"}, {"customer_id": 8, "address_id": 6, "date_from": "2013-05-06 00:49:45", "address_type": "Flat", "date_to": "2018-03-05 01:34:02"}, {"customer_id": 12, "address_id": 5, "date_from": "2017-11-01 10:59:35", "address_type": "Flat", "date_to": "2018-03-09 05:05:17"}], "customers": [{"customer_id": 1, "payment_method": "Visa", "customer_name": "Ron Emard", "customer_phone": "1-382-503-5179x53639", "customer_email": "shaniya45@example.net", "date_became_customer": "2011-04-25 22:20:35"}, {"customer_id": 2, "payment_method": "MasterCard", "customer_name": "Gabe Schroeder", "customer_phone": "1-728-537-4293x0885", "customer_email": "alexandra91@example.net", "date_became_customer": "2011-10-17 16:08:25"}, {"customer_id": 3, "payment_method": "Discover", "customer_name": "Candace Schneider", "customer_phone": "940.575.3682x7959", "customer_email": "tkassulke@example.com", "date_became_customer": "2012-01-11 21:17:01"}, {"customer_id": 4, "payment_method": "Visa", "customer_name": "Jaden Lang", "customer_phone": "361.151.3489x7272", "customer_email": "dedric17@example.org", "date_became_customer": "2009-12-29 17:38:10"}, {"customer_id": 5, "payment_method": "Visa", "customer_name": "Geovanni Grady", "customer_phone": "1-005-644-2495", "customer_email": "elmira.langworth@example.org", "date_became_customer": "2017-05-21 07:09:55"}, {"customer_id": 6, "payment_method": "Visa", "customer_name": "Dr. Karine Farrell", "customer_phone": "+49(2)0677806107", "customer_email": "reichel.winnifred@example.org", "date_became_customer": "2010-11-06 08:42:56"}, {"customer_id": 7, "payment_method": "Discover", "customer_name": "Emmanuel Reilly", "customer_phone": "129.959.6420", "customer_email": "gleichner.ethelyn@example.net", "date_became_customer": "2013-11-29 06:15:22"}, {"customer_id": 8, "payment_method": "MasterCard", "customer_name": "Keenan Kuhic", "customer_phone": "686-517-9923x348", "customer_email": "dallin76@example.org", "date_became_customer": "2013-04-09 18:17:05"}, {"customer_id": 9, "payment_method": "American", "customer_name": "Rusty Morar", "customer_phone": "1-123-197-9677x7194", "customer_email": "njenkins@example.org", "date_became_customer": "2015-09-09 09:29:06"}, {"customer_id": 10, "payment_method": "Visa", "customer_name": "Lila Howe", "customer_phone": "1-492-284-1097", "customer_email": "leann.hamill@example.org", "date_became_customer": "2014-02-04 04:51:58"}, {"customer_id": 11, "payment_method": "Visa", "customer_name": "Amalia Hudson DDS", "customer_phone": "003-991-1506x483", "customer_email": "danika49@example.com", "date_became_customer": "2014-02-25 19:39:51"}, {"customer_id": 12, "payment_method": "Discover", "customer_name": "Verda Streich", "customer_phone": "06730471330", "customer_email": "xgraham@example.org", "date_became_customer": "2008-10-12 12:19:27"}, {"customer_id": 13, "payment_method": "Discover", "customer_name": "Patience Yundt", "customer_phone": "969-208-8932x715", "customer_email": "kira82@example.com", "date_became_customer": "2017-03-25 18:48:04"}, {"customer_id": 14, "payment_method": "Visa", "customer_name": "Annabell Walsh", "customer_phone": "(881)096-1281x6448", "customer_email": "adriana83@example.org", "date_became_customer": "2017-06-30 19:02:11"}, {"customer_id": 15, "payment_method": "Visa", "customer_name": "Aracely Borer V", "customer_phone": "531-617-3230", "customer_email": "rollin95@example.net", "date_became_customer": "2015-09-13 22:39:50"}]}, "correct_code": "-- Load customer_deliveries__customer_addresses data\ncustomer_addresses = load(\"customer_addresses\")\n\nfiltered_customer_addresses = customer_addresses\n |> filter(date_to == \"2018-03-17 12:51:37\")\n |> select(customer_id, date_from)\n\nresult = filtered_customer_addresses\n |> sort_by(customer_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__customer_addresses data\ncustomer_addresses = load(\"customer_addresses\")\n\nfiltered_customer_addresses = customer_addresses\n |> filter(date_to == \"2018-03-17 12:51:37\")\n |> select(customer_id, date_from)\n\nresult = filtered_customer_addresses\n sort_by(customer_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"customer_id": 12, "date_from": "2008-04-02 08:23:13"}], "bug_info": [{"category": "syntax", "description": "Missing pipe operator '|>'", "line_num": 9, "original": "|> sort_by(customer_id, desc)", "mutated": "sort_by(customer_id, desc)"}], "difficulty": "easy", "domain": "customer_deliveries__customer_addresses", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"city": [{"id": 1, "name": "Kabul", "countrycode": "AFG", "district": "Kabol", "population": 1780000}, {"id": 2, "name": "Qandahar", "countrycode": "AFG", "district": "Qandahar", "population": 237500}, {"id": 3, "name": "Herat", "countrycode": "AFG", "district": "Herat", "population": 186800}, {"id": 4, "name": "Mazar-e-Sharif", "countrycode": "AFG", "district": "Balkh", "population": 127800}, {"id": 5, "name": "Amsterdam", "countrycode": "NLD", "district": "Noord-Holland", "population": 731200}, {"id": 6, "name": "Rotterdam", "countrycode": "NLD", "district": "Zuid-Holland", "population": 593321}, {"id": 7, "name": "Haag", "countrycode": "NLD", "district": "Zuid-Holland", "population": 440900}, {"id": 8, "name": "Utrecht", "countrycode": "NLD", "district": "Utrecht", "population": 234323}, {"id": 9, "name": "Eindhoven", "countrycode": "NLD", "district": "Noord-Brabant", "population": 201843}, {"id": 10, "name": "Tilburg", "countrycode": "NLD", "district": "Noord-Brabant", "population": 193238}, {"id": 11, "name": "Groningen", "countrycode": "NLD", "district": "Groningen", "population": 172701}, {"id": 12, "name": "Breda", "countrycode": "NLD", "district": "Noord-Brabant", "population": 160398}, {"id": 13, "name": "Apeldoorn", "countrycode": "NLD", "district": "Gelderland", "population": 153491}, {"id": 14, "name": "Nijmegen", "countrycode": "NLD", "district": "Gelderland", "population": 152463}, {"id": 15, "name": "Enschede", "countrycode": "NLD", "district": "Overijssel", "population": 149544}, {"id": 16, "name": "Haarlem", "countrycode": "NLD", "district": "Noord-Holland", "population": 148772}, {"id": 17, "name": "Almere", "countrycode": "NLD", "district": "Flevoland", "population": 142465}, {"id": 18, "name": "Arnhem", "countrycode": "NLD", "district": "Gelderland", "population": 138020}, {"id": 19, "name": "Zaanstad", "countrycode": "NLD", "district": "Noord-Holland", "population": 135621}, {"id": 20, "name": "\u00b4s-Hertogenbosch", "countrycode": "NLD", "district": "Noord-Brabant", "population": 129170}, {"id": 21, "name": "Amersfoort", "countrycode": "NLD", "district": "Utrecht", "population": 126270}, {"id": 22, "name": "Maastricht", "countrycode": "NLD", "district": "Limburg", "population": 122087}, {"id": 23, "name": "Dordrecht", "countrycode": "NLD", "district": "Zuid-Holland", "population": 119811}, {"id": 24, "name": "Leiden", "countrycode": "NLD", "district": "Zuid-Holland", "population": 117196}, {"id": 25, "name": "Haarlemmermeer", "countrycode": "NLD", "district": "Noord-Holland", "population": 110722}, {"id": 26, "name": "Zoetermeer", "countrycode": "NLD", "district": "Zuid-Holland", "population": 110214}, {"id": 27, "name": "Emmen", "countrycode": "NLD", "district": "Drenthe", "population": 105853}, {"id": 28, "name": "Zwolle", "countrycode": "NLD", "district": "Overijssel", "population": 105819}, {"id": 29, "name": "Ede", "countrycode": "NLD", "district": "Gelderland", "population": 101574}, {"id": 30, "name": "Delft", "countrycode": "NLD", "district": "Zuid-Holland", "population": 95268}, {"id": 31, "name": "Heerlen", "countrycode": "NLD", "district": "Limburg", "population": 95052}, {"id": 32, "name": "Alkmaar", "countrycode": "NLD", "district": "Noord-Holland", "population": 92713}, {"id": 33, "name": "Willemstad", "countrycode": "ANT", "district": "Cura\u00e7ao", "population": 2345}, {"id": 34, "name": "Tirana", "countrycode": "ALB", "district": "Tirana", "population": 270000}, {"id": 35, "name": "Alger", "countrycode": "DZA", "district": "Alger", "population": 2168000}, {"id": 36, "name": "Oran", "countrycode": "DZA", "district": "Oran", "population": 609823}, {"id": 37, "name": "Constantine", "countrycode": "DZA", "district": "Constantine", "population": 443727}, {"id": 38, "name": "Annaba", "countrycode": "DZA", "district": "Annaba", "population": 222518}, {"id": 39, "name": "Batna", "countrycode": "DZA", "district": "Batna", "population": 183377}, {"id": 40, "name": "S\u00e9tif", "countrycode": "DZA", "district": "S\u00e9tif", "population": 179055}, {"id": 41, "name": "Sidi Bel Abb\u00e8s", "countrycode": "DZA", "district": "Sidi Bel Abb\u00e8s", "population": 153106}, {"id": 42, "name": "Skikda", "countrycode": "DZA", "district": "Skikda", "population": 128747}, {"id": 43, "name": "Biskra", "countrycode": "DZA", "district": "Biskra", "population": 128281}, {"id": 44, "name": "Blida (el-Boulaida)", "countrycode": "DZA", "district": "Blida", "population": 127284}, {"id": 45, "name": "B\u00e9ja\u00efa", "countrycode": "DZA", "district": "B\u00e9ja\u00efa", "population": 117162}, {"id": 46, "name": "Mostaganem", "countrycode": "DZA", "district": "Mostaganem", "population": 115212}, {"id": 47, "name": "T\u00e9bessa", "countrycode": "DZA", "district": "T\u00e9bessa", "population": 112007}, {"id": 48, "name": "Tlemcen (Tilimsen)", "countrycode": "DZA", "district": "Tlemcen", "population": 110242}, {"id": 49, "name": "B\u00e9char", "countrycode": "DZA", "district": "B\u00e9char", "population": 107311}, {"id": 50, "name": "Tiaret", "countrycode": "DZA", "district": "Tiaret", "population": 100118}, {"id": 51, "name": "Ech-Chleff (el-Asnam)", "countrycode": "DZA", "district": "Chlef", "population": 96794}, {"id": 52, "name": "Gharda\u00efa", "countrycode": "DZA", "district": "Gharda\u00efa", "population": 89415}, {"id": 53, "name": "Tafuna", "countrycode": "ASM", "district": "Tutuila", "population": 5200}, {"id": 54, "name": "Fagatogo", "countrycode": "ASM", "district": "Tutuila", "population": 2323}, {"id": 55, "name": "Andorra la Vella", "countrycode": "AND", "district": "Andorra la Vella", "population": 21189}, {"id": 56, "name": "Luanda", "countrycode": "AGO", "district": "Luanda", "population": 2022000}, {"id": 57, "name": "Huambo", "countrycode": "AGO", "district": "Huambo", "population": 163100}, {"id": 58, "name": "Lobito", "countrycode": "AGO", "district": "Benguela", "population": 130000}, {"id": 59, "name": "Benguela", "countrycode": "AGO", "district": "Benguela", "population": 128300}, {"id": 60, "name": "Namibe", "countrycode": "AGO", "district": "Namibe", "population": 118200}, {"id": 61, "name": "South Hill", "countrycode": "AIA", "district": "\u2013", "population": 961}, {"id": 62, "name": "The Valley", "countrycode": "AIA", "district": "\u2013", "population": 595}, {"id": 63, "name": "Saint John\u00b4s", "countrycode": "ATG", "district": "St John", "population": 24000}, {"id": 64, "name": "Dubai", "countrycode": "ARE", "district": "Dubai", "population": 669181}, {"id": 65, "name": "Abu Dhabi", "countrycode": "ARE", "district": "Abu Dhabi", "population": 398695}, {"id": 66, "name": "Sharja", "countrycode": "ARE", "district": "Sharja", "population": 320095}, {"id": 67, "name": "al-Ayn", "countrycode": "ARE", "district": "Abu Dhabi", "population": 225970}, {"id": 68, "name": "Ajman", "countrycode": "ARE", "district": "Ajman", "population": 114395}, {"id": 69, "name": "Buenos Aires", "countrycode": "ARG", "district": "Distrito Federal", "population": 2982146}, {"id": 70, "name": "La Matanza", "countrycode": "ARG", "district": "Buenos Aires", "population": 1266461}, {"id": 71, "name": "C\u00f3rdoba", "countrycode": "ARG", "district": "C\u00f3rdoba", "population": 1157507}, {"id": 72, "name": "Rosario", "countrycode": "ARG", "district": "Santa F\u00e9", "population": 907718}, {"id": 73, "name": "Lomas de Zamora", "countrycode": "ARG", "district": "Buenos Aires", "population": 622013}, {"id": 74, "name": "Quilmes", "countrycode": "ARG", "district": "Buenos Aires", "population": 559249}, {"id": 75, "name": "Almirante Brown", "countrycode": "ARG", "district": "Buenos Aires", "population": 538918}, {"id": 76, "name": "La Plata", "countrycode": "ARG", "district": "Buenos Aires", "population": 521936}, {"id": 77, "name": "Mar del Plata", "countrycode": "ARG", "district": "Buenos Aires", "population": 512880}, {"id": 78, "name": "San Miguel de Tucum\u00e1n", "countrycode": "ARG", "district": "Tucum\u00e1n", "population": 470809}, {"id": 79, "name": "Lan\u00fas", "countrycode": "ARG", "district": "Buenos Aires", "population": 469735}, {"id": 80, "name": "Merlo", "countrycode": "ARG", "district": "Buenos Aires", "population": 463846}, {"id": 81, "name": "General San Mart\u00edn", "countrycode": "ARG", "district": "Buenos Aires", "population": 422542}, {"id": 82, "name": "Salta", "countrycode": "ARG", "district": "Salta", "population": 367550}, {"id": 83, "name": "Moreno", "countrycode": "ARG", "district": "Buenos Aires", "population": 356993}, {"id": 84, "name": "Santa F\u00e9", "countrycode": "ARG", "district": "Santa F\u00e9", "population": 353063}, {"id": 85, "name": "Avellaneda", "countrycode": "ARG", "district": "Buenos Aires", "population": 353046}, {"id": 86, "name": "Tres de Febrero", "countrycode": "ARG", "district": "Buenos Aires", "population": 352311}, {"id": 87, "name": "Mor\u00f3n", "countrycode": "ARG", "district": "Buenos Aires", "population": 349246}, {"id": 88, "name": "Florencio Varela", "countrycode": "ARG", "district": "Buenos Aires", "population": 315432}, {"id": 89, "name": "San Isidro", "countrycode": "ARG", "district": "Buenos Aires", "population": 306341}, {"id": 90, "name": "Tigre", "countrycode": "ARG", "district": "Buenos Aires", "population": 296226}, {"id": 91, "name": "Malvinas Argentinas", "countrycode": "ARG", "district": "Buenos Aires", "population": 290335}, {"id": 92, "name": "Vicente L\u00f3pez", "countrycode": "ARG", "district": "Buenos Aires", "population": 288341}, {"id": 93, "name": "Berazategui", "countrycode": "ARG", "district": "Buenos Aires", "population": 276916}, {"id": 94, "name": "Corrientes", "countrycode": "ARG", "district": "Corrientes", "population": 258103}, {"id": 95, "name": "San Miguel", "countrycode": "ARG", "district": "Buenos Aires", "population": 248700}, {"id": 96, "name": "Bah\u00eda Blanca", "countrycode": "ARG", "district": "Buenos Aires", "population": 239810}, {"id": 97, "name": "Esteban Echeverr\u00eda", "countrycode": "ARG", "district": "Buenos Aires", "population": 235760}, {"id": 98, "name": "Resistencia", "countrycode": "ARG", "district": "Chaco", "population": 229212}, {"id": 99, "name": "Jos\u00e9 C. Paz", "countrycode": "ARG", "district": "Buenos Aires", "population": 221754}, {"id": 100, "name": "Paran\u00e1", "countrycode": "ARG", "district": "Entre Rios", "population": 207041}, {"id": 101, "name": "Godoy Cruz", "countrycode": "ARG", "district": "Mendoza", "population": 206998}, {"id": 102, "name": "Posadas", "countrycode": "ARG", "district": "Misiones", "population": 201273}, {"id": 103, "name": "Guaymall\u00e9n", "countrycode": "ARG", "district": "Mendoza", "population": 200595}, {"id": 104, "name": "Santiago del Estero", "countrycode": "ARG", "district": "Santiago del Estero", "population": 189947}, {"id": 105, "name": "San Salvador de Jujuy", "countrycode": "ARG", "district": "Jujuy", "population": 178748}, {"id": 106, "name": "Hurlingham", "countrycode": "ARG", "district": "Buenos Aires", "population": 170028}, {"id": 107, "name": "Neuqu\u00e9n", "countrycode": "ARG", "district": "Neuqu\u00e9n", "population": 167296}, {"id": 108, "name": "Ituzaing\u00f3", "countrycode": "ARG", "district": "Buenos Aires", "population": 158197}, {"id": 109, "name": "San Fernando", "countrycode": "ARG", "district": "Buenos Aires", "population": 153036}, {"id": 110, "name": "Formosa", "countrycode": "ARG", "district": "Formosa", "population": 147636}, {"id": 111, "name": "Las Heras", "countrycode": "ARG", "district": "Mendoza", "population": 145823}, {"id": 112, "name": "La Rioja", "countrycode": "ARG", "district": "La Rioja", "population": 138117}, {"id": 113, "name": "San Fernando del Valle de Cata", "countrycode": "ARG", "district": "Catamarca", "population": 134935}, {"id": 114, "name": "R\u00edo Cuarto", "countrycode": "ARG", "district": "C\u00f3rdoba", "population": 134355}, {"id": 115, "name": "Comodoro Rivadavia", "countrycode": "ARG", "district": "Chubut", "population": 124104}, {"id": 116, "name": "Mendoza", "countrycode": "ARG", "district": "Mendoza", "population": 123027}, {"id": 117, "name": "San Nicol\u00e1s de los Arroyos", "countrycode": "ARG", "district": "Buenos Aires", "population": 119302}, {"id": 118, "name": "San Juan", "countrycode": "ARG", "district": "San Juan", "population": 119152}, {"id": 119, "name": "Escobar", "countrycode": "ARG", "district": "Buenos Aires", "population": 116675}, {"id": 120, "name": "Concordia", "countrycode": "ARG", "district": "Entre Rios", "population": 116485}, {"id": 121, "name": "Pilar", "countrycode": "ARG", "district": "Buenos Aires", "population": 113428}, {"id": 122, "name": "San Luis", "countrycode": "ARG", "district": "San Luis", "population": 110136}, {"id": 123, "name": "Ezeiza", "countrycode": "ARG", "district": "Buenos Aires", "population": 99578}, {"id": 124, "name": "San Rafael", "countrycode": "ARG", "district": "Mendoza", "population": 94651}, {"id": 125, "name": "Tandil", "countrycode": "ARG", "district": "Buenos Aires", "population": 91101}, {"id": 126, "name": "Yerevan", "countrycode": "ARM", "district": "Yerevan", "population": 1248700}, {"id": 127, "name": "Gjumri", "countrycode": "ARM", "district": "\u0160irak", "population": 211700}, {"id": 128, "name": "Vanadzor", "countrycode": "ARM", "district": "Lori", "population": 172700}, {"id": 129, "name": "Oranjestad", "countrycode": "ABW", "district": "\u2013", "population": 29034}, {"id": 130, "name": "Sydney", "countrycode": "AUS", "district": "New South Wales", "population": 3276207}, {"id": 131, "name": "Melbourne", "countrycode": "AUS", "district": "Victoria", "population": 2865329}, {"id": 132, "name": "Brisbane", "countrycode": "AUS", "district": "Queensland", "population": 1291117}, {"id": 133, "name": "Perth", "countrycode": "AUS", "district": "West Australia", "population": 1096829}, {"id": 134, "name": "Adelaide", "countrycode": "AUS", "district": "South Australia", "population": 978100}, {"id": 135, "name": "Canberra", "countrycode": "AUS", "district": "Capital Region", "population": 322723}, {"id": 136, "name": "Gold Coast", "countrycode": "AUS", "district": "Queensland", "population": 311932}, {"id": 137, "name": "Newcastle", "countrycode": "AUS", "district": "New South Wales", "population": 270324}, {"id": 138, "name": "Central Coast", "countrycode": "AUS", "district": "New South Wales", "population": 227657}, {"id": 139, "name": "Wollongong", "countrycode": "AUS", "district": "New South Wales", "population": 219761}, {"id": 140, "name": "Hobart", "countrycode": "AUS", "district": "Tasmania", "population": 126118}, {"id": 141, "name": "Geelong", "countrycode": "AUS", "district": "Victoria", "population": 125382}, {"id": 142, "name": "Townsville", "countrycode": "AUS", "district": "Queensland", "population": 109914}, {"id": 143, "name": "Cairns", "countrycode": "AUS", "district": "Queensland", "population": 92273}, {"id": 144, "name": "Baku", "countrycode": "AZE", "district": "Baki", "population": 1787800}, {"id": 145, "name": "G\u00e4nc\u00e4", "countrycode": "AZE", "district": "G\u00e4nc\u00e4", "population": 299300}, {"id": 146, "name": "Sumqayit", "countrycode": "AZE", "district": "Sumqayit", "population": 283000}, {"id": 147, "name": "Ming\u00e4\u00e7evir", "countrycode": "AZE", "district": "Ming\u00e4\u00e7evir", "population": 93900}, {"id": 148, "name": "Nassau", "countrycode": "BHS", "district": "New Providence", "population": 172000}, {"id": 149, "name": "al-Manama", "countrycode": "BHR", "district": "al-Manama", "population": 148000}, {"id": 150, "name": "Dhaka", "countrycode": "BGD", "district": "Dhaka", "population": 3612850}, {"id": 151, "name": "Chittagong", "countrycode": "BGD", "district": "Chittagong", "population": 1392860}, {"id": 152, "name": "Khulna", "countrycode": "BGD", "district": "Khulna", "population": 663340}, {"id": 153, "name": "Rajshahi", "countrycode": "BGD", "district": "Rajshahi", "population": 294056}, {"id": 154, "name": "Narayanganj", "countrycode": "BGD", "district": "Dhaka", "population": 202134}, {"id": 155, "name": "Rangpur", "countrycode": "BGD", "district": "Rajshahi", "population": 191398}, {"id": 156, "name": "Mymensingh", "countrycode": "BGD", "district": "Dhaka", "population": 188713}, {"id": 157, "name": "Barisal", "countrycode": "BGD", "district": "Barisal", "population": 170232}, {"id": 158, "name": "Tungi", "countrycode": "BGD", "district": "Dhaka", "population": 168702}, {"id": 159, "name": "Jessore", "countrycode": "BGD", "district": "Khulna", "population": 139710}, {"id": 160, "name": "Comilla", "countrycode": "BGD", "district": "Chittagong", "population": 135313}, {"id": 161, "name": "Nawabganj", "countrycode": "BGD", "district": "Rajshahi", "population": 130577}, {"id": 162, "name": "Dinajpur", "countrycode": "BGD", "district": "Rajshahi", "population": 127815}, {"id": 163, "name": "Bogra", "countrycode": "BGD", "district": "Rajshahi", "population": 120170}, {"id": 164, "name": "Sylhet", "countrycode": "BGD", "district": "Sylhet", "population": 117396}, {"id": 165, "name": "Brahmanbaria", "countrycode": "BGD", "district": "Chittagong", "population": 109032}, {"id": 166, "name": "Tangail", "countrycode": "BGD", "district": "Dhaka", "population": 106004}, {"id": 167, "name": "Jamalpur", "countrycode": "BGD", "district": "Dhaka", "population": 103556}, {"id": 168, "name": "Pabna", "countrycode": "BGD", "district": "Rajshahi", "population": 103277}, {"id": 169, "name": "Naogaon", "countrycode": "BGD", "district": "Rajshahi", "population": 101266}, {"id": 170, "name": "Sirajganj", "countrycode": "BGD", "district": "Rajshahi", "population": 99669}, {"id": 171, "name": "Narsinghdi", "countrycode": "BGD", "district": "Dhaka", "population": 98342}, {"id": 172, "name": "Saidpur", "countrycode": "BGD", "district": "Rajshahi", "population": 96777}, {"id": 173, "name": "Gazipur", "countrycode": "BGD", "district": "Dhaka", "population": 96717}, {"id": 174, "name": "Bridgetown", "countrycode": "BRB", "district": "St Michael", "population": 6070}, {"id": 175, "name": "Antwerpen", "countrycode": "BEL", "district": "Antwerpen", "population": 446525}, {"id": 176, "name": "Gent", "countrycode": "BEL", "district": "East Flanderi", "population": 224180}, {"id": 177, "name": "Charleroi", "countrycode": "BEL", "district": "Hainaut", "population": 200827}, {"id": 178, "name": "Li\u00e8ge", "countrycode": "BEL", "district": "Li\u00e8ge", "population": 185639}, {"id": 179, "name": "Bruxelles [Brussel]", "countrycode": "BEL", "district": "Bryssel", "population": 133859}, {"id": 180, "name": "Brugge", "countrycode": "BEL", "district": "West Flanderi", "population": 116246}, {"id": 181, "name": "Schaerbeek", "countrycode": "BEL", "district": "Bryssel", "population": 105692}, {"id": 182, "name": "Namur", "countrycode": "BEL", "district": "Namur", "population": 105419}, {"id": 183, "name": "Mons", "countrycode": "BEL", "district": "Hainaut", "population": 90935}, {"id": 184, "name": "Belize City", "countrycode": "BLZ", "district": "Belize City", "population": 55810}, {"id": 185, "name": "Belmopan", "countrycode": "BLZ", "district": "Cayo", "population": 7105}, {"id": 186, "name": "Cotonou", "countrycode": "BEN", "district": "Atlantique", "population": 536827}, {"id": 187, "name": "Porto-Novo", "countrycode": "BEN", "district": "Ou\u00e9m\u00e9", "population": 194000}, {"id": 188, "name": "Djougou", "countrycode": "BEN", "district": "Atacora", "population": 134099}, {"id": 189, "name": "Parakou", "countrycode": "BEN", "district": "Borgou", "population": 103577}, {"id": 190, "name": "Saint George", "countrycode": "BMU", "district": "Saint George\u00b4s", "population": 1800}, {"id": 191, "name": "Hamilton", "countrycode": "BMU", "district": "Hamilton", "population": 1200}, {"id": 192, "name": "Thimphu", "countrycode": "BTN", "district": "Thimphu", "population": 22000}, {"id": 193, "name": "Santa Cruz de la Sierra", "countrycode": "BOL", "district": "Santa Cruz", "population": 935361}, {"id": 194, "name": "La Paz", "countrycode": "BOL", "district": "La Paz", "population": 758141}, {"id": 195, "name": "El Alto", "countrycode": "BOL", "district": "La Paz", "population": 534466}, {"id": 196, "name": "Cochabamba", "countrycode": "BOL", "district": "Cochabamba", "population": 482800}, {"id": 197, "name": "Oruro", "countrycode": "BOL", "district": "Oruro", "population": 223553}, {"id": 198, "name": "Sucre", "countrycode": "BOL", "district": "Chuquisaca", "population": 178426}, {"id": 199, "name": "Potos\u00ed", "countrycode": "BOL", "district": "Potos\u00ed", "population": 140642}, {"id": 200, "name": "Tarija", "countrycode": "BOL", "district": "Tarija", "population": 125255}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(population < 854519)\n\nsummary = filtered_city\n |> group_by(countrycode)\n |> aggregate(avg_population: avg(population), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(population, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load world_1__city data\ncity = load(\"city\")\n\nfiltered_city = city\n |> filter(population < 854519)\n\nsummary = filtered_city\n |> group_by(countrycode)\n |> aggregate(avg_population: avg(population), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(summary, country, on: code == countrycode)\n\nresult = enriched\n |> sort_by(population, asc)\n |> take(3)\n\nemit result", "expected_output": [{"countrycode": "AIA", "avg_population": 778.0, "count": 2, "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"}, {"countrycode": "BMU", "avg_population": 1500.0, "count": 2, "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"}, {"countrycode": "ASM", "avg_population": 3761.5, "count": 2, "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"}], "bug_info": [{"category": "join_bug", "description": "Swapped join keys: 'countrycode == code' \u2192 'code == countrycode'", "line_num": 14, "original": "enriched = join(summary, country, on: countrycode == code)", "mutated": "enriched = join(summary, country, on: code == countrycode)"}], "difficulty": "hard", "domain": "world_1__city", "num_nodes": 6, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"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 |> select(cases, state, score, grape, no)\n\n-- Load lookup data\ngrapes = load(\"grapes\")\n\nenriched = join(wine, grapes, on: grape == grape)\n\nresult = enriched\n |> sort_by(cases, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load wine_1__wine data\nwine = load(\"wine\")\n |> select(cases, state, score, grape, no)\n\n-- Load lookup data\ngrapes = load(\"grapes\")\n\nenriched = join(wine, wines, on: state == grape)\n\nresult = enriched\n |> sort_by(cases, asc)\n |> take(10)\n\nemit result", "expected_output": [{"cases": 1000, "state": "California", "score": 87, "grape": "Sauvignon Blanc", "no": 30, "id": 16, "color": "White"}, {"cases": 1000, "state": "California", "score": 93, "grape": "Pinot Noir", "no": 141, "id": 12, "color": "Red"}, {"cases": 10000, "state": "California", "score": 91, "grape": "Cabernet Sauvingnon", "no": 112, "id": 3, "color": "Red"}, {"cases": 110, "state": "California", "score": 92, "grape": "Syrah", "no": 164, "id": 17, "color": "Red"}, {"cases": 115, "state": "California", "score": 93, "grape": "Pinot Noir", "no": 70, "id": 12, "color": "Red"}, {"cases": 119, "state": "California", "score": 90, "grape": "Zinfandel", "no": 194, "id": 20, "color": "Red"}, {"cases": 1214, "state": "California", "score": 87, "grape": "Sauvignon Blanc", "no": 33, "id": 16, "color": "White"}, {"cases": 123, "state": "California", "score": 91, "grape": "Petite Sirah", "no": 123, "id": 11, "color": "Red"}, {"cases": 125, "state": "California", "score": 91, "grape": "Pinot Noir", "no": 148, "id": 12, "color": "Red"}, {"cases": 1255, "state": "California", "score": 87, "grape": "Pinot Noir", "no": 98, "id": 12, "color": "Red"}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'grape' \u2192 'wine'", "line_num": 8, "original": "enriched = join(wine, grapes, on: grape == grape)", "mutated": "enriched = join(wine, wines, on: grape == grape)"}, {"category": "join_bug", "description": "Wrong join key: 'grape' \u2192 'state'", "line_num": 8, "original": "enriched = join(wine, wines, on: grape == grape)", "mutated": "enriched = join(wine, wines, on: state == grape)"}], "difficulty": "hard", "domain": "wine_1__wine", "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": {"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_type_code, participant_details, participant_id)\n\nenriched = join(participants_in_events, participants, on: participant_id == participant_id)\n |> compute(computed_val: participant_id + event_id)\n\nresult = enriched\n |> sort_by(participant_id, asc)\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\n-- Load lookup data\nparticipants = load(\"participants\")\n |> select(participant_type_code, participant_details, participant_id)\n\nenriched = join(participants_in_events, participants, on: participant_id == participant_id)\n |> compute(computed_val: participant_id + event_id)\n\nresult = enriched\n |> sort_by(participant_id, asc)\n |> take(4)\n\nemit result", "expected_output": [{"event_id": 3, "participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner", "computed_val": 29}, {"event_id": 60, "participant_id": 26, "participant_type_code": "Organizer", "participant_details": "Vilma Schinner", "computed_val": 86}, {"event_id": 80, "participant_id": 36, "participant_type_code": "Organizer", "participant_details": "Kenyatta Kuhn", "computed_val": 116}], "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": "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_medium
{"datasets": {"constructorstandings": [{"constructorstandingsid": 1, "raceid": 18, "constructorid": 1, "points": 14.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 2, "raceid": 18, "constructorid": 2, "points": 8.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 3, "raceid": 18, "constructorid": 3, "points": 9.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 4, "raceid": 18, "constructorid": 4, "points": 5.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 5, "raceid": 18, "constructorid": 5, "points": 2.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 6, "raceid": 18, "constructorid": 6, "points": 1.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 7, "raceid": 19, "constructorid": 1, "points": 24.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 8, "raceid": 19, "constructorid": 2, "points": 19.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 9, "raceid": 19, "constructorid": 3, "points": 9.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 10, "raceid": 19, "constructorid": 4, "points": 6.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 11, "raceid": 19, "constructorid": 5, "points": 2.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 12, "raceid": 19, "constructorid": 6, "points": 11.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 13, "raceid": 19, "constructorid": 7, "points": 5.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 14, "raceid": 19, "constructorid": 9, "points": 2.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 15, "raceid": 19, "constructorid": 11, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 16, "raceid": 19, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 17, "raceid": 19, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 18, "raceid": 20, "constructorid": 1, "points": 28.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 19, "raceid": 20, "constructorid": 2, "points": 30.0, "position": 1, "positiontext": "1", "wins": 0}, {"constructorstandingsid": 20, "raceid": 20, "constructorid": 3, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 21, "raceid": 20, "constructorid": 4, "points": 6.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 22, "raceid": 20, "constructorid": 5, "points": 2.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 23, "raceid": 20, "constructorid": 6, "points": 29.0, "position": 2, "positiontext": "2", "wins": 2}, {"constructorstandingsid": 24, "raceid": 20, "constructorid": 7, "points": 8.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 25, "raceid": 20, "constructorid": 9, "points": 4.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 26, "raceid": 20, "constructorid": 11, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 27, "raceid": 20, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 28, "raceid": 20, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 29, "raceid": 21, "constructorid": 1, "points": 34.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 30, "raceid": 21, "constructorid": 2, "points": 35.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 31, "raceid": 21, "constructorid": 3, "points": 12.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 32, "raceid": 21, "constructorid": 4, "points": 6.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 33, "raceid": 21, "constructorid": 5, "points": 2.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 34, "raceid": 21, "constructorid": 6, "points": 47.0, "position": 1, "positiontext": "1", "wins": 3}, {"constructorstandingsid": 35, "raceid": 21, "constructorid": 7, "points": 9.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 36, "raceid": 21, "constructorid": 9, "points": 8.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 37, "raceid": 21, "constructorid": 11, "points": 3.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 38, "raceid": 21, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 39, "raceid": 21, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 40, "raceid": 22, "constructorid": 1, "points": 42.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 41, "raceid": 22, "constructorid": 2, "points": 44.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 42, "raceid": 22, "constructorid": 3, "points": 13.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 43, "raceid": 22, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 44, "raceid": 22, "constructorid": 5, "points": 2.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 45, "raceid": 22, "constructorid": 6, "points": 63.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 46, "raceid": 22, "constructorid": 7, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 47, "raceid": 22, "constructorid": 9, "points": 10.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 48, "raceid": 22, "constructorid": 11, "points": 3.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 49, "raceid": 22, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 50, "raceid": 22, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 51, "raceid": 23, "constructorid": 1, "points": 53.0, "position": 2, "positiontext": "2", "wins": 2}, {"constructorstandingsid": 52, "raceid": 23, "constructorid": 2, "points": 52.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 53, "raceid": 23, "constructorid": 3, "points": 15.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 54, "raceid": 23, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 55, "raceid": 23, "constructorid": 5, "points": 6.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 56, "raceid": 23, "constructorid": 6, "points": 69.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 57, "raceid": 23, "constructorid": 7, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 58, "raceid": 23, "constructorid": 9, "points": 15.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 59, "raceid": 23, "constructorid": 11, "points": 6.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 60, "raceid": 23, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 61, "raceid": 23, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 62, "raceid": 24, "constructorid": 1, "points": 53.0, "position": 3, "positiontext": "3", "wins": 2}, {"constructorstandingsid": 63, "raceid": 24, "constructorid": 2, "points": 70.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 64, "raceid": 24, "constructorid": 3, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 65, "raceid": 24, "constructorid": 4, "points": 9.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 66, "raceid": 24, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 67, "raceid": 24, "constructorid": 6, "points": 73.0, "position": 1, "positiontext": "1", "wins": 4}, {"constructorstandingsid": 68, "raceid": 24, "constructorid": 7, "points": 17.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 69, "raceid": 24, "constructorid": 9, "points": 21.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 70, "raceid": 24, "constructorid": 11, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 71, "raceid": 24, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 72, "raceid": 24, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 73, "raceid": 25, "constructorid": 1, "points": 58.0, "position": 3, "positiontext": "3", "wins": 2}, {"constructorstandingsid": 74, "raceid": 25, "constructorid": 2, "points": 74.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 75, "raceid": 25, "constructorid": 3, "points": 15.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 76, "raceid": 25, "constructorid": 4, "points": 12.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 77, "raceid": 25, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 78, "raceid": 25, "constructorid": 6, "points": 91.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 79, "raceid": 25, "constructorid": 7, "points": 23.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 80, "raceid": 25, "constructorid": 9, "points": 24.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 81, "raceid": 25, "constructorid": 11, "points": 8.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 82, "raceid": 25, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 83, "raceid": 25, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 84, "raceid": 26, "constructorid": 1, "points": 72.0, "position": 3, "positiontext": "3", "wins": 3}, {"constructorstandingsid": 85, "raceid": 26, "constructorid": 2, "points": 82.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 86, "raceid": 26, "constructorid": 3, "points": 16.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 87, "raceid": 26, "constructorid": 4, "points": 15.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 88, "raceid": 26, "constructorid": 5, "points": 7.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 89, "raceid": 26, "constructorid": 6, "points": 96.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 90, "raceid": 26, "constructorid": 7, "points": 25.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 91, "raceid": 26, "constructorid": 9, "points": 24.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 92, "raceid": 26, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 93, "raceid": 26, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 94, "raceid": 26, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 95, "raceid": 27, "constructorid": 1, "points": 86.0, "position": 3, "positiontext": "3", "wins": 4}, {"constructorstandingsid": 96, "raceid": 27, "constructorid": 2, "points": 89.0, "position": 2, "positiontext": "2", "wins": 1}, {"constructorstandingsid": 97, "raceid": 27, "constructorid": 3, "points": 16.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 98, "raceid": 27, "constructorid": 4, "points": 23.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 99, "raceid": 27, "constructorid": 5, "points": 8.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 100, "raceid": 27, "constructorid": 6, "points": 105.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 101, "raceid": 27, "constructorid": 7, "points": 25.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 102, "raceid": 27, "constructorid": 9, "points": 24.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 103, "raceid": 27, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 104, "raceid": 27, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 105, "raceid": 27, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 106, "raceid": 28, "constructorid": 1, "points": 100.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 107, "raceid": 28, "constructorid": 2, "points": 90.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 108, "raceid": 28, "constructorid": 3, "points": 16.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 109, "raceid": 28, "constructorid": 4, "points": 31.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 110, "raceid": 28, "constructorid": 5, "points": 8.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 111, "raceid": 28, "constructorid": 6, "points": 111.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 112, "raceid": 28, "constructorid": 7, "points": 35.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 113, "raceid": 28, "constructorid": 9, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 114, "raceid": 28, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 115, "raceid": 28, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 116, "raceid": 28, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 117, "raceid": 29, "constructorid": 1, "points": 113.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 118, "raceid": 29, "constructorid": 2, "points": 96.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 119, "raceid": 29, "constructorid": 3, "points": 17.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 120, "raceid": 29, "constructorid": 4, "points": 31.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 121, "raceid": 29, "constructorid": 5, "points": 11.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 122, "raceid": 29, "constructorid": 6, "points": 121.0, "position": 1, "positiontext": "1", "wins": 6}, {"constructorstandingsid": 123, "raceid": 29, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 124, "raceid": 29, "constructorid": 9, "points": 24.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 125, "raceid": 29, "constructorid": 11, "points": 14.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 126, "raceid": 29, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 127, "raceid": 29, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 128, "raceid": 30, "constructorid": 1, "points": 119.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 129, "raceid": 30, "constructorid": 2, "points": 107.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 130, "raceid": 30, "constructorid": 3, "points": 17.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 131, "raceid": 30, "constructorid": 4, "points": 36.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 132, "raceid": 30, "constructorid": 5, "points": 17.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 133, "raceid": 30, "constructorid": 6, "points": 131.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 134, "raceid": 30, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 135, "raceid": 30, "constructorid": 9, "points": 25.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 136, "raceid": 30, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 137, "raceid": 30, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 138, "raceid": 30, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 139, "raceid": 31, "constructorid": 1, "points": 129.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 140, "raceid": 31, "constructorid": 2, "points": 117.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 141, "raceid": 31, "constructorid": 3, "points": 17.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 142, "raceid": 31, "constructorid": 4, "points": 41.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 143, "raceid": 31, "constructorid": 5, "points": 27.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 144, "raceid": 31, "constructorid": 6, "points": 134.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 145, "raceid": 31, "constructorid": 7, "points": 41.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 146, "raceid": 31, "constructorid": 9, "points": 26.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 147, "raceid": 31, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 148, "raceid": 31, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 149, "raceid": 31, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 150, "raceid": 32, "constructorid": 1, "points": 135.0, "position": 1, "positiontext": "1", "wins": 5}, {"constructorstandingsid": 151, "raceid": 32, "constructorid": 2, "points": 120.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 152, "raceid": 32, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 153, "raceid": 32, "constructorid": 4, "points": 51.0, "position": 4, "positiontext": "4", "wins": 1}, {"constructorstandingsid": 154, "raceid": 32, "constructorid": 5, "points": 31.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 155, "raceid": 32, "constructorid": 6, "points": 134.0, "position": 2, "positiontext": "2", "wins": 7}, {"constructorstandingsid": 156, "raceid": 32, "constructorid": 7, "points": 46.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 157, "raceid": 32, "constructorid": 9, "points": 28.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 158, "raceid": 32, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 159, "raceid": 32, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 160, "raceid": 32, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 161, "raceid": 33, "constructorid": 1, "points": 135.0, "position": 2, "positiontext": "2", "wins": 5}, {"constructorstandingsid": 162, "raceid": 33, "constructorid": 2, "points": 128.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 163, "raceid": 33, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 164, "raceid": 33, "constructorid": 4, "points": 66.0, "position": 4, "positiontext": "4", "wins": 2}, {"constructorstandingsid": 165, "raceid": 33, "constructorid": 5, "points": 34.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 166, "raceid": 33, "constructorid": 6, "points": 142.0, "position": 1, "positiontext": "1", "wins": 7}, {"constructorstandingsid": 167, "raceid": 33, "constructorid": 7, "points": 50.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 168, "raceid": 33, "constructorid": 9, "points": 29.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 169, "raceid": 33, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 170, "raceid": 33, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 171, "raceid": 33, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 183, "raceid": 35, "constructorid": 1, "points": 151.0, "position": 2, "positiontext": "2", "wins": 6}, {"constructorstandingsid": 184, "raceid": 35, "constructorid": 2, "points": 135.0, "position": 3, "positiontext": "3", "wins": 1}, {"constructorstandingsid": 185, "raceid": 35, "constructorid": 3, "points": 26.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 186, "raceid": 35, "constructorid": 4, "points": 80.0, "position": 4, "positiontext": "4", "wins": 2}, {"constructorstandingsid": 187, "raceid": 35, "constructorid": 5, "points": 39.0, "position": 6, "positiontext": "6", "wins": 1}, {"constructorstandingsid": 188, "raceid": 35, "constructorid": 6, "points": 172.0, "position": 1, "positiontext": "1", "wins": 8}, {"constructorstandingsid": 189, "raceid": 35, "constructorid": 7, "points": 56.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 190, "raceid": 35, "constructorid": 9, "points": 29.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 191, "raceid": 35, "constructorid": 11, "points": 14.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 192, "raceid": 35, "constructorid": 10, "points": 0.0, "position": 10, "positiontext": "10", "wins": 0}, {"constructorstandingsid": 193, "raceid": 35, "constructorid": 8, "points": 0.0, "position": 11, "positiontext": "11", "wins": 0}, {"constructorstandingsid": 567, "raceid": 71, "constructorid": 4, "points": 16.0, "position": 1, "positiontext": "1", "wins": 1}, {"constructorstandingsid": 568, "raceid": 71, "constructorid": 6, "points": 8.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 569, "raceid": 71, "constructorid": 9, "points": 7.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 570, "raceid": 71, "constructorid": 3, "points": 4.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 571, "raceid": 71, "constructorid": 1, "points": 4.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 572, "raceid": 71, "constructorid": 7, "points": 0.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 573, "raceid": 71, "constructorid": 15, "points": 0.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 574, "raceid": 71, "constructorid": 17, "points": 0.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 575, "raceid": 71, "constructorid": 18, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}, {"constructorstandingsid": 576, "raceid": 72, "constructorid": 4, "points": 26.0, "position": 1, "positiontext": "1", "wins": 2}, {"constructorstandingsid": 577, "raceid": 72, "constructorid": 6, "points": 10.0, "position": 4, "positiontext": "4", "wins": 0}, {"constructorstandingsid": 578, "raceid": 72, "constructorid": 9, "points": 11.0, "position": 3, "positiontext": "3", "wins": 0}, {"constructorstandingsid": 579, "raceid": 72, "constructorid": 3, "points": 10.0, "position": 5, "positiontext": "5", "wins": 0}, {"constructorstandingsid": 580, "raceid": 72, "constructorid": 1, "points": 9.0, "position": 6, "positiontext": "6", "wins": 0}, {"constructorstandingsid": 581, "raceid": 72, "constructorid": 7, "points": 12.0, "position": 2, "positiontext": "2", "wins": 0}, {"constructorstandingsid": 582, "raceid": 72, "constructorid": 15, "points": 0.0, "position": 7, "positiontext": "7", "wins": 0}, {"constructorstandingsid": 583, "raceid": 72, "constructorid": 17, "points": 0.0, "position": 8, "positiontext": "8", "wins": 0}, {"constructorstandingsid": 584, "raceid": 72, "constructorid": 18, "points": 0.0, "position": 9, "positiontext": "9", "wins": 0}], "constructors": [{"constructorid": 1, "constructorref": "mclaren", "name": "McLaren", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren"}, {"constructorid": 2, "constructorref": "bmw_sauber", "name": "BMW Sauber", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW_Sauber"}, {"constructorid": 3, "constructorref": "williams", "name": "Williams", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering"}, {"constructorid": 4, "constructorref": "renault", "name": "Renault", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Renault_F1"}, {"constructorid": 5, "constructorref": "toro_rosso", "name": "Toro Rosso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Toro_Rosso"}, {"constructorid": 6, "constructorref": "ferrari", "name": "Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Ferrari"}, {"constructorid": 7, "constructorref": "toyota", "name": "Toyota", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Toyota_Racing"}, {"constructorid": 8, "constructorref": "super_aguri", "name": "Super Aguri", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Super_Aguri_F1"}, {"constructorid": 9, "constructorref": "red_bull", "name": "Red Bull", "nationality": "Austrian", "url": "http://en.wikipedia.org/wiki/Red_Bull_Racing"}, {"constructorid": 10, "constructorref": "force_india", "name": "Force India", "nationality": "Indian", "url": "http://en.wikipedia.org/wiki/Force_India"}, {"constructorid": 11, "constructorref": "honda", "name": "Honda", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Honda_Racing_F1"}, {"constructorid": 12, "constructorref": "spyker", "name": "Spyker", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Spyker_F1"}, {"constructorid": 13, "constructorref": "mf1", "name": "MF1", "nationality": "Russian", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 14, "constructorref": "spyker_mf1", "name": "Spyker MF1", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Midland_F1_Racing"}, {"constructorid": 15, "constructorref": "sauber", "name": "Sauber", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Sauber"}, {"constructorid": 16, "constructorref": "bar", "name": "BAR", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_American_Racing"}, {"constructorid": 17, "constructorref": "jordan", "name": "Jordan", "nationality": "Irish", "url": "http://en.wikipedia.org/wiki/Jordan_Grand_Prix"}, {"constructorid": 18, "constructorref": "minardi", "name": "Minardi", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Minardi"}, {"constructorid": 19, "constructorref": "jaguar", "name": "Jaguar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Jaguar_Racing"}, {"constructorid": 20, "constructorref": "prost", "name": "Prost", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Prost_Grand_Prix"}, {"constructorid": 21, "constructorref": "arrows", "name": "Arrows", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Arrows_Grand_Prix_International"}, {"constructorid": 22, "constructorref": "benetton", "name": "Benetton", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Benetton_Formula"}, {"constructorid": 23, "constructorref": "brawn", "name": "Brawn", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brawn_GP"}, {"constructorid": 24, "constructorref": "stewart", "name": "Stewart", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Stewart_Grand_Prix"}, {"constructorid": 25, "constructorref": "tyrrell", "name": "Tyrrell", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Tyrrell_Racing"}, {"constructorid": 26, "constructorref": "lola", "name": "Lola", "nationality": "British", "url": "http://en.wikipedia.org/wiki/MasterCard_Lola"}, {"constructorid": 27, "constructorref": "ligier", "name": "Ligier", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Ligier"}, {"constructorid": 28, "constructorref": "forti", "name": "Forti", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Forti"}, {"constructorid": 29, "constructorref": "footwork", "name": "Footwork", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Footwork_Arrows"}, {"constructorid": 30, "constructorref": "pacific", "name": "Pacific", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Pacific_Racing"}, {"constructorid": 31, "constructorref": "simtek", "name": "Simtek", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Simtek"}, {"constructorid": 32, "constructorref": "team_lotus", "name": "Team Lotus", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 33, "constructorref": "larrousse", "name": "Larrousse", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Larrousse"}, {"constructorid": 34, "constructorref": "brabham", "name": "Brabham", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 35, "constructorref": "dallara", "name": "Dallara", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Dallara"}, {"constructorid": 36, "constructorref": "fondmetal", "name": "Fondmetal", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Fondmetal"}, {"constructorid": 37, "constructorref": "march", "name": "March", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 38, "constructorref": "moda", "name": "Andrea Moda", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Andrea_Moda_Formula"}, {"constructorid": 39, "constructorref": "ags", "name": "AGS", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Automobiles_Gonfaronnaises_Sportives"}, {"constructorid": 40, "constructorref": "lambo", "name": "Lambo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Modena_(racing_team)"}, {"constructorid": 41, "constructorref": "leyton", "name": "Leyton House", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Leyton_House"}, {"constructorid": 42, "constructorref": "coloni", "name": "Coloni", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Enzo_Coloni_Racing_Car_Systems"}, {"constructorid": 44, "constructorref": "eurobrun", "name": "Euro Brun", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Euro_Brun"}, {"constructorid": 45, "constructorref": "osella", "name": "Osella", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Osella"}, {"constructorid": 46, "constructorref": "onyx", "name": "Onyx", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Onyx_(racing_team)"}, {"constructorid": 47, "constructorref": "life", "name": "Life", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Life_(Racing_Team)"}, {"constructorid": 48, "constructorref": "rial", "name": "Rial", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Rial_%28racing_team%29"}, {"constructorid": 49, "constructorref": "zakspeed", "name": "Zakspeed", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Zakspeed"}, {"constructorid": 50, "constructorref": "ram", "name": "RAM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/RAM_Racing"}, {"constructorid": 51, "constructorref": "alfa", "name": "Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Alfa_Romeo_(Formula_One)"}, {"constructorid": 52, "constructorref": "spirit", "name": "Spirit", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Spirit_(racing_team)"}, {"constructorid": 53, "constructorref": "toleman", "name": "Toleman", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Toleman"}, {"constructorid": 54, "constructorref": "ats", "name": "ATS", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/ATS_(wheels)"}, {"constructorid": 55, "constructorref": "theodore", "name": "Theodore", "nationality": "Hong Kong", "url": "http://en.wikipedia.org/wiki/Theodore_Racing"}, {"constructorid": 56, "constructorref": "fittipaldi", "name": "Fittipaldi", "nationality": "Brazilian", "url": "http://en.wikipedia.org/wiki/Fittipaldi_%28constructor%29"}, {"constructorid": 57, "constructorref": "ensign", "name": "Ensign", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ensign_%28racing_team%29"}, {"constructorid": 58, "constructorref": "shadow", "name": "Shadow", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}, {"constructorid": 59, "constructorref": "wolf", "name": "Wolf", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Walter_Wolf_Racing"}, {"constructorid": 60, "constructorref": "merzario", "name": "Merzario", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Merzario"}, {"constructorid": 61, "constructorref": "kauhsen", "name": "Kauhsen", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Kauhsen"}, {"constructorid": 62, "constructorref": "rebaque", "name": "Rebaque", "nationality": "Mexican", "url": "http://en.wikipedia.org/wiki/Rebaque"}, {"constructorid": 63, "constructorref": "surtees", "name": "Surtees", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Surtees"}, {"constructorid": 64, "constructorref": "hesketh", "name": "Hesketh", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hesketh_Racing"}, {"constructorid": 65, "constructorref": "martini", "name": "Martini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Martini_(cars)"}, {"constructorid": 66, "constructorref": "brm", "name": "BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 67, "constructorref": "penske", "name": "Penske", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Penske_Racing"}, {"constructorid": 68, "constructorref": "lec", "name": "LEC", "nationality": "British", "url": "http://en.wikipedia.org/wiki/LEC_(Formula_One)"}, {"constructorid": 69, "constructorref": "mcguire", "name": "McGuire", "nationality": "Australian", "url": "http://en.wikipedia.org/wiki/McGuire_(Formula_One)"}, {"constructorid": 70, "constructorref": "boro", "name": "Boro", "nationality": "Dutch", "url": "http://en.wikipedia.org/wiki/Boro_(Formula_One)"}, {"constructorid": 71, "constructorref": "apollon", "name": "Apollon", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Apollon_(Formula_One)"}, {"constructorid": 72, "constructorref": "kojima", "name": "Kojima", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Kojima_Engineering"}, {"constructorid": 73, "constructorref": "parnelli", "name": "Parnelli", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Parnelli"}, {"constructorid": 74, "constructorref": "maki", "name": "Maki", "nationality": "Japanese", "url": "http://en.wikipedia.org/wiki/Maki_(cars)"}, {"constructorid": 75, "constructorref": "hill", "name": "Embassy Hill", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hill_(constructor)"}, {"constructorid": 76, "constructorref": "lyncar", "name": "Lyncar", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Lyncar"}, {"constructorid": 77, "constructorref": "trojan", "name": "Trojan", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Trojan_(Racing_team)"}, {"constructorid": 78, "constructorref": "amon", "name": "Amon", "nationality": "New Zealand", "url": "http://en.wikipedia.org/wiki/Amon_(Formula_One_team)"}, {"constructorid": 79, "constructorref": "token", "name": "Token", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Token_(Racing_team)"}, {"constructorid": 80, "constructorref": "iso_marlboro", "name": "Iso Marlboro", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Iso_Marlboro"}, {"constructorid": 81, "constructorref": "tecno", "name": "Tecno", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tecno"}, {"constructorid": 82, "constructorref": "matra", "name": "Matra", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 83, "constructorref": "politoys", "name": "Politoys", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frank_Williams_Racing_Cars"}, {"constructorid": 84, "constructorref": "connew", "name": "Connew", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connew"}, {"constructorid": 85, "constructorref": "bellasi", "name": "Bellasi", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Bellasi"}, {"constructorid": 86, "constructorref": "tomaso", "name": "De Tomaso", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 87, "constructorref": "cooper", "name": "Cooper", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 88, "constructorref": "eagle", "name": "Eagle", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 89, "constructorref": "lds", "name": "LDS", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 90, "constructorref": "protos", "name": "Protos", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Protos_(constructor)"}, {"constructorid": 91, "constructorref": "shannon", "name": "Shannon", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shannon_(Formula_One)"}, {"constructorid": 92, "constructorref": "scirocco", "name": "Scirocco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Scirocco-Powell"}, {"constructorid": 93, "constructorref": "re", "name": "RE", "nationality": "Rhodesian", "url": "http://en.wikipedia.org/wiki/RE_%28automobile%29"}, {"constructorid": 94, "constructorref": "brp", "name": "BRP", "nationality": "British", "url": "http://en.wikipedia.org/wiki/British_Racing_Partnership"}, {"constructorid": 95, "constructorref": "porsche", "name": "Porsche", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Porsche_in_Formula_One"}, {"constructorid": 96, "constructorref": "derrington", "name": "Derrington", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Derrington-Francis"}, {"constructorid": 97, "constructorref": "gilby", "name": "Gilby", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Gilby"}, {"constructorid": 98, "constructorref": "stebro", "name": "Stebro", "nationality": "Canadian", "url": "http://en.wikipedia.org/wiki/Stebro"}, {"constructorid": 99, "constructorref": "emeryson", "name": "Emeryson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Emeryson"}, {"constructorid": 100, "constructorref": "enb", "name": "ENB", "nationality": "Belgium", "url": "http://en.wikipedia.org/wiki/Ecurie_Nationale_Belge"}, {"constructorid": 101, "constructorref": "jbw", "name": "JBW", "nationality": "British", "url": "http://en.wikipedia.org/wiki/JBW"}, {"constructorid": 102, "constructorref": "ferguson", "name": "Ferguson", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Ferguson_Research_Ltd."}, {"constructorid": 103, "constructorref": "mbm", "name": "MBM", "nationality": "Swiss", "url": "http://en.wikipedia.org/wiki/Monteverdi_Basel_Motors"}, {"constructorid": 104, "constructorref": "behra-porsche", "name": "Behra-Porsche", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Behra-Porsche"}, {"constructorid": 105, "constructorref": "maserati", "name": "Maserati", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Maserati"}, {"constructorid": 106, "constructorref": "scarab", "name": "Scarab", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Scarab_(constructor)"}, {"constructorid": 107, "constructorref": "watson", "name": "Watson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/A.J._Watson"}, {"constructorid": 108, "constructorref": "epperly", "name": "Epperly", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Epperly"}, {"constructorid": 109, "constructorref": "phillips", "name": "Phillips", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Phillips_(constructor)"}, {"constructorid": 110, "constructorref": "lesovsky", "name": "Lesovsky", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Lesovsky"}, {"constructorid": 111, "constructorref": "trevis", "name": "Trevis", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Trevis"}, {"constructorid": 112, "constructorref": "meskowski", "name": "Meskowski", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Meskowski"}, {"constructorid": 113, "constructorref": "kurtis_kraft", "name": "Kurtis Kraft", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kurtis_Kraft"}, {"constructorid": 114, "constructorref": "kuzma", "name": "Kuzma", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Kuzma_(constructor)"}, {"constructorid": 115, "constructorref": "vhristensen", "name": "Christensen", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Christensen_(constructor)"}, {"constructorid": 116, "constructorref": "ewing", "name": "Ewing", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Ewing_(constructor)"}, {"constructorid": 117, "constructorref": "aston_martin", "name": "Aston Martin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Martin"}, {"constructorid": 118, "constructorref": "vanwall", "name": "Vanwall", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Vanwall"}, {"constructorid": 119, "constructorref": "moore", "name": "Moore", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Moore_(constructor)"}, {"constructorid": 120, "constructorref": "dunn", "name": "Dunn", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Dunn_Engineering"}, {"constructorid": 121, "constructorref": "elder", "name": "Elder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Elder_(constructor)"}, {"constructorid": 122, "constructorref": "sutton", "name": "Sutton", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sutton_(constructor)"}, {"constructorid": 123, "constructorref": "fry", "name": "Fry", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Fry_(racing_team)"}, {"constructorid": 124, "constructorref": "tec-mec", "name": "Tec-Mec", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Tec-Mec"}, {"constructorid": 125, "constructorref": "connaught", "name": "Connaught", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Connaught_Engineering"}, {"constructorid": 126, "constructorref": "alta", "name": "Alta", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Alta_auto_racing_team"}, {"constructorid": 127, "constructorref": "osca", "name": "OSCA", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Officine_Specializate_Costruzione_Automobili"}, {"constructorid": 128, "constructorref": "gordini", "name": "Gordini", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Gordini"}, {"constructorid": 129, "constructorref": "stevens", "name": "Stevens", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Stevens_(constructor)"}, {"constructorid": 130, "constructorref": "bugatti", "name": "Bugatti", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Bugatti"}, {"constructorid": 131, "constructorref": "mercedes", "name": "Mercedes", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One"}, {"constructorid": 132, "constructorref": "lancia", "name": "Lancia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Lancia_in_Formula_One"}, {"constructorid": 133, "constructorref": "hwm", "name": "HWM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Hersham_and_Walton_Motors"}, {"constructorid": 134, "constructorref": "schroeder", "name": "Schroeder", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Schroeder_(constructor)"}, {"constructorid": 135, "constructorref": "pawl", "name": "Pawl", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pawl_(constructor)"}, {"constructorid": 136, "constructorref": "pankratz", "name": "Pankratz", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Pankratz"}, {"constructorid": 137, "constructorref": "arzani-volpini", "name": "Arzani-Volpini", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Arzani-Volpini"}, {"constructorid": 138, "constructorref": "nichels", "name": "Nichels", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Nichels"}, {"constructorid": 139, "constructorref": "bromme", "name": "Bromme", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Bromme"}, {"constructorid": 140, "constructorref": "klenk", "name": "Klenk", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Klenk"}, {"constructorid": 141, "constructorref": "simca", "name": "Simca", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Simca"}, {"constructorid": 142, "constructorref": "turner", "name": "Turner", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Turner_(constructor)"}, {"constructorid": 143, "constructorref": "del_roy", "name": "Del Roy", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Del_Roy"}, {"constructorid": 144, "constructorref": "veritas", "name": "Veritas", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Veritas_(constructor)"}, {"constructorid": 145, "constructorref": "bmw", "name": "BMW", "nationality": "German", "url": "http://en.wikipedia.org/wiki/BMW"}, {"constructorid": 146, "constructorref": "emw", "name": "EMW", "nationality": "East German", "url": "http://en.wikipedia.org/wiki/Eisenacher_Motorenwerk"}, {"constructorid": 147, "constructorref": "afm", "name": "AFM", "nationality": "German", "url": "http://en.wikipedia.org/wiki/Alex_von_Falkenhausen_Motorenbau"}, {"constructorid": 148, "constructorref": "frazer_nash", "name": "Frazer Nash", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Frazer_Nash"}, {"constructorid": 149, "constructorref": "sherman", "name": "Sherman", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Sherman_(constructor)"}, {"constructorid": 150, "constructorref": "deidt", "name": "Deidt", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Deidt"}, {"constructorid": 151, "constructorref": "era", "name": "ERA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/English_Racing_Automobiles"}, {"constructorid": 152, "constructorref": "butterworth", "name": "Aston Butterworth", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Aston_Butterworth"}, {"constructorid": 153, "constructorref": "cisitalia", "name": "Cisitalia", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Cisitalia"}, {"constructorid": 154, "constructorref": "lago", "name": "Talbot-Lago", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Talbot-Lago"}, {"constructorid": 155, "constructorref": "hall", "name": "Hall", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Hall_(constructor)"}, {"constructorid": 156, "constructorref": "marchese", "name": "Marchese", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Marchese_(constructor)"}, {"constructorid": 157, "constructorref": "langley", "name": "Langley", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Langley_(constructor)"}, {"constructorid": 158, "constructorref": "rae", "name": "Rae", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Rae_(motorsport)"}, {"constructorid": 159, "constructorref": "olson", "name": "Olson", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Olson_(constructor)"}, {"constructorid": 160, "constructorref": "wetteroth", "name": "Wetteroth", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Wetteroth"}, {"constructorid": 161, "constructorref": "adams", "name": "Adams", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Adams_(constructor)"}, {"constructorid": 162, "constructorref": "snowberger", "name": "Snowberger", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Snowberger"}, {"constructorid": 163, "constructorref": "milano", "name": "Milano", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/Scuderia_Milano"}, {"constructorid": 164, "constructorref": "hrt", "name": "HRT", "nationality": "Spanish", "url": "http://en.wikipedia.org/wiki/Hispania_Racing"}, {"constructorid": 166, "constructorref": "virgin", "name": "Virgin", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Virgin_Racing"}, {"constructorid": 167, "constructorref": "cooper-maserati", "name": "Cooper-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 168, "constructorref": "cooper-osca", "name": "Cooper-OSCA", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 169, "constructorref": "cooper-borgward", "name": "Cooper-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 170, "constructorref": "cooper-climax", "name": "Cooper-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 171, "constructorref": "cooper-castellotti", "name": "Cooper-Castellotti", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 172, "constructorref": "lotus-climax", "name": "Lotus-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 173, "constructorref": "lotus-maserati", "name": "Lotus-Maserati", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 174, "constructorref": "de_tomaso-osca", "name": "De Tomaso-Osca", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 175, "constructorref": "de_tomaso-alfa_romeo", "name": "De Tomaso-Alfa Romeo", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 176, "constructorref": "lotus-brm", "name": "Lotus-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 177, "constructorref": "lotus-borgward", "name": "Lotus-Borgward", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 178, "constructorref": "cooper-alfa_romeo", "name": "Cooper-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 179, "constructorref": "de_tomaso-ferrari", "name": "De Tomaso-Ferrari", "nationality": "Italian", "url": "http://en.wikipedia.org/wiki/De_Tomaso"}, {"constructorid": 180, "constructorref": "lotus-ford", "name": "Lotus-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 181, "constructorref": "brabham-brm", "name": "Brabham-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 182, "constructorref": "brabham-ford", "name": "Brabham-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 183, "constructorref": "brabham-climax", "name": "Brabham-Climax", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 184, "constructorref": "lds-climax", "name": "LDS-Climax", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 185, "constructorref": "lds-alfa_romeo", "name": "LDS-Alfa Romeo", "nationality": "South African", "url": "http://en.wikipedia.org/wiki/LDS_(automobile)"}, {"constructorid": 186, "constructorref": "cooper-ford", "name": "Cooper-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 187, "constructorref": "mclaren-ford", "name": "McLaren-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 188, "constructorref": "mclaren-seren", "name": "McLaren-Serenissima", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_McLaren"}, {"constructorid": 189, "constructorref": "eagle-climax", "name": "Eagle-Climax", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 190, "constructorref": "eagle-weslake", "name": "Eagle-Weslake", "nationality": "American", "url": "http://en.wikipedia.org/wiki/Anglo_American_Racers"}, {"constructorid": 191, "constructorref": "brabham-repco", "name": "Brabham-Repco", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Brabham"}, {"constructorid": 192, "constructorref": "cooper-ferrari", "name": "Cooper-Ferrari", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 193, "constructorref": "cooper-ats", "name": "Cooper-ATS", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 194, "constructorref": "mclaren-brm", "name": "McLaren-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 195, "constructorref": "cooper-brm", "name": "Cooper-BRM", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company"}, {"constructorid": 196, "constructorref": "matra-ford", "name": "Matra-Ford", "nationality": "French", "url": "http://en.wikipedia.org/wiki/Matra"}, {"constructorid": 197, "constructorref": "brm-ford", "name": "BRM-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/BRM"}, {"constructorid": 198, "constructorref": "mclaren-alfa_romeo", "name": "McLaren-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/McLaren_(racing)"}, {"constructorid": 199, "constructorref": "march-alfa_romeo", "name": "March-Alfa Romeo", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 200, "constructorref": "march-ford", "name": "March-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/March_Engineering"}, {"constructorid": 201, "constructorref": "lotus-pw", "name": "Lotus-Pratt &amp; Whitney", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Team_Lotus"}, {"constructorid": 202, "constructorref": "shadow-ford", "name": "Shadow-Ford", "nationality": "British", "url": "http://en.wikipedia.org/wiki/Shadow_Racing_Cars"}]}, "correct_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n\nsummary = constructorstandings\n |> group_by(positiontext)\n |> aggregate(total_raceid: sum(raceid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load formula_1__constructorstandings data\nconstructorstandings = load(\"constructorstandings\")\n\nsummary = constructorstandings\n |> group_by(positiontext)\n |> aggregate(positiontext: sum(raceid), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(5)\n\nemit result", "expected_output": [{"positiontext": "1", "total_raceid": 586, "count": 19}, {"positiontext": "3", "total_raceid": 586, "count": 19}, {"positiontext": "2", "total_raceid": 586, "count": 19}, {"positiontext": "4", "total_raceid": 586, "count": 19}, {"positiontext": "5", "total_raceid": 586, "count": 19}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'total_raceid' \u2192 'positiontext'", "line_num": 6, "original": "|> aggregate(total_raceid: sum(raceid), count: count())", "mutated": "|> aggregate(positiontext: sum(raceid), count: count())"}], "difficulty": "medium", "domain": "formula_1__constructorstandings", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"sales": [{"sales_transaction_id": 1, "sales_details": "x"}, {"sales_transaction_id": 2, "sales_details": "o"}, {"sales_transaction_id": 3, "sales_details": "a"}, {"sales_transaction_id": 4, "sales_details": "f"}, {"sales_transaction_id": 5, "sales_details": "y"}, {"sales_transaction_id": 6, "sales_details": "x"}, {"sales_transaction_id": 7, "sales_details": "p"}, {"sales_transaction_id": 8, "sales_details": "e"}, {"sales_transaction_id": 9, "sales_details": "p"}, {"sales_transaction_id": 10, "sales_details": "s"}, {"sales_transaction_id": 11, "sales_details": "s"}, {"sales_transaction_id": 12, "sales_details": "t"}, {"sales_transaction_id": 13, "sales_details": "p"}, {"sales_transaction_id": 14, "sales_details": "n"}, {"sales_transaction_id": 15, "sales_details": "e"}], "transactions": [{"transaction_id": 1, "investor_id": 6, "transaction_type_code": "SALE", "date_of_transaction": "1988-09-16 19:02:51", "amount_of_transaction": 302507.6996, "share_count": "8718572", "other_details": 0}, {"transaction_id": 2, "investor_id": 18, "transaction_type_code": "PUR", "date_of_transaction": "1982-06-06 17:19:00", "amount_of_transaction": 27.257, "share_count": "9", "other_details": 0}, {"transaction_id": 3, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1979-04-27 06:03:59", "amount_of_transaction": 48777.969, "share_count": "8580", "other_details": 0}, {"transaction_id": 4, "investor_id": 14, "transaction_type_code": "PUR", "date_of_transaction": "2001-11-28 15:06:25", "amount_of_transaction": 4.5263, "share_count": "8040", "other_details": 0}, {"transaction_id": 5, "investor_id": 8, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-17 13:13:30", "amount_of_transaction": 0, "share_count": "930", "other_details": 0}, {"transaction_id": 6, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1985-10-08 13:13:39", "amount_of_transaction": 207484122.2796, "share_count": "2751", "other_details": 0}, {"transaction_id": 7, "investor_id": 7, "transaction_type_code": "PUR", "date_of_transaction": "1990-12-02 09:03:38", "amount_of_transaction": 822.803, "share_count": "1522", "other_details": 0}, {"transaction_id": 8, "investor_id": 17, "transaction_type_code": "SALE", "date_of_transaction": "2004-01-18 20:37:50", "amount_of_transaction": 78035671.4424, "share_count": "96178", "other_details": 0}, {"transaction_id": 9, "investor_id": 20, "transaction_type_code": "PUR", "date_of_transaction": "1977-08-13 02:18:47", "amount_of_transaction": 82057.207, "share_count": "", "other_details": 0}, {"transaction_id": 10, "investor_id": 2, "transaction_type_code": "SALE", "date_of_transaction": "1981-01-28 08:07:03", "amount_of_transaction": 29.3534, "share_count": "1654756", "other_details": 0}, {"transaction_id": 11, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2000-04-03 20:55:43", "amount_of_transaction": 0, "share_count": "674529892", "other_details": 0}, {"transaction_id": 12, "investor_id": 18, "transaction_type_code": "SALE", "date_of_transaction": "1983-11-01 17:57:27", "amount_of_transaction": 1, "share_count": "587", "other_details": 0}, {"transaction_id": 13, "investor_id": 3, "transaction_type_code": "SALE", "date_of_transaction": "2002-04-07 20:28:37", "amount_of_transaction": 183.2, "share_count": "", "other_details": 0}, {"transaction_id": 14, "investor_id": 3, "transaction_type_code": "PUR", "date_of_transaction": "2002-09-13 03:04:56", "amount_of_transaction": 0, "share_count": "630021", "other_details": 0}, {"transaction_id": 15, "investor_id": 19, "transaction_type_code": "PUR", "date_of_transaction": "1997-12-30 05:05:40", "amount_of_transaction": 8.9, "share_count": "93191", "other_details": 0}]}, "correct_code": "-- Load tracking_share_transactions__sales data\nsales = load(\"sales\")\n\nfiltered_sales = sales\n |> filter(sales_details == \"e\")\n\nsummary = filtered_sales\n |> group_by(sales_details)\n |> aggregate(avg_sales_transaction_id: avg(sales_transaction_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load tracking_share_transactions__sales data\nsales = load(\"sales\")\n\nfiltered_sales = sales\n |> filter(sales_details == \"e\")\n\nsummary = filtered_sales\n |> group_by(sales_transaction_id)\n |> aggregate(avg_sales_transaction_id: avg(sales_transaction_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"sales_details": "e", "avg_sales_transaction_id": 11.5, "count": 2}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'sales_details' \u2192 'sales_transaction_id'", "line_num": 8, "original": "|> group_by(sales_details)", "mutated": "|> group_by(sales_transaction_id)"}], "difficulty": "medium", "domain": "tracking_share_transactions__sales", "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": {"participates_in": [{"stuid": 1001, "actid": 770}, {"stuid": 1001, "actid": 771}, {"stuid": 1001, "actid": 777}, {"stuid": 1002, "actid": 772}, {"stuid": 1002, "actid": 771}, {"stuid": 1003, "actid": 778}, {"stuid": 1004, "actid": 780}, {"stuid": 1004, "actid": 782}, {"stuid": 1004, "actid": 778}, {"stuid": 1004, "actid": 777}, {"stuid": 1005, "actid": 770}, {"stuid": 1006, "actid": 773}, {"stuid": 1007, "actid": 773}, {"stuid": 1007, "actid": 784}, {"stuid": 1008, "actid": 785}, {"stuid": 1008, "actid": 773}, {"stuid": 1008, "actid": 780}, {"stuid": 1008, "actid": 790}, {"stuid": 1009, "actid": 778}, {"stuid": 1009, "actid": 777}, {"stuid": 1009, "actid": 782}, {"stuid": 1010, "actid": 780}, {"stuid": 1011, "actid": 780}, {"stuid": 1012, "actid": 780}, {"stuid": 1014, "actid": 780}, {"stuid": 1014, "actid": 777}, {"stuid": 1014, "actid": 778}, {"stuid": 1014, "actid": 782}, {"stuid": 1014, "actid": 770}, {"stuid": 1014, "actid": 772}, {"stuid": 1015, "actid": 785}, {"stuid": 1016, "actid": 791}, {"stuid": 1016, "actid": 772}, {"stuid": 1017, "actid": 791}, {"stuid": 1017, "actid": 771}, {"stuid": 1017, "actid": 770}, {"stuid": 1018, "actid": 790}, {"stuid": 1018, "actid": 785}, {"stuid": 1018, "actid": 784}, {"stuid": 1018, "actid": 777}, {"stuid": 1018, "actid": 772}, {"stuid": 1018, "actid": 770}, {"stuid": 1019, "actid": 785}, {"stuid": 1019, "actid": 790}, {"stuid": 1020, "actid": 780}, {"stuid": 1021, "actid": 780}, {"stuid": 1021, "actid": 776}, {"stuid": 1022, "actid": 782}, {"stuid": 1022, "actid": 790}, {"stuid": 1023, "actid": 790}, {"stuid": 1023, "actid": 776}, {"stuid": 1024, "actid": 778}, {"stuid": 1024, "actid": 777}, {"stuid": 1024, "actid": 780}, {"stuid": 1025, "actid": 780}, {"stuid": 1025, "actid": 777}, {"stuid": 1025, "actid": 770}, {"stuid": 1028, "actid": 785}, {"stuid": 1029, "actid": 785}, {"stuid": 1029, "actid": 790}, {"stuid": 1030, "actid": 780}, {"stuid": 1030, "actid": 790}, {"stuid": 1033, "actid": 780}, {"stuid": 1034, "actid": 780}, {"stuid": 1034, "actid": 777}, {"stuid": 1034, "actid": 772}, {"stuid": 1034, "actid": 771}, {"stuid": 1035, "actid": 777}, {"stuid": 1035, "actid": 780}, {"stuid": 1035, "actid": 784}], "student": [{"stuid": 1001, "lname": "Smith", "fname": "Linda", "age": 18, "sex": "F", "major": 600, "advisor": 1121, "city_code": "BAL"}, {"stuid": 1002, "lname": "Kim", "fname": "Tracy", "age": 19, "sex": "F", "major": 600, "advisor": 7712, "city_code": "HKG"}, {"stuid": 1003, "lname": "Jones", "fname": "Shiela", "age": 21, "sex": "F", "major": 600, "advisor": 7792, "city_code": "WAS"}, {"stuid": 1004, "lname": "Kumar", "fname": "Dinesh", "age": 20, "sex": "M", "major": 600, "advisor": 8423, "city_code": "CHI"}, {"stuid": 1005, "lname": "Gompers", "fname": "Paul", "age": 26, "sex": "M", "major": 600, "advisor": 1121, "city_code": "YYZ"}, {"stuid": 1006, "lname": "Schultz", "fname": "Andy", "age": 18, "sex": "M", "major": 600, "advisor": 1148, "city_code": "BAL"}, {"stuid": 1007, "lname": "Apap", "fname": "Lisa", "age": 18, "sex": "F", "major": 600, "advisor": 8918, "city_code": "PIT"}, {"stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"stuid": 1009, "lname": "Tai", "fname": "Eric", "age": 19, "sex": "M", "major": 600, "advisor": 2192, "city_code": "YYZ"}, {"stuid": 1010, "lname": "Lee", "fname": "Derek", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "HOU"}, {"stuid": 1011, "lname": "Adams", "fname": "David", "age": 22, "sex": "M", "major": 600, "advisor": 1148, "city_code": "PHL"}, {"stuid": 1012, "lname": "Davis", "fname": "Steven", "age": 20, "sex": "M", "major": 600, "advisor": 7723, "city_code": "PIT"}, {"stuid": 1014, "lname": "Norris", "fname": "Charles", "age": 18, "sex": "M", "major": 600, "advisor": 8741, "city_code": "DAL"}, {"stuid": 1015, "lname": "Lee", "fname": "Susan", "age": 16, "sex": "F", "major": 600, "advisor": 8721, "city_code": "HKG"}, {"stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}, {"stuid": 1020, "lname": "Thornton", "fname": "Ian", "age": 22, "sex": "M", "major": 520, "advisor": 7271, "city_code": "NYC"}, {"stuid": 1021, "lname": "Andreou", "fname": "George", "age": 19, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1022, "lname": "Woods", "fname": "Michael", "age": 17, "sex": "M", "major": 540, "advisor": 8722, "city_code": "PHL"}, {"stuid": 1023, "lname": "Shieber", "fname": "David", "age": 20, "sex": "M", "major": 520, "advisor": 8722, "city_code": "NYC"}, {"stuid": 1024, "lname": "Prater", "fname": "Stacy", "age": 18, "sex": "F", "major": 540, "advisor": 7271, "city_code": "BAL"}, {"stuid": 1025, "lname": "Goldman", "fname": "Mark", "age": 18, "sex": "M", "major": 520, "advisor": 7134, "city_code": "PIT"}, {"stuid": 1026, "lname": "Pang", "fname": "Eric", "age": 19, "sex": "M", "major": 520, "advisor": 7134, "city_code": "HKG"}, {"stuid": 1027, "lname": "Brody", "fname": "Paul", "age": 18, "sex": "M", "major": 520, "advisor": 8723, "city_code": "LOS"}, {"stuid": 1028, "lname": "Rugh", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 2311, "city_code": "ROC"}, {"stuid": 1029, "lname": "Han", "fname": "Jun", "age": 17, "sex": "M", "major": 100, "advisor": 2311, "city_code": "PEK"}, {"stuid": 1030, "lname": "Cheng", "fname": "Lisa", "age": 21, "sex": "F", "major": 550, "advisor": 2311, "city_code": "SFO"}, {"stuid": 1031, "lname": "Smith", "fname": "Sarah", "age": 20, "sex": "F", "major": 550, "advisor": 8772, "city_code": "PHL"}, {"stuid": 1032, "lname": "Brown", "fname": "Eric", "age": 20, "sex": "M", "major": 550, "advisor": 8772, "city_code": "ATL"}, {"stuid": 1033, "lname": "Simms", "fname": "William", "age": 18, "sex": "M", "major": 550, "advisor": 8772, "city_code": "NAR"}, {"stuid": 1034, "lname": "Epp", "fname": "Eric", "age": 18, "sex": "M", "major": 50, "advisor": 5718, "city_code": "BOS"}, {"stuid": 1035, "lname": "Schmidt", "fname": "Sarah", "age": 26, "sex": "F", "major": 50, "advisor": 5718, "city_code": "WAS"}]}, "correct_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(actid > 773)\n |> select(actid, stuid)\n\n-- Load lookup data\nstudent = load(\"student\")\n\nenriched = join(filtered_participates_in, student, on: stuid == stuid)\n\nresult = enriched\n |> sort_by(actid, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load activity_1__participates_in data\nparticipates_in = load(\"participates_in\")\n\nfiltered_participates_in = participates_in\n |> filter(actid > 773)\n |> select(actid, stuid)\n\n-- Load lookup data\nstudent = load(\"student\")\n\nenriched = join(filtered_participates_in, student, on: enriched == stuid)\n\nresult = enriched\n |> sort_by(actid, desc)\n |> take(5)\n\nemit result", "expected_output": [{"actid": 791, "stuid": 1016, "lname": "Schwartz", "fname": "Mark", "age": 17, "sex": "M", "major": 600, "advisor": 2192, "city_code": "DET"}, {"actid": 791, "stuid": 1017, "lname": "Wilson", "fname": "Bruce", "age": 27, "sex": "M", "major": 600, "advisor": 1148, "city_code": "LON"}, {"actid": 790, "stuid": 1008, "lname": "Nelson", "fname": "Jandy", "age": 20, "sex": "F", "major": 600, "advisor": 9172, "city_code": "BAL"}, {"actid": 790, "stuid": 1018, "lname": "Leighton", "fname": "Michael", "age": 20, "sex": "M", "major": 600, "advisor": 1121, "city_code": "PIT"}, {"actid": 790, "stuid": 1019, "lname": "Pang", "fname": "Arthur", "age": 18, "sex": "M", "major": 600, "advisor": 2192, "city_code": "WAS"}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'stuid' \u2192 'enriched'", "line_num": 11, "original": "enriched = join(filtered_participates_in, student, on: stuid == stuid)", "mutated": "enriched = join(filtered_participates_in, student, on: enriched == stuid)"}], "difficulty": "hard", "domain": "activity_1__participates_in", "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": {"organisations": [{"organisation_id": 1, "organisation_type": "RES", "organisation_details": "et"}, {"organisation_id": 2, "organisation_type": "RES", "organisation_details": "eius"}, {"organisation_id": 3, "organisation_type": "RES", "organisation_details": "impedit"}, {"organisation_id": 4, "organisation_type": "SPON", "organisation_details": "eos"}, {"organisation_id": 5, "organisation_type": "SPON", "organisation_details": "tenetur"}, {"organisation_id": 6, "organisation_type": "RES", "organisation_details": "dolorem"}, {"organisation_id": 7, "organisation_type": "RES", "organisation_details": "itaque"}, {"organisation_id": 8, "organisation_type": "SPON", "organisation_details": "aperiam"}, {"organisation_id": 9, "organisation_type": "RES", "organisation_details": "a"}, {"organisation_id": 10, "organisation_type": "SPON", "organisation_details": "officiis"}, {"organisation_id": 11, "organisation_type": "SPON", "organisation_details": "eveniet"}, {"organisation_id": 12, "organisation_type": "RES", "organisation_details": "itaque"}, {"organisation_id": 13, "organisation_type": "SPON", "organisation_details": "voluptas"}, {"organisation_id": 14, "organisation_type": "RES", "organisation_details": "quo"}, {"organisation_id": 15, "organisation_type": "SPON", "organisation_details": "consequuntur"}], "organisation_types": [{"organisation_type": "RES", "organisation_type_description": "Research"}, {"organisation_type": "SPON", "organisation_type_description": "Sponsor"}]}, "correct_code": "-- Load tracking_grants_for_research__organisations data\norganisations = load(\"organisations\")\n\nfiltered_organisations = organisations\n |> filter(organisation_details == \"et\")\n\nsummary = filtered_organisations\n |> group_by(organisation_type)\n |> aggregate(avg_organisation_id: avg(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\nresult = enriched\n |> sort_by(avg_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_details == \"ets\")\n\nsummary = filtered_organisations\n |> group_by(organisation_type)\n |> aggregate(avg_organisation_id: avg(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\nresult = enriched\n |> sort_by(avg_organisation_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"organisation_type": "RES", "avg_organisation_id": 1.0, "count": 1, "organisation_type_description": "Research"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'et' \u2192 'ets'", "line_num": 5, "original": "|> filter(organisation_details == \"et\")", "mutated": "|> filter(organisation_details == \"ets\")"}], "difficulty": "medium", "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": {"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(typical_selling_price == \"21577.891642\")\n |> filter(product_id >= 2)\n\nsummary = filtered_products\n |> group_by(typical_buying_price)\n |> aggregate(avg_product_id: avg(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n\nfiltered_products = products\n |> filter(typical_selling_price == \"21577.891642\")\n |<= filter(product_id >= 2)\n\nsummary = filtered_products\n |> group_by(typical_buying_price)\n |> aggregate(avg_product_id: avg(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"typical_buying_price": "12008702.623", "avg_product_id": 9.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '>' \u2192 '<='", "line_num": 6, "original": "|> filter(product_id >= 2)", "mutated": "|<= filter(product_id >= 2)"}], "difficulty": "medium", "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_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(allergy == \"Nuts\")\n |> filter(stuid < 1013)\n |> select(allergy, stuid)\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(3)\n\nemit result", "buggy_code": "-- Load allergy_1__has_allergy data\nhas_allergy = load(\"has_allergy\")\n\nfiltered_has_allergy = has_allergy\n |> filter(Nuts == \"Nuts\")\n |> filter(stuid < 1013)\n |> select(allergy, stuid)\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(3)\n\nemit result", "expected_output": [{"allergy": "Nuts", "total_stuid": 3015, "count": 3}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'allergy' \u2192 'Nuts'", "line_num": 5, "original": "|> filter(allergy == \"Nuts\")", "mutated": "|> filter(Nuts == \"Nuts\")"}], "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": {"events": [{"event_id": 3, "service_id": 5, "event_details": "Success"}, {"event_id": 8, "service_id": 8, "event_details": "Success"}, {"event_id": 13, "service_id": 8, "event_details": "Fail"}, {"event_id": 16, "service_id": 2, "event_details": "Fail"}, {"event_id": 17, "service_id": 5, "event_details": "Fail"}, {"event_id": 38, "service_id": 6, "event_details": "Fail"}, {"event_id": 40, "service_id": 6, "event_details": "Fail"}, {"event_id": 43, "service_id": 8, "event_details": "Fail"}, {"event_id": 48, "service_id": 8, "event_details": "Fail"}, {"event_id": 57, "service_id": 5, "event_details": "Success"}, {"event_id": 60, "service_id": 2, "event_details": "Fail"}, {"event_id": 74, "service_id": 2, "event_details": "Success"}, {"event_id": 80, "service_id": 5, "event_details": "Success"}, {"event_id": 95, "service_id": 2, "event_details": "Fail"}, {"event_id": 96, "service_id": 2, "event_details": "Success"}], "services": [{"service_id": 2, "service_type_code": "Marriage"}, {"service_id": 5, "service_type_code": "Death Proof"}, {"service_id": 6, "service_type_code": "Birth Proof"}, {"service_id": 8, "service_type_code": "Property Change"}]}, "correct_code": "-- Load local_govt_in_alabama__events data\nevents = load(\"events\")\n\nfiltered_events = events\n |> filter(event_details == \"Success\")\n |> filter(service_id <= 5)\n\nsummary = filtered_events\n |> group_by(event_details)\n |> aggregate(min_event_id: min(event_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load local_govt_in_alabama__events data\nevents = load(\"events\")\n\nfiltered_events = events\n |> filter(event_details == \"Success\")\n |> filter(service_id <= 5)\n\nsummary = filtered_events\n |> group_by(event_details)\n |> aggregate(5: min(event_id), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(4)\n\nemit result", "expected_output": [{"event_details": "Success", "min_event_id": 3, "count": 5}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'min_event_id' \u2192 '5'", "line_num": 10, "original": "|> aggregate(min_event_id: min(event_id), count: count())", "mutated": "|> aggregate(5: min(event_id), count: count())"}, {"category": "logic_bug", "description": "Off-by-one in take: 3 \u2192 4", "line_num": 14, "original": "|> take(3)", "mutated": "|> take(4)"}], "difficulty": "hard", "domain": "local_govt_in_alabama__events", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"countrylanguage": [{"countrycode": "ABW", "language": "Dutch", "isofficial": "T", "percentage": 5.3}, {"countrycode": "ABW", "language": "English", "isofficial": "F", "percentage": 9.5}, {"countrycode": "ABW", "language": "Papiamento", "isofficial": "F", "percentage": 76.7}, {"countrycode": "ABW", "language": "Spanish", "isofficial": "F", "percentage": 7.4}, {"countrycode": "AFG", "language": "Balochi", "isofficial": "F", "percentage": 0.9}, {"countrycode": "AFG", "language": "Dari", "isofficial": "T", "percentage": 32.1}, {"countrycode": "AFG", "language": "Pashto", "isofficial": "T", "percentage": 52.4}, {"countrycode": "AFG", "language": "Turkmenian", "isofficial": "F", "percentage": 1.9}, {"countrycode": "AFG", "language": "Uzbek", "isofficial": "F", "percentage": 8.8}, {"countrycode": "AGO", "language": "Ambo", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Chokwe", "isofficial": "F", "percentage": 4.2}, {"countrycode": "AGO", "language": "Kongo", "isofficial": "F", "percentage": 13.2}, {"countrycode": "AGO", "language": "Luchazi", "isofficial": "F", "percentage": 2.4}, {"countrycode": "AGO", "language": "Luimbe-nganguela", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Luvale", "isofficial": "F", "percentage": 3.6}, {"countrycode": "AGO", "language": "Mbundu", "isofficial": "F", "percentage": 21.6}, {"countrycode": "AGO", "language": "Nyaneka-nkhumbi", "isofficial": "F", "percentage": 5.4}, {"countrycode": "AGO", "language": "Ovimbundu", "isofficial": "F", "percentage": 37.2}, {"countrycode": "AIA", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ALB", "language": "Albaniana", "isofficial": "T", "percentage": 97.9}, {"countrycode": "ALB", "language": "Greek", "isofficial": "F", "percentage": 1.8}, {"countrycode": "ALB", "language": "Macedonian", "isofficial": "F", "percentage": 0.1}, {"countrycode": "AND", "language": "Catalan", "isofficial": "T", "percentage": 32.3}, {"countrycode": "AND", "language": "French", "isofficial": "F", "percentage": 6.2}, {"countrycode": "AND", "language": "Portuguese", "isofficial": "F", "percentage": 10.8}, {"countrycode": "AND", "language": "Spanish", "isofficial": "F", "percentage": 44.6}, {"countrycode": "ANT", "language": "Dutch", "isofficial": "T", "percentage": 0.0}, {"countrycode": "ANT", "language": "English", "isofficial": "F", "percentage": 7.8}, {"countrycode": "ANT", "language": "Papiamento", "isofficial": "T", "percentage": 86.2}, {"countrycode": "ARE", "language": "Arabic", "isofficial": "T", "percentage": 42.0}, {"countrycode": "ARE", "language": "Hindi", "isofficial": "F", "percentage": 0.0}, {"countrycode": "ARG", "language": "Indian Languages", "isofficial": "F", "percentage": 0.3}, {"countrycode": "ARG", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "ARG", "language": "Spanish", "isofficial": "T", "percentage": 96.8}, {"countrycode": "ARM", "language": "Armenian", "isofficial": "T", "percentage": 93.4}, {"countrycode": "ARM", "language": "Azerbaijani", "isofficial": "F", "percentage": 2.6}, {"countrycode": "ASM", "language": "English", "isofficial": "T", "percentage": 3.1}, {"countrycode": "ASM", "language": "Samoan", "isofficial": "T", "percentage": 90.6}, {"countrycode": "ASM", "language": "Tongan", "isofficial": "F", "percentage": 3.1}, {"countrycode": "ATG", "language": "Creole English", "isofficial": "F", "percentage": 95.7}, {"countrycode": "ATG", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "AUS", "language": "Arabic", "isofficial": "F", "percentage": 1.0}, {"countrycode": "AUS", "language": "Canton Chinese", "isofficial": "F", "percentage": 1.1}, {"countrycode": "AUS", "language": "English", "isofficial": "T", "percentage": 81.2}, {"countrycode": "AUS", "language": "German", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Greek", "isofficial": "F", "percentage": 1.6}, {"countrycode": "AUS", "language": "Italian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUS", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "AUS", "language": "Vietnamese", "isofficial": "F", "percentage": 0.8}, {"countrycode": "AUT", "language": "Czech", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "German", "isofficial": "T", "percentage": 92.0}, {"countrycode": "AUT", "language": "Hungarian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Polish", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Romanian", "isofficial": "F", "percentage": 0.2}, {"countrycode": "AUT", "language": "Serbo-Croatian", "isofficial": "F", "percentage": 2.2}, {"countrycode": "AUT", "language": "Slovene", "isofficial": "F", "percentage": 0.4}, {"countrycode": "AUT", "language": "Turkish", "isofficial": "F", "percentage": 1.5}, {"countrycode": "AZE", "language": "Armenian", "isofficial": "F", "percentage": 2.0}, {"countrycode": "AZE", "language": "Azerbaijani", "isofficial": "T", "percentage": 89.0}, {"countrycode": "AZE", "language": "Lezgian", "isofficial": "F", "percentage": 2.3}, {"countrycode": "AZE", "language": "Russian", "isofficial": "F", "percentage": 3.0}, {"countrycode": "BDI", "language": "French", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BDI", "language": "Kirundi", "isofficial": "T", "percentage": 98.1}, {"countrycode": "BDI", "language": "Swahili", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BEL", "language": "Arabic", "isofficial": "F", "percentage": 1.6}, {"countrycode": "BEL", "language": "Dutch", "isofficial": "T", "percentage": 59.2}, {"countrycode": "BEL", "language": "French", "isofficial": "T", "percentage": 32.6}, {"countrycode": "BEL", "language": "German", "isofficial": "T", "percentage": 1.0}, {"countrycode": "BEL", "language": "Italian", "isofficial": "F", "percentage": 2.4}, {"countrycode": "BEL", "language": "Turkish", "isofficial": "F", "percentage": 0.9}, {"countrycode": "BEN", "language": "Adja", "isofficial": "F", "percentage": 11.1}, {"countrycode": "BEN", "language": "Aizo", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Bariba", "isofficial": "F", "percentage": 8.7}, {"countrycode": "BEN", "language": "Fon", "isofficial": "F", "percentage": 39.8}, {"countrycode": "BEN", "language": "Ful", "isofficial": "F", "percentage": 5.6}, {"countrycode": "BEN", "language": "Joruba", "isofficial": "F", "percentage": 12.2}, {"countrycode": "BEN", "language": "Somba", "isofficial": "F", "percentage": 6.7}, {"countrycode": "BFA", "language": "Busansi", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BFA", "language": "Dagara", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BFA", "language": "Dyula", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BFA", "language": "Ful", "isofficial": "F", "percentage": 9.7}, {"countrycode": "BFA", "language": "Gurma", "isofficial": "F", "percentage": 5.7}, {"countrycode": "BFA", "language": "Mossi", "isofficial": "F", "percentage": 50.2}, {"countrycode": "BGD", "language": "Bengali", "isofficial": "T", "percentage": 97.7}, {"countrycode": "BGD", "language": "Chakma", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BGD", "language": "Garo", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Khasi", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Marma", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BGD", "language": "Santhali", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGD", "language": "Tripuri", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BGR", "language": "Bulgariana", "isofficial": "T", "percentage": 83.2}, {"countrycode": "BGR", "language": "Macedonian", "isofficial": "F", "percentage": 2.6}, {"countrycode": "BGR", "language": "Romani", "isofficial": "F", "percentage": 3.7}, {"countrycode": "BGR", "language": "Turkish", "isofficial": "F", "percentage": 9.4}, {"countrycode": "BHR", "language": "Arabic", "isofficial": "T", "percentage": 67.7}, {"countrycode": "BHR", "language": "English", "isofficial": "F", "percentage": 0.0}, {"countrycode": "BHS", "language": "Creole English", "isofficial": "F", "percentage": 89.7}, {"countrycode": "BHS", "language": "Creole French", "isofficial": "F", "percentage": 10.3}, {"countrycode": "BIH", "language": "Serbo-Croatian", "isofficial": "T", "percentage": 99.2}, {"countrycode": "BLR", "language": "Belorussian", "isofficial": "T", "percentage": 65.6}, {"countrycode": "BLR", "language": "Polish", "isofficial": "F", "percentage": 0.6}, {"countrycode": "BLR", "language": "Russian", "isofficial": "T", "percentage": 32.0}, {"countrycode": "BLR", "language": "Ukrainian", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BLZ", "language": "English", "isofficial": "T", "percentage": 50.8}, {"countrycode": "BLZ", "language": "Garifuna", "isofficial": "F", "percentage": 6.8}, {"countrycode": "BLZ", "language": "Maya Languages", "isofficial": "F", "percentage": 9.6}, {"countrycode": "BLZ", "language": "Spanish", "isofficial": "F", "percentage": 31.6}, {"countrycode": "BMU", "language": "English", "isofficial": "T", "percentage": 100.0}, {"countrycode": "BOL", "language": "Aimar\u00e1", "isofficial": "T", "percentage": 3.2}, {"countrycode": "BOL", "language": "Guaran\u00ed", "isofficial": "F", "percentage": 0.1}, {"countrycode": "BOL", "language": "Ket\u0161ua", "isofficial": "T", "percentage": 8.1}, {"countrycode": "BOL", "language": "Spanish", "isofficial": "T", "percentage": 87.7}, {"countrycode": "BRA", "language": "German", "isofficial": "F", "percentage": 0.5}, {"countrycode": "BRA", "language": "Indian Languages", "isofficial": "F", "percentage": 0.2}, {"countrycode": "BRA", "language": "Italian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Japanese", "isofficial": "F", "percentage": 0.4}, {"countrycode": "BRA", "language": "Portuguese", "isofficial": "T", "percentage": 97.5}, {"countrycode": "BRB", "language": "Bajan", "isofficial": "F", "percentage": 95.1}, {"countrycode": "BRB", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "BRN", "language": "Chinese", "isofficial": "F", "percentage": 9.3}, {"countrycode": "BRN", "language": "English", "isofficial": "F", "percentage": 3.1}, {"countrycode": "BRN", "language": "Malay", "isofficial": "T", "percentage": 45.5}, {"countrycode": "BRN", "language": "Malay-English", "isofficial": "F", "percentage": 28.8}, {"countrycode": "BTN", "language": "Asami", "isofficial": "F", "percentage": 15.2}, {"countrycode": "BTN", "language": "Dzongkha", "isofficial": "T", "percentage": 50.0}, {"countrycode": "BTN", "language": "Nepali", "isofficial": "F", "percentage": 34.8}, {"countrycode": "BWA", "language": "Khoekhoe", "isofficial": "F", "percentage": 2.5}, {"countrycode": "BWA", "language": "Ndebele", "isofficial": "F", "percentage": 1.3}, {"countrycode": "BWA", "language": "San", "isofficial": "F", "percentage": 3.5}, {"countrycode": "BWA", "language": "Shona", "isofficial": "F", "percentage": 12.3}, {"countrycode": "BWA", "language": "Tswana", "isofficial": "F", "percentage": 75.5}, {"countrycode": "CAF", "language": "Banda", "isofficial": "F", "percentage": 23.5}, {"countrycode": "CAF", "language": "Gbaya", "isofficial": "F", "percentage": 23.8}, {"countrycode": "CAF", "language": "Mandjia", "isofficial": "F", "percentage": 14.8}, {"countrycode": "CAF", "language": "Mbum", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAF", "language": "Ngbaka", "isofficial": "F", "percentage": 7.5}, {"countrycode": "CAF", "language": "Sara", "isofficial": "F", "percentage": 6.4}, {"countrycode": "CAN", "language": "Chinese", "isofficial": "F", "percentage": 2.5}, {"countrycode": "CAN", "language": "Dutch", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CAN", "language": "English", "isofficial": "T", "percentage": 60.4}, {"countrycode": "CAN", "language": "Eskimo Languages", "isofficial": "F", "percentage": 0.1}, {"countrycode": "CAN", "language": "French", "isofficial": "T", "percentage": 23.4}, {"countrycode": "CAN", "language": "German", "isofficial": "F", "percentage": 1.6}, {"countrycode": "CAN", "language": "Italian", "isofficial": "F", "percentage": 1.7}, {"countrycode": "CAN", "language": "Polish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Portuguese", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Punjabi", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Spanish", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CAN", "language": "Ukrainian", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CCK", "language": "English", "isofficial": "T", "percentage": 0.0}, {"countrycode": "CCK", "language": "Malay", "isofficial": "F", "percentage": 0.0}, {"countrycode": "CHE", "language": "French", "isofficial": "T", "percentage": 19.2}, {"countrycode": "CHE", "language": "German", "isofficial": "T", "percentage": 63.6}, {"countrycode": "CHE", "language": "Italian", "isofficial": "T", "percentage": 7.7}, {"countrycode": "CHE", "language": "Romansh", "isofficial": "T", "percentage": 0.6}, {"countrycode": "CHL", "language": "Aimar\u00e1", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHL", "language": "Araucan", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CHL", "language": "Rapa nui", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHL", "language": "Spanish", "isofficial": "T", "percentage": 89.7}, {"countrycode": "CHN", "language": "Chinese", "isofficial": "T", "percentage": 92.0}, {"countrycode": "CHN", "language": "Dong", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Hui", "isofficial": "F", "percentage": 0.8}, {"countrycode": "CHN", "language": "Mant\u0161u", "isofficial": "F", "percentage": 0.9}, {"countrycode": "CHN", "language": "Miao", "isofficial": "F", "percentage": 0.7}, {"countrycode": "CHN", "language": "Mongolian", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Puyi", "isofficial": "F", "percentage": 0.2}, {"countrycode": "CHN", "language": "Tibetan", "isofficial": "F", "percentage": 0.4}, {"countrycode": "CHN", "language": "Tujia", "isofficial": "F", "percentage": 0.5}, {"countrycode": "CHN", "language": "Uighur", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Yi", "isofficial": "F", "percentage": 0.6}, {"countrycode": "CHN", "language": "Zhuang", "isofficial": "F", "percentage": 1.4}, {"countrycode": "CIV", "language": "Akan", "isofficial": "F", "percentage": 30.0}, {"countrycode": "CIV", "language": "Gur", "isofficial": "F", "percentage": 11.7}, {"countrycode": "CIV", "language": "Kru", "isofficial": "F", "percentage": 10.5}, {"countrycode": "CIV", "language": "Malinke", "isofficial": "F", "percentage": 11.4}, {"countrycode": "CIV", "language": "[South]Mande", "isofficial": "F", "percentage": 7.7}, {"countrycode": "CMR", "language": "Bamileke-bamum", "isofficial": "F", "percentage": 18.6}, {"countrycode": "CMR", "language": "Duala", "isofficial": "F", "percentage": 10.9}, {"countrycode": "CMR", "language": "Fang", "isofficial": "F", "percentage": 19.7}, {"countrycode": "CMR", "language": "Ful", "isofficial": "F", "percentage": 9.6}, {"countrycode": "CMR", "language": "Maka", "isofficial": "F", "percentage": 4.9}, {"countrycode": "CMR", "language": "Mandara", "isofficial": "F", "percentage": 5.7}, {"countrycode": "CMR", "language": "Masana", "isofficial": "F", "percentage": 3.9}, {"countrycode": "CMR", "language": "Tikar", "isofficial": "F", "percentage": 7.4}, {"countrycode": "COD", "language": "Boa", "isofficial": "F", "percentage": 2.3}, {"countrycode": "COD", "language": "Chokwe", "isofficial": "F", "percentage": 1.8}, {"countrycode": "COD", "language": "Kongo", "isofficial": "F", "percentage": 16.0}, {"countrycode": "COD", "language": "Luba", "isofficial": "F", "percentage": 18.0}, {"countrycode": "COD", "language": "Mongo", "isofficial": "F", "percentage": 13.5}, {"countrycode": "COD", "language": "Ngala and Bangi", "isofficial": "F", "percentage": 5.8}, {"countrycode": "COD", "language": "Rundi", "isofficial": "F", "percentage": 3.8}, {"countrycode": "COD", "language": "Rwanda", "isofficial": "F", "percentage": 10.3}, {"countrycode": "COD", "language": "Teke", "isofficial": "F", "percentage": 2.7}, {"countrycode": "COD", "language": "Zande", "isofficial": "F", "percentage": 6.1}, {"countrycode": "COG", "language": "Kongo", "isofficial": "F", "percentage": 51.5}, {"countrycode": "COG", "language": "Mbete", "isofficial": "F", "percentage": 4.8}, {"countrycode": "COG", "language": "Mboshi", "isofficial": "F", "percentage": 11.4}, {"countrycode": "COG", "language": "Punu", "isofficial": "F", "percentage": 2.9}, {"countrycode": "COG", "language": "Sango", "isofficial": "F", "percentage": 2.6}, {"countrycode": "COG", "language": "Teke", "isofficial": "F", "percentage": 17.3}], "country": [{"code": "ABW", "name": "Aruba", "continent": "North America", "region": "Caribbean", "surfacearea": 193.0, "indepyear": 0, "population": 103000, "lifeexpectancy": 78.4, "gnp": 828.0, "gnpold": 793.0, "localname": "Aruba", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 129, "code2": "AW"}, {"code": "AFG", "name": "Afghanistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 652090.0, "indepyear": 1919, "population": 22720000, "lifeexpectancy": 45.9, "gnp": 5976.0, "gnpold": 0, "localname": "Afganistan/Afqanestan", "governmentform": "Islamic Emirate", "headofstate": "Mohammad Omar", "capital": 1, "code2": "AF"}, {"code": "AGO", "name": "Angola", "continent": "Africa", "region": "Central Africa", "surfacearea": 1246700.0, "indepyear": 1975, "population": 12878000, "lifeexpectancy": 38.3, "gnp": 6648.0, "gnpold": 7984.0, "localname": "Angola", "governmentform": "Republic", "headofstate": "Jos\u00e9 Eduardo dos Santos", "capital": 56, "code2": "AO"}, {"code": "AIA", "name": "Anguilla", "continent": "North America", "region": "Caribbean", "surfacearea": 96.0, "indepyear": 0, "population": 8000, "lifeexpectancy": 76.1, "gnp": 63.2, "gnpold": 0, "localname": "Anguilla", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 62, "code2": "AI"}, {"code": "ALB", "name": "Albania", "continent": "Europe", "region": "Southern Europe", "surfacearea": 28748.0, "indepyear": 1912, "population": 3401200, "lifeexpectancy": 71.6, "gnp": 3205.0, "gnpold": 2500.0, "localname": "Shqip\u00ebria", "governmentform": "Republic", "headofstate": "Rexhep Mejdani", "capital": 34, "code2": "AL"}, {"code": "AND", "name": "Andorra", "continent": "Europe", "region": "Southern Europe", "surfacearea": 468.0, "indepyear": 1278, "population": 78000, "lifeexpectancy": 83.5, "gnp": 1630.0, "gnpold": 0, "localname": "Andorra", "governmentform": "Parliamentary Coprincipality", "headofstate": "", "capital": 55, "code2": "AD"}, {"code": "ANT", "name": "Netherlands Antilles", "continent": "North America", "region": "Caribbean", "surfacearea": 800.0, "indepyear": 0, "population": 217000, "lifeexpectancy": 74.7, "gnp": 1941.0, "gnpold": 0, "localname": "Nederlandse Antillen", "governmentform": "Nonmetropolitan Territory of The Netherlands", "headofstate": "Beatrix", "capital": 33, "code2": "AN"}, {"code": "ARE", "name": "United Arab Emirates", "continent": "Asia", "region": "Middle East", "surfacearea": 83600.0, "indepyear": 1971, "population": 2441000, "lifeexpectancy": 74.1, "gnp": 37966.0, "gnpold": 36846.0, "localname": "Al-Imarat al-\u00b4Arabiya al-Muttahida", "governmentform": "Emirate Federation", "headofstate": "Zayid bin Sultan al-Nahayan", "capital": 65, "code2": "AE"}, {"code": "ARG", "name": "Argentina", "continent": "South America", "region": "South America", "surfacearea": 2780400.0, "indepyear": 1816, "population": 37032000, "lifeexpectancy": 75.1, "gnp": 340238.0, "gnpold": 323310.0, "localname": "Argentina", "governmentform": "Federal Republic", "headofstate": "Fernando de la R\u00faa", "capital": 69, "code2": "AR"}, {"code": "ARM", "name": "Armenia", "continent": "Asia", "region": "Middle East", "surfacearea": 29800.0, "indepyear": 1991, "population": 3520000, "lifeexpectancy": 66.4, "gnp": 1813.0, "gnpold": 1627.0, "localname": "Hajastan", "governmentform": "Republic", "headofstate": "Robert Kot\u0161arjan", "capital": 126, "code2": "AM"}, {"code": "ASM", "name": "American Samoa", "continent": "Oceania", "region": "Polynesia", "surfacearea": 199.0, "indepyear": 0, "population": 68000, "lifeexpectancy": 75.1, "gnp": 334.0, "gnpold": 0, "localname": "Amerika Samoa", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 54, "code2": "AS"}, {"code": "ATA", "name": "Antarctica", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 13120000.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "\u2013", "governmentform": "Co-administrated", "headofstate": "", "capital": 0, "code2": "AQ"}, {"code": "ATF", "name": "French Southern territories", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 7780.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Terres australes fran\u00e7aises", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 0, "code2": "TF"}, {"code": "ATG", "name": "Antigua and Barbuda", "continent": "North America", "region": "Caribbean", "surfacearea": 442.0, "indepyear": 1981, "population": 68000, "lifeexpectancy": 70.5, "gnp": 612.0, "gnpold": 584.0, "localname": "Antigua and Barbuda", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 63, "code2": "AG"}, {"code": "AUS", "name": "Australia", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 7741220.0, "indepyear": 1901, "population": 18886000, "lifeexpectancy": 79.8, "gnp": 351182.0, "gnpold": 392911.0, "localname": "Australia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 135, "code2": "AU"}, {"code": "AUT", "name": "Austria", "continent": "Europe", "region": "Western Europe", "surfacearea": 83859.0, "indepyear": 1918, "population": 8091800, "lifeexpectancy": 77.7, "gnp": 211860.0, "gnpold": 206025.0, "localname": "\u00d6sterreich", "governmentform": "Federal Republic", "headofstate": "Thomas Klestil", "capital": 1523, "code2": "AT"}, {"code": "AZE", "name": "Azerbaijan", "continent": "Asia", "region": "Middle East", "surfacearea": 86600.0, "indepyear": 1991, "population": 7734000, "lifeexpectancy": 62.9, "gnp": 4127.0, "gnpold": 4100.0, "localname": "Az\u00e4rbaycan", "governmentform": "Federal Republic", "headofstate": "Heyd\u00e4r \u00c4liyev", "capital": 144, "code2": "AZ"}, {"code": "BDI", "name": "Burundi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 27834.0, "indepyear": 1962, "population": 6695000, "lifeexpectancy": 46.2, "gnp": 903.0, "gnpold": 982.0, "localname": "Burundi/Uburundi", "governmentform": "Republic", "headofstate": "Pierre Buyoya", "capital": 552, "code2": "BI"}, {"code": "BEL", "name": "Belgium", "continent": "Europe", "region": "Western Europe", "surfacearea": 30518.0, "indepyear": 1830, "population": 10239000, "lifeexpectancy": 77.8, "gnp": 249704.0, "gnpold": 243948.0, "localname": "Belgi\u00eb/Belgique", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Albert II", "capital": 179, "code2": "BE"}, {"code": "BEN", "name": "Benin", "continent": "Africa", "region": "Western Africa", "surfacearea": 112622.0, "indepyear": 1960, "population": 6097000, "lifeexpectancy": 50.2, "gnp": 2357.0, "gnpold": 2141.0, "localname": "B\u00e9nin", "governmentform": "Republic", "headofstate": "Mathieu K\u00e9r\u00e9kou", "capital": 187, "code2": "BJ"}, {"code": "BFA", "name": "Burkina Faso", "continent": "Africa", "region": "Western Africa", "surfacearea": 274000.0, "indepyear": 1960, "population": 11937000, "lifeexpectancy": 46.7, "gnp": 2425.0, "gnpold": 2201.0, "localname": "Burkina Faso", "governmentform": "Republic", "headofstate": "Blaise Compaor\u00e9", "capital": 549, "code2": "BF"}, {"code": "BGD", "name": "Bangladesh", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 143998.0, "indepyear": 1971, "population": 129155000, "lifeexpectancy": 60.2, "gnp": 32852.0, "gnpold": 31966.0, "localname": "Bangladesh", "governmentform": "Republic", "headofstate": "Shahabuddin Ahmad", "capital": 150, "code2": "BD"}, {"code": "BGR", "name": "Bulgaria", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 110994.0, "indepyear": 1908, "population": 8190900, "lifeexpectancy": 70.9, "gnp": 12178.0, "gnpold": 10169.0, "localname": "Balgarija", "governmentform": "Republic", "headofstate": "Petar Stojanov", "capital": 539, "code2": "BG"}, {"code": "BHR", "name": "Bahrain", "continent": "Asia", "region": "Middle East", "surfacearea": 694.0, "indepyear": 1971, "population": 617000, "lifeexpectancy": 73.0, "gnp": 6366.0, "gnpold": 6097.0, "localname": "Al-Bahrayn", "governmentform": "Monarchy (Emirate)", "headofstate": "Hamad ibn Isa al-Khalifa", "capital": 149, "code2": "BH"}, {"code": "BHS", "name": "Bahamas", "continent": "North America", "region": "Caribbean", "surfacearea": 13878.0, "indepyear": 1973, "population": 307000, "lifeexpectancy": 71.1, "gnp": 3527.0, "gnpold": 3347.0, "localname": "The Bahamas", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 148, "code2": "BS"}, {"code": "BIH", "name": "Bosnia and Herzegovina", "continent": "Europe", "region": "Southern Europe", "surfacearea": 51197.0, "indepyear": 1992, "population": 3972000, "lifeexpectancy": 71.5, "gnp": 2841.0, "gnpold": 0, "localname": "Bosna i Hercegovina", "governmentform": "Federal Republic", "headofstate": "Ante Jelavic", "capital": 201, "code2": "BA"}, {"code": "BLR", "name": "Belarus", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 207600.0, "indepyear": 1991, "population": 10236000, "lifeexpectancy": 68.0, "gnp": 13714.0, "gnpold": 0, "localname": "Belarus", "governmentform": "Republic", "headofstate": "Aljaksandr Luka\u0161enka", "capital": 3520, "code2": "BY"}, {"code": "BLZ", "name": "Belize", "continent": "North America", "region": "Central America", "surfacearea": 22696.0, "indepyear": 1981, "population": 241000, "lifeexpectancy": 70.9, "gnp": 630.0, "gnpold": 616.0, "localname": "Belize", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 185, "code2": "BZ"}, {"code": "BMU", "name": "Bermuda", "continent": "North America", "region": "North America", "surfacearea": 53.0, "indepyear": 0, "population": 65000, "lifeexpectancy": 76.9, "gnp": 2328.0, "gnpold": 2190.0, "localname": "Bermuda", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 191, "code2": "BM"}, {"code": "BOL", "name": "Bolivia", "continent": "South America", "region": "South America", "surfacearea": 1098581.0, "indepyear": 1825, "population": 8329000, "lifeexpectancy": 63.7, "gnp": 8571.0, "gnpold": 7967.0, "localname": "Bolivia", "governmentform": "Republic", "headofstate": "Hugo B\u00e1nzer Su\u00e1rez", "capital": 194, "code2": "BO"}, {"code": "BRA", "name": "Brazil", "continent": "South America", "region": "South America", "surfacearea": 8547403.0, "indepyear": 1822, "population": 170115000, "lifeexpectancy": 62.9, "gnp": 776739.0, "gnpold": 804108.0, "localname": "Brasil", "governmentform": "Federal Republic", "headofstate": "Fernando Henrique Cardoso", "capital": 211, "code2": "BR"}, {"code": "BRB", "name": "Barbados", "continent": "North America", "region": "Caribbean", "surfacearea": 430.0, "indepyear": 1966, "population": 270000, "lifeexpectancy": 73.0, "gnp": 2223.0, "gnpold": 2186.0, "localname": "Barbados", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 174, "code2": "BB"}, {"code": "BRN", "name": "Brunei", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 5765.0, "indepyear": 1984, "population": 328000, "lifeexpectancy": 73.6, "gnp": 11705.0, "gnpold": 12460.0, "localname": "Brunei Darussalam", "governmentform": "Monarchy (Sultanate)", "headofstate": "Haji Hassan al-Bolkiah", "capital": 538, "code2": "BN"}, {"code": "BTN", "name": "Bhutan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 47000.0, "indepyear": 1910, "population": 2124000, "lifeexpectancy": 52.4, "gnp": 372.0, "gnpold": 383.0, "localname": "Druk-Yul", "governmentform": "Monarchy", "headofstate": "Jigme Singye Wangchuk", "capital": 192, "code2": "BT"}, {"code": "BVT", "name": "Bouvet Island", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 59.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Bouvet\u00f8ya", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 0, "code2": "BV"}, {"code": "BWA", "name": "Botswana", "continent": "Africa", "region": "Southern Africa", "surfacearea": 581730.0, "indepyear": 1966, "population": 1622000, "lifeexpectancy": 39.3, "gnp": 4834.0, "gnpold": 4935.0, "localname": "Botswana", "governmentform": "Republic", "headofstate": "Festus G. Mogae", "capital": 204, "code2": "BW"}, {"code": "CAF", "name": "Central African Republic", "continent": "Africa", "region": "Central Africa", "surfacearea": 622984.0, "indepyear": 1960, "population": 3615000, "lifeexpectancy": 44.0, "gnp": 1054.0, "gnpold": 993.0, "localname": "Centrafrique/B\u00ea-Afr\u00eeka", "governmentform": "Republic", "headofstate": "Ange-F\u00e9lix Patass\u00e9", "capital": 1889, "code2": "CF"}, {"code": "CAN", "name": "Canada", "continent": "North America", "region": "North America", "surfacearea": 9970610.0, "indepyear": 1867, "population": 31147000, "lifeexpectancy": 79.4, "gnp": 598862.0, "gnpold": 625626.0, "localname": "Canada", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Elisabeth II", "capital": 1822, "code2": "CA"}, {"code": "CCK", "name": "Cocos (Keeling) Islands", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 14.0, "indepyear": 0, "population": 600, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Cocos (Keeling) Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2317, "code2": "CC"}, {"code": "CHE", "name": "Switzerland", "continent": "Europe", "region": "Western Europe", "surfacearea": 41284.0, "indepyear": 1499, "population": 7160400, "lifeexpectancy": 79.6, "gnp": 264478.0, "gnpold": 256092.0, "localname": "Schweiz/Suisse/Svizzera/Svizra", "governmentform": "Federation", "headofstate": "Adolf Ogi", "capital": 3248, "code2": "CH"}, {"code": "CHL", "name": "Chile", "continent": "South America", "region": "South America", "surfacearea": 756626.0, "indepyear": 1810, "population": 15211000, "lifeexpectancy": 75.7, "gnp": 72949.0, "gnpold": 75780.0, "localname": "Chile", "governmentform": "Republic", "headofstate": "Ricardo Lagos Escobar", "capital": 554, "code2": "CL"}, {"code": "CHN", "name": "China", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 9572900.0, "indepyear": -1523, "population": 1277558000, "lifeexpectancy": 71.4, "gnp": 982268.0, "gnpold": 917719.0, "localname": "Zhongquo", "governmentform": "People'sRepublic", "headofstate": "Jiang Zemin", "capital": 1891, "code2": "CN"}, {"code": "CIV", "name": "C\u00f4te d\u2019Ivoire", "continent": "Africa", "region": "Western Africa", "surfacearea": 322463.0, "indepyear": 1960, "population": 14786000, "lifeexpectancy": 45.2, "gnp": 11345.0, "gnpold": 10285.0, "localname": "C\u00f4te d\u2019Ivoire", "governmentform": "Republic", "headofstate": "Laurent Gbagbo", "capital": 2814, "code2": "CI"}, {"code": "CMR", "name": "Cameroon", "continent": "Africa", "region": "Central Africa", "surfacearea": 475442.0, "indepyear": 1960, "population": 15085000, "lifeexpectancy": 54.8, "gnp": 9174.0, "gnpold": 8596.0, "localname": "Cameroun/Cameroon", "governmentform": "Republic", "headofstate": "Paul Biya", "capital": 1804, "code2": "CM"}, {"code": "COD", "name": "Congo, The Democratic Republic of the", "continent": "Africa", "region": "Central Africa", "surfacearea": 2344858.0, "indepyear": 1960, "population": 51654000, "lifeexpectancy": 48.8, "gnp": 6964.0, "gnpold": 2474.0, "localname": "R\u00e9publique D\u00e9mocratique du Congo", "governmentform": "Republic", "headofstate": "Joseph Kabila", "capital": 2298, "code2": "CD"}, {"code": "COG", "name": "Congo", "continent": "Africa", "region": "Central Africa", "surfacearea": 342000.0, "indepyear": 1960, "population": 2943000, "lifeexpectancy": 47.4, "gnp": 2108.0, "gnpold": 2287.0, "localname": "Congo", "governmentform": "Republic", "headofstate": "Denis Sassou-Nguesso", "capital": 2296, "code2": "CG"}, {"code": "COK", "name": "Cook Islands", "continent": "Oceania", "region": "Polynesia", "surfacearea": 236.0, "indepyear": 0, "population": 20000, "lifeexpectancy": 71.1, "gnp": 100.0, "gnpold": 0, "localname": "The Cook Islands", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 583, "code2": "CK"}, {"code": "COL", "name": "Colombia", "continent": "South America", "region": "South America", "surfacearea": 1138914.0, "indepyear": 1810, "population": 42321000, "lifeexpectancy": 70.3, "gnp": 102896.0, "gnpold": 105116.0, "localname": "Colombia", "governmentform": "Republic", "headofstate": "Andr\u00e9s Pastrana Arango", "capital": 2257, "code2": "CO"}, {"code": "COM", "name": "Comoros", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1862.0, "indepyear": 1975, "population": 578000, "lifeexpectancy": 60.0, "gnp": 4401.0, "gnpold": 4361.0, "localname": "Komori/Comores", "governmentform": "Republic", "headofstate": "Azali Assoumani", "capital": 2295, "code2": "KM"}, {"code": "CPV", "name": "Cape Verde", "continent": "Africa", "region": "Western Africa", "surfacearea": 4033.0, "indepyear": 1975, "population": 428000, "lifeexpectancy": 68.9, "gnp": 435.0, "gnpold": 420.0, "localname": "Cabo Verde", "governmentform": "Republic", "headofstate": "Ant\u00f3nio Mascarenhas Monteiro", "capital": 1859, "code2": "CV"}, {"code": "CRI", "name": "Costa Rica", "continent": "North America", "region": "Central America", "surfacearea": 51100.0, "indepyear": 1821, "population": 4023000, "lifeexpectancy": 75.8, "gnp": 10226.0, "gnpold": 9757.0, "localname": "Costa Rica", "governmentform": "Republic", "headofstate": "Miguel \u00c1ngel Rodr\u00edguez Echeverr\u00eda", "capital": 584, "code2": "CR"}, {"code": "CUB", "name": "Cuba", "continent": "North America", "region": "Caribbean", "surfacearea": 110861.0, "indepyear": 1902, "population": 11201000, "lifeexpectancy": 76.2, "gnp": 17843.0, "gnpold": 18862.0, "localname": "Cuba", "governmentform": "Socialistic Republic", "headofstate": "Fidel Castro Ruz", "capital": 2413, "code2": "CU"}, {"code": "CXR", "name": "Christmas Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 135.0, "indepyear": 0, "population": 2500, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Christmas Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 1791, "code2": "CX"}, {"code": "CYM", "name": "Cayman Islands", "continent": "North America", "region": "Caribbean", "surfacearea": 264.0, "indepyear": 0, "population": 38000, "lifeexpectancy": 78.9, "gnp": 1263.0, "gnpold": 1186.0, "localname": "Cayman Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 553, "code2": "KY"}, {"code": "CYP", "name": "Cyprus", "continent": "Asia", "region": "Middle East", "surfacearea": 9251.0, "indepyear": 1960, "population": 754700, "lifeexpectancy": 76.7, "gnp": 9333.0, "gnpold": 8246.0, "localname": "K\u00fdpros/Kibris", "governmentform": "Republic", "headofstate": "Glafkos Klerides", "capital": 2430, "code2": "CY"}, {"code": "CZE", "name": "Czech Republic", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 78866.0, "indepyear": 1993, "population": 10278100, "lifeexpectancy": 74.5, "gnp": 55017.0, "gnpold": 52037.0, "localname": "\u00b8esko", "governmentform": "Republic", "headofstate": "V\u00e1clav Havel", "capital": 3339, "code2": "CZ"}, {"code": "DEU", "name": "Germany", "continent": "Europe", "region": "Western Europe", "surfacearea": 357022.0, "indepyear": 1955, "population": 82164700, "lifeexpectancy": 77.4, "gnp": 2133367.0, "gnpold": 2102826.0, "localname": "Deutschland", "governmentform": "Federal Republic", "headofstate": "Johannes Rau", "capital": 3068, "code2": "DE"}, {"code": "DJI", "name": "Djibouti", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 23200.0, "indepyear": 1977, "population": 638000, "lifeexpectancy": 50.8, "gnp": 382.0, "gnpold": 373.0, "localname": "Djibouti/Jibuti", "governmentform": "Republic", "headofstate": "Ismail Omar Guelleh", "capital": 585, "code2": "DJ"}, {"code": "DMA", "name": "Dominica", "continent": "North America", "region": "Caribbean", "surfacearea": 751.0, "indepyear": 1978, "population": 71000, "lifeexpectancy": 73.4, "gnp": 256.0, "gnpold": 243.0, "localname": "Dominica", "governmentform": "Republic", "headofstate": "Vernon Shaw", "capital": 586, "code2": "DM"}, {"code": "DNK", "name": "Denmark", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 43094.0, "indepyear": 800, "population": 5330000, "lifeexpectancy": 76.5, "gnp": 174099.0, "gnpold": 169264.0, "localname": "Danmark", "governmentform": "Constitutional Monarchy", "headofstate": "Margrethe II", "capital": 3315, "code2": "DK"}, {"code": "DOM", "name": "Dominican Republic", "continent": "North America", "region": "Caribbean", "surfacearea": 48511.0, "indepyear": 1844, "population": 8495000, "lifeexpectancy": 73.2, "gnp": 15846.0, "gnpold": 15076.0, "localname": "Rep\u00fablica Dominicana", "governmentform": "Republic", "headofstate": "Hip\u00f3lito Mej\u00eda Dom\u00ednguez", "capital": 587, "code2": "DO"}, {"code": "DZA", "name": "Algeria", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2381741.0, "indepyear": 1962, "population": 31471000, "lifeexpectancy": 69.7, "gnp": 49982.0, "gnpold": 46966.0, "localname": "Al-Jaza\u2019ir/Alg\u00e9rie", "governmentform": "Republic", "headofstate": "Abdelaziz Bouteflika", "capital": 35, "code2": "DZ"}, {"code": "ECU", "name": "Ecuador", "continent": "South America", "region": "South America", "surfacearea": 283561.0, "indepyear": 1822, "population": 12646000, "lifeexpectancy": 71.1, "gnp": 19770.0, "gnpold": 19769.0, "localname": "Ecuador", "governmentform": "Republic", "headofstate": "Gustavo Noboa Bejarano", "capital": 594, "code2": "EC"}, {"code": "EGY", "name": "Egypt", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1001449.0, "indepyear": 1922, "population": 68470000, "lifeexpectancy": 63.3, "gnp": 82710.0, "gnpold": 75617.0, "localname": "Misr", "governmentform": "Republic", "headofstate": "Hosni Mubarak", "capital": 608, "code2": "EG"}, {"code": "ERI", "name": "Eritrea", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 117600.0, "indepyear": 1993, "population": 3850000, "lifeexpectancy": 55.8, "gnp": 650.0, "gnpold": 755.0, "localname": "Ertra", "governmentform": "Republic", "headofstate": "Isayas Afewerki [Isaias Afwerki]", "capital": 652, "code2": "ER"}, {"code": "ESH", "name": "Western Sahara", "continent": "Africa", "region": "Northern Africa", "surfacearea": 266000.0, "indepyear": 0, "population": 293000, "lifeexpectancy": 49.8, "gnp": 60.0, "gnpold": 0, "localname": "As-Sahrawiya", "governmentform": "Occupied by Marocco", "headofstate": "Mohammed Abdel Aziz", "capital": 2453, "code2": "EH"}, {"code": "ESP", "name": "Spain", "continent": "Europe", "region": "Southern Europe", "surfacearea": 505992.0, "indepyear": 1492, "population": 39441700, "lifeexpectancy": 78.8, "gnp": 553233.0, "gnpold": 532031.0, "localname": "Espa\u00f1a", "governmentform": "Constitutional Monarchy", "headofstate": "Juan Carlos I", "capital": 653, "code2": "ES"}, {"code": "EST", "name": "Estonia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 45227.0, "indepyear": 1991, "population": 1439200, "lifeexpectancy": 69.5, "gnp": 5328.0, "gnpold": 3371.0, "localname": "Eesti", "governmentform": "Republic", "headofstate": "Lennart Meri", "capital": 3791, "code2": "EE"}, {"code": "ETH", "name": "Ethiopia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 1104300.0, "indepyear": -1000, "population": 62565000, "lifeexpectancy": 45.2, "gnp": 6353.0, "gnpold": 6180.0, "localname": "YeItyop\u00b4iya", "governmentform": "Republic", "headofstate": "Negasso Gidada", "capital": 756, "code2": "ET"}, {"code": "FIN", "name": "Finland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 338145.0, "indepyear": 1917, "population": 5171300, "lifeexpectancy": 77.4, "gnp": 121914.0, "gnpold": 119833.0, "localname": "Suomi", "governmentform": "Republic", "headofstate": "Tarja Halonen", "capital": 3236, "code2": "FI"}, {"code": "FJI", "name": "Fiji Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18274.0, "indepyear": 1970, "population": 817000, "lifeexpectancy": 67.9, "gnp": 1536.0, "gnpold": 2149.0, "localname": "Fiji Islands", "governmentform": "Republic", "headofstate": "Josefa Iloilo", "capital": 764, "code2": "FJ"}, {"code": "FLK", "name": "Falkland Islands", "continent": "South America", "region": "South America", "surfacearea": 12173.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Falkland Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 763, "code2": "FK"}, {"code": "FRA", "name": "France", "continent": "Europe", "region": "Western Europe", "surfacearea": 551500.0, "indepyear": 843, "population": 59225700, "lifeexpectancy": 78.8, "gnp": 1424285.0, "gnpold": 1392448.0, "localname": "France", "governmentform": "Republic", "headofstate": "Jacques Chirac", "capital": 2974, "code2": "FR"}, {"code": "FRO", "name": "Faroe Islands", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 1399.0, "indepyear": 0, "population": 43000, "lifeexpectancy": 78.4, "gnp": 0.0, "gnpold": 0, "localname": "F\u00f8royar", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 901, "code2": "FO"}, {"code": "FSM", "name": "Micronesia, Federated States of", "continent": "Oceania", "region": "Micronesia", "surfacearea": 702.0, "indepyear": 1990, "population": 119000, "lifeexpectancy": 68.6, "gnp": 212.0, "gnpold": 0, "localname": "Micronesia", "governmentform": "Federal Republic", "headofstate": "Leo A. Falcam", "capital": 2689, "code2": "FM"}, {"code": "GAB", "name": "Gabon", "continent": "Africa", "region": "Central Africa", "surfacearea": 267668.0, "indepyear": 1960, "population": 1226000, "lifeexpectancy": 50.1, "gnp": 5493.0, "gnpold": 5279.0, "localname": "Le Gabon", "governmentform": "Republic", "headofstate": "Omar Bongo", "capital": 902, "code2": "GA"}, {"code": "GBR", "name": "United Kingdom", "continent": "Europe", "region": "British Islands", "surfacearea": 242900.0, "indepyear": 1066, "population": 59623400, "lifeexpectancy": 77.7, "gnp": 1378330.0, "gnpold": 1296830.0, "localname": "United Kingdom", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 456, "code2": "GB"}, {"code": "GEO", "name": "Georgia", "continent": "Asia", "region": "Middle East", "surfacearea": 69700.0, "indepyear": 1991, "population": 4968000, "lifeexpectancy": 64.5, "gnp": 6064.0, "gnpold": 5924.0, "localname": "Sakartvelo", "governmentform": "Republic", "headofstate": "Eduard \u0160evardnadze", "capital": 905, "code2": "GE"}, {"code": "GHA", "name": "Ghana", "continent": "Africa", "region": "Western Africa", "surfacearea": 238533.0, "indepyear": 1957, "population": 20212000, "lifeexpectancy": 57.4, "gnp": 7137.0, "gnpold": 6884.0, "localname": "Ghana", "governmentform": "Republic", "headofstate": "John Kufuor", "capital": 910, "code2": "GH"}, {"code": "GIB", "name": "Gibraltar", "continent": "Europe", "region": "Southern Europe", "surfacearea": 6.0, "indepyear": 0, "population": 25000, "lifeexpectancy": 79.0, "gnp": 258.0, "gnpold": 0, "localname": "Gibraltar", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 915, "code2": "GI"}, {"code": "GIN", "name": "Guinea", "continent": "Africa", "region": "Western Africa", "surfacearea": 245857.0, "indepyear": 1958, "population": 7430000, "lifeexpectancy": 45.6, "gnp": 2352.0, "gnpold": 2383.0, "localname": "Guin\u00e9e", "governmentform": "Republic", "headofstate": "Lansana Cont\u00e9", "capital": 926, "code2": "GN"}, {"code": "GLP", "name": "Guadeloupe", "continent": "North America", "region": "Caribbean", "surfacearea": 1705.0, "indepyear": 0, "population": 456000, "lifeexpectancy": 77.0, "gnp": 3501.0, "gnpold": 0, "localname": "Guadeloupe", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 919, "code2": "GP"}, {"code": "GMB", "name": "Gambia", "continent": "Africa", "region": "Western Africa", "surfacearea": 11295.0, "indepyear": 1965, "population": 1305000, "lifeexpectancy": 53.2, "gnp": 320.0, "gnpold": 325.0, "localname": "The Gambia", "governmentform": "Republic", "headofstate": "Yahya Jammeh", "capital": 904, "code2": "GM"}, {"code": "GNB", "name": "Guinea-Bissau", "continent": "Africa", "region": "Western Africa", "surfacearea": 36125.0, "indepyear": 1974, "population": 1213000, "lifeexpectancy": 49.0, "gnp": 293.0, "gnpold": 272.0, "localname": "Guin\u00e9-Bissau", "governmentform": "Republic", "headofstate": "Kumba Ial\u00e1", "capital": 927, "code2": "GW"}, {"code": "GNQ", "name": "Equatorial Guinea", "continent": "Africa", "region": "Central Africa", "surfacearea": 28051.0, "indepyear": 1968, "population": 453000, "lifeexpectancy": 53.6, "gnp": 283.0, "gnpold": 542.0, "localname": "Guinea Ecuatorial", "governmentform": "Republic", "headofstate": "Teodoro Obiang Nguema Mbasogo", "capital": 2972, "code2": "GQ"}, {"code": "GRC", "name": "Greece", "continent": "Europe", "region": "Southern Europe", "surfacearea": 131626.0, "indepyear": 1830, "population": 10545700, "lifeexpectancy": 78.4, "gnp": 120724.0, "gnpold": 119946.0, "localname": "Ell\u00e1da", "governmentform": "Republic", "headofstate": "Kostis Stefanopoulos", "capital": 2401, "code2": "GR"}, {"code": "GRD", "name": "Grenada", "continent": "North America", "region": "Caribbean", "surfacearea": 344.0, "indepyear": 1974, "population": 94000, "lifeexpectancy": 64.5, "gnp": 318.0, "gnpold": 0, "localname": "Grenada", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 916, "code2": "GD"}, {"code": "GRL", "name": "Greenland", "continent": "North America", "region": "North America", "surfacearea": 2166090.0, "indepyear": 0, "population": 56000, "lifeexpectancy": 68.1, "gnp": 0.0, "gnpold": 0, "localname": "Kalaallit Nunaat/Gr\u00f8nland", "governmentform": "Part of Denmark", "headofstate": "Margrethe II", "capital": 917, "code2": "GL"}, {"code": "GTM", "name": "Guatemala", "continent": "North America", "region": "Central America", "surfacearea": 108889.0, "indepyear": 1821, "population": 11385000, "lifeexpectancy": 66.2, "gnp": 19008.0, "gnpold": 17797.0, "localname": "Guatemala", "governmentform": "Republic", "headofstate": "Alfonso Portillo Cabrera", "capital": 922, "code2": "GT"}, {"code": "GUF", "name": "French Guiana", "continent": "South America", "region": "South America", "surfacearea": 90000.0, "indepyear": 0, "population": 181000, "lifeexpectancy": 76.1, "gnp": 681.0, "gnpold": 0, "localname": "Guyane fran\u00e7aise", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3014, "code2": "GF"}, {"code": "GUM", "name": "Guam", "continent": "Oceania", "region": "Micronesia", "surfacearea": 549.0, "indepyear": 0, "population": 168000, "lifeexpectancy": 77.8, "gnp": 1197.0, "gnpold": 1136.0, "localname": "Guam", "governmentform": "US Territory", "headofstate": "George W. Bush", "capital": 921, "code2": "GU"}, {"code": "GUY", "name": "Guyana", "continent": "South America", "region": "South America", "surfacearea": 214969.0, "indepyear": 1966, "population": 861000, "lifeexpectancy": 64.0, "gnp": 722.0, "gnpold": 743.0, "localname": "Guyana", "governmentform": "Republic", "headofstate": "Bharrat Jagdeo", "capital": 928, "code2": "GY"}, {"code": "HKG", "name": "Hong Kong", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1075.0, "indepyear": 0, "population": 6782000, "lifeexpectancy": 79.5, "gnp": 166448.0, "gnpold": 173610.0, "localname": "Xianggang/Hong Kong", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 937, "code2": "HK"}, {"code": "HMD", "name": "Heard Island and McDonald Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 359.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Heard and McDonald Islands", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 0, "code2": "HM"}, {"code": "HND", "name": "Honduras", "continent": "North America", "region": "Central America", "surfacearea": 112088.0, "indepyear": 1838, "population": 6485000, "lifeexpectancy": 69.9, "gnp": 5333.0, "gnpold": 4697.0, "localname": "Honduras", "governmentform": "Republic", "headofstate": "Carlos Roberto Flores Facuss\u00e9", "capital": 933, "code2": "HN"}, {"code": "HRV", "name": "Croatia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 56538.0, "indepyear": 1991, "population": 4473000, "lifeexpectancy": 73.7, "gnp": 20208.0, "gnpold": 19300.0, "localname": "Hrvatska", "governmentform": "Republic", "headofstate": "\u0160tipe Mesic", "capital": 2409, "code2": "HR"}, {"code": "HTI", "name": "Haiti", "continent": "North America", "region": "Caribbean", "surfacearea": 27750.0, "indepyear": 1804, "population": 8222000, "lifeexpectancy": 49.2, "gnp": 3459.0, "gnpold": 3107.0, "localname": "Ha\u00efti/Dayti", "governmentform": "Republic", "headofstate": "Jean-Bertrand Aristide", "capital": 929, "code2": "HT"}, {"code": "HUN", "name": "Hungary", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 93030.0, "indepyear": 1918, "population": 10043200, "lifeexpectancy": 71.4, "gnp": 48267.0, "gnpold": 45914.0, "localname": "Magyarorsz\u00e1g", "governmentform": "Republic", "headofstate": "Ferenc M\u00e1dl", "capital": 3483, "code2": "HU"}, {"code": "IDN", "name": "Indonesia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 1904569.0, "indepyear": 1945, "population": 212107000, "lifeexpectancy": 68.0, "gnp": 84982.0, "gnpold": 215002.0, "localname": "Indonesia", "governmentform": "Republic", "headofstate": "Abdurrahman Wahid", "capital": 939, "code2": "ID"}, {"code": "IND", "name": "India", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 3287263.0, "indepyear": 1947, "population": 1013662000, "lifeexpectancy": 62.5, "gnp": 447114.0, "gnpold": 430572.0, "localname": "Bharat/India", "governmentform": "Federal Republic", "headofstate": "Kocheril Raman Narayanan", "capital": 1109, "code2": "IN"}, {"code": "IOT", "name": "British Indian Ocean Territory", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 78.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "British Indian Ocean Territory", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "IO"}, {"code": "IRL", "name": "Ireland", "continent": "Europe", "region": "British Islands", "surfacearea": 70273.0, "indepyear": 1921, "population": 3775100, "lifeexpectancy": 76.8, "gnp": 75921.0, "gnpold": 73132.0, "localname": "Ireland/\u00c9ire", "governmentform": "Republic", "headofstate": "Mary McAleese", "capital": 1447, "code2": "IE"}, {"code": "IRN", "name": "Iran", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 1648195.0, "indepyear": 1906, "population": 67702000, "lifeexpectancy": 69.7, "gnp": 195746.0, "gnpold": 160151.0, "localname": "Iran", "governmentform": "Islamic Republic", "headofstate": "Ali Mohammad Khatami-Ardakani", "capital": 1380, "code2": "IR"}, {"code": "IRQ", "name": "Iraq", "continent": "Asia", "region": "Middle East", "surfacearea": 438317.0, "indepyear": 1932, "population": 23115000, "lifeexpectancy": 66.5, "gnp": 11500.0, "gnpold": 0, "localname": "Al-\u00b4Iraq", "governmentform": "Republic", "headofstate": "Saddam Hussein al-Takriti", "capital": 1365, "code2": "IQ"}, {"code": "ISL", "name": "Iceland", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 103000.0, "indepyear": 1944, "population": 279000, "lifeexpectancy": 79.4, "gnp": 8255.0, "gnpold": 7474.0, "localname": "\u00cdsland", "governmentform": "Republic", "headofstate": "\u00d3lafur Ragnar Gr\u00edmsson", "capital": 1449, "code2": "IS"}, {"code": "ISR", "name": "Israel", "continent": "Asia", "region": "Middle East", "surfacearea": 21056.0, "indepyear": 1948, "population": 6217000, "lifeexpectancy": 78.6, "gnp": 97477.0, "gnpold": 98577.0, "localname": "Yisra\u2019el/Isra\u2019il", "governmentform": "Republic", "headofstate": "Moshe Katzav", "capital": 1450, "code2": "IL"}, {"code": "ITA", "name": "Italy", "continent": "Europe", "region": "Southern Europe", "surfacearea": 301316.0, "indepyear": 1861, "population": 57680000, "lifeexpectancy": 79.0, "gnp": 1161755.0, "gnpold": 1145372.0, "localname": "Italia", "governmentform": "Republic", "headofstate": "Carlo Azeglio Ciampi", "capital": 1464, "code2": "IT"}, {"code": "JAM", "name": "Jamaica", "continent": "North America", "region": "Caribbean", "surfacearea": 10990.0, "indepyear": 1962, "population": 2583000, "lifeexpectancy": 75.2, "gnp": 6871.0, "gnpold": 6722.0, "localname": "Jamaica", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 1530, "code2": "JM"}, {"code": "JOR", "name": "Jordan", "continent": "Asia", "region": "Middle East", "surfacearea": 88946.0, "indepyear": 1946, "population": 5083000, "lifeexpectancy": 77.4, "gnp": 7526.0, "gnpold": 7051.0, "localname": "Al-Urdunn", "governmentform": "Constitutional Monarchy", "headofstate": "Abdullah II", "capital": 1786, "code2": "JO"}, {"code": "JPN", "name": "Japan", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 377829.0, "indepyear": -660, "population": 126714000, "lifeexpectancy": 80.7, "gnp": 3787042.0, "gnpold": 4192638.0, "localname": "Nihon/Nippon", "governmentform": "Constitutional Monarchy", "headofstate": "Akihito", "capital": 1532, "code2": "JP"}, {"code": "KAZ", "name": "Kazakstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 2724900.0, "indepyear": 1991, "population": 16223000, "lifeexpectancy": 63.2, "gnp": 24375.0, "gnpold": 23383.0, "localname": "Qazaqstan", "governmentform": "Republic", "headofstate": "Nursultan Nazarbajev", "capital": 1864, "code2": "KZ"}, {"code": "KEN", "name": "Kenya", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 580367.0, "indepyear": 1963, "population": 30080000, "lifeexpectancy": 48.0, "gnp": 9217.0, "gnpold": 10241.0, "localname": "Kenya", "governmentform": "Republic", "headofstate": "Daniel arap Moi", "capital": 1881, "code2": "KE"}, {"code": "KGZ", "name": "Kyrgyzstan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 199900.0, "indepyear": 1991, "population": 4699000, "lifeexpectancy": 63.4, "gnp": 1626.0, "gnpold": 1767.0, "localname": "Kyrgyzstan", "governmentform": "Republic", "headofstate": "Askar Akajev", "capital": 2253, "code2": "KG"}, {"code": "KHM", "name": "Cambodia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 181035.0, "indepyear": 1953, "population": 11168000, "lifeexpectancy": 56.5, "gnp": 5121.0, "gnpold": 5670.0, "localname": "K\u00e2mpuch\u00e9a", "governmentform": "Constitutional Monarchy", "headofstate": "Norodom Sihanouk", "capital": 1800, "code2": "KH"}, {"code": "KIR", "name": "Kiribati", "continent": "Oceania", "region": "Micronesia", "surfacearea": 726.0, "indepyear": 1979, "population": 83000, "lifeexpectancy": 59.8, "gnp": 40.7, "gnpold": 0, "localname": "Kiribati", "governmentform": "Republic", "headofstate": "Teburoro Tito", "capital": 2256, "code2": "KI"}, {"code": "KNA", "name": "Saint Kitts and Nevis", "continent": "North America", "region": "Caribbean", "surfacearea": 261.0, "indepyear": 1983, "population": 38000, "lifeexpectancy": 70.7, "gnp": 299.0, "gnpold": 0, "localname": "Saint Kitts and Nevis", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3064, "code2": "KN"}, {"code": "KOR", "name": "South Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 99434.0, "indepyear": 1948, "population": 46844000, "lifeexpectancy": 74.4, "gnp": 320749.0, "gnpold": 442544.0, "localname": "Taehan Min\u2019guk (Namhan)", "governmentform": "Republic", "headofstate": "Kim Dae-jung", "capital": 2331, "code2": "KR"}, {"code": "KWT", "name": "Kuwait", "continent": "Asia", "region": "Middle East", "surfacearea": 17818.0, "indepyear": 1961, "population": 1972000, "lifeexpectancy": 76.1, "gnp": 27037.0, "gnpold": 30373.0, "localname": "Al-Kuwayt", "governmentform": "Constitutional Monarchy (Emirate)", "headofstate": "Jabir al-Ahmad al-Jabir al-Sabah", "capital": 2429, "code2": "KW"}, {"code": "LAO", "name": "Laos", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 236800.0, "indepyear": 1953, "population": 5433000, "lifeexpectancy": 53.1, "gnp": 1292.0, "gnpold": 1746.0, "localname": "Lao", "governmentform": "Republic", "headofstate": "Khamtay Siphandone", "capital": 2432, "code2": "LA"}, {"code": "LBN", "name": "Lebanon", "continent": "Asia", "region": "Middle East", "surfacearea": 10400.0, "indepyear": 1941, "population": 3282000, "lifeexpectancy": 71.3, "gnp": 17121.0, "gnpold": 15129.0, "localname": "Lubnan", "governmentform": "Republic", "headofstate": "\u00c9mile Lahoud", "capital": 2438, "code2": "LB"}, {"code": "LBR", "name": "Liberia", "continent": "Africa", "region": "Western Africa", "surfacearea": 111369.0, "indepyear": 1847, "population": 3154000, "lifeexpectancy": 51.0, "gnp": 2012.0, "gnpold": 0, "localname": "Liberia", "governmentform": "Republic", "headofstate": "Charles Taylor", "capital": 2440, "code2": "LR"}, {"code": "LBY", "name": "Libyan Arab Jamahiriya", "continent": "Africa", "region": "Northern Africa", "surfacearea": 1759540.0, "indepyear": 1951, "population": 5605000, "lifeexpectancy": 75.5, "gnp": 44806.0, "gnpold": 40562.0, "localname": "Libiya", "governmentform": "Socialistic State", "headofstate": "Muammar al-Qadhafi", "capital": 2441, "code2": "LY"}, {"code": "LCA", "name": "Saint Lucia", "continent": "North America", "region": "Caribbean", "surfacearea": 622.0, "indepyear": 1979, "population": 154000, "lifeexpectancy": 72.3, "gnp": 571.0, "gnpold": 0, "localname": "Saint Lucia", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3065, "code2": "LC"}, {"code": "LIE", "name": "Liechtenstein", "continent": "Europe", "region": "Western Europe", "surfacearea": 160.0, "indepyear": 1806, "population": 32300, "lifeexpectancy": 78.8, "gnp": 1119.0, "gnpold": 1084.0, "localname": "Liechtenstein", "governmentform": "Constitutional Monarchy", "headofstate": "Hans-Adam II", "capital": 2446, "code2": "LI"}, {"code": "LKA", "name": "Sri Lanka", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 65610.0, "indepyear": 1948, "population": 18827000, "lifeexpectancy": 71.8, "gnp": 15706.0, "gnpold": 15091.0, "localname": "Sri Lanka/Ilankai", "governmentform": "Republic", "headofstate": "Chandrika Kumaratunga", "capital": 3217, "code2": "LK"}, {"code": "LSO", "name": "Lesotho", "continent": "Africa", "region": "Southern Africa", "surfacearea": 30355.0, "indepyear": 1966, "population": 2153000, "lifeexpectancy": 50.8, "gnp": 1061.0, "gnpold": 1161.0, "localname": "Lesotho", "governmentform": "Constitutional Monarchy", "headofstate": "Letsie III", "capital": 2437, "code2": "LS"}, {"code": "LTU", "name": "Lithuania", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 65301.0, "indepyear": 1991, "population": 3698500, "lifeexpectancy": 69.1, "gnp": 10692.0, "gnpold": 9585.0, "localname": "Lietuva", "governmentform": "Republic", "headofstate": "Valdas Adamkus", "capital": 2447, "code2": "LT"}, {"code": "LUX", "name": "Luxembourg", "continent": "Europe", "region": "Western Europe", "surfacearea": 2586.0, "indepyear": 1867, "population": 435700, "lifeexpectancy": 77.1, "gnp": 16321.0, "gnpold": 15519.0, "localname": "Luxembourg/L\u00ebtzebuerg", "governmentform": "Constitutional Monarchy", "headofstate": "Henri", "capital": 2452, "code2": "LU"}, {"code": "LVA", "name": "Latvia", "continent": "Europe", "region": "Baltic Countries", "surfacearea": 64589.0, "indepyear": 1991, "population": 2424200, "lifeexpectancy": 68.4, "gnp": 6398.0, "gnpold": 5639.0, "localname": "Latvija", "governmentform": "Republic", "headofstate": "Vaira Vike-Freiberga", "capital": 2434, "code2": "LV"}, {"code": "MAC", "name": "Macao", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 18.0, "indepyear": 0, "population": 473000, "lifeexpectancy": 81.6, "gnp": 5749.0, "gnpold": 5940.0, "localname": "Macau/Aomen", "governmentform": "Special Administrative Region of China", "headofstate": "Jiang Zemin", "capital": 2454, "code2": "MO"}, {"code": "MAR", "name": "Morocco", "continent": "Africa", "region": "Northern Africa", "surfacearea": 446550.0, "indepyear": 1956, "population": 28351000, "lifeexpectancy": 69.1, "gnp": 36124.0, "gnpold": 33514.0, "localname": "Al-Maghrib", "governmentform": "Constitutional Monarchy", "headofstate": "Mohammed VI", "capital": 2486, "code2": "MA"}, {"code": "MCO", "name": "Monaco", "continent": "Europe", "region": "Western Europe", "surfacearea": 1.5, "indepyear": 1861, "population": 34000, "lifeexpectancy": 78.8, "gnp": 776.0, "gnpold": 0, "localname": "Monaco", "governmentform": "Constitutional Monarchy", "headofstate": "Rainier III", "capital": 2695, "code2": "MC"}, {"code": "MDA", "name": "Moldova", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 33851.0, "indepyear": 1991, "population": 4380000, "lifeexpectancy": 64.5, "gnp": 1579.0, "gnpold": 1872.0, "localname": "Moldova", "governmentform": "Republic", "headofstate": "Vladimir Voronin", "capital": 2690, "code2": "MD"}, {"code": "MDG", "name": "Madagascar", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 587041.0, "indepyear": 1960, "population": 15942000, "lifeexpectancy": 55.0, "gnp": 3750.0, "gnpold": 3545.0, "localname": "Madagasikara/Madagascar", "governmentform": "Federal Republic", "headofstate": "Didier Ratsiraka", "capital": 2455, "code2": "MG"}, {"code": "MDV", "name": "Maldives", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 298.0, "indepyear": 1965, "population": 286000, "lifeexpectancy": 62.2, "gnp": 199.0, "gnpold": 0, "localname": "Dhivehi Raajje/Maldives", "governmentform": "Republic", "headofstate": "Maumoon Abdul Gayoom", "capital": 2463, "code2": "MV"}, {"code": "MEX", "name": "Mexico", "continent": "North America", "region": "Central America", "surfacearea": 1958201.0, "indepyear": 1810, "population": 98881000, "lifeexpectancy": 71.5, "gnp": 414972.0, "gnpold": 401461.0, "localname": "M\u00e9xico", "governmentform": "Federal Republic", "headofstate": "Vicente Fox Quesada", "capital": 2515, "code2": "MX"}, {"code": "MHL", "name": "Marshall Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 181.0, "indepyear": 1990, "population": 64000, "lifeexpectancy": 65.5, "gnp": 97.0, "gnpold": 0, "localname": "Marshall Islands/Majol", "governmentform": "Republic", "headofstate": "Kessai Note", "capital": 2507, "code2": "MH"}, {"code": "MKD", "name": "Macedonia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 25713.0, "indepyear": 1991, "population": 2024000, "lifeexpectancy": 73.8, "gnp": 1694.0, "gnpold": 1915.0, "localname": "Makedonija", "governmentform": "Republic", "headofstate": "Boris Trajkovski", "capital": 2460, "code2": "MK"}, {"code": "MLI", "name": "Mali", "continent": "Africa", "region": "Western Africa", "surfacearea": 1240192.0, "indepyear": 1960, "population": 11234000, "lifeexpectancy": 46.7, "gnp": 2642.0, "gnpold": 2453.0, "localname": "Mali", "governmentform": "Republic", "headofstate": "Alpha Oumar Konar\u00e9", "capital": 2482, "code2": "ML"}, {"code": "MLT", "name": "Malta", "continent": "Europe", "region": "Southern Europe", "surfacearea": 316.0, "indepyear": 1964, "population": 380200, "lifeexpectancy": 77.9, "gnp": 3512.0, "gnpold": 3338.0, "localname": "Malta", "governmentform": "Republic", "headofstate": "Guido de Marco", "capital": 2484, "code2": "MT"}, {"code": "MMR", "name": "Myanmar", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 676578.0, "indepyear": 1948, "population": 45611000, "lifeexpectancy": 54.9, "gnp": 180375.0, "gnpold": 171028.0, "localname": "Myanma Pye", "governmentform": "Republic", "headofstate": "kenraali Than Shwe", "capital": 2710, "code2": "MM"}, {"code": "MNG", "name": "Mongolia", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 1566500.0, "indepyear": 1921, "population": 2662000, "lifeexpectancy": 67.3, "gnp": 1043.0, "gnpold": 933.0, "localname": "Mongol Uls", "governmentform": "Republic", "headofstate": "Natsagiin Bagabandi", "capital": 2696, "code2": "MN"}, {"code": "MNP", "name": "Northern Mariana Islands", "continent": "Oceania", "region": "Micronesia", "surfacearea": 464.0, "indepyear": 0, "population": 78000, "lifeexpectancy": 75.5, "gnp": 0.0, "gnpold": 0, "localname": "Northern Mariana Islands", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2913, "code2": "MP"}, {"code": "MOZ", "name": "Mozambique", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 801590.0, "indepyear": 1975, "population": 19680000, "lifeexpectancy": 37.5, "gnp": 2891.0, "gnpold": 2711.0, "localname": "Mo\u00e7ambique", "governmentform": "Republic", "headofstate": "Joaqu\u00edm A. Chissano", "capital": 2698, "code2": "MZ"}, {"code": "MRT", "name": "Mauritania", "continent": "Africa", "region": "Western Africa", "surfacearea": 1025520.0, "indepyear": 1960, "population": 2670000, "lifeexpectancy": 50.8, "gnp": 998.0, "gnpold": 1081.0, "localname": "Muritaniya/Mauritanie", "governmentform": "Republic", "headofstate": "Maaouiya Ould Sid\u00b4Ahmad Taya", "capital": 2509, "code2": "MR"}, {"code": "MSR", "name": "Montserrat", "continent": "North America", "region": "Caribbean", "surfacearea": 102.0, "indepyear": 0, "population": 11000, "lifeexpectancy": 78.0, "gnp": 109.0, "gnpold": 0, "localname": "Montserrat", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2697, "code2": "MS"}, {"code": "MTQ", "name": "Martinique", "continent": "North America", "region": "Caribbean", "surfacearea": 1102.0, "indepyear": 0, "population": 395000, "lifeexpectancy": 78.3, "gnp": 2731.0, "gnpold": 2559.0, "localname": "Martinique", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 2508, "code2": "MQ"}, {"code": "MUS", "name": "Mauritius", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2040.0, "indepyear": 1968, "population": 1158000, "lifeexpectancy": 71.0, "gnp": 4251.0, "gnpold": 4186.0, "localname": "Mauritius", "governmentform": "Republic", "headofstate": "Cassam Uteem", "capital": 2511, "code2": "MU"}, {"code": "MWI", "name": "Malawi", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 118484.0, "indepyear": 1964, "population": 10925000, "lifeexpectancy": 37.6, "gnp": 1687.0, "gnpold": 2527.0, "localname": "Malawi", "governmentform": "Republic", "headofstate": "Bakili Muluzi", "capital": 2462, "code2": "MW"}, {"code": "MYS", "name": "Malaysia", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 329758.0, "indepyear": 1957, "population": 22244000, "lifeexpectancy": 70.8, "gnp": 69213.0, "gnpold": 97884.0, "localname": "Malaysia", "governmentform": "Constitutional Monarchy, Federation", "headofstate": "Salahuddin Abdul Aziz Shah Alhaj", "capital": 2464, "code2": "MY"}, {"code": "MYT", "name": "Mayotte", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 373.0, "indepyear": 0, "population": 149000, "lifeexpectancy": 59.5, "gnp": 0.0, "gnpold": 0, "localname": "Mayotte", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 2514, "code2": "YT"}, {"code": "NAM", "name": "Namibia", "continent": "Africa", "region": "Southern Africa", "surfacearea": 824292.0, "indepyear": 1990, "population": 1726000, "lifeexpectancy": 42.5, "gnp": 3101.0, "gnpold": 3384.0, "localname": "Namibia", "governmentform": "Republic", "headofstate": "Sam Nujoma", "capital": 2726, "code2": "NA"}, {"code": "NCL", "name": "New Caledonia", "continent": "Oceania", "region": "Melanesia", "surfacearea": 18575.0, "indepyear": 0, "population": 214000, "lifeexpectancy": 72.8, "gnp": 3563.0, "gnpold": 0, "localname": "Nouvelle-Cal\u00e9donie", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3493, "code2": "NC"}, {"code": "NER", "name": "Niger", "continent": "Africa", "region": "Western Africa", "surfacearea": 1267000.0, "indepyear": 1960, "population": 10730000, "lifeexpectancy": 41.3, "gnp": 1706.0, "gnpold": 1580.0, "localname": "Niger", "governmentform": "Republic", "headofstate": "Mamadou Tandja", "capital": 2738, "code2": "NE"}, {"code": "NFK", "name": "Norfolk Island", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 36.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Norfolk Island", "governmentform": "Territory of Australia", "headofstate": "Elisabeth II", "capital": 2806, "code2": "NF"}, {"code": "NGA", "name": "Nigeria", "continent": "Africa", "region": "Western Africa", "surfacearea": 923768.0, "indepyear": 1960, "population": 111506000, "lifeexpectancy": 51.6, "gnp": 65707.0, "gnpold": 58623.0, "localname": "Nigeria", "governmentform": "Federal Republic", "headofstate": "Olusegun Obasanjo", "capital": 2754, "code2": "NG"}, {"code": "NIC", "name": "Nicaragua", "continent": "North America", "region": "Central America", "surfacearea": 130000.0, "indepyear": 1838, "population": 5074000, "lifeexpectancy": 68.7, "gnp": 1988.0, "gnpold": 2023.0, "localname": "Nicaragua", "governmentform": "Republic", "headofstate": "Arnoldo Alem\u00e1n Lacayo", "capital": 2734, "code2": "NI"}, {"code": "NIU", "name": "Niue", "continent": "Oceania", "region": "Polynesia", "surfacearea": 260.0, "indepyear": 0, "population": 2000, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Niue", "governmentform": "Nonmetropolitan Territory of New Zealand", "headofstate": "Elisabeth II", "capital": 2805, "code2": "NU"}, {"code": "NLD", "name": "Netherlands", "continent": "Europe", "region": "Western Europe", "surfacearea": 41526.0, "indepyear": 1581, "population": 15864000, "lifeexpectancy": 78.3, "gnp": 371362.0, "gnpold": 360478.0, "localname": "Nederland", "governmentform": "Constitutional Monarchy", "headofstate": "Beatrix", "capital": 5, "code2": "NL"}, {"code": "NOR", "name": "Norway", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 323877.0, "indepyear": 1905, "population": 4478500, "lifeexpectancy": 78.7, "gnp": 145895.0, "gnpold": 153370.0, "localname": "Norge", "governmentform": "Constitutional Monarchy", "headofstate": "Harald V", "capital": 2807, "code2": "NO"}, {"code": "NPL", "name": "Nepal", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 147181.0, "indepyear": 1769, "population": 23930000, "lifeexpectancy": 57.8, "gnp": 4768.0, "gnpold": 4837.0, "localname": "Nepal", "governmentform": "Constitutional Monarchy", "headofstate": "Gyanendra Bir Bikram", "capital": 2729, "code2": "NP"}, {"code": "NRU", "name": "Nauru", "continent": "Oceania", "region": "Micronesia", "surfacearea": 21.0, "indepyear": 1968, "population": 12000, "lifeexpectancy": 60.8, "gnp": 197.0, "gnpold": 0, "localname": "Naoero/Nauru", "governmentform": "Republic", "headofstate": "Bernard Dowiyogo", "capital": 2728, "code2": "NR"}, {"code": "NZL", "name": "New Zealand", "continent": "Oceania", "region": "Australia and New Zealand", "surfacearea": 270534.0, "indepyear": 1907, "population": 3862000, "lifeexpectancy": 77.8, "gnp": 54669.0, "gnpold": 64960.0, "localname": "New Zealand/Aotearoa", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3499, "code2": "NZ"}, {"code": "OMN", "name": "Oman", "continent": "Asia", "region": "Middle East", "surfacearea": 309500.0, "indepyear": 1951, "population": 2542000, "lifeexpectancy": 71.8, "gnp": 16904.0, "gnpold": 16153.0, "localname": "\u00b4Uman", "governmentform": "Monarchy (Sultanate)", "headofstate": "Qabus ibn Sa\u00b4id", "capital": 2821, "code2": "OM"}, {"code": "PAK", "name": "Pakistan", "continent": "Asia", "region": "Southern and Central Asia", "surfacearea": 796095.0, "indepyear": 1947, "population": 156483000, "lifeexpectancy": 61.1, "gnp": 61289.0, "gnpold": 58549.0, "localname": "Pakistan", "governmentform": "Republic", "headofstate": "Mohammad Rafiq Tarar", "capital": 2831, "code2": "PK"}, {"code": "PAN", "name": "Panama", "continent": "North America", "region": "Central America", "surfacearea": 75517.0, "indepyear": 1903, "population": 2856000, "lifeexpectancy": 75.5, "gnp": 9131.0, "gnpold": 8700.0, "localname": "Panam\u00e1", "governmentform": "Republic", "headofstate": "Mireya Elisa Moscoso Rodr\u00edguez", "capital": 2882, "code2": "PA"}, {"code": "PCN", "name": "Pitcairn", "continent": "Oceania", "region": "Polynesia", "surfacearea": 49.0, "indepyear": 0, "population": 50, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Pitcairn", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 2912, "code2": "PN"}, {"code": "PER", "name": "Peru", "continent": "South America", "region": "South America", "surfacearea": 1285216.0, "indepyear": 1821, "population": 25662000, "lifeexpectancy": 70.0, "gnp": 64140.0, "gnpold": 65186.0, "localname": "Per\u00fa/Piruw", "governmentform": "Republic", "headofstate": "Valentin Paniagua Corazao", "capital": 2890, "code2": "PE"}, {"code": "PHL", "name": "Philippines", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 300000.0, "indepyear": 1946, "population": 75967000, "lifeexpectancy": 67.5, "gnp": 65107.0, "gnpold": 82239.0, "localname": "Pilipinas", "governmentform": "Republic", "headofstate": "Gloria Macapagal-Arroyo", "capital": 766, "code2": "PH"}, {"code": "PLW", "name": "Palau", "continent": "Oceania", "region": "Micronesia", "surfacearea": 459.0, "indepyear": 1994, "population": 19000, "lifeexpectancy": 68.6, "gnp": 105.0, "gnpold": 0, "localname": "Belau/Palau", "governmentform": "Republic", "headofstate": "Kuniwo Nakamura", "capital": 2881, "code2": "PW"}, {"code": "PNG", "name": "Papua New Guinea", "continent": "Oceania", "region": "Melanesia", "surfacearea": 462840.0, "indepyear": 1975, "population": 4807000, "lifeexpectancy": 63.1, "gnp": 4988.0, "gnpold": 6328.0, "localname": "Papua New Guinea/Papua Niugini", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 2884, "code2": "PG"}, {"code": "POL", "name": "Poland", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 323250.0, "indepyear": 1918, "population": 38653600, "lifeexpectancy": 73.2, "gnp": 151697.0, "gnpold": 135636.0, "localname": "Polska", "governmentform": "Republic", "headofstate": "Aleksander Kwasniewski", "capital": 2928, "code2": "PL"}, {"code": "PRI", "name": "Puerto Rico", "continent": "North America", "region": "Caribbean", "surfacearea": 8875.0, "indepyear": 0, "population": 3869000, "lifeexpectancy": 75.6, "gnp": 34100.0, "gnpold": 32100.0, "localname": "Puerto Rico", "governmentform": "Commonwealth of the US", "headofstate": "George W. Bush", "capital": 2919, "code2": "PR"}, {"code": "PRK", "name": "North Korea", "continent": "Asia", "region": "Eastern Asia", "surfacearea": 120538.0, "indepyear": 1948, "population": 24039000, "lifeexpectancy": 70.7, "gnp": 5332.0, "gnpold": 0, "localname": "Choson Minjujuui In\u00b4min Konghwaguk (Bukhan)", "governmentform": "Socialistic Republic", "headofstate": "Kim Jong-il", "capital": 2318, "code2": "KP"}, {"code": "PRT", "name": "Portugal", "continent": "Europe", "region": "Southern Europe", "surfacearea": 91982.0, "indepyear": 1143, "population": 9997600, "lifeexpectancy": 75.8, "gnp": 105954.0, "gnpold": 102133.0, "localname": "Portugal", "governmentform": "Republic", "headofstate": "Jorge Samp\u00e3io", "capital": 2914, "code2": "PT"}, {"code": "PRY", "name": "Paraguay", "continent": "South America", "region": "South America", "surfacearea": 406752.0, "indepyear": 1811, "population": 5496000, "lifeexpectancy": 73.7, "gnp": 8444.0, "gnpold": 9555.0, "localname": "Paraguay", "governmentform": "Republic", "headofstate": "Luis \u00c1ngel Gonz\u00e1lez Macchi", "capital": 2885, "code2": "PY"}, {"code": "PSE", "name": "Palestine", "continent": "Asia", "region": "Middle East", "surfacearea": 6257.0, "indepyear": 0, "population": 3101000, "lifeexpectancy": 71.4, "gnp": 4173.0, "gnpold": 0, "localname": "Filastin", "governmentform": "Autonomous Area", "headofstate": "Yasser (Yasir) Arafat", "capital": 4074, "code2": "PS"}, {"code": "PYF", "name": "French Polynesia", "continent": "Oceania", "region": "Polynesia", "surfacearea": 4000.0, "indepyear": 0, "population": 235000, "lifeexpectancy": 74.8, "gnp": 818.0, "gnpold": 781.0, "localname": "Polyn\u00e9sie fran\u00e7aise", "governmentform": "Nonmetropolitan Territory of France", "headofstate": "Jacques Chirac", "capital": 3016, "code2": "PF"}, {"code": "QAT", "name": "Qatar", "continent": "Asia", "region": "Middle East", "surfacearea": 11000.0, "indepyear": 1971, "population": 599000, "lifeexpectancy": 72.4, "gnp": 9472.0, "gnpold": 8920.0, "localname": "Qatar", "governmentform": "Monarchy", "headofstate": "Hamad ibn Khalifa al-Thani", "capital": 2973, "code2": "QA"}, {"code": "REU", "name": "R\u00e9union", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 2510.0, "indepyear": 0, "population": 699000, "lifeexpectancy": 72.7, "gnp": 8287.0, "gnpold": 7988.0, "localname": "R\u00e9union", "governmentform": "Overseas Department of France", "headofstate": "Jacques Chirac", "capital": 3017, "code2": "RE"}, {"code": "ROM", "name": "Romania", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 238391.0, "indepyear": 1878, "population": 22455500, "lifeexpectancy": 69.9, "gnp": 38158.0, "gnpold": 34843.0, "localname": "Rom\u00e2nia", "governmentform": "Republic", "headofstate": "Ion Iliescu", "capital": 3018, "code2": "RO"}, {"code": "RUS", "name": "Russian Federation", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 17075400.0, "indepyear": 1991, "population": 146934000, "lifeexpectancy": 67.2, "gnp": 276608.0, "gnpold": 442989.0, "localname": "Rossija", "governmentform": "Federal Republic", "headofstate": "Vladimir Putin", "capital": 3580, "code2": "RU"}, {"code": "RWA", "name": "Rwanda", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 26338.0, "indepyear": 1962, "population": 7733000, "lifeexpectancy": 39.3, "gnp": 2036.0, "gnpold": 1863.0, "localname": "Rwanda/Urwanda", "governmentform": "Republic", "headofstate": "Paul Kagame", "capital": 3047, "code2": "RW"}, {"code": "SAU", "name": "Saudi Arabia", "continent": "Asia", "region": "Middle East", "surfacearea": 2149690.0, "indepyear": 1932, "population": 21607000, "lifeexpectancy": 67.8, "gnp": 137635.0, "gnpold": 146171.0, "localname": "Al-\u00b4Arabiya as-Sa\u00b4udiya", "governmentform": "Monarchy", "headofstate": "Fahd ibn Abdul-Aziz al-Sa\u00b4ud", "capital": 3173, "code2": "SA"}, {"code": "SDN", "name": "Sudan", "continent": "Africa", "region": "Northern Africa", "surfacearea": 2505813.0, "indepyear": 1956, "population": 29490000, "lifeexpectancy": 56.6, "gnp": 10162.0, "gnpold": 0, "localname": "As-Sudan", "governmentform": "Islamic Republic", "headofstate": "Omar Hassan Ahmad al-Bashir", "capital": 3225, "code2": "SD"}, {"code": "SEN", "name": "Senegal", "continent": "Africa", "region": "Western Africa", "surfacearea": 196722.0, "indepyear": 1960, "population": 9481000, "lifeexpectancy": 62.2, "gnp": 4787.0, "gnpold": 4542.0, "localname": "S\u00e9n\u00e9gal/Sounougal", "governmentform": "Republic", "headofstate": "Abdoulaye Wade", "capital": 3198, "code2": "SN"}, {"code": "SGP", "name": "Singapore", "continent": "Asia", "region": "Southeast Asia", "surfacearea": 618.0, "indepyear": 1965, "population": 3567000, "lifeexpectancy": 80.1, "gnp": 86503.0, "gnpold": 96318.0, "localname": "Singapore/Singapura/Xinjiapo/Singapur", "governmentform": "Republic", "headofstate": "Sellapan Rama Nathan", "capital": 3208, "code2": "SG"}, {"code": "SGS", "name": "South Georgia and the South Sandwich Islands", "continent": "Antarctica", "region": "Antarctica", "surfacearea": 3903.0, "indepyear": 0, "population": 0, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "South Georgia and the South Sandwich Islands", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 0, "code2": "GS"}, {"code": "SHN", "name": "Saint Helena", "continent": "Africa", "region": "Western Africa", "surfacearea": 314.0, "indepyear": 0, "population": 6000, "lifeexpectancy": 76.8, "gnp": 0.0, "gnpold": 0, "localname": "Saint Helena", "governmentform": "Dependent Territory of the UK", "headofstate": "Elisabeth II", "capital": 3063, "code2": "SH"}, {"code": "SJM", "name": "Svalbard and Jan Mayen", "continent": "Europe", "region": "Nordic Countries", "surfacearea": 62422.0, "indepyear": 0, "population": 3200, "lifeexpectancy": 0, "gnp": 0.0, "gnpold": 0, "localname": "Svalbard og Jan Mayen", "governmentform": "Dependent Territory of Norway", "headofstate": "Harald V", "capital": 938, "code2": "SJ"}, {"code": "SLB", "name": "Solomon Islands", "continent": "Oceania", "region": "Melanesia", "surfacearea": 28896.0, "indepyear": 1978, "population": 444000, "lifeexpectancy": 71.3, "gnp": 182.0, "gnpold": 220.0, "localname": "Solomon Islands", "governmentform": "Constitutional Monarchy", "headofstate": "Elisabeth II", "capital": 3161, "code2": "SB"}, {"code": "SLE", "name": "Sierra Leone", "continent": "Africa", "region": "Western Africa", "surfacearea": 71740.0, "indepyear": 1961, "population": 4854000, "lifeexpectancy": 45.3, "gnp": 746.0, "gnpold": 858.0, "localname": "Sierra Leone", "governmentform": "Republic", "headofstate": "Ahmed Tejan Kabbah", "capital": 3207, "code2": "SL"}, {"code": "SLV", "name": "El Salvador", "continent": "North America", "region": "Central America", "surfacearea": 21041.0, "indepyear": 1841, "population": 6276000, "lifeexpectancy": 69.7, "gnp": 11863.0, "gnpold": 11203.0, "localname": "El Salvador", "governmentform": "Republic", "headofstate": "Francisco Guillermo Flores P\u00e9rez", "capital": 645, "code2": "SV"}, {"code": "SMR", "name": "San Marino", "continent": "Europe", "region": "Southern Europe", "surfacearea": 61.0, "indepyear": 885, "population": 27000, "lifeexpectancy": 81.1, "gnp": 510.0, "gnpold": 0, "localname": "San Marino", "governmentform": "Republic", "headofstate": 0, "capital": 3171, "code2": "SM"}, {"code": "SOM", "name": "Somalia", "continent": "Africa", "region": "Eastern Africa", "surfacearea": 637657.0, "indepyear": 1960, "population": 10097000, "lifeexpectancy": 46.2, "gnp": 935.0, "gnpold": 0, "localname": "Soomaaliya", "governmentform": "Republic", "headofstate": "Abdiqassim Salad Hassan", "capital": 3214, "code2": "SO"}, {"code": "SPM", "name": "Saint Pierre and Miquelon", "continent": "North America", "region": "North America", "surfacearea": 242.0, "indepyear": 0, "population": 7000, "lifeexpectancy": 77.6, "gnp": 0.0, "gnpold": 0, "localname": "Saint-Pierre-et-Miquelon", "governmentform": "Territorial Collectivity of France", "headofstate": "Jacques Chirac", "capital": 3067, "code2": "PM"}, {"code": "STP", "name": "Sao Tome and Principe", "continent": "Africa", "region": "Central Africa", "surfacearea": 964.0, "indepyear": 1975, "population": 147000, "lifeexpectancy": 65.3, "gnp": 6.0, "gnpold": 0, "localname": "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "governmentform": "Republic", "headofstate": "Miguel Trovoada", "capital": 3172, "code2": "ST"}, {"code": "SUR", "name": "Suriname", "continent": "South America", "region": "South America", "surfacearea": 163265.0, "indepyear": 1975, "population": 417000, "lifeexpectancy": 71.4, "gnp": 870.0, "gnpold": 706.0, "localname": "Suriname", "governmentform": "Republic", "headofstate": "Ronald Venetiaan", "capital": 3243, "code2": "SR"}, {"code": "SVK", "name": "Slovakia", "continent": "Europe", "region": "Eastern Europe", "surfacearea": 49012.0, "indepyear": 1993, "population": 5398700, "lifeexpectancy": 73.7, "gnp": 20594.0, "gnpold": 19452.0, "localname": "Slovensko", "governmentform": "Republic", "headofstate": "Rudolf Schuster", "capital": 3209, "code2": "SK"}, {"code": "SVN", "name": "Slovenia", "continent": "Europe", "region": "Southern Europe", "surfacearea": 20256.0, "indepyear": 1991, "population": 1987800, "lifeexpectancy": 74.9, "gnp": 19756.0, "gnpold": 18202.0, "localname": "Slovenija", "governmentform": "Republic", "headofstate": "Milan Kucan", "capital": 3212, "code2": "SI"}]}, "correct_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(isofficial == \"F\")\n\nsummary = filtered_countrylanguage\n |> group_by(countrycode)\n |> aggregate(avg_percentage: avg(percentage), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(avg_percentage, desc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load world_1__countrylanguage data\ncountrylanguage = load(\"countrylanguage\")\n\nfiltered_countrylanguage = countrylanguage\n |> filter(isofficial == \"F\")\n\nsummary = filtered_countrylanguage\n |> group_by(countrycode)\n |> aggregate(avg_percentage: max(percentage), count: count())\n\n-- Load lookup data\ncountry = load(\"country\")\n\nenriched = join(summary, country, on: countrycode == code)\n\nresult = enriched\n |> sort_by(avg_percentage, desc)\n |> take(5)\n\nemit result", "expected_output": [{"countrycode": "ATG", "avg_percentage": 95.7, "count": 1, "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"}, {"countrycode": "BRB", "avg_percentage": 95.1, "count": 1, "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"}, {"countrycode": "BHS", "avg_percentage": 50.0, "count": 2, "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"}, {"countrycode": "ABW", "avg_percentage": 31.200000000000003, "count": 3, "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"}, {"countrycode": "BTN", "avg_percentage": 25.0, "count": 2, "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"}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'avg' \u2192 'max'", "line_num": 9, "original": "|> aggregate(avg_percentage: avg(percentage), count: count())", "mutated": "|> aggregate(avg_percentage: max(percentage), count: count())"}], "difficulty": "medium", "domain": "world_1__countrylanguage", "num_nodes": 6, "has_join": true}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_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 == \"high\")\n |> filter(characteristic_id <= 4)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(total_product_id: sum(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\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 == \"hig\")\n |> filter(characteristic_id <= 4)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(total_product_id: sum(product_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"product_characteristic_value": "high", "total_product_id": 23, "count": 2}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'high' \u2192 'hig'", "line_num": 5, "original": "|> filter(product_characteristic_value == \"high\")", "mutated": "|> filter(product_characteristic_value == \"hig\")"}], "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": {"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\nsummary = teaches\n |> group_by(course_id)\n |> aggregate(total_year: sum(year), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load college_2__teaches data\nteaches = load(\"teaches\")\n\nsummary = teaches\n |> group_by(course_id)\n |> aggregate(total_year: count(year), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"course_id": "747", "total_year": 2004, "count": 1}, {"course_id": "445", "total_year": 2001, "count": 1}, {"course_id": "808", "total_year": 2003, "count": 1}, {"course_id": "962", "total_year": 2008, "count": 1}, {"course_id": "561", "total_year": 2006, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'sum' \u2192 'count'", "line_num": 6, "original": "|> aggregate(total_year: sum(year), count: count())", "mutated": "|> aggregate(total_year: count(year), count: count())"}], "difficulty": "medium", "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_medium
{"datasets": {"course": [{"course_id": "787", "title": "C Programming", "dept_name": "Mech. Eng.", "credits": 4}, {"course_id": "238", "title": "The Music of Donovan", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "608", "title": "Electron Microscopy", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "539", "title": "International Finance", "dept_name": "Comp. Sci.", "credits": 3}, {"course_id": "278", "title": "Greek Tragedy", "dept_name": "Statistics", "credits": 4}, {"course_id": "972", "title": "Greek Tragedy", "dept_name": "Psychology", "credits": 4}, {"course_id": "391", "title": "Virology", "dept_name": "Biology", "credits": 3}, {"course_id": "814", "title": "Compiler Design", "dept_name": "Elec. Eng.", "credits": 3}, {"course_id": "272", "title": "Geology", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "612", "title": "Mobile Computing", "dept_name": "Physics", "credits": 3}, {"course_id": "237", "title": "Surfing", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "313", "title": "International Trade", "dept_name": "Marketing", "credits": 3}, {"course_id": "887", "title": "Latin", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "328", "title": "Composition and Literature", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "984", "title": "Music of the 50s", "dept_name": "History", "credits": 3}, {"course_id": "241", "title": "Biostatistics", "dept_name": "Geology", "credits": 3}, {"course_id": "338", "title": "Graph Theory", "dept_name": "Psychology", "credits": 3}, {"course_id": "400", "title": "Visual BASIC", "dept_name": "Psychology", "credits": 4}, {"course_id": "760", "title": "How to Groom your Cat", "dept_name": "Accounting", "credits": 3}, {"course_id": "629", "title": "Finite Element Analysis", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "762", "title": "The Monkeys", "dept_name": "History", "credits": 4}, {"course_id": "242", "title": "Rock and Roll", "dept_name": "Marketing", "credits": 3}, {"course_id": "482", "title": "FOCAL Programming", "dept_name": "Psychology", "credits": 4}, {"course_id": "581", "title": "Calculus", "dept_name": "Pol. Sci.", "credits": 4}, {"course_id": "843", "title": "Environmental Law", "dept_name": "Math", "credits": 4}, {"course_id": "679", "title": "The Beatles", "dept_name": "Math", "credits": 3}, {"course_id": "704", "title": "Marine Mammals", "dept_name": "Geology", "credits": 4}, {"course_id": "774", "title": "Game Programming", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "591", "title": "Shakespeare", "dept_name": "Pol. Sci.", "credits": 4}, {"course_id": "319", "title": "World History", "dept_name": "Finance", "credits": 4}, {"course_id": "960", "title": "Tort Law", "dept_name": "Civil Eng.", "credits": 3}, {"course_id": "274", "title": "Corporate Law", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "426", "title": "Video Gaming", "dept_name": "Finance", "credits": 3}, {"course_id": "852", "title": "World History", "dept_name": "Athletics", "credits": 4}, {"course_id": "408", "title": "Bankruptcy", "dept_name": "Accounting", "credits": 3}, {"course_id": "808", "title": "Organic Chemistry", "dept_name": "English", "credits": 4}, {"course_id": "902", "title": "Existentialism", "dept_name": "Finance", "credits": 3}, {"course_id": "730", "title": "Quantum Mechanics", "dept_name": "Elec. Eng.", "credits": 4}, {"course_id": "362", "title": "Embedded Systems", "dept_name": "Finance", "credits": 4}, {"course_id": "341", "title": "Quantum Mechanics", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "582", "title": "Marine Mammals", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "867", "title": "The IBM 360 Architecture", "dept_name": "History", "credits": 3}, {"course_id": "169", "title": "Marine Mammals", "dept_name": "Elec. Eng.", "credits": 3}, {"course_id": "680", "title": "Electricity and Magnetism", "dept_name": "Civil Eng.", "credits": 3}, {"course_id": "227", "title": "Elastic Structures", "dept_name": "Languages", "credits": 4}, {"course_id": "991", "title": "Transaction Processing", "dept_name": "Psychology", "credits": 3}, {"course_id": "366", "title": "Computational Biology", "dept_name": "English", "credits": 3}, {"course_id": "376", "title": "Cost Accounting", "dept_name": "Physics", "credits": 4}, {"course_id": "489", "title": "Journalism", "dept_name": "Astronomy", "credits": 4}, {"course_id": "663", "title": "Geology", "dept_name": "Psychology", "credits": 3}, {"course_id": "461", "title": "Physical Chemistry", "dept_name": "Math", "credits": 3}, {"course_id": "105", "title": "Image Processing", "dept_name": "Astronomy", "credits": 3}, {"course_id": "407", "title": "Industrial Organization", "dept_name": "Languages", "credits": 4}, {"course_id": "254", "title": "Security", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "998", "title": "Immunology", "dept_name": "Civil Eng.", "credits": 4}, {"course_id": "457", "title": "Systems Software", "dept_name": "History", "credits": 3}, {"course_id": "401", "title": "Sanitary Engineering", "dept_name": "Athletics", "credits": 4}, {"course_id": "127", "title": "Thermodynamics", "dept_name": "Geology", "credits": 3}, {"course_id": "399", "title": "RPG Programming", "dept_name": "Pol. Sci.", "credits": 4}, {"course_id": "949", "title": "Japanese", "dept_name": "Comp. Sci.", "credits": 3}, {"course_id": "496", "title": "Aquatic Chemistry", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "334", "title": "International Trade", "dept_name": "Athletics", "credits": 3}, {"course_id": "544", "title": "Differential Geometry", "dept_name": "Statistics", "credits": 3}, {"course_id": "451", "title": "Database System Concepts", "dept_name": "Pol. Sci.", "credits": 4}, {"course_id": "190", "title": "Romantic Literature", "dept_name": "Civil Eng.", "credits": 3}, {"course_id": "630", "title": "Religion", "dept_name": "English", "credits": 3}, {"course_id": "761", "title": "Existentialism", "dept_name": "Athletics", "credits": 3}, {"course_id": "804", "title": "Introduction to Burglary", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "781", "title": "Compiler Design", "dept_name": "Finance", "credits": 4}, {"course_id": "805", "title": "Composition and Literature", "dept_name": "Statistics", "credits": 4}, {"course_id": "318", "title": "Geology", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "353", "title": "Operating Systems", "dept_name": "Psychology", "credits": 3}, {"course_id": "394", "title": "C Programming", "dept_name": "Athletics", "credits": 3}, {"course_id": "137", "title": "Manufacturing", "dept_name": "Finance", "credits": 3}, {"course_id": "192", "title": "Drama", "dept_name": "Languages", "credits": 4}, {"course_id": "681", "title": "Medieval Civilization or Lack Thereof", "dept_name": "English", "credits": 3}, {"course_id": "377", "title": "Differential Geometry", "dept_name": "Astronomy", "credits": 4}, {"course_id": "959", "title": "Bacteriology", "dept_name": "Physics", "credits": 4}, {"course_id": "235", "title": "International Trade", "dept_name": "Math", "credits": 3}, {"course_id": "421", "title": "Aquatic Chemistry", "dept_name": "Athletics", "credits": 4}, {"course_id": "647", "title": "Service-Oriented Architectures", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "598", "title": "Number Theory", "dept_name": "Accounting", "credits": 4}, {"course_id": "858", "title": "Sailing", "dept_name": "Math", "credits": 4}, {"course_id": "487", "title": "Physical Chemistry", "dept_name": "History", "credits": 3}, {"course_id": "133", "title": "Antidisestablishmentarianism in Modern America", "dept_name": "Biology", "credits": 4}, {"course_id": "267", "title": "Hydraulics", "dept_name": "Physics", "credits": 4}, {"course_id": "200", "title": "The Music of the Ramones", "dept_name": "Accounting", "credits": 4}, {"course_id": "664", "title": "Elastic Structures", "dept_name": "English", "credits": 3}, {"course_id": "599", "title": "Mechanics", "dept_name": "Psychology", "credits": 4}, {"course_id": "456", "title": "Hebrew", "dept_name": "Civil Eng.", "credits": 3}, {"course_id": "558", "title": "Environmental Law", "dept_name": "Psychology", "credits": 3}, {"course_id": "919", "title": "Computability Theory", "dept_name": "Math", "credits": 3}, {"course_id": "546", "title": "Creative Writing", "dept_name": "Mech. Eng.", "credits": 4}, {"course_id": "969", "title": "The Monkeys", "dept_name": "Astronomy", "credits": 4}, {"course_id": "877", "title": "Composition and Literature", "dept_name": "Biology", "credits": 4}, {"course_id": "337", "title": "Differential Geometry", "dept_name": "Statistics", "credits": 3}, {"course_id": "983", "title": "Virology", "dept_name": "Languages", "credits": 4}, {"course_id": "603", "title": "Care and Feeding of Cats", "dept_name": "Statistics", "credits": 3}, {"course_id": "747", "title": "International Practicum", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "659", "title": "Geology", "dept_name": "Math", "credits": 4}, {"course_id": "559", "title": "Martian History", "dept_name": "Biology", "credits": 3}, {"course_id": "403", "title": "Immunology", "dept_name": "Biology", "credits": 3}, {"course_id": "436", "title": "Stream Processing", "dept_name": "Physics", "credits": 4}, {"course_id": "656", "title": "Groups and Rings", "dept_name": "Civil Eng.", "credits": 4}, {"course_id": "731", "title": "The Music of Donovan", "dept_name": "Physics", "credits": 4}, {"course_id": "820", "title": "Assembly Language Programming", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "898", "title": "Petroleum Engineering", "dept_name": "Marketing", "credits": 4}, {"course_id": "545", "title": "International Practicum", "dept_name": "History", "credits": 3}, {"course_id": "893", "title": "Systems Software", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "818", "title": "Environmental Law", "dept_name": "Astronomy", "credits": 4}, {"course_id": "618", "title": "Thermodynamics", "dept_name": "English", "credits": 4}, {"course_id": "416", "title": "Data Mining", "dept_name": "Accounting", "credits": 3}, {"course_id": "716", "title": "Medieval Civilization or Lack Thereof", "dept_name": "Languages", "credits": 4}, {"course_id": "130", "title": "Differential Geometry", "dept_name": "Physics", "credits": 3}, {"course_id": "476", "title": "International Communication", "dept_name": "Astronomy", "credits": 4}, {"course_id": "101", "title": "Diffusion and Phase Transformation", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "123", "title": "Differential Equations", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "209", "title": "International Trade", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "352", "title": "Compiler Design", "dept_name": "Psychology", "credits": 4}, {"course_id": "393", "title": "Aerodynamics", "dept_name": "Languages", "credits": 3}, {"course_id": "795", "title": "Death and Taxes", "dept_name": "Marketing", "credits": 3}, {"course_id": "577", "title": "The Music of Dave Edmunds", "dept_name": "Elec. Eng.", "credits": 3}, {"course_id": "584", "title": "Computability Theory", "dept_name": "Comp. Sci.", "credits": 3}, {"course_id": "864", "title": "Heat Transfer", "dept_name": "Geology", "credits": 3}, {"course_id": "594", "title": "Cognitive Psychology", "dept_name": "Finance", "credits": 3}, {"course_id": "802", "title": "African History", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "692", "title": "Cat Herding", "dept_name": "Athletics", "credits": 3}, {"course_id": "258", "title": "Colloid and Surface Chemistry", "dept_name": "Math", "credits": 3}, {"course_id": "748", "title": "Tort Law", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "770", "title": "European History", "dept_name": "Pol. Sci.", "credits": 3}, {"course_id": "340", "title": "Corporate Law", "dept_name": "History", "credits": 3}, {"course_id": "158", "title": "Elastic Structures", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "276", "title": "Game Design", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "626", "title": "Multimedia Design", "dept_name": "History", "credits": 4}, {"course_id": "696", "title": "Heat Transfer", "dept_name": "Marketing", "credits": 4}, {"course_id": "239", "title": "The Music of the Ramones", "dept_name": "Physics", "credits": 4}, {"course_id": "962", "title": "Animal Behavior", "dept_name": "Psychology", "credits": 3}, {"course_id": "527", "title": "Graphics", "dept_name": "Finance", "credits": 3}, {"course_id": "275", "title": "Romantic Literature", "dept_name": "Languages", "credits": 3}, {"course_id": "549", "title": "Banking and Finance", "dept_name": "Astronomy", "credits": 3}, {"course_id": "974", "title": "Astronautics", "dept_name": "Accounting", "credits": 3}, {"course_id": "897", "title": "How to Succeed in Business Without Really Trying", "dept_name": "Languages", "credits": 4}, {"course_id": "359", "title": "Game Programming", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "345", "title": "Race Car Driving", "dept_name": "Accounting", "credits": 4}, {"course_id": "371", "title": "Milton", "dept_name": "Finance", "credits": 3}, {"course_id": "284", "title": "Topology", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "642", "title": "Video Gaming", "dept_name": "Psychology", "credits": 3}, {"course_id": "769", "title": "Logic", "dept_name": "Elec. Eng.", "credits": 4}, {"course_id": "947", "title": "Real-Time Database Systems", "dept_name": "Accounting", "credits": 3}, {"course_id": "265", "title": "Thermal Physics", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "927", "title": "Differential Geometry", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "694", "title": "Optics", "dept_name": "Math", "credits": 3}, {"course_id": "580", "title": "The Music of Dave Edmunds", "dept_name": "Physics", "credits": 4}, {"course_id": "324", "title": "Ponzi Schemes", "dept_name": "Civil Eng.", "credits": 3}, {"course_id": "349", "title": "Networking", "dept_name": "Finance", "credits": 4}, {"course_id": "392", "title": "Recursive Function Theory", "dept_name": "Astronomy", "credits": 4}, {"course_id": "735", "title": "Greek Tragedy", "dept_name": "Geology", "credits": 3}, {"course_id": "702", "title": "Arabic", "dept_name": "Biology", "credits": 3}, {"course_id": "458", "title": "The Renaissance", "dept_name": "Civil Eng.", "credits": 4}, {"course_id": "348", "title": "Compiler Design", "dept_name": "Elec. Eng.", "credits": 3}, {"course_id": "500", "title": "Networking", "dept_name": "Astronomy", "credits": 3}, {"course_id": "494", "title": "Automobile Mechanics", "dept_name": "Pol. Sci.", "credits": 4}, {"course_id": "411", "title": "Music of the 80s", "dept_name": "Mech. Eng.", "credits": 4}, {"course_id": "493", "title": "Music of the 50s", "dept_name": "Geology", "credits": 3}, {"course_id": "396", "title": "C Programming", "dept_name": "Languages", "credits": 3}, {"course_id": "810", "title": "Mobile Computing", "dept_name": "Geology", "credits": 3}, {"course_id": "631", "title": "Plasma Physics", "dept_name": "Elec. Eng.", "credits": 4}, {"course_id": "486", "title": "Accounting", "dept_name": "Geology", "credits": 3}, {"course_id": "963", "title": "Groups and Rings", "dept_name": "Languages", "credits": 4}, {"course_id": "445", "title": "Biostatistics", "dept_name": "Finance", "credits": 3}, {"course_id": "292", "title": "Electron Microscopy", "dept_name": "English", "credits": 4}, {"course_id": "830", "title": "Sensor Networks", "dept_name": "Astronomy", "credits": 4}, {"course_id": "604", "title": "UNIX System Programmming", "dept_name": "Statistics", "credits": 4}, {"course_id": "857", "title": "UNIX System Programmming", "dept_name": "Geology", "credits": 4}, {"course_id": "304", "title": "Music 2 New for your Instructor", "dept_name": "Finance", "credits": 4}, {"course_id": "922", "title": "Microeconomics", "dept_name": "Finance", "credits": 4}, {"course_id": "571", "title": "Plastics", "dept_name": "Comp. Sci.", "credits": 4}, {"course_id": "628", "title": "Existentialism", "dept_name": "Accounting", "credits": 3}, {"course_id": "841", "title": "Fractal Geometry", "dept_name": "Mech. Eng.", "credits": 4}, {"course_id": "586", "title": "Image Processing", "dept_name": "Finance", "credits": 4}, {"course_id": "139", "title": "Number Theory", "dept_name": "English", "credits": 4}, {"course_id": "666", "title": "Multivariable Calculus", "dept_name": "Accounting", "credits": 3}, {"course_id": "443", "title": "Journalism", "dept_name": "Physics", "credits": 4}, {"course_id": "195", "title": "Numerical Methods", "dept_name": "Geology", "credits": 4}, {"course_id": "634", "title": "Astronomy", "dept_name": "Cybernetics", "credits": 4}, {"course_id": "224", "title": "International Finance", "dept_name": "Athletics", "credits": 3}, {"course_id": "791", "title": "Operating Systems", "dept_name": "Marketing", "credits": 3}, {"course_id": "875", "title": "Bioinformatics", "dept_name": "Cybernetics", "credits": 3}, {"course_id": "958", "title": "Fiction Writing", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "415", "title": "Numerical Methods", "dept_name": "Biology", "credits": 3}, {"course_id": "442", "title": "Strength of Materials", "dept_name": "Athletics", "credits": 3}, {"course_id": "468", "title": "Fractal Geometry", "dept_name": "Civil Eng.", "credits": 4}, {"course_id": "270", "title": "Music of the 90s", "dept_name": "Math", "credits": 4}, {"course_id": "966", "title": "Sanitary Engineering", "dept_name": "History", "credits": 3}, {"course_id": "793", "title": "Decison Support Systems", "dept_name": "Civil Eng.", "credits": 3}, {"course_id": "236", "title": "Design and Analysis of Algorithms", "dept_name": "Mech. Eng.", "credits": 3}, {"course_id": "792", "title": "Image Processing", "dept_name": "Accounting", "credits": 3}, {"course_id": "561", "title": "The Music of Donovan", "dept_name": "Elec. Eng.", "credits": 4}, {"course_id": "344", "title": "Quantum Mechanics", "dept_name": "Accounting", "credits": 4}, {"course_id": "780", "title": "Geology", "dept_name": "Psychology", "credits": 3}], "prereq": [{"course_id": "376", "prereq_id": "130"}, {"course_id": "760", "prereq_id": "169"}, {"course_id": "403", "prereq_id": "345"}, {"course_id": "353", "prereq_id": "647"}, {"course_id": "629", "prereq_id": "139"}, {"course_id": "608", "prereq_id": "864"}, {"course_id": "158", "prereq_id": "408"}, {"course_id": "496", "prereq_id": "489"}, {"course_id": "241", "prereq_id": "486"}, {"course_id": "958", "prereq_id": "969"}, {"course_id": "591", "prereq_id": "403"}, {"course_id": "656", "prereq_id": "659"}, {"course_id": "864", "prereq_id": "634"}, {"course_id": "559", "prereq_id": "500"}, {"course_id": "209", "prereq_id": "780"}, {"course_id": "603", "prereq_id": "735"}, {"course_id": "804", "prereq_id": "947"}, {"course_id": "545", "prereq_id": "947"}, {"course_id": "353", "prereq_id": "694"}, {"course_id": "692", "prereq_id": "761"}, {"course_id": "774", "prereq_id": "258"}, {"course_id": "747", "prereq_id": "927"}, {"course_id": "496", "prereq_id": "416"}, {"course_id": "544", "prereq_id": "702"}, {"course_id": "608", "prereq_id": "421"}, {"course_id": "313", "prereq_id": "731"}, {"course_id": "258", "prereq_id": "137"}, {"course_id": "486", "prereq_id": "371"}, {"course_id": "224", "prereq_id": "227"}, {"course_id": "972", "prereq_id": "958"}, {"course_id": "359", "prereq_id": "694"}, {"course_id": "998", "prereq_id": "319"}, {"course_id": "392", "prereq_id": "875"}, {"course_id": "443", "prereq_id": "852"}, {"course_id": "324", "prereq_id": "408"}, {"course_id": "805", "prereq_id": "774"}, {"course_id": "242", "prereq_id": "304"}, {"course_id": "795", "prereq_id": "123"}, {"course_id": "169", "prereq_id": "603"}, {"course_id": "774", "prereq_id": "769"}, {"course_id": "958", "prereq_id": "735"}, {"course_id": "692", "prereq_id": "426"}, {"course_id": "958", "prereq_id": "139"}, {"course_id": "663", "prereq_id": "998"}, {"course_id": "586", "prereq_id": "468"}, {"course_id": "254", "prereq_id": "877"}, {"course_id": "802", "prereq_id": "666"}, {"course_id": "820", "prereq_id": "371"}, {"course_id": "902", "prereq_id": "130"}, {"course_id": "362", "prereq_id": "242"}, {"course_id": "359", "prereq_id": "818"}, {"course_id": "664", "prereq_id": "489"}, {"course_id": "276", "prereq_id": "403"}, {"course_id": "582", "prereq_id": "487"}, {"course_id": "694", "prereq_id": "254"}, {"course_id": "841", "prereq_id": "818"}, {"course_id": "852", "prereq_id": "133"}, {"course_id": "843", "prereq_id": "324"}, {"course_id": "810", "prereq_id": "966"}, {"course_id": "628", "prereq_id": "340"}, {"course_id": "242", "prereq_id": "594"}, {"course_id": "292", "prereq_id": "399"}, {"course_id": "618", "prereq_id": "352"}, {"course_id": "664", "prereq_id": "704"}, {"course_id": "793", "prereq_id": "791"}, {"course_id": "692", "prereq_id": "774"}, {"course_id": "324", "prereq_id": "857"}, {"course_id": "612", "prereq_id": "123"}, {"course_id": "991", "prereq_id": "598"}, {"course_id": "544", "prereq_id": "254"}, {"course_id": "852", "prereq_id": "267"}, {"course_id": "792", "prereq_id": "814"}, {"course_id": "133", "prereq_id": "852"}, {"course_id": "496", "prereq_id": "443"}, {"course_id": "338", "prereq_id": "133"}, {"course_id": "399", "prereq_id": "664"}, {"course_id": "747", "prereq_id": "272"}, {"course_id": "696", "prereq_id": "101"}, {"course_id": "403", "prereq_id": "352"}, {"course_id": "545", "prereq_id": "318"}, {"course_id": "634", "prereq_id": "864"}, {"course_id": "947", "prereq_id": "494"}, {"course_id": "647", "prereq_id": "792"}, {"course_id": "631", "prereq_id": "681"}, {"course_id": "236", "prereq_id": "984"}, {"course_id": "362", "prereq_id": "696"}, {"course_id": "875", "prereq_id": "458"}, {"course_id": "457", "prereq_id": "544"}, {"course_id": "704", "prereq_id": "416"}, {"course_id": "656", "prereq_id": "559"}, {"course_id": "272", "prereq_id": "275"}, {"course_id": "338", "prereq_id": "852"}, {"course_id": "780", "prereq_id": "345"}, {"course_id": "458", "prereq_id": "696"}, {"course_id": "239", "prereq_id": "628"}, {"course_id": "411", "prereq_id": "401"}, {"course_id": "830", "prereq_id": "748"}, {"course_id": "558", "prereq_id": "130"}, {"course_id": "877", "prereq_id": "599"}, {"course_id": "349", "prereq_id": "612"}]}, "correct_code": "-- Load college_2__course data\ncourse = load(\"course\")\n |> select(title, course_id, credits, dept_name)\n\nsummary = course\n |> group_by(title)\n |> aggregate(max_credits: max(credits), count: count())\n |> compute(computed_val: max_credits + count)\n\nresult = summary\n |> sort_by(max_credits, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load college_2__course data\ncourse = load(\"course\")\n |> select(title, course_id, credits, dept_name)\n\nsummary = course\n |> group_by(computed_val)\n |> aggregate(max_credits: max(credits), count: count())\n |> compute(computed_val: max_credits + count)\n\nresult = summary\n |> sort_by(max_credits, asc)\n |> take(3)\n\nemit result", "expected_output": [{"title": "International Finance", "max_credits": 3, "count": 2, "computed_val": 5}, {"title": "Mobile Computing", "max_credits": 3, "count": 2, "computed_val": 5}, {"title": "Surfing", "max_credits": 3, "count": 1, "computed_val": 4}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'title' \u2192 'computed_val'", "line_num": 6, "original": "|> group_by(title)", "mutated": "|> group_by(computed_val)"}], "difficulty": "medium", "domain": "college_2__course", "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": {"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(regular_order_id < 7)\n |> select(actual_order_date, actual_order_id, regular_order_id, order_status_code)\n\nsummary = filtered_actual_orders\n |> group_by(actual_order_date)\n |> aggregate(total_regular_order_id: sum(regular_order_id), count: count())\n\nresult = summary\n |> sort_by(total_regular_order_id, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load customer_deliveries__actual_orders data\nactual_orders = load(\"actual_orders\")\n\nfiltered_actual_orders = actual_orders\n |> filter(regular_order_id < total_regular_order_id)\n |> select(actual_order_date, actual_order_id, regular_order_id, order_status_code)\n\nsummary = filtered_actual_orders\n |> group_by(actual_order_date)\n |> aggregate(total_regular_order_id: sum(regular_order_id), count: count())\n\nresult = summary\n |> sort_by(total_regular_order_id, desc)\n |> take(3)\n\nemit result", "expected_output": [{"actual_order_date": "2018-03-13 05:43:25", "total_regular_order_id": 6, "count": 1}, {"actual_order_date": "2018-02-25 10:13:36", "total_regular_order_id": 4, "count": 1}, {"actual_order_date": "2018-03-16 00:28:09", "total_regular_order_id": 4, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: '7' \u2192 'total_regular_order_id'", "line_num": 5, "original": "|> filter(regular_order_id < 7)", "mutated": "|> filter(regular_order_id < total_regular_order_id)"}], "difficulty": "hard", "domain": "customer_deliveries__actual_orders", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_medium
{"datasets": {"flights": [{"airline": 1, "flightno": 28, "sourceairport": " APG", "destairport": " ASY"}, {"airline": 1, "flightno": 29, "sourceairport": " ASY", "destairport": " APG"}, {"airline": 1, "flightno": 44, "sourceairport": " CVO", "destairport": " ACV"}, {"airline": 1, "flightno": 45, "sourceairport": " ACV", "destairport": " CVO"}, {"airline": 1, "flightno": 54, "sourceairport": " AHD", "destairport": " AHT"}, {"airline": 1, "flightno": 55, "sourceairport": " AHT", "destairport": " AHD"}, {"airline": 1, "flightno": 90, "sourceairport": " ATO", "destairport": " ABR"}, {"airline": 1, "flightno": 91, "sourceairport": " ABR", "destairport": " ATO"}, {"airline": 1, "flightno": 108, "sourceairport": " ANV", "destairport": " MMI"}, {"airline": 1, "flightno": 109, "sourceairport": " MMI", "destairport": " ANV"}, {"airline": 1, "flightno": 142, "sourceairport": " ALI", "destairport": " AKC"}, {"airline": 1, "flightno": 143, "sourceairport": " AKC", "destairport": " ALI"}, {"airline": 1, "flightno": 148, "sourceairport": " HMN", "destairport": " ABL"}, {"airline": 1, "flightno": 149, "sourceairport": " ABL", "destairport": " HMN"}, {"airline": 1, "flightno": 198, "sourceairport": " NGZ", "destairport": " AAF"}, {"airline": 1, "flightno": 199, "sourceairport": " AAF", "destairport": " NGZ"}, {"airline": 1, "flightno": 226, "sourceairport": " CVO", "destairport": " KKI"}, {"airline": 1, "flightno": 227, "sourceairport": " KKI", "destairport": " CVO"}, {"airline": 1, "flightno": 276, "sourceairport": " ARB", "destairport": " ANV"}, {"airline": 1, "flightno": 277, "sourceairport": " ANV", "destairport": " ARB"}, {"airline": 1, "flightno": 308, "sourceairport": " ATE", "destairport": " AKC"}, {"airline": 1, "flightno": 309, "sourceairport": " AKC", "destairport": " ATE"}, {"airline": 1, "flightno": 326, "sourceairport": " ALX", "destairport": " ALI"}, {"airline": 1, "flightno": 327, "sourceairport": " ALI", "destairport": " ALX"}, {"airline": 1, "flightno": 370, "sourceairport": " AKC", "destairport": " WKK"}, {"airline": 1, "flightno": 371, "sourceairport": " WKK", "destairport": " AKC"}, {"airline": 1, "flightno": 414, "sourceairport": " AAF", "destairport": " ALB"}, {"airline": 1, "flightno": 415, "sourceairport": " ALB", "destairport": " AAF"}, {"airline": 1, "flightno": 424, "sourceairport": " ADG", "destairport": " AOS"}, {"airline": 1, "flightno": 425, "sourceairport": " AOS", "destairport": " ADG"}, {"airline": 1, "flightno": 470, "sourceairport": " ABQ", "destairport": " MMI"}, {"airline": 1, "flightno": 471, "sourceairport": " MMI", "destairport": " ABQ"}, {"airline": 1, "flightno": 520, "sourceairport": " AIV", "destairport": " ALS"}, {"airline": 1, "flightno": 521, "sourceairport": " ALS", "destairport": " AIV"}, {"airline": 1, "flightno": 556, "sourceairport": " AYZ", "destairport": " AHD"}, {"airline": 1, "flightno": 557, "sourceairport": " AHD", "destairport": " AYZ"}, {"airline": 1, "flightno": 560, "sourceairport": " AHF", "destairport": " ATO"}, {"airline": 1, "flightno": 561, "sourceairport": " ATO", "destairport": " AHF"}, {"airline": 1, "flightno": 604, "sourceairport": " ADG", "destairport": " ANN"}, {"airline": 1, "flightno": 605, "sourceairport": " ANN", "destairport": " ADG"}, {"airline": 1, "flightno": 608, "sourceairport": " AST", "destairport": " DYS"}, {"airline": 1, "flightno": 609, "sourceairport": " DYS", "destairport": " AST"}, {"airline": 1, "flightno": 626, "sourceairport": " AKI", "destairport": " AEL"}, {"airline": 1, "flightno": 627, "sourceairport": " AEL", "destairport": " AKI"}, {"airline": 1, "flightno": 658, "sourceairport": " ARC", "destairport": " ALM"}, {"airline": 1, "flightno": 659, "sourceairport": " ALM", "destairport": " ARC"}, {"airline": 1, "flightno": 708, "sourceairport": " AXB", "destairport": " AFO"}, {"airline": 1, "flightno": 709, "sourceairport": " AFO", "destairport": " AXB"}, {"airline": 1, "flightno": 744, "sourceairport": " AED", "destairport": " OTS"}, {"airline": 1, "flightno": 745, "sourceairport": " OTS", "destairport": " AED"}, {"airline": 1, "flightno": 754, "sourceairport": " CVO", "destairport": " ANY"}, {"airline": 1, "flightno": 755, "sourceairport": " ANY", "destairport": " CVO"}, {"airline": 1, "flightno": 786, "sourceairport": " ACV", "destairport": " AHD"}, {"airline": 1, "flightno": 787, "sourceairport": " AHD", "destairport": " ACV"}, {"airline": 1, "flightno": 810, "sourceairport": " ARC", "destairport": " AQY"}, {"airline": 1, "flightno": 811, "sourceairport": " AQY", "destairport": " ARC"}, {"airline": 1, "flightno": 828, "sourceairport": " HMN", "destairport": " EDF"}, {"airline": 1, "flightno": 829, "sourceairport": " EDF", "destairport": " HMN"}, {"airline": 1, "flightno": 878, "sourceairport": " KKI", "destairport": " ALM"}, {"airline": 1, "flightno": 879, "sourceairport": " ALM", "destairport": " KKI"}, {"airline": 1, "flightno": 888, "sourceairport": " ALZ", "destairport": " ANW"}, {"airline": 1, "flightno": 889, "sourceairport": " ANW", "destairport": " ALZ"}, {"airline": 1, "flightno": 900, "sourceairport": " AHT", "destairport": " AXX"}, {"airline": 1, "flightno": 901, "sourceairport": " AXX", "destairport": " AHT"}, {"airline": 1, "flightno": 924, "sourceairport": " AXG", "destairport": " ASX"}, {"airline": 1, "flightno": 925, "sourceairport": " ASX", "destairport": " AXG"}, {"airline": 1, "flightno": 946, "sourceairport": " APV", "destairport": " ADR"}, {"airline": 1, "flightno": 947, "sourceairport": " ADR", "destairport": " APV"}, {"airline": 1, "flightno": 996, "sourceairport": " AXG", "destairport": " AXS"}, {"airline": 1, "flightno": 997, "sourceairport": " AXS", "destairport": " AXG"}, {"airline": 1, "flightno": 1000, "sourceairport": " ADK", "destairport": " KKI"}, {"airline": 1, "flightno": 1001, "sourceairport": " KKI", "destairport": " ADK"}, {"airline": 1, "flightno": 1026, "sourceairport": " AHN", "destairport": " DYS"}, {"airline": 1, "flightno": 1027, "sourceairport": " DYS", "destairport": " AHN"}, {"airline": 1, "flightno": 1062, "sourceairport": " AQY", "destairport": " AFO"}, {"airline": 1, "flightno": 1063, "sourceairport": " AFO", "destairport": " AQY"}, {"airline": 1, "flightno": 1068, "sourceairport": " APN", "destairport": " ALB"}, {"airline": 1, "flightno": 1069, "sourceairport": " ALB", "destairport": " APN"}, {"airline": 1, "flightno": 1100, "sourceairport": " ATE", "destairport": " ALE"}, {"airline": 1, "flightno": 1101, "sourceairport": " ALE", "destairport": " ATE"}, {"airline": 1, "flightno": 1144, "sourceairport": " AIA", "destairport": " AMW"}, {"airline": 1, "flightno": 1145, "sourceairport": " AMW", "destairport": " AIA"}, {"airline": 1, "flightno": 1166, "sourceairport": " ABQ", "destairport": " AAF"}, {"airline": 1, "flightno": 1167, "sourceairport": " AAF", "destairport": " ABQ"}, {"airline": 1, "flightno": 1168, "sourceairport": " ADK", "destairport": " NAB"}, {"airline": 1, "flightno": 1169, "sourceairport": " NAB", "destairport": " ADK"}, {"airline": 1, "flightno": 1192, "sourceairport": " QAW", "destairport": " AHH"}, {"airline": 1, "flightno": 1193, "sourceairport": " AHH", "destairport": " QAW"}, {"airline": 1, "flightno": 1208, "sourceairport": " NAB", "destairport": " MMI"}, {"airline": 1, "flightno": 1209, "sourceairport": " MMI", "destairport": " NAB"}, {"airline": 1, "flightno": 1216, "sourceairport": " ATE", "destairport": " ALX"}, {"airline": 1, "flightno": 1217, "sourceairport": " ALX", "destairport": " ATE"}, {"airline": 1, "flightno": 1250, "sourceairport": " ARC", "destairport": " AED"}, {"airline": 1, "flightno": 1251, "sourceairport": " AED", "destairport": " ARC"}, {"airline": 1, "flightno": 1274, "sourceairport": " ALS", "destairport": " APG"}, {"airline": 1, "flightno": 1275, "sourceairport": " APG", "destairport": " ALS"}, {"airline": 1, "flightno": 1284, "sourceairport": " ADK", "destairport": " ADG"}, {"airline": 1, "flightno": 1285, "sourceairport": " ADG", "destairport": " ADK"}, {"airline": 1, "flightno": 1328, "sourceairport": " RLI", "destairport": " LTS"}, {"airline": 1, "flightno": 1329, "sourceairport": " LTS", "destairport": " RLI"}, {"airline": 2, "flightno": 14, "sourceairport": " APV", "destairport": " ALX"}, {"airline": 2, "flightno": 15, "sourceairport": " ALX", "destairport": " APV"}, {"airline": 2, "flightno": 18, "sourceairport": " MRI", "destairport": " OTS"}, {"airline": 2, "flightno": 19, "sourceairport": " OTS", "destairport": " MRI"}, {"airline": 2, "flightno": 64, "sourceairport": " VJI", "destairport": " AOS"}, {"airline": 2, "flightno": 65, "sourceairport": " AOS", "destairport": " VJI"}, {"airline": 2, "flightno": 88, "sourceairport": " AGN", "destairport": " AXX"}, {"airline": 2, "flightno": 89, "sourceairport": " AXX", "destairport": " AGN"}, {"airline": 2, "flightno": 124, "sourceairport": " OTS", "destairport": " ALZ"}, {"airline": 2, "flightno": 125, "sourceairport": " ALZ", "destairport": " OTS"}, {"airline": 2, "flightno": 142, "sourceairport": " ABQ", "destairport": " ADM"}, {"airline": 2, "flightno": 143, "sourceairport": " ADM", "destairport": " ABQ"}, {"airline": 2, "flightno": 192, "sourceairport": " AKK", "destairport": " NDV"}, {"airline": 2, "flightno": 193, "sourceairport": " NDV", "destairport": " AKK"}, {"airline": 2, "flightno": 240, "sourceairport": " ATE", "destairport": " ATW"}, {"airline": 2, "flightno": 241, "sourceairport": " ATW", "destairport": " ATE"}, {"airline": 2, "flightno": 278, "sourceairport": " ACV", "destairport": " ALX"}, {"airline": 2, "flightno": 279, "sourceairport": " ALX", "destairport": " ACV"}, {"airline": 2, "flightno": 322, "sourceairport": " ALN", "destairport": " ARB"}, {"airline": 2, "flightno": 323, "sourceairport": " ARB", "destairport": " ALN"}, {"airline": 2, "flightno": 330, "sourceairport": " AYZ", "destairport": " AND"}, {"airline": 2, "flightno": 331, "sourceairport": " AND", "destairport": " AYZ"}, {"airline": 2, "flightno": 356, "sourceairport": " AKC", "destairport": " MRI"}, {"airline": 2, "flightno": 357, "sourceairport": " MRI", "destairport": " AKC"}, {"airline": 2, "flightno": 358, "sourceairport": " ASE", "destairport": " ASX"}, {"airline": 2, "flightno": 359, "sourceairport": " ASX", "destairport": " ASE"}, {"airline": 2, "flightno": 384, "sourceairport": " AOS", "destairport": " AGN"}, {"airline": 2, "flightno": 385, "sourceairport": " AGN", "destairport": " AOS"}, {"airline": 2, "flightno": 426, "sourceairport": " AFO", "destairport": " AMN"}, {"airline": 2, "flightno": 427, "sourceairport": " AMN", "destairport": " AFO"}, {"airline": 2, "flightno": 466, "sourceairport": " ARB", "destairport": " AGN"}, {"airline": 2, "flightno": 467, "sourceairport": " AGN", "destairport": " ARB"}, {"airline": 2, "flightno": 484, "sourceairport": " ARX", "destairport": " AQY"}, {"airline": 2, "flightno": 485, "sourceairport": " AQY", "destairport": " ARX"}, {"airline": 2, "flightno": 488, "sourceairport": " VJI", "destairport": " APG"}, {"airline": 2, "flightno": 489, "sourceairport": " APG", "destairport": " VJI"}, {"airline": 2, "flightno": 526, "sourceairport": " CAK", "destairport": " ANP"}, {"airline": 2, "flightno": 527, "sourceairport": " ANP", "destairport": " CAK"}, {"airline": 2, "flightno": 550, "sourceairport": " AIV", "destairport": " ADK"}, {"airline": 2, "flightno": 551, "sourceairport": " ADK", "destairport": " AIV"}, {"airline": 2, "flightno": 600, "sourceairport": " MRI", "destairport": " ARB"}, {"airline": 2, "flightno": 601, "sourceairport": " ARB", "destairport": " MRI"}, {"airline": 2, "flightno": 644, "sourceairport": " AHD", "destairport": " AMA"}, {"airline": 2, "flightno": 645, "sourceairport": " AMA", "destairport": " AHD"}, {"airline": 2, "flightno": 670, "sourceairport": " KKI", "destairport": " ATS"}, {"airline": 2, "flightno": 671, "sourceairport": " ATS", "destairport": " KKI"}, {"airline": 2, "flightno": 672, "sourceairport": " ANV", "destairport": " ABL"}, {"airline": 2, "flightno": 673, "sourceairport": " ABL", "destairport": " ANV"}, {"airline": 2, "flightno": 692, "sourceairport": " CAK", "destairport": " ATS"}, {"airline": 2, "flightno": 693, "sourceairport": " ATS", "destairport": " CAK"}, {"airline": 2, "flightno": 728, "sourceairport": " AKI", "destairport": " ESF"}, {"airline": 2, "flightno": 729, "sourceairport": " ESF", "destairport": " AKI"}, {"airline": 2, "flightno": 746, "sourceairport": " ANC", "destairport": " AST"}, {"airline": 2, "flightno": 747, "sourceairport": " AST", "destairport": " ANC"}, {"airline": 2, "flightno": 790, "sourceairport": " APN", "destairport": " CVO"}, {"airline": 2, "flightno": 791, "sourceairport": " CVO", "destairport": " APN"}, {"airline": 2, "flightno": 830, "sourceairport": " ANQ", "destairport": " AMA"}, {"airline": 2, "flightno": 831, "sourceairport": " AMA", "destairport": " ANQ"}, {"airline": 2, "flightno": 840, "sourceairport": " NGZ", "destairport": " ADT"}, {"airline": 2, "flightno": 841, "sourceairport": " ADT", "destairport": " NGZ"}, {"airline": 2, "flightno": 886, "sourceairport": " ANW", "destairport": " ABY"}, {"airline": 2, "flightno": 887, "sourceairport": " ABY", "destairport": " ANW"}, {"airline": 2, "flightno": 902, "sourceairport": " AKO", "destairport": " OTS"}, {"airline": 2, "flightno": 903, "sourceairport": " OTS", "destairport": " AKO"}, {"airline": 2, "flightno": 920, "sourceairport": " AET", "destairport": " ASX"}, {"airline": 2, "flightno": 921, "sourceairport": " ASX", "destairport": " AET"}, {"airline": 2, "flightno": 950, "sourceairport": " ALB", "destairport": " ADM"}, {"airline": 2, "flightno": 951, "sourceairport": " ADM", "destairport": " ALB"}, {"airline": 2, "flightno": 988, "sourceairport": " ALS", "destairport": " ADG"}, {"airline": 2, "flightno": 989, "sourceairport": " ADG", "destairport": " ALS"}, {"airline": 2, "flightno": 1020, "sourceairport": " ANP", "destairport": " ADG"}, {"airline": 2, "flightno": 1021, "sourceairport": " ADG", "destairport": " ANP"}, {"airline": 2, "flightno": 1064, "sourceairport": " NAB", "destairport": " ALB"}, {"airline": 2, "flightno": 1065, "sourceairport": " ALB", "destairport": " NAB"}, {"airline": 2, "flightno": 1068, "sourceairport": " AIK", "destairport": " ANN"}, {"airline": 2, "flightno": 1069, "sourceairport": " ANN", "destairport": " AIK"}, {"airline": 2, "flightno": 1076, "sourceairport": " AXG", "destairport": " ABQ"}, {"airline": 2, "flightno": 1077, "sourceairport": " ABQ", "destairport": " AXG"}, {"airline": 2, "flightno": 1120, "sourceairport": " ACV", "destairport": " AKK"}, {"airline": 2, "flightno": 1121, "sourceairport": " AKK", "destairport": " ACV"}, {"airline": 2, "flightno": 1158, "sourceairport": " ABI", "destairport": " QAW"}, {"airline": 2, "flightno": 1159, "sourceairport": " QAW", "destairport": " ABI"}, {"airline": 2, "flightno": 1188, "sourceairport": " AIV", "destairport": " ALE"}, {"airline": 2, "flightno": 1189, "sourceairport": " ALE", "destairport": " AIV"}, {"airline": 2, "flightno": 1230, "sourceairport": " ANY", "destairport": " ANI"}, {"airline": 2, "flightno": 1231, "sourceairport": " ANI", "destairport": " ANY"}, {"airline": 2, "flightno": 1242, "sourceairport": " AED", "destairport": " AMA"}, {"airline": 2, "flightno": 1243, "sourceairport": " AMA", "destairport": " AED"}, {"airline": 2, "flightno": 1266, "sourceairport": " AHT", "destairport": " ALE"}, {"airline": 2, "flightno": 1267, "sourceairport": " ALE", "destairport": " AHT"}, {"airline": 2, "flightno": 1286, "sourceairport": " HMN", "destairport": " ESF"}, {"airline": 2, "flightno": 1287, "sourceairport": " ESF", "destairport": " HMN"}, {"airline": 2, "flightno": 1330, "sourceairport": " AXX", "destairport": " ANP"}, {"airline": 2, "flightno": 1331, "sourceairport": " ANP", "destairport": " AXX"}, {"airline": 2, "flightno": 1360, "sourceairport": " AHH", "destairport": " AST"}, {"airline": 2, "flightno": 1361, "sourceairport": " AST", "destairport": " AHH"}, {"airline": 2, "flightno": 1374, "sourceairport": " ALI", "destairport": " AMW"}, {"airline": 2, "flightno": 1375, "sourceairport": " AMW", "destairport": " ALI"}, {"airline": 2, "flightno": 1376, "sourceairport": " ALI", "destairport": " APG"}, {"airline": 2, "flightno": 1377, "sourceairport": " APG", "destairport": " ALI"}], "airports": [{"city": "Aberdeen ", "airportcode": "APG", "airportname": "Phillips AAF ", "country": "United States ", "countryabbrev": "US "}, {"city": "Aberdeen ", "airportcode": "ABR", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Abilene ", "airportcode": "DYS", "airportname": "Dyess AFB ", "country": "United States ", "countryabbrev": "US"}, {"city": "Abilene ", "airportcode": "ABI", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Abingdon ", "airportcode": "VJI", "airportname": "Virginia Highlands ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ada ", "airportcode": "ADT", "airportname": "Ada ", "country": "United States ", "countryabbrev": "US"}, {"city": "Adak Island ", "airportcode": "ADK", "airportname": "Adak Island Ns ", "country": "United States ", "countryabbrev": "US"}, {"city": "Adrian ", "airportcode": "ADG", "airportname": "Lenawee County ", "country": "United States ", "countryabbrev": "US"}, {"city": "Afton ", "airportcode": "AFO", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Aiken ", "airportcode": "AIK", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ainsworth ", "airportcode": "ANW", "airportname": "Ainsworth ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akhiok ", "airportcode": "AKK", "airportname": "Akhiok SPB ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akiachak ", "airportcode": "KKI", "airportname": "Spb ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akiak ", "airportcode": "AKI", "airportname": "Akiak ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akron CO ", "airportcode": "AKO", "airportname": "Colorado Plains Regional Airport ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akron/Canton OH ", "airportcode": "CAK", "airportname": "Akron/canton Regional ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akron/Canton ", "airportcode": "AKC", "airportname": "Fulton International ", "country": "United States ", "countryabbrev": "US"}, {"city": "Akutan ", "airportcode": "KQA", "airportname": "Akutan ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alakanuk ", "airportcode": "AUK", "airportname": "Alakanuk ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alameda ", "airportcode": "NGZ", "airportname": "NAS ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alamogordo ", "airportcode": "HMN", "airportname": "Holloman AFB ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alamogordo ", "airportcode": "ALM", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alamosa ", "airportcode": "ALS", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Albany ", "airportcode": "NAB", "airportname": "Albany NAS ", "country": "United States ", "countryabbrev": "US"}, {"city": "Albany ", "airportcode": "ABY", "airportname": "Dougherty County ", "country": "United States ", "countryabbrev": "US"}, {"city": "Albany ", "airportcode": "ALB", "airportname": "Albany International ", "country": "United States ", "countryabbrev": "US"}, {"city": "Albany ", "airportcode": "CVO", "airportname": "Albany ", "country": "United States ", "countryabbrev": "US"}, {"city": "Albert Lea ", "airportcode": "AEL", "airportname": "Albert Lea ", "country": "United States ", "countryabbrev": "US"}, {"city": "Albuquerque ", "airportcode": "ABQ", "airportname": "Albuquerque International ", "country": "United States ", "countryabbrev": "US"}, {"city": "Aleknagik ", "airportcode": "WKK", "airportname": "Aleknagik ", "country": "United States ", "countryabbrev": "US"}, {"city": "Aleneva ", "airportcode": "AED", "airportname": "Aleneva ", "country": "United States ", "countryabbrev": "US"}, {"city": " Alexander City AL ", "airportcode": "ALX", "airportname": "Thomas C Russell Fld ", "country": "United States ", "countryabbrev": "US"}, {"city": " Alexandria LA ", "airportcode": "AEX", "airportname": "Alexandria International ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alexandria ", "airportcode": "ESF", "airportname": "Esler Field ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alexandria ", "airportcode": "AXN", "airportname": "Alexandria ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alexandria Bay ", "airportcode": "AXB", "airportname": "Alexandria Bay ", "country": "United States ", "countryabbrev": "US"}, {"city": "Algona ", "airportcode": "AXG", "airportname": "Algona ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alice ", "airportcode": "ALI", "airportname": "International ", "country": "United States ", "countryabbrev": "US"}, {"city": " Aliceville AL ", "airportcode": "AIV", "airportname": "George Downer ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alitak ", "airportcode": "ALZ", "airportname": "Alitak SPB ", "country": "United States ", "countryabbrev": "US"}, {"city": "Allakaket ", "airportcode": "AET", "airportname": "Allakaket ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alliance ", "airportcode": "AIA", "airportname": "Alliance ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alma ", "airportcode": "AMN", "airportname": "Gratiot Community ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alpena ", "airportcode": "APN", "airportname": "Alpena County Regional ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alpine ", "airportcode": "ALE", "airportname": "Alpine ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alton ", "airportcode": "ALN", "airportname": "Alton ", "country": "United States ", "countryabbrev": "US"}, {"city": "Altus ", "airportcode": "LTS", "airportname": "Altus AFB ", "country": "United States ", "countryabbrev": "US"}, {"city": "Altus ", "airportcode": "AXS", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Alyeska ", "airportcode": "AQY", "airportname": "Alyeska ", "country": "United States ", "countryabbrev": "US"}, {"city": " Amarillo ", "airportcode": "AMA", "airportname": "Rick Husband Amarillo International ", "country": "United States ", "countryabbrev": "US"}, {"city": "Amarillo ", "airportcode": "TDW", "airportname": "Tradewind ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ambler ", "airportcode": "ABL", "airportname": "Ambler ", "country": "United States ", "countryabbrev": "US"}, {"city": "Amchitka ", "airportcode": "AHT", "airportname": "Amchitka ", "country": "United States ", "countryabbrev": "US"}, {"city": "Amery ", "airportcode": "AHH", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ames ", "airportcode": "AMW", "airportname": "Ames ", "country": "United States ", "countryabbrev": "US"}, {"city": "Amityville ", "airportcode": "AYZ", "airportname": "Zahns ", "country": "United States ", "countryabbrev": "US"}, {"city": "Amook ", "airportcode": "AOS", "airportname": "Amook ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anacortes ", "airportcode": "OTS", "airportname": "Anacortes ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anacostia ", "airportcode": "NDV", "airportname": "USN Heliport ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anaheim ", "airportcode": "ANA", "airportname": "Orange County Steel Salvage Heliport ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anaktuvuk ", "airportcode": "AKP", "airportname": "Anaktuvuk ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anchorage ", "airportcode": "EDF", "airportname": "Elmendorf Afb ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anchorage ", "airportcode": "ANC", "airportname": "Ted Stevens Anchorage International Airport ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anchorage ", "airportcode": "MRI", "airportname": "Merrill Field ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anderson ", "airportcode": "AID", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anderson ", "airportcode": "AND", "airportname": "Anderson ", "country": "United States ", "countryabbrev": "US"}, {"city": "Andrews ", "airportcode": "ADR", "airportname": "Andrews ", "country": "United States ", "countryabbrev": "US"}, {"city": "Angel Fire ", "airportcode": "AXX", "airportname": "Angel Fire ", "country": "United States ", "countryabbrev": "US"}, {"city": "Angola ", "airportcode": "ANQ", "airportname": "Tri-State Steuben Cty ", "country": "United States ", "countryabbrev": "US"}, {"city": "Angoon ", "airportcode": "AGN", "airportname": "Angoon ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anguilla ", "airportcode": "RFK", "airportname": "Rollang Field ", "country": "United States ", "countryabbrev": "US"}, {"city": "Aniak ", "airportcode": "ANI", "airportname": "Aniak ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anita Bay ", "airportcode": "AIB", "airportname": "Anita Bay ", "country": "United States ", "countryabbrev": "US"}, {"city": " Ann Arbor MI ", "airportcode": "ARB", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Annapolis ", "airportcode": "ANP", "airportname": "Lee ", "country": "United States ", "countryabbrev": "US"}, {"city": "Annette Island ", "airportcode": "ANN", "airportname": "Annette Island ", "country": "United States ", "countryabbrev": "US"}, {"city": " Anniston AL ", "airportcode": "ANB", "airportname": "Anniston Metropolitan ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anniston ", "airportcode": "QAW", "airportname": "Ft Mcclellan Bus Trml ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anniston ", "airportcode": "RLI", "airportname": "Reilly AHP ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anthony ", "airportcode": "ANY", "airportname": "Anthony ", "country": "United States ", "countryabbrev": "US"}, {"city": "Antlers ", "airportcode": "ATE", "airportname": "Antlers ", "country": "United States ", "countryabbrev": "US"}, {"city": "Anvik ", "airportcode": "ANV", "airportname": "Anvik ", "country": "United States ", "countryabbrev": "US"}, {"city": "Apalachicola ", "airportcode": "AAF", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Apple Valley ", "airportcode": "APV", "airportname": "Apple Valley ", "country": "United States ", "countryabbrev": "US"}, {"city": "Appleton ", "airportcode": "ATW", "airportname": "Outagamie County ", "country": "United States ", "countryabbrev": "US"}, {"city": "Arapahoe ", "airportcode": "AHF", "airportname": "Municipal ", "country": "United States ", "countryabbrev": "US"}, {"city": "Arcata ", "airportcode": "ACV", "airportname": "Arcata ", "country": "United States ", "countryabbrev": "US"}, {"city": "Arctic Village ", "airportcode": "ARC", "airportname": "Arctic Village ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ardmore ", "airportcode": "AHD", "airportname": "Downtown ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ardmore ", "airportcode": "ADM", "airportname": "Ardmore Municipal Arpt ", "country": "United States ", "countryabbrev": "US"}, {"city": "Arlington Heights ", "airportcode": "JLH", "airportname": "US Army Heliport ", "country": "United States ", "countryabbrev": "US"}, {"city": "Artesia ", "airportcode": "ATS", "airportname": "Artesia ", "country": "United States ", "countryabbrev": "US"}, {"city": " Neptune ", "airportcode": "ARX", "airportname": "Asbury Park ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ashland ", "airportcode": "ASX", "airportname": "Ashland ", "country": "United States ", "countryabbrev": "US"}, {"city": "Ashley ", "airportcode": "ASY", "airportname": "Ashley ", "country": "United States ", "countryabbrev": "US"}, {"city": "Aspen ", "airportcode": "ASE", "airportname": "Aspen ", "country": "United States ", "countryabbrev": "US"}, {"city": "Astoria ", "airportcode": "AST", "airportname": "Astoria ", "country": "United States ", "countryabbrev": "US"}, {"city": "Athens ", "airportcode": "AHN", "airportname": "Athens ", "country": "United States ", "countryabbrev": "US"}, {"city": "Athens ", "airportcode": "ATO", "airportname": "Ohio University ", "country": "United States ", "countryabbrev": "US"}, {"city": "Athens ", "airportcode": "MMI", "airportname": "McMinn County ", "country": "United States ", "countryabbrev": "US"}]}, "correct_code": "-- Load flight_2__flights data\nflights = load(\"flights\")\n\nfiltered_flights = flights\n |> filter(destairport == \" ALE\")\n\nsummary = filtered_flights\n |> group_by(destairport)\n |> aggregate(max_flightno: max(flightno), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load flight_2__flights data\nflights = load(\"flights\")\n\nfiltered_flights = flights\n |> filter(destairport == \" ALE\")\n\nsummary = filtered_flights\n |> group_by(ALE)\n |> aggregate(max_flightno: max(flightno), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(3)\n\nemit result", "expected_output": [{"destairport": " ALE", "max_flightno": 1266, "count": 3}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'destairport' \u2192 'ALE'", "line_num": 8, "original": "|> group_by(destairport)", "mutated": "|> group_by(ALE)"}], "difficulty": "medium", "domain": "flight_2__flights", "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": {"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\nsummary = tasks\n |> group_by(task_details)\n |> aggregate(total_task_id: sum(task_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load tracking_grants_for_research__tasks data\ntasks = load(\"tasks\")\n\nsummary = tasks\n |> group_bi(task_details)\n |> aggregate(total_task_id: sum(task_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(10)\n\nemit result", "expected_output": [{"task_details": "a", "total_task_id": 1, "count": 1}, {"task_details": "b", "total_task_id": 2, "count": 1}, {"task_details": "c", "total_task_id": 3, "count": 1}, {"task_details": "q", "total_task_id": 4, "count": 1}, {"task_details": "w", "total_task_id": 5, "count": 1}, {"task_details": "e", "total_task_id": 6, "count": 1}, {"task_details": "r", "total_task_id": 7, "count": 1}, {"task_details": "t", "total_task_id": 8, "count": 1}, {"task_details": "y", "total_task_id": 9, "count": 1}, {"task_details": "u", "total_task_id": 10, "count": 1}], "bug_info": [{"category": "syntax", "description": "Typo in keyword: 'group_by' \u2192 'group_bi'", "line_num": 5, "original": "|> group_by(task_details)", "mutated": "|> group_bi(task_details)"}], "difficulty": "easy", "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": {"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_description == \"vel\")\n |> select(color_code, product_category_code, product_id)\n\nsummary = filtered_products\n |> group_by(product_category_code)\n |> aggregate(max_product_id: max(product_id), count: count())\n\nresult = summary\n |> sort_by(max_product_id, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n\nfiltered_products = products\n |> filter(product_description <= \"vel\")\n |> select(color_code, product_category_code, product_id)\n\nsummary = filtered_products\n |> group_by(product_category_code)\n |> aggregate(max_product_id: max(product_id), count: count())\n\nresult = summary\n |> sort_by(max_product_id, asc)\n |> take(5)\n\nemit result", "expected_output": [{"product_category_code": "Herbs", "max_product_id": 9, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(product_description == \"vel\")", "mutated": "|> filter(product_description <= \"vel\")"}], "difficulty": "medium", "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_hard
{"datasets": {"residents": [{"resident_id": 6, "property_id": 954, "date_moved_in": "2017-06-17 15:43:33", "date_moved_out": "2017-12-18 03:46:04", "other_details": "Anderson Batz"}, {"resident_id": 10, "property_id": 605, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-03-17 07:48:09", "other_details": "Miss Naomie Osinski"}, {"resident_id": 23, "property_id": 879, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-11-14 06:28:48", "other_details": "Jess Wyman"}, {"resident_id": 28, "property_id": 629, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-05 02:47:31", "other_details": "Miss Alanis Lockman"}, {"resident_id": 37, "property_id": 669, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-01-30 10:20:59", "other_details": "Prof. Arvel Kozey"}, {"resident_id": 38, "property_id": 748, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-12-30 23:55:10", "other_details": "Chaim Swaniawski"}, {"resident_id": 43, "property_id": 108, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2018-02-22 06:24:15", "other_details": "Elroy Schuster"}, {"resident_id": 45, "property_id": 954, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-14 10:23:42", "other_details": "Prof. Nasir Hoppe"}, {"resident_id": 47, "property_id": 669, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-10-10 02:25:53", "other_details": "Tiffany Jaskolski"}, {"resident_id": 58, "property_id": 107, "date_moved_in": "2015-03-27 12:00:00", "date_moved_out": "2017-11-29 21:24:08", "other_details": "Tomasa Hoeger"}, {"resident_id": 67, "property_id": 120, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2017-10-23 16:40:19", "other_details": "Terrill Bernhard"}, {"resident_id": 83, "property_id": 445, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-01-19 01:35:51", "other_details": "Loy Walter"}, {"resident_id": 87, "property_id": 748, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-01-28 13:19:54", "other_details": "Mrs. Raphaelle Fisher"}, {"resident_id": 88, "property_id": 107, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2018-02-03 11:30:20", "other_details": "Jacques Glover II"}, {"resident_id": 90, "property_id": 373, "date_moved_in": "2016-09-27 12:00:00", "date_moved_out": "2017-11-19 03:11:44", "other_details": "Cassie Johnson"}], "customer_events": [{"customer_event_id": 70, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 605, "resident_id": 10, "thing_id": 1}, {"customer_event_id": 160, "customer_id": 5, "date_moved_in": "2015-03-27 12:00:00", "property_id": 879, "resident_id": 23, "thing_id": 80}, {"customer_event_id": 166, "customer_id": 16, "date_moved_in": "2015-03-27 12:00:00", "property_id": 629, "resident_id": 28, "thing_id": 14}, {"customer_event_id": 216, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 37, "thing_id": 46}, {"customer_event_id": 226, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 748, "resident_id": 38, "thing_id": 80}, {"customer_event_id": 256, "customer_id": 79, "date_moved_in": "2015-03-27 12:00:00", "property_id": 108, "resident_id": 43, "thing_id": 2}, {"customer_event_id": 428, "customer_id": 63, "date_moved_in": "2015-03-27 12:00:00", "property_id": 954, "resident_id": 45, "thing_id": 68}, {"customer_event_id": 530, "customer_id": 4, "date_moved_in": "2015-03-27 12:00:00", "property_id": 669, "resident_id": 47, "thing_id": 10}, {"customer_event_id": 559, "customer_id": 19, "date_moved_in": "2015-03-27 12:00:00", "property_id": 107, "resident_id": 58, "thing_id": 1}, {"customer_event_id": 591, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 120, "resident_id": 67, "thing_id": 10}, {"customer_event_id": 606, "customer_id": 31, "date_moved_in": "2016-09-27 12:00:00", "property_id": 445, "resident_id": 83, "thing_id": 85}, {"customer_event_id": 627, "customer_id": 91, "date_moved_in": "2016-09-27 12:00:00", "property_id": 748, "resident_id": 87, "thing_id": 92}, {"customer_event_id": 817, "customer_id": 19, "date_moved_in": "2016-09-27 12:00:00", "property_id": 107, "resident_id": 88, "thing_id": 10}]}, "correct_code": "-- Load local_govt_and_lot__residents data\nresidents = load(\"residents\")\n\nfiltered_residents = residents\n |> filter(resident_id < 19)\n |> select(resident_id, other_details, property_id, date_moved_in)\n\nresult = filtered_residents\n |> sort_by(property_id, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load local_govt_and_lot__residents data\nresidents = load(\"residents\")\n\nfiltered_residents = residents\n |> filter(resident_id < 24)\n |> select(resident_id, other_details, property_id, date_moved_in)\n\nresult = filtered_residents\n |> sort_by(property_id, desc)\n |> take(10)\n\nemit result", "expected_output": [{"resident_id": 6, "other_details": "Anderson Batz", "property_id": 954, "date_moved_in": "2017-06-17 15:43:33"}, {"resident_id": 10, "other_details": "Miss Naomie Osinski", "property_id": 605, "date_moved_in": "2015-03-27 12:00:00"}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter threshold: 19 \u2192 24", "line_num": 5, "original": "|> filter(resident_id < 19)", "mutated": "|> filter(resident_id < 24)"}], "difficulty": "hard", "domain": "local_govt_and_lot__residents", "num_nodes": 3, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_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"}], "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__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(city_code == \"PIT\")\n |> filter(age <= 19)\n |> select(stuid, advisor, lname)\n\n-- Load lookup data\nminor_in = load(\"minor_in\")\n\nenriched = join(filtered_student, minor_in, on: stuid == stuid)\n |> compute(computed_val: stuid + advisor)\n\nresult = enriched\n |> sort_by(stuid, asc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load college_3__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(city_code == \"PIT\")\n |> filter(age <= 19)\n |> select(stuid, advisor, lname)\n\n-- Load lookup data\nminor_in = load(\"minor_in\")\n\nenriched = join(filtered_student, minor_in, on: enriched == stuid)\n |> compute(computed_val: stuid + advisor)\n\nresult = enriched\n |> sort_by(stuid, asc)\n |> take(10)\n\nemit result", "expected_output": [{"stuid": 1007, "advisor": 8918, "lname": "Apap", "dno": 520, "computed_val": 9925}], "bug_info": [{"category": "join_bug", "description": "Wrong join key: 'stuid' \u2192 'enriched'", "line_num": 12, "original": "enriched = join(filtered_student, minor_in, on: stuid == stuid)", "mutated": "enriched = join(filtered_student, minor_in, on: enriched == stuid)"}], "difficulty": "hard", "domain": "college_3__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": {"player": [{"player_id": 1, "name": "Michael Platt", "position": "Full Back", "club_id": 1, "apps": 20.0, "tries": 5.0, "goals": "0", "points": 20.0}, {"player_id": 2, "name": "Dave Halley", "position": "Right Wing", "club_id": 2, "apps": 23.0, "tries": 9.0, "goals": "0", "points": 36.0}, {"player_id": 3, "name": "James Evans", "position": "Right Centre", "club_id": 1, "apps": 30.0, "tries": 9.0, "goals": "0", "points": 36.0}, {"player_id": 4, "name": "Tame Tupou", "position": "Left Wing", "club_id": 2, "apps": 10.0, "tries": 3.0, "goals": "0", "points": 12.0}, {"player_id": 5, "name": "Iestyn Harris", "position": "Stand Off", "club_id": 4, "apps": 27.0, "tries": 3.0, "goals": "50/60", "points": 110.0}, {"player_id": 6, "name": "Paul Deacon (c)", "position": "Scrum Half", "club_id": 4, "apps": 20.0, "tries": 3.0, "goals": "90/106", "points": 188.0}, {"player_id": 7, "name": "Joe Vagana", "position": "Prop", "club_id": 5, "apps": 19.0, "tries": 1.0, "goals": "0/1", "points": 4.0}, {"player_id": 8, "name": "Terry Newton", "position": "Hooker", "club_id": 5, "apps": 26.0, "tries": 9.0, "goals": "0", "points": 36.0}, {"player_id": 9, "name": "Andy Lynch", "position": "Prop", "club_id": 2, "apps": 29.0, "tries": 5.0, "goals": "0", "points": 20.0}, {"player_id": 10, "name": "David Solomona", "position": "Second Row", "club_id": 2, "apps": 24.0, "tries": 5.0, "goals": "0", "points": 20.0}, {"player_id": 11, "name": "Glenn Morrison (vc)", "position": "Second Row", "club_id": 2, "apps": 14.0, "tries": 6.0, "goals": "0", "points": 24.0}, {"player_id": 12, "name": "Jamie Langley (vc)", "position": "Loose Forward", "club_id": 2, "apps": 28.0, "tries": 2.0, "goals": "0", "points": 8.0}, {"player_id": 13, "name": "Chris Feather", "position": "Prop", "club_id": 3, "apps": 13.0, "tries": 1.0, "goals": "0", "points": 4.0}, {"player_id": 14, "name": "Matt Cook", "position": "Second Row", "club_id": 4, "apps": 17.0, "tries": 4.0, "goals": "0", "points": 16.0}, {"player_id": 15, "name": "Sam Burgess", "position": "Loose Forward", "club_id": 4, "apps": 23.0, "tries": 8.0, "goals": "0", "points": 32.0}], "club": [{"club_id": 1, "name": "AIB", "region": "USA", "start_year": "2009"}, {"club_id": 2, "name": "BK Slide", "region": "UK", "start_year": "1998"}, {"club_id": 3, "name": "IFG", "region": "China", "start_year": "2005"}, {"club_id": 4, "name": "ASC", "region": "Japan", "start_year": "2001"}, {"club_id": 5, "name": "HGS2", "region": "England", "start_year": "2000"}, {"club_id": 6, "name": "HSBIF", "region": "Brazil", "start_year": "2011"}]}, "correct_code": "-- Load sports_competition__player data\nplayer = load(\"player\")\n |> select(name, apps, points, position, player_id, club_id)\n\n-- Load lookup data\nclub = load(\"club\")\n\nenriched = join(player, club, on: club_id == club_id)\n\nresult = enriched\n |> sort_by(apps, desc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load sports_competition__player data\nplayer = load(\"player\")\n |> select(name, apps, points, position, player_id, club_id)\n\n-- Load lookup data\nclub = load(\"club\")\n\nenriched = join(player, club, on: club_id == club_id)\n\nresult = enriched\n |> sort_by(apps, desc)\n |> take(1)\n\nemit result", "expected_output": [{"name": "AIB", "apps": 30.0, "points": 36.0, "position": "Right Centre", "player_id": 3, "club_id": 1, "region": "USA", "start_year": "2009"}, {"name": "BK Slide", "apps": 29.0, "points": 20.0, "position": "Prop", "player_id": 9, "club_id": 2, "region": "UK", "start_year": "1998"}, {"name": "BK Slide", "apps": 28.0, "points": 8.0, "position": "Loose Forward", "player_id": 12, "club_id": 2, "region": "UK", "start_year": "1998"}], "bug_info": [{"category": "logic_bug", "description": "Off-by-2 in take: 3 \u2192 1", "line_num": 12, "original": "|> take(3)", "mutated": "|> take(1)"}], "difficulty": "medium", "domain": "sports_competition__player", "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": {"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 == \"low\")\n |> filter(characteristic_id < 3)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(avg_characteristic_id: avg(characteristic_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\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 <= \"low\")\n |> filter(characteristic_id < 3)\n\nsummary = filtered_product_characteristics\n |> group_by(product_characteristic_value)\n |> aggregate(avg_characteristic_id: avg(characteristic_id), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"product_characteristic_value": "low", "avg_characteristic_id": 2.0, "count": 1}], "bug_info": [{"category": "wrong_arg", "description": "Wrong comparison operator: '==' \u2192 '<='", "line_num": 5, "original": "|> filter(product_characteristic_value == \"low\")", "mutated": "|> filter(product_characteristic_value <= \"low\")"}], "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": {"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_category_code == \"Seeds\")\n |> filter(product_id > 3)\n\nsummary = filtered_products\n |> group_by(color_code)\n |> aggregate(max_other_product_details: max(other_product_details), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "buggy_code": "-- Load products_gen_characteristics__products data\nproducts = load(\"products\")\n\nfiltered_products = products\n |> filter(product_category_code == \"Seeds\")\n |> filter(product_id > 3)\n\nsummary = filtered_products\n |> group_by(color_code)\n |> aggregate(max_other_product_details: count(other_product_details), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(3)\n\nemit result", "expected_output": [{"color_code": "9", "max_other_product_details": 0, "count": 1}, {"color_code": "5", "max_other_product_details": 0, "count": 1}, {"color_code": "4", "max_other_product_details": 0, "count": 3}], "bug_info": [{"category": "wrong_arg", "description": "Wrong aggregate function: 'max' \u2192 'count'", "line_num": 10, "original": "|> aggregate(max_other_product_details: max(other_product_details), count: count())", "mutated": "|> aggregate(max_other_product_details: count(other_product_details), count: count())"}], "difficulty": "medium", "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_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(lname == \"Davis\")\n\nsummary = filtered_student\n |> group_by(city_code)\n |> aggregate(min_advisor: min(advisor), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "buggy_code": "-- Load game_1__student data\nstudent = load(\"student\")\n\nfiltered_student = student\n |> filter(lname == \"davis\")\n\nsummary = filtered_student\n |> group_by(davis)\n |> aggregate(min_advisor: min(advisor), count: count())\n\nresult = summary\n |> sort_by(count, asc)\n |> take(5)\n\nemit result", "expected_output": [{"city_code": "PIT", "min_advisor": 7723, "count": 1}], "bug_info": [{"category": "logic_bug", "description": "Wrong filter value: 'Davis' \u2192 'davis'", "line_num": 5, "original": "|> filter(lname == \"Davis\")", "mutated": "|> filter(lname == \"davis\")"}, {"category": "wrong_col", "description": "Wrong column reference: 'city_code' \u2192 'davis'", "line_num": 8, "original": "|> group_by(city_code)", "mutated": "|> group_by(davis)"}], "difficulty": "hard", "domain": "game_1__student", "num_nodes": 4, "has_join": false}
[ { "content": "You are an expert debugger for a dataflow programming language. Your task is to find and fix bugs in dataflow programs.\n\nThe dataflow language uses pipe operators (|>) to chain data transformations. Programs define variables, transform data through operations like filter, select, group_by+aggreg...
dsl_debug_hard
{"datasets": {"templates": [{"template_id": 0, "version_number": 5, "template_type_code": "PP", "date_effective_from": "2005-11-12 07:09:48", "date_effective_to": "2008-01-05 14:19:28", "template_details": ""}, {"template_id": 1, "version_number": 9, "template_type_code": "PP", "date_effective_from": "2010-09-24 01:15:11", "date_effective_to": "1999-07-08 03:31:04", "template_details": ""}, {"template_id": 4, "version_number": 4, "template_type_code": "BK", "date_effective_from": "2002-03-02 14:39:49", "date_effective_to": "2001-04-18 09:29:52", "template_details": ""}, {"template_id": 6, "version_number": 2, "template_type_code": "PPT", "date_effective_from": "1975-05-20 22:51:19", "date_effective_to": "1992-05-02 20:06:11", "template_details": ""}, {"template_id": 7, "version_number": 8, "template_type_code": "PPT", "date_effective_from": "1993-10-07 02:33:04", "date_effective_to": "1975-07-16 04:52:10", "template_details": ""}, {"template_id": 8, "version_number": 3, "template_type_code": "BK", "date_effective_from": "1983-07-16 21:16:16", "date_effective_to": "1976-10-28 10:08:50", "template_details": ""}, {"template_id": 9, "version_number": 2, "template_type_code": "BK", "date_effective_from": "1997-04-17 08:29:44", "date_effective_to": "1994-12-07 13:26:23", "template_details": ""}, {"template_id": 10, "version_number": 1, "template_type_code": "PPT", "date_effective_from": "2003-06-05 04:03:45", "date_effective_to": "2007-06-06 06:18:53", "template_details": ""}, {"template_id": 11, "version_number": 6, "template_type_code": "BK", "date_effective_from": "1996-02-04 11:27:24", "date_effective_to": "1995-09-19 22:27:48", "template_details": ""}, {"template_id": 14, "version_number": 7, "template_type_code": "AD", "date_effective_from": "1975-10-20 02:28:58", "date_effective_to": "1979-11-04 08:58:39", "template_details": ""}, {"template_id": 15, "version_number": 9, "template_type_code": "CV", "date_effective_from": "1986-12-09 14:51:36", "date_effective_to": "1993-03-24 14:30:23", "template_details": ""}, {"template_id": 16, "version_number": 5, "template_type_code": "CV", "date_effective_from": "2012-04-05 07:11:42", "date_effective_to": "1980-05-07 12:15:47", "template_details": ""}, {"template_id": 18, "version_number": 5, "template_type_code": "PP", "date_effective_from": "1984-08-07 13:36:26", "date_effective_to": "1998-05-12 12:51:29", "template_details": ""}, {"template_id": 19, "version_number": 7, "template_type_code": "AD", "date_effective_from": "1999-06-21 11:10:30", "date_effective_to": "1974-09-14 06:34:39", "template_details": ""}, {"template_id": 20, "version_number": 6, "template_type_code": "BK", "date_effective_from": "1986-11-14 12:20:18", "date_effective_to": "2008-08-08 18:36:43", "template_details": ""}, {"template_id": 21, "version_number": 9, "template_type_code": "AD", "date_effective_from": "2002-08-25 13:26:23", "date_effective_to": "2015-09-06 01:08:44", "template_details": ""}, {"template_id": 22, "version_number": 0, "template_type_code": "PP", "date_effective_from": "2005-02-20 00:31:34", "date_effective_to": "1989-11-24 19:06:06", "template_details": ""}, {"template_id": 23, "version_number": 2, "template_type_code": "BK", "date_effective_from": "1979-12-24 10:28:16", "date_effective_to": "2000-10-22 11:57:12", "template_details": ""}, {"template_id": 24, "version_number": 8, "template_type_code": "PP", "date_effective_from": "2008-08-01 13:57:26", "date_effective_to": "1973-01-12 14:13:34", "template_details": ""}, {"template_id": 25, "version_number": 5, "template_type_code": "PP", "date_effective_from": "1979-10-20 21:23:20", "date_effective_to": "2006-02-06 23:52:04", "template_details": ""}], "documents": [{"document_id": 0, "template_id": 7, "document_name": "Introduction of OS", "document_description": "n", "other_details": 0}, {"document_id": 1, "template_id": 25, "document_name": "Understanding DB", "document_description": "y", "other_details": 0}, {"document_id": 3, "template_id": 6, "document_name": "Summer Show", "document_description": "u", "other_details": 0}, {"document_id": 76, "template_id": 20, "document_name": "Robbin CV", "document_description": "y", "other_details": 0}, {"document_id": 80, "template_id": 14, "document_name": "Welcome to NY", "document_description": "h", "other_details": 0}, {"document_id": 82, "template_id": 11, "document_name": "Data base", "document_description": "w", "other_details": 0}, {"document_id": 2394, "template_id": 10, "document_name": "Customer reviews", "document_description": "y", "other_details": 0}, {"document_id": 3830, "template_id": 14, "document_name": "Do not panic", "document_description": "k", "other_details": 0}, {"document_id": 33930, "template_id": 1, "document_name": "How Google people work", "document_description": "z", "other_details": 0}, {"document_id": 50123, "template_id": 22, "document_name": "Learning French", "document_description": "r", "other_details": 0}, {"document_id": 651512, "template_id": 21, "document_name": "How to write a CV", "document_description": "f", "other_details": 0}, {"document_id": 801801, "template_id": 4, "document_name": "How to read a book", "document_description": "w", "other_details": 0}, {"document_id": 3540024, "template_id": 8, "document_name": "Palm reading", "document_description": "y", "other_details": 0}, {"document_id": 16514113, "template_id": 25, "document_name": "A history of Arts", "document_description": "h", "other_details": 0}, {"document_id": 385906526, "template_id": 11, "document_name": "About Korea", "document_description": "b", "other_details": 0}]}, "correct_code": "-- Load cre_Doc_Template_Mgt__templates data\ntemplates = load(\"templates\")\n\nsummary = templates\n |> group_by(date_effective_to)\n |> aggregate(min_version_number: min(version_number), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "buggy_code": "-- Load cre_Doc_Template_Mgt__templates data\ntemplates = load(\"templates\")\n\nsummary = templates\n |> group_by(version_number)\n |> aggregate(min_version_number: min(version_number), count: count())\n\nresult = summary\n |> sort_by(count, desc)\n |> take(10)\n\nemit result", "expected_output": [{"date_effective_to": "2008-01-05 14:19:28", "min_version_number": 5, "count": 1}, {"date_effective_to": "1999-07-08 03:31:04", "min_version_number": 9, "count": 1}, {"date_effective_to": "2001-04-18 09:29:52", "min_version_number": 4, "count": 1}, {"date_effective_to": "1992-05-02 20:06:11", "min_version_number": 2, "count": 1}, {"date_effective_to": "1975-07-16 04:52:10", "min_version_number": 8, "count": 1}, {"date_effective_to": "1976-10-28 10:08:50", "min_version_number": 3, "count": 1}, {"date_effective_to": "1994-12-07 13:26:23", "min_version_number": 2, "count": 1}, {"date_effective_to": "2007-06-06 06:18:53", "min_version_number": 1, "count": 1}, {"date_effective_to": "1995-09-19 22:27:48", "min_version_number": 6, "count": 1}, {"date_effective_to": "1979-11-04 08:58:39", "min_version_number": 7, "count": 1}], "bug_info": [{"category": "wrong_col", "description": "Wrong column reference: 'date_effective_to' \u2192 'version_number'", "line_num": 5, "original": "|> group_by(date_effective_to)", "mutated": "|> group_by(version_number)"}], "difficulty": "hard", "domain": "cre_Doc_Template_Mgt__templates", "num_nodes": 3, "has_join": false}